query-bdcf0c92ec1bebc9fc72ded5fb12b84a
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX schema: <http://schema.org/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item ?BRid ?IHc ?specieslink WHERE {
?specieslink schema:about ?item; schema:isPartOf <https://species.wikimedia.org/> .
OPTIONAL { ?item p:P4090 [ ps:P4090 ?BRid ] }
OPTIONAL { ?item p:P5858 [ ps:P5858 ?IHc ] }
FILTER(BOUND(?BRid)|| BOUND(?IHc)) .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?BRid"):::projected
v2("?IHc"):::projected
v4("?item"):::projected
v3("?specieslink"):::projected
a1((" "))
a2((" "))
c3([https://species.wikimedia.org/]):::iri
f0[["(bound(?BRid) || bound(?IHc))"]]
f0 --> v1
f0 --> v2
v3 --"schema:about"--> v4
v3 --"schema:isPartOf"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
a1 -."p:statement/P4090".-> v1
v4 --"p:P4090"--> a1
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
a2 -."p:statement/P5858".-> v2
v4 --"p:P5858"--> a2
end