Yes that is indeed my experience as well.You can process the results but then in a SELECT within a SELECT query.This works:
SELECT * WHERE {
{SELECT ?item ?itemLabel WHERE {
?item wdt:P31 wd:Q2085381.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}}
FILTER(CONTAINS(LCASE(?itemLabel), "simon"))
}Note the omission of the second FILTER. I suspect that the results of the service return labels without language tags._______________________________________________On Fri, May 31, 2019 at 8:12 AM Nicolas VIGNERON <vigneron.nicolas@gmail.com> wrote:_______________________________________________Hi Thad,Did it ever works?It was my understanding that if you want to manipulate the label (or the description, or the alias), you need to explicitly call it and that the SERVICE was for display only. At least, this is with this assumption that I always wrote my query (or explained during SPARQL workshops) :/Anyway, this query works :SELECT ?item ?itemLabel WHERE {
?item wdt:P31 wd:Q2085381 ; rdfs:label ?itemLabel .
FILTER(CONTAINS(LCASE(?itemLabel), "simon"))
FILTER (LANG(?itemLabel)="en")
}Cheers,~nicolasLe ven. 31 mai 2019 à 03:05, Thad Guidry <thadguidry@gmail.com> a écrit :_______________________________________________My Query:SELECT ?item ?itemLabel WHERE {
?item wdt:P31 wd:Q2085381.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
# FILTER(CONTAINS(LCASE(?itemLabel), "simon"))
# FILTER (LANG(?itemLabel)="en")
}and if I enable any of the FILTER lines, it returns 0 results.What changed / Why ?
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata