query-bde5d1d543cd7037b0dca3f1cc638b72
Appendix IIB: Conserved and rejected names of families of bryophytes and spermatophytes (Q65682475)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wdno: <http://www.wikidata.org/prop/novalue/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?taxonName ?nomenclaturalStatusLabel ?typeGenus ?typeGenusName ?typeSpeciesName ?typeSpeciesRoleLabel WHERE {
?item wdt:P105 wd:Q35409 . # family
?item p:P225 ?taxonNameStatement .
?taxonNameStatement ps:P225 ?taxonName .
?taxonNameStatement pq:P1135 ?nomenclaturalStatus .
?taxonNameStatement prov:wasDerivedFrom ?ref .
?ref pr:P248 wd:Q65682475 . # Appendix IIB
OPTIONAL {?item wdt:P427 ?typeGenus} .
OPTIONAL {?item wdt:P427/wdt:P225 ?typeGenusName} .
OPTIONAL {?typeGenus wdt:P427 ?typeSpecies} .
OPTIONAL {?typeGenus wdt:P427/wdt:P225 ?typeSpeciesName} .
OPTIONAL {?typeGenus p:P427/pq:P3831 ?typeSpeciesRole} .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
#FILTER(!bound(?typeSpecies))
#MINUS {?typeGenus rdf:type wdno:P427}
}
ORDER BY ASC(?taxonName)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v4("?nomenclaturalStatus")
v5("?ref")
v1("?taxonName"):::projected
v3("?taxonNameStatement")
v6("?typeGenus"):::projected
v7("?typeGenusName"):::projected
v8("?typeSpecies")
v9("?typeSpeciesName"):::projected
v10("?typeSpeciesRole")
a1((" "))
a2((" "))
a3((" "))
c2(["wd:Q35409"]):::iri
c14(["bd:serviceParam"]):::iri
c8(["wd:Q65682475"]):::iri
c16(["#91;AUTO_LANGUAGE#93;"]):::literal
v2 --"p:direct/P105"--> c2
v2 --"p:P225"--> v3
v3 --"p:statement/P225"--> v1
v3 --"p:qualifier/P1135"--> v4
v3 --"prov:wasDerivedFrom"--> v5
v5 --"p:reference/P248"--> c8
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P427".-> v6
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."p:direct/P427".-> a1
a1 --"p:direct/P225"--> v7
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v6 -."p:direct/P427".-> v8
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v6 -."p:direct/P427".-> a2
a2 --"p:direct/P225"--> v9
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v6 -."p:P427".-> a3
a3 --"p:qualifier/P3831"--> v10
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c14 --"wikibase:language"--> c16
end