Created
January 30, 2018 14:46
-
-
Save northernjamie/797c0414390f02d15c8e894deead2250 to your computer and use it in GitHub Desktop.
SPARQL query to get one series of data for ODC google chart demo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
SELECT ?periodlabel ?count | |
WHERE { | |
?obs <http://purl.org/linked-data/cube#dataSet> <http://opendatacommunities.org/data/homelessness/rough-sleeping/count> . | |
?obs <http://opendatacommunities.org/def/ontology/geography/refArea> <http://opendatacommunities.org/id/geography/administration/ctry/E92000001> . | |
?obs <http://opendatacommunities.org/def/ontology/time/refPeriod> ?perioduri . | |
?obs <http://opendatacommunities.org/def/ontology/homelessness/roughSleepingObs> ?count . | |
?perioduri rdfs:label ?periodlabel . | |
} | |
ORDER BY ?periodlabel |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment