query-f8d6a26d078f68fabf55ad1adc563e38
TODO
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#>
SELECT DISTINCT ?item ?itemLabel WHERE {
{
SELECT ?item WHERE {
?article a schema:Article;
schema:isPartOf ?wiktionary;
schema:about ?item.
?wiktionary wikibase:wikiGroup "wiktionary".
}
}
MINUS {
?otherArticle a schema:Article;
schema:isPartOf ?otherProject;
schema:about ?item.
?otherProject wikibase:wikiGroup ?otherGroup.
FILTER(?otherGroup != "wiktionary")
}
MINUS { ?item wdt:P31/wdt:P279* wd:Q14204246. }
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("?article")
v3("?item"):::projected
v5("?otherArticle")
v4("?otherGroup")
v6("?otherProject")
v2("?wiktionary")
a1((" "))
c2(["schema:Article"]):::iri
c9(["wd:Q14204246"]):::iri
c11(["bd:serviceParam"]):::iri
c6(["wiktionary"]):::literal
c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"a"--> c2
v1 --"schema:isPartOf"--> v2
v1 --"schema:about"--> v3
v2 --"wikibase:wikiGroup"--> c6
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
f1[["?otherGroup != 'wiktionary'"]]
f1 --> v4
v5 --"a"--> c2
v5 --"schema:isPartOf"--> v6
v5 --"schema:about"--> v3
v6 --"wikibase:wikiGroup"--> v4
end
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v3 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c9
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c11 --"wikibase:language"--> c13
end