query-126967bcd5e9aa12b6fc06223f29bb97

rq turtle/ttl

genera of Echinodermata showing potential Wikispecies links

SELECT ?item ?itemLabel ?rankLabel ?speciessitelink WHERE { ?item wdt:P171/wdt:P171* wd:Q44631. ?item wdt:P105 ?rank. ?item wdt:P105 wd:Q34740. OPTIONAL { ?speciessitelink schema:about ?item; schema:isPartOf https://species.wikimedia.org/ } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }

} order by ?rankLabel ?itemLabel

Use at

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 ?item ?itemLabel ?rankLabel ?speciessitelink
WHERE 
{
  ?item wdt:P171/wdt:P171* wd:Q44631.
  ?item wdt:P105 ?rank.
  ?item wdt:P105 wd:Q34740.
  OPTIONAL { ?speciessitelink schema:about ?item; schema:isPartOf <https://species.wikimedia.org/> }
    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 a1((" ")) c7([https://species.wikimedia.org/]):::iri c4(["wd:Q34740"]):::iri c9(["bd:serviceParam"]):::iri c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal c2(["wd:Q44631"]):::iri v3 --"wdt:P171"--> a1 a1 --"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 s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end