« June 2010 | Main | August 2010 »

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!

Posted by pj at 04:16 PM | Comments (0)

DBpedia Mapings

All pages (OntologyClass namespace) - DBpedia Mappings

Posted by pj at 03:03 PM | Comments (0)