Skip to content

Commit

Permalink
updated graph uris to one whihc point somewhere
Browse files Browse the repository at this point in the history
see #1 for context
  • Loading branch information
nleanba committed Jul 12, 2024
1 parent e6ed410 commit bae80ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { type Config } from "../src/deps.ts";

export const sparqlConfig = {
// do not change this prefix, removing the previous version depends on this not changing
graphUriPrefix: "https://raw.githubusercontent.com/plazi/treatments-rdf/main",
graphUriPrefix: "https://treatment.plazi.org/id",
uploadUri: "http://blazegraph:8080/blazegraph/sparql",
};

Expand Down
4 changes: 3 additions & 1 deletion src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ const fileUri = (fileName: string) =>
`<http://${Deno.env.get("HOSTNAME")}:4505/workdir/repository/${fileName}>`;

const graphUri = (fileName: string) =>
`<${sparqlConfig.graphUriPrefix}/${fileName.replace(/\.ttl$/, "")}>`;
`<${sparqlConfig.graphUriPrefix}/${
fileName.replace(/.*\//, "").replace(/\.ttl$/, "")
}>`;

const DROP = (fileName: string) => `DROP GRAPH ${graphUri(fileName)}`;

Expand Down

0 comments on commit bae80ac

Please sign in to comment.