query URL to return only a specific language

26 views
Skip to first unread message

Rolf Blijleven

unread,
Oct 31, 2017, 9:59:40 AM10/31/17
to Getty Vocabularies as Linked Open Data
This URL returns a list in English of AAT-terms that start with "weef". 


Is it possible to specify in this URL that it should return only Dutch content? 

Can you point me to documentation where I find this? 

There's a long story behind this, but I'll spare you that for now. 

Thanks
Rolf





Vladimir Alexiev

unread,
Nov 3, 2017, 6:37:53 AM11/3/17
to Getty Vocabularies as Linked Open Data
Hi Rolf!
You want to use a luc:term prefix query, but then restrict by term language.
Try this, returns 31:
select * {
 
?x luc:term "weef*";
     xl
:prefLabel|xl:altLabel [dct:language gvp_lang:nl; xl:literalForm ?label]
}

If you want to further restrict to ONLY terms starting "weef" then add a regex match:
select * {
 
?x luc:term "weef*";
     xl
:prefLabel|xl:altLabel [dct:language gvp_lang:nl; xl:literalForm ?label]
  filter
(regex(?label,"^weef.*"))
}

Reply all
Reply to author
Forward
0 new messages