Hi Mbch331,
Excuse me the delay answering, but sometimes there is many incoming
messages in this mailing list and with the another ones, sometimes I
feel like in a boat in torment (of messages, of course hehe).
Thanks for your comment about my message and thank you for your note
about the unnecessary use of the service lines when there is a
rdfs:label. I note it in my SPARQL notebook, there are many things I
have to learn yet.
Regards,
Iván
On 05/03/18 18:44, Mbch331 wrote:
Hi Iván,
You provided an explanation, where I only gave the updated query.
There's one difference between our queries: I removed the service line
because that doesn't add anything in this case. Since you only use it to
fetch the label and you're already doing that with rdfs:label.
If you needed labels for other claims or needed descriptions, than the
adding the service line would still be useful.
Mbch331
Op 4-3-2018 om 22:33 schreef Iván Hernández Cazorla:
Ups, I replied to Houcemeddine Turki with
practically the same answer
that Mbch331. Excuse me, I didn't check it.
Regards,
Iván
On 04/03/18 14:10, Mbch331 wrote:
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(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata
_______________________________________________
Wikidata mailing list
Wikidata(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata
_______________________________________________
Wikidata mailing list
Wikidata(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata
--
Iván Hernández Cazorla
Wikimedia España