Dear Mr., I thank you for your answer. This is absolutely useful. Yours Sincerely, Houcemeddine Turki
________________________________________ De : Wikidata wikidata-bounces@lists.wikimedia.org de la part de Mbch331 mbch331.wikipedia@gmail.com Envoyé : dimanche 4 mars 2018 15:10:14 À : Discussion list for the Wikidata project. Objet : Re: [Wikidata] How to eliminate items not having a label in a particular language from the Wikidata query results
This should do the trick:
SELECT ?_tre_humain ?_tre_humainLabel WHERE { ?_tre_humain rdfs:label ?_tre_humainLabel . ?_tre_humain wdt:P31 wd:Q34770. FILTER (lang(?_tre_humainLabel)="aeb-arab") }
Mbch331
Op 4-3-2018 om 14:57 schreef abdelwaheb turki:
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.orgmailto:Wikidata@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata