query-b839ddf04b329b918d24607fe735d194
times-out even with hint
SELECT ?item ?itemLabel
WITH
{
SELECT ?item
WHERE
{ ?item wdt:P31 wd:Q5
OPTIONAL { ?item schema:description ?descnl FILTER(LANG(?descnl) = "nl") }
FILTER ( !BOUND(?descnl) )
}
LIMIT 1
} as %include
WHERE
{
# hint:Query hint:optimizer "None".
INCLUDE %include
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#times-out even with hint
SELECT ?item ?itemLabel
WHERE
{
# hint:Query hint:optimizer "None".
{
SELECT ?item
WHERE
{ ?item wdt:P31 wd:Q5
OPTIONAL { ?item schema:description ?descnl FILTER(LANG(?descnl) = "nl") }
FILTER ( !BOUND(?descnl) )
}
LIMIT 1
} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?descnl")
v2("?item"):::projected
c6(["bd:serviceParam"]):::iri
c3(["wd:Q5"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["not bound(?descnl)"]]
f0 --> v1
v2 --"wdt:P31"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."schema:description".-> v1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end