Hi there,

I have just discovered the Linked Data Fragments endpoint.

I have the following request:

curl \
  --get \
  -H 'Accept: text/turtle' \
  --data-urlencode 'predicate=http://www.w3.org/2000/01/rdf-schema#label' \
  --data-urlencode 'subject=http://www.wikidata.org/entity/Q78' \
  'https://query.wikidata.org/bigdata/ldf'


This gives me the labels without language annotations. Do I miss something or 
why are the language tags absent?

wd:Q78  rdfs:label  "巴塞爾"^^rdf:langString , "Basilia"^^rdf:langString , 
"Bazelo"^^rdf:langString , "Базел"^^rdf:langString , "Basel"^^rdf:langString , 
"Basileia"^^rdf:langString , "바젤"^^rdf:langString , "Bazel"^^rdf:langString , 
"Bâle"^^rdf:langString , "Bazylea"^^rdf:langString , "Базэль"^^rdf:langString , 
"בזל"^^rdf:langString , "巴塞尔"^^rdf:langString , "Basilea"^^rdf:langString , 
"बासेल"^^rdf:langString , "بازل"^^rdf:langString , "บาเซิล"^^rdf:langString , 
"ባዝል"^^rdf:langString , "Базель"^^rdf:langString .


I can do a similar SPARQL query which returns the labels:

SELECT *
WHERE
{
  wd:Q78 http://www.w3.org/2000/01/rdf-schema#label ?lang.

  BIND(lang(?lang) as ?anno)
}

In the docs 
(https://www.mediawiki.org/wiki/Wikidata_Query_Service/User_Manual#Standalone_service),
 I found this example:
https://query.wikidata.org/bigdata/ldf?subject=&predicate=http%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23label&object=%22London%22%40en
all triples that have English label "London"

Is there a way to get all labels for a certain language without specifying the 
label string itself? I tried wildcards but it did not work.

Any hint would be highly appreciated!

Thanks,

Tobias


--
SWITCH
Tobias Schweizer, Data & Insights
Werdstrasse 2, P.O. Box, 8021 Zurich, Switzerland
phone +41 44 268 15 15, direct +41 44 268 15 17
[email protected]<mailto:[email protected]>, 
www.switch.ch<http://www.switch.ch>

_______________________________________________
Discovery mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to