Skip to content

Commit

Permalink
entity-renderer: fix SPARQL query for label loader
Browse files Browse the repository at this point in the history
  • Loading branch information
ludovicm67 committed Jun 27, 2023
1 parent ed223f3 commit 56144fd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/friendly-papayas-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@zazuko/trifid-entity-renderer": patch
---

Fix SPARQL query for label loader (#149)
14 changes: 6 additions & 8 deletions packages/entity-renderer/renderer/labels/labelLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,12 @@ class LabelLoader {
PREFIX schema: <http://schema.org/>
CONSTRUCT {
graph ?g {
?uri schema:name ?label .
}
} where {
graph ?g {
?uri schema:name ?label
VALUES ?uri { ${uris} }
}
?uri schema:name ?label .
} WHERE {
GRAPH ?g {
?uri schema:name ?label
VALUES ?uri { ${uris} }
}
}`);
}

Expand Down

0 comments on commit 56144fd

Please sign in to comment.