query-673e9f25c99c2edabd9d30b83152e084
Description containing a certain wordHello, I'd like to find items whose description contains a certain word, e.g. "annelidologist". I tried the following query but I get a timeout error:
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?item ?description
WHERE
{
?item wdt:P31 wd:Q5 ;
schema:description ?description .
FILTER(CONTAINS(?description, "annelidologist"@en)) .
}
LIMIT 10
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?description"):::projected
v2("?item"):::projected
c3(["wd:Q5"]):::iri
f0[["contains(?description,sannelidologist^^<http://www.w3.org/1999/02/22-rdf-syntax-ns#langString>')"]]
f0 --> v1
v2 --"wdt:P31"--> c3
v2 --"schema:description"--> v1