On Tue, Sep 5, 2023 at 8:10 AM Tobias Schweizer <[email protected]>
wrote:

> Hi there,
>

Hi!


> 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.
>

Filtering by language is sadly not possible using the LDF endpoint as it
would require a FILTER sparql clause.
Language not appearing in the LDF output is sadly a known limitation [0] of
the current implementation.
Also note that SPARQL/LDF is not the only way to extract information out of
wikidata, have you considered using the wikidata wbgetentities API [1]?
It can be used to extract labels in a certain language [2]. I suppose also
that the upcoming wikidata REST api [3] will cover this use case as well.

David.

0: https://phabricator.wikimedia.org/T305983
1: https://www.wikidata.org/w/api.php?action=help&modules=wbgetentities
2:
https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q42&props=labels&languages=en
3: https://doc.wikimedia.org/Wikibase/master/js/rest-api/
_______________________________________________
Discovery mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to