Last active
December 31, 2015 02:19
-
-
Save pwin/7919816 to your computer and use it in GitHub Desktop.
SPARQL to get sites
This file contains 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 rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> | |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
PREFIX skos: <http://www.w3.org/2004/02/skos/core#> | |
PREFIX org: <http://www.w3.org/ns/org#> | |
PREFIX v: <http://www.w3.org/2006/vcard/ns#> | |
SELECT * WHERE { | |
SERVICE <http://cofog01.data.scotland.gov.uk/sparql> { | |
select distinct ?fn ?code { | |
graph ?g { | |
?id org:siteAddress ?sgvc; | |
skos:annotation ?code . | |
?sgvc v:fn ?fn | |
} | |
} | |
order by ?fn | |
} | |
} | |
LIMIT 100 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment