query-03592db17732ccb8949fb2c737a0a657
Violation of Rule 22 (Type of a Taxon Higher than 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:Q5867051 wd:Q37517} .
?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:Q36602))
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:Q36602'))"]]
f0 --> v3
f0 --> v4
bind1[/VALUES ?taxonRank/]
bind1-->v5
bind10(["wd:Q5867051"])
bind10 --> bind1
bind11(["wd:Q37517"])
bind11 --> 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