Skip to content

Instantly share code, notes, and snippets.

@ostephens
Created April 20, 2015 18:05
Show Gist options
  • Save ostephens/d5ad2dab84b77dc7f32e to your computer and use it in GitHub Desktop.
Save ostephens/d5ad2dab84b77dc7f32e to your computer and use it in GitHub Desktop.
Include date of birth in SPARQL results when selecting by DoB in query on BNB
PREFIX bio: <http://purl.org/vocab/bio/0.1/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT ?author ?name ?dob WHERE {
?event a bio:Birth;
bio:date "1945"^^xsd:gYear;
bio:date ?dob.
?author bio:event ?event;
foaf:name ?name.
}
LIMIT 50
@EthanDF
Copy link

EthanDF commented Apr 20, 2015

Thank you for this!

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