Skip to content

Instantly share code, notes, and snippets.

@drcjar
Created May 24, 2014 15:52
Show Gist options
  • Save drcjar/cbb5b24842f7484bc31a to your computer and use it in GitHub Desktop.
Save drcjar/cbb5b24842f7484bc31a to your computer and use it in GitHub Desktop.
PREFIX owl: <http://www.w3.org/2002/07/owl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
PREFIX : <http://dbpedia.org/resource/>
PREFIX dbpedia2: <http://dbpedia.org/property/>
PREFIX dbpedia: <http://dbpedia.org/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX dbo: <http://dbpedia.org/ontology/>
SELECT ?name ?place ?birth ?death ?person ?occupation ?cause WHERE {
?person dbo:birthPlace ?place .
?person dbo:birthDate ?birth .
?person foaf:name ?name .
?person dbo:deathDate ?death .
?person dbo:occupation ?occupation .
?person dbo:deathCause ?cause .
FILTER (?birth > "1900-01-01"^^xsd:date) .
}
ORDER BY ?name
LIMIT 5000
@drcjar
Copy link
Author

drcjar commented May 24, 2014

code for here http://dbpedia.org/sparql to return people and their diseases and occupations ftw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment