query-7e49b472c290d25c542dc45948b8f3f3
genera of Echinodermata showing potential Wikispecies links
SELECT DISTINCT ?item ?itemLabel ?rankLabel ?speciessitelink ?synonym ?synonymLabel WHERE { ?item wdt:P171+ wd:Q44631 . ?item wdt:P105 ?rank . ?item wdt:P105 wd:Q34740 . OPTIONAL { ?speciessitelink schema:about ?item ; schema:isPartOf https://species.wikimedia.org/ . } OPTIONAL { ?item wdt:P1420 | ^wdt:P1420 ?synonym . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . } } order by ?rankLabel ?itemLabel
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 bd: <http://www.bigdata.com/rdf#>
#genera of Echinodermata showing potential Wikispecies links
SELECT DISTINCT ?item ?itemLabel ?rankLabel ?speciessitelink ?synonym ?synonymLabel
WHERE
{
?item wdt:P171+ wd:Q44631 .
?item wdt:P105 ?rank .
?item wdt:P105 wd:Q34740 .
OPTIONAL { ?speciessitelink schema:about ?item ; schema:isPartOf <https://species.wikimedia.org/> . }
OPTIONAL { ?item wdt:P1420 | ^wdt:P1420 ?synonym . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . }
}
order by ?rankLabel ?itemLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item"):::projected
v2("?itemLabel"):::projected
v4("?rank")
v1("?rankLabel"):::projected
v5("?speciessitelink"):::projected
v6("?synonym"):::projected
c7([https://species.wikimedia.org/]):::iri
c4(["wd:Q34740"]):::iri
c10(["bd:serviceParam"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q44631"]):::iri
v3 --"wdt:P171"--> c2
v3 --"wdt:P105"--> v4
v3 --"wdt:P105"--> c4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v5 -."schema:about".-> v3
v5 --"schema:isPartOf"--> c7
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v6 -."wdt:P1420".-> v3
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v3 --"wdt:P1420"--> v6
end
union0r <== or ==> union0l
end
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end