-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from plazi/2-worker
use GHAct
- Loading branch information
Showing
9 changed files
with
144 additions
and
449 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Turtle-Hook | ||
|
||
This updates a SPARQL-Endpoint to reflect the changes of the content of RDF-Turtle files in a Github repository. | ||
|
||
It uses [ghact](https://deno.land/x/ghact) to provide a webhook and a web/rest interface. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
export const config = { | ||
branch: "main", | ||
import { type Config } from "../src/deps.ts"; | ||
|
||
export const sparqlConfig = { | ||
graphUriPrefix: "https://raw.githubusercontent.com/plazi/treatments-rdf/main", | ||
repository: "plazi/treatments-rdf", | ||
repositoryUri: "https://github.com/plazi/treatments-rdf.git", | ||
uploadUri: "http://blazegraph:8080/blazegraph/sparql", | ||
}; | ||
|
||
export const ghActConfig: Config = { | ||
title: "Turtle-Hook", | ||
description: "Load RDF from plazi/treatments-rdf into our triple-store.", | ||
// we don't create commits, so a default job-author is not really neccesary | ||
email: "", | ||
sourceRepositoryUri: "https://github.com/plazi/treatments-rdf.git", | ||
sourceBranch: "main", | ||
sourceRepository: "plazi/treatments-rdf", | ||
workDir: "/workdir", | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
export { | ||
Server, | ||
Status, | ||
STATUS_TEXT, | ||
} from "https://deno.land/std@0.141.0/http/mod.ts"; | ||
export { serveDir } from "https://deno.land/std@0.141.0/http/file_server.ts"; | ||
type Config, | ||
GHActServer, | ||
GHActWorker, | ||
type Job, | ||
} from "https://deno.land/x/ghact@1.2.1/mod.ts"; |
Oops, something went wrong.