query-effce57bab99dc6c000e7f5d1138626c
Propertiesparent taxon (P171)
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?description WHERE
{ ?item wdt:P171* wd:Q16532287.
BIND(SUBSTR( ?descriptionLong, 1, 80) AS ?description).
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
?item rdfs:label ?itemLabel.
?item schema:description ?descriptionLong.
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?description"):::projected
v4("?descriptionLong")
v1("?item"):::projected
v3("?itemLabel"):::projected
c2(["wd:Q16532287"]):::iri
c4(["bd:serviceParam"]):::iri
c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P171"--> c2
bind0[/"substring(?descriptionLong,'1^^xsd:integer','80^^xsd:integer')"/]
v4 --o bind0
bind0 --as--o v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
v1 --"rdfs:label"--> v3
v1 --"schema:description"--> v4
end