Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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