Skip to content

Instantly share code, notes, and snippets.

@KasperBrandt
Created July 29, 2013 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KasperBrandt/6106898 to your computer and use it in GitHub Desktop.
Save KasperBrandt/6106898 to your computer and use it in GitHub Desktop.
SPARQL query for retrieving all countries and codes from the CIA Factbook endpoint: http://wifo5-03.informatik.uni-mannheim.de/factbook/sparql
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?country ?code
WHERE {
?country rdf:type <http://wifo5-04.informatik.uni-mannheim.de/factbook/ns#Country> .
?country <http://wifo5-04.informatik.uni-mannheim.de/factbook/ns#internetcountrycode> ?code .
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment