query-188d53ebad2472e977a84e618b22b24f
Fast searching of descriptions: was made on Project ChatThe request "Is there any (easy) way to search for some string in the description field of items only in one particular language?"It would be nice to be able to do this in SPARQL, eg with a query like
Use at
- https://query.wikidata.org/sparql
PREFIX schema: <http://schema.org/>
SELECT ?q ?desc WHERE {
?q schema:description ?desc .
FILTER (STRSTARTS(?desc, 'langue'))
filter (lang(?desc) = "fr") .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?desc"):::projected
v2("?q"):::projected
f0[["?desc = 'fr'"]]
f0 --> v1
f1[["starts-with(?desc,'langue')"]]
f1 --> v1
v2 --"schema:description"--> v1