Skip to content

Commit

Permalink
fix: Set base URI when storing summary (#70)
Browse files Browse the repository at this point in the history
Fix error `Unable to resolve URIs, no base URI has been set` when
storing summaries, caused by #66, which introduced relative URIs 
for classPartitions.
  • Loading branch information
ddeboer authored Aug 12, 2024
1 parent 2d927ba commit fc4b6d0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/graphdb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ export class GraphDBClient implements WriterSparqlClient, ImporterSparqlClient {

async store(dataset: Dataset, summary: DatasetCore): Promise<void> {
try {
await this.repository.putQuads([...summary], dataset.iri);
await this.repository.putQuads(
[...summary],
dataset.iri,
`<${dataset.iri}>`
);
} catch (e) {
console.error(
'Write to GraphDB failed for dataset ' + dataset.iri,
Expand Down

0 comments on commit fc4b6d0

Please sign in to comment.