« DBpedia Mapings | Main | Firing up and querying 4store »

July 13, 2010

Twins!

PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX dc: <http://purl.org/dc/elements/1.1/>

SELECT ?person, ?birth, ?death, ?name, ?first, ?last, ?description, ?place {
     ?person rdf:type dbo:PlayboyPlaymate .
     ?person dbo:birthDate ?birth .
     OPTIONAL{ ?person dbo:birthPlace ?place. }
     ?person foaf:name ?name .
     OPTIONAL { ?person foaf:givenname ?first . }
     OPTIONAL { ?person foaf:surname ?last . }
     OPTIONAL{ ?person dbo:deathDate ?death . }
     OPTIONAL{ ?person dbo:nationality ?nationality . }
     OPTIONAL{ ?person dbo:ethnicGroup ?race . }
     OPTIONAL{ ?person dc:description ?description . }
     FILTER regex(str(?name), " and ") .
}

Twins!

Tags: RDF

Posted by pj at July 13, 2010 04:16 PM

Comments