query-868bb17abc8f93901fac4b1c7e6c1085
Violation of Rule 21a (Type of a Taxon from Genus to Order (Subtribe, Tribe, Subfamily, Family, Suborder, and Order))
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 bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?taxonName ?taxonRankLabel ?nomenclaturalType ?rankOfNomenclaturalTypeLabel ?lpsnUrl WHERE {
VALUES ?taxonRank {wd:Q3965313 wd:Q227936 wd:Q2455704 wd:Q35409 wd:Q5867959 wd:Q36602} .
?item wdt:P225 ?taxonName .
?item wdt:P105 ?taxonRank .
OPTIONAL {?item wdt:P427/wdt:P225 ?nomenclaturalType} .
OPTIONAL {?item wdt:P427/wdt:P105 ?rankOfnomenclaturalType} .
OPTIONAL {?item wdt:P1991 ?lpsnUrl} .
?item (wdt:P171)* ?higherParent .
?higherParent wdt:P944 wd:Q743780 .
FILTER(!bound(?nomenclaturalType)|| !sameTerm(?rankOfNomenclaturalType, wd:Q34740))
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
ORDER BY ASC(?taxonRankLabel) ASC(?taxonName)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v9("?higherParent")
v6("?item"):::projected
v8("?lpsnUrl"):::projected
v3("?nomenclaturalType"):::projected
v4("?rankOfNomenclaturalType")
v7("?rankOfnomenclaturalType")
v2("?taxonName"):::projected
v5("?taxonRank")
v1("?taxonRankLabel"):::projected
a1((" "))
a2((" "))
c10(["bd:serviceParam"]):::iri
c8(["wd:Q743780"]):::iri
c12(["#91;AUTO_LANGUAGE#93;"]):::literal
f0[["(not bound(?nomenclaturalType) || not sameterm(?rankOfNomenclaturalType,'wd:Q34740'))"]]
f0 --> v3
f0 --> v4
bind1[/VALUES ?taxonRank/]
bind1-->v5
bind10(["wd:Q3965313"])
bind10 --> bind1
bind11(["wd:Q227936"])
bind11 --> bind1
bind12(["wd:Q2455704"])
bind12 --> bind1
bind13(["wd:Q35409"])
bind13 --> bind1
bind14(["wd:Q5867959"])
bind14 --> bind1
bind15(["wd:Q36602"])
bind15 --> bind1
v6 --"wdt:P225"--> v2
v6 --"wdt:P105"--> v5
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v6 -."wdt:P427".-> a1
a1 --"wdt:P225"--> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v6 -."wdt:P427".-> a2
a2 --"wdt:P105"--> v7
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v6 -."wdt:P1991".-> v8
end
v6 --"wdt:P171"--> v9
v9 --"wdt:P944"--> c8
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end