query-4bcec10f99c04dd69fcb3f90ea057321
Supposed tribes of butterflies that don't have an English Wikipedia article
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?taxonitem ?taxonname
WHERE
{
?taxonitem wdt:P171+ wd:Q756153. # Papilionoidea
?taxonitem p:P105 ?rank.
?rank ps:P105 wd:Q227936. # tribe
?taxonitem p:P225 ?name.
?name ps:P225 ?taxonname.
FILTER NOT EXISTS {
?sitelink schema:about ?taxonitem;
schema:isPartOf <https://en.wikipedia.org/>;
schema:name [].
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?name")
v3("?rank")
v1("?sitelink")
v2("?taxonitem"):::projected
v5("?taxonname"):::projected
a1((" "))
c15(["en"]):::literal
c9(["wd:Q227936"]):::iri
c3([https://en.wikipedia.org/]):::iri
c6(["wd:Q756153"]):::iri
c13(["bd:serviceParam"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"schema:about"--> e0v2
e0v1 --"schema:isPartOf"--> e0c3
e0v1 --"schema:name"--> e0a1
e0v1("?sitelink"):::projected
e0v2("?taxonitem"):::projected
e0a1((" ")):::projected
e0c3([https://en.wikipedia.org/]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> v2
f0 --> c2
f0 --> c3
f0 --> c4
f0 --> a1
v1 --"schema:about"--> v2
v1 --"schema:isPartOf"--> c3
v1 --"schema:name"--> a1
v2 --"p:direct/P171"--> c6
v2 --"p:P105"--> v3
v3 --"p:statement/P105"--> c9
v2 --"p:P225"--> v4
v4 --"p:statement/P225"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c13 --"wikibase:language"--> c15
end