Skip to content

Instantly share code, notes, and snippets.

View usmanakhtar's full-sized avatar

Usman A. usmanakhtar

View GitHub Profile
@northernjamie
northernjamie / SPARQL_ODC_Rough_Sleepers_All.sparql
Created May 8, 2017 15:05
SPARQL query for getting rough sleepers data out of OpenDataCommunities
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?value ?areaname ?GSScode ?year ?s ?areacode ?yearcode
WHERE { ?s ?p <http://opendatacommunities.org/data/homelessness/rough-sleeping/count> ;
<http://opendatacommunities.org/def/ontology/time/refPeriod> ?yearcode ;
<http://opendatacommunities.org/def/ontology/homelessness/roughSleepingObs> ?value ;
<http://opendatacommunities.org/def/ontology/geography/refArea> ?areacode .
?areacode rdfs:label ?areaname ;
<http://www.w3.org/2004/02/skos/core#notation> ?GSScode ;
<http://publishmydata.com/def/ontology/spatial/memberOf> <http://opendatacommunities.org/def/geography/collection/english-lower-tier-authorities> .
?yearcode rdfs:label ?year .