query-ea0960a43e1c803ca165e24a1ef8f58a
08:20, 14 May 2017 (UTC)) talk (Mikey641--
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/>
SELECT ?item1 ?item2
WHERE
{
?item1 wdt:P373 ?val.
[] schema:about ?item1 ; schema:isPartOf <https://he.wikipedia.org/> .
?item1 wikibase:sitelinks 1 .
?item2 wdt:P373 ?val.
FILTER NOT EXISTS { ?wother schema:about ?item2 . ?wother schema:isPartOf <https://he.wikipedia.org/> }
FILTER NOT EXISTS {?item2 wdt:P31 wd:Q4167836}
FILTER NOT EXISTS {?item1 wdt:P31 wd:Q4167836}
}
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item1"):::projected
v2("?item2"):::projected
v4("?val")
v3("?wother")
a1((" "))
c8(["1^^xsd:integer"]):::literal
c5([https://he.wikipedia.org/]):::iri
c2(["wd:Q4167836"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P31"--> e0c2
e0v1("?item1"):::projected
e0c2(["wd:Q4167836"]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> c2
v1 --"wdt:P31"--> c2
f1[["not "]]
subgraph f1e1["Exists Clause"]
e1v1 --"wdt:P31"--> e1c2
e1v1("?item2"):::projected
e1c2(["wd:Q4167836"]):::iri
end
f1--EXISTS--> f1e1
f1 --> v2
f1 --> c1
f1 --> c2
v2 --"wdt:P31"--> c2
f2[["not "]]
subgraph f2e2["Exists Clause"]
e2v1 --"schema:about"--> e2v2
e2v1 --"schema:isPartOf"--> e2c3
e2v2("?item2"):::projected
e2v1("?wother"):::projected
e2c3([https://he.wikipedia.org/]):::iri
end
f2--EXISTS--> f2e2
f2 --> v3
f2 --> c3
f2 --> v2
f2 --> c4
f2 --> c5
v3 --"schema:about"--> v2
v3 --"schema:isPartOf"--> c5
v1 --"wdt:P373"--> v4
a1 --"schema:about"--> v1
a1 --"schema:isPartOf"--> c5
v1 --"wikibase:sitelinks"--> c8
v2 --"wdt:P373"--> v4