query-8ef9aecd98ba58f74b5b7c5b726a60a6
Did you consider variable scope problems? These (constructed) queries have different output:
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT * WHERE
{
?item wdt:P31 wd:Q4167836 ; wdt:P971 wd:Q36224 .
[] schema:about ?item ; schema:isPartOf / wikibase:wikiGroup "wiktionary" ; schema:inLanguage ?lang ; schema:name ?title
FILTER NOT EXISTS { ?item rdfs:label ?l . FILTER (lang(?l)=?lang ) }
}
LIMIT 250000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item"):::projected
v1("?l")
v2("?lang"):::projected
v4("?title"):::projected
a1((" "))
a2((" "))
c5(["wd:Q36224"]):::iri
c9(["wiktionary"]):::literal
c3(["wd:Q4167836"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0f0[["?l = ?lang"]]
e0f0 --> e0v1
e0f0 --> e0v2
e0v3 --"rdfs:label"--> e0v1
e0v3("?item"):::projected
e0v1("?l"):::projected
e0v2("?lang"):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> v2
f0 --> v3
f0 --> c1
f1[["?l = ?lang"]]
f1 --> v1
f1 --> v2
v3 --"rdfs:label"--> v1
v3 --"wdt:P31"--> c3
v3 --"wdt:P971"--> c5
a1 --"schema:about"--> v3
a1 --"schema:isPartOf"--> a2
a2 --"wikibase:wikiGroup"--> c9
a1 --"schema:inLanguage"--> v2
a1 --"schema:name"--> v4