It possible to export all ULAN Subject ID with their associated artist Nationaties?

129 views
Skip to first unread message

Alice Lambert

unread,
Mar 10, 2017, 8:54:05 AM3/10/17
to Getty Vocabularies as Linked Open Data
Hi All! 
My understanding is that I may be able to extract this information from the LOD releases, using a SPARQL and that I can have a look at what is already available and see if the query I need is already there. I have to admit that I am completely unfamiliar with LOD, SPARQL etc. and that any advice on how to query and retrieve the data would be more than welcome! 
Moreover, what format would be available? Would it be XML?

Thank you all for your help!

Alice

Vladimir Alexiev

unread,
Mar 10, 2017, 11:21:27 AM3/10/17
to Getty Vocabularies as Linked Open Data
See http://vocab.getty.edu/doc/queries/#ULAN-Specific_Queries.

The basic query you need is this:
select ?x ?name ?bio ?nationality ?type {
 
?x skos:inScheme ulan: .
  optional
{?x gvp:agentTypePreferred [gvp:prefLabelGVP [xl:literalForm ?type]]}
  optional
{?x foaf:focus [gvp:nationalityPreferred [gvp:prefLabelGVP [xl:literalForm ?nationality]]]}
  optional
{?x gvp:prefLabelGVP [xl:literalForm ?name]}
  optional
{?x foaf:focus [gvp:biographyPreferred [schema:description ?bio]]}
}

But it starts with a number of "unknown artists". So you probably want to filter to a specific facet.

Eg if you want only ulan:500000002 Persons, Artists:
select ?x ?name ?bio ?nationality ?type {
 
?x gvp:broaderExtended ulan:500000002. # Persons, Artists
  optional
{?x gvp:agentTypePreferred [gvp:prefLabelGVP [xl:literalForm ?type]]}
  optional
{?x foaf:focus [gvp:nationalityPreferred [gvp:prefLabelGVP [xl:literalForm ?nationality]]]}
  optional
{?x gvp:prefLabelGVP [xl:literalForm ?name]}
  optional
{?x foaf:focus [gvp:biographyPreferred [schema:description ?bio]]}
}

Cheers!

Vladimir Alexiev

unread,
Mar 10, 2017, 11:24:08 AM3/10/17
to Getty Vocabularies as Linked Open Data
You can download the result in TSV or CSV. (XML and JSON are also available)
Reply all
Reply to author
Forward
0 new messages