query-06adb9dc062ba82fd082976b1043fc67
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?item ?wikinews {
{ ?wikinews schema:about ?item; schema:isPartOf [ wikibase:wikiGroup "wikinews" ] }
MINUS
{ [] schema:about ?item; schema:isPartOf [ wikibase:wikiGroup "wikipedia" ] }
FILTER NOT EXISTS { ?item wdt:P31 [] }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?wikinews"):::projected
a3((" "))
a1((" "))
a2((" "))
a4((" "))
c4(["wikinews"]):::literal
c6(["wikipedia"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P31"--> e0a1
e0v1("?item"):::projected
e0a1((" ")):::projected
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> a1
v1 --"wdt:P31"--> a1
v2 --"schema:about"--> v1
a2 --"wikibase:wikiGroup"--> c4
v2 --"schema:isPartOf"--> a2
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
a3 --"schema:about"--> v1
a4 --"wikibase:wikiGroup"--> c6
a3 --"schema:isPartOf"--> a4
end