Created
January 16, 2013 00:55
-
-
Save ringmaster/4543687 to your computer and use it in GitHub Desktop.
Here's a sample query to find people for my dead pool using SPARQL and the dbpedia.
This file contains hidden or 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 dbo: <http://dbpedia.org/ontology/> | |
SELECT ?name ?birth ?death ?person ?wikipedia ?occupation WHERE { | |
?person dbo:birthDate ?birth . | |
?person foaf:name ?name . | |
?person a dbo:Actor . | |
OPTIONAL {?person dbo:deathDate ?death .} | |
OPTIONAL {?person dbpprop:dateOfDeath ?death2 .} | |
FILTER (?birth < "1950-01-01"^^xsd:date) | |
FILTER (?birth > "1890-01-01"^^xsd:date) | |
FILTER (!bound(?death)) | |
FILTER (!bound(?death2)) | |
} | |
ORDER BY asc(?birth) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment