query-68df4c48094c9bd2d7c925ebaf4f7135
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 ?item ?itemLabel WHERE {
?item wdt:P31 wd:Q5;
wdt:P21 wd:Q6581072;
wdt:P101 wd:Q21198.
FILTER NOT EXISTS {
?article schema:about ?item;
schema:isPartOf <https://ca.wikipedia.org/>.
}
FILTER
(
EXISTS {
?article schema:about ?item;
schema:isPartOf <https://es.wikipedia.org/>.
}
||
EXISTS {
?article schema:about ?item;
schema:isPartOf <https://en.wikipedia.org/>.
}
)
SERVICE wikibase:label { bd:serviceParam wikibase:language "ca". }
} LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?article")
v2("?item"):::projected
c11(["wd:Q21198"]):::iri
c9(["wd:Q6581072"]):::iri
c5([https://ca.wikipedia.org/]):::iri
c4([https://en.wikipedia.org/]):::iri
c13(["bd:serviceParam"]):::iri
c3([https://es.wikipedia.org/]):::iri
c7(["wd:Q5"]):::iri
c15(["ca"]):::literal
f0[["( || )"]]
subgraph f0e0["Exists Clause"]
e0v1 --"schema:about"--> e0v2
e0v1 --"schema:isPartOf"--> e0c3
e0v1("?article"):::projected
e0v2("?item"):::projected
e0c3([https://es.wikipedia.org/]):::iri
end
f0--EXISTS--> f0e0
subgraph f0e1["Exists Clause"]
e1v1 --"schema:about"--> e1v2
e1v1 --"schema:isPartOf"--> e1c3
e1v1("?article"):::projected
e1v2("?item"):::projected
e1c3([https://en.wikipedia.org/]):::iri
end
f0--EXISTS--> f0e1
f0 --> v1
f0 --> c1
f0 --> v2
f0 --> c2
f0 --> c3
f0 --> c4
v1 --"schema:about"--> v2
v1 --"schema:isPartOf"--> c3
v1 --"schema:about"--> v2
v1 --"schema:isPartOf"--> c4
f1[["not "]]
subgraph f1e2["Exists Clause"]
e2v1 --"schema:about"--> e2v2
e2v1 --"schema:isPartOf"--> e2c3
e2v1("?article"):::projected
e2v2("?item"):::projected
e2c3([https://ca.wikipedia.org/]):::iri
end
f1--EXISTS--> f1e2
f1 --> v1
f1 --> c1
f1 --> v2
f1 --> c2
f1 --> c5
v1 --"schema:about"--> v2
v1 --"schema:isPartOf"--> c5
v2 --"wdt:P31"--> c7
v2 --"wdt:P21"--> c9
v2 --"wdt:P101"--> c11
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c13 --"wikibase:language"--> c15
end