Hi Houcemeddine Turki, What you have to do is filter the results to show only the items with a label in Tunisian. I modified your query with the filter, check it:
SELECT ?_tre_humain ?_tre_humainLabel WHERE { ?_tre_humain wdt:P31 wd:Q34770. ?_tre_humain rdfs:label ?itemLabelAebArab .
FILTER(lang(?itemLabelAebArab) = "aeb-arab")
SERVICE wikibase:label { bd:serviceParam wikibase:language "aeb-arab". } }
You can test it [0]. To explain the query now, what I added is:
?_tre_humain rdfs:label ?itemLabelAebArab .
FILTER(lang(?itemLabelAebArab)="aeb-arab")
The first line query the label with the ?itemLabelAebArab object and the second filter the language. Note that the object (?itemLabelAebArab) must to be in the filter.
I hope it helps you.
Regards, Iván
[0]: http://tinyurl.com/y7vhsncy
On 04/03/18 13:57, abdelwaheb turki wrote:
Dear Mr. or Ms., I thank you for your efforts. I have written the following query to find the languages that have a label in Tunisian in Wikidata: SELECT ?_tre_humain ?_tre_humainLabel WHERE { SERVICE wikibase:label { bd:serviceParam wikibase:language "aeb-arab". } ?_tre_humain wdt:P31 wd:Q34770. } However, I found that many languages not having a label in Tunisian are sorted as well. For these languages, the featured label is the Wikidata ID of the language. I ask about how to eliminate these languages from the results of my wikidata query. Yours Sincerely, Houcemeddine Turki _______________________________________________ Wikidata mailing list Wikidata@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata