Skip to content

Commit

Permalink
Updated to SPARQL 1.1 spec
Browse files Browse the repository at this point in the history
  • Loading branch information
RinkeHoekstra authored Sep 8, 2016
1 parent e35370f commit 0aecdc1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 18_groupconcat.sparql.rq
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ PREFIX dbpedia: <http://dbpedia.org/resource/>
PREFIX dbpediaowl: <http://dbpedia.org/ontology/>
PREFIX dbp: <http://dbpedia.org/property/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?country (GROUP_CONCAT (?city_name, ",") AS ?cities)
SELECT ?country (GROUP_CONCAT(?city_name; separator=",") AS ?cities)
WHERE {
?country a dbpediaowl:Country .
?city a dbpediaowl:City ;
dbpediaowl:country ?country ;
rdfs:label ?city_name
} GROUP BY ?country HAVING (COUNT(DISTINCT?city) < 10)
} GROUP BY ?country HAVING (COUNT(DISTINCT?city) < 10)

0 comments on commit 0aecdc1

Please sign in to comment.