Skip to content

Commit

Permalink
sparql query: avoid duplicate results with different data types
Browse files Browse the repository at this point in the history
  • Loading branch information
Susanne Kunis committed Jul 25, 2023
1 parent 34cc97f commit 8ca3341
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ private String generateSparqlQuery(String url_term){

String queryString =
"PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\n"+
"SELECT DISTINCT ?subclass ?Label\n"+
"SELECT DISTINCT ?subclass (STR(?subclassLabel) AS ?Label)\n"+
"WHERE {\n"+
" ?subclass rdfs:subClassOf <"+ontologyPURL+">.\n"+
" ?subclass rdfs:label ?Label.\n"+
" ?subclass rdfs:label ?subclassLabel.\n"+
//" FILTER (LANG(?Label)= 'en')\n"+
"}";
return queryString;
Expand Down

0 comments on commit 8ca3341

Please sign in to comment.