Skip to content

Instantly share code, notes, and snippets.

@mdlincoln
Created March 16, 2017 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdlincoln/710e081da51cea124650944f4070341c to your computer and use it in GitHub Desktop.
Save mdlincoln/710e081da51cea124650944f4070341c to your computer and use it in GitHub Desktop.
SELECT DISTINCT ?id ?pref_name ?birth_year ?death_year ?birth_place ?death_place ?nationality ?bio_description ?scope_note ?pref_role
WHERE {
?artist skos:inScheme ulan: ;
dc:identifier ?id ;
rdf:type gvp:PersonConcept ;
dc:identifier ?id ;
xl:prefLabel [xl:literalForm ?pref_name] .
?artist foaf:focus [gvp:biographyPreferred ?bio] .
?bio schema:gender aat:300189557 .
OPTIONAL {
?artist gvp:agentTypePreferred [xl:prefLabel [xl:literalForm ?pref_role]] .
FILTER(langMatches(lang(?pref_role), "EN"))
}
OPTIONAL {
?bio gvp:estStart ?birth_year .
}
OPTIONAL {
?bio gvp:estEnd ?death_year .
}
OPTIONAL {
?bio schema:description ?bio_description .
}
OPTIONAL {
?bio schema:birthPlace ?birth_tgn_focus .
?birth_tgn foaf:focus ?birth_tgn_focus;
xl:prefLabel [xl:literalForm ?birth_place ] .
FILTER(langMatches(lang(?birth_place), "EN"))
}
OPTIONAL {
?bio schema:deathPlace ?death_tgn_focus .
?death_tgn foaf:focus ?death_tgn_focus;
xl:prefLabel [xl:literalForm ?death_place ] .
FILTER(langMatches(lang(?death_place), "EN"))
}
OPTIONAL {
?artist foaf:focus [gvp:nationalityPreferred [xl:prefLabel [gvp:term ?nationality]]] .
FILTER(langMatches(lang(?nationality), "EN"))
}
OPTIONAL {
?artist skos:scopeNote [rdf:value ?scope_note] .
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment