Skip to content

Commit

Permalink
Fix issue with duplicate level entries (see #20)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Baptiste RUDANT committed Sep 9, 2016
1 parent f5a67f8 commit c82a726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/sparql/queries.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const classificationLevels = uri => `
PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX skos:<http://www.w3.org/2004/02/skos/core#>
PREFIX xkos:<http://rdf-vocabulary.ddialliance.org/xkos#>
SELECT ?level ?depth ?label
SELECT DISTINCT ?level ?depth ?label
WHERE {
<${uri}> xkos:hasLevels/rdf:rest*/rdf:first ?level .
?level xkos:depth ?depth ; skos:prefLabel ?label .
Expand Down

0 comments on commit c82a726

Please sign in to comment.