Skip to content

Instantly share code, notes, and snippets.

@KasperBrandt
Created July 29, 2013 19:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KasperBrandt/6106928 to your computer and use it in GitHub Desktop.
Save KasperBrandt/6106928 to your computer and use it in GitHub Desktop.
SPARQL query for retrieving all DBPedia countries and their owl:sameAs relations from the DBPedia endpoint: http://dbpedia.org/sparql
PREFIX dbpedia-owl: <http://dbpedia.org/ontology/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
SELECT ?country ?same
WHERE {
?country rdf:type dbpedia-owl:Country .
?country owl:sameAs ?same .
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment