query-f94259583d5dcf487b1261cc4d42c9c1
Species
Use at
- https://query.wikidata.org/sparql
PREFIX gas: <http://www.bigdata.com/rdf/gas#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?taxonName ?nomenclaturalType ?nomenclaturalTypeLabel WHERE {
SERVICE gas:service {
gas:program gas:gasClass "com.bigdata.rdf.graph.analytics.BFS" .
gas:program gas:in wd:Q756 . # Plantae
gas:program gas:out ?item .
gas:program gas:maxIterations 20 .
gas:program gas:maxVisited 2700000 .
gas:program gas:linkType wdt:P171 .
gas:program gas:traversalDirection "Reverse" .
}
?item wdt:P105 wd:Q7432 .
?item wdt:P225 ?taxonName .
?item wdt:P427 ?nomenclaturalType .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ASC(?taxonName)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v3("?nomenclaturalType"):::projected
v1("?taxonName"):::projected
c2(["gas:program"]):::iri
c15(["Reverse"]):::literal
c11(["2700000^^xsd:integer"]):::literal
c4(["com.bigdata.rdf.graph.analytics.BFS"]):::literal
c17(["wd:Q7432"]):::iri
c21(["bd:serviceParam"]):::iri
c13(["wdt:P171"]):::iri
c6(["wd:Q756"]):::iri
c23(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c9(["20^^xsd:integer"]):::literal
subgraph s1["http://www.bigdata.com/rdf/gas#service"]
style s1 stroke-width:4px;
c2 --"gas:gasClass"--> c4
c2 --"gas:in"--> c6
c2 --"gas:out"--> v2
c2 --"gas:maxIterations"--> c9
c2 --"gas:maxVisited"--> c11
c2 --"gas:linkType"--> c13
c2 --"gas:traversalDirection"--> c15
end
v2 --"wdt:P105"--> c17
v2 --"wdt:P225"--> v1
v2 --"wdt:P427"--> v3
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c21 --"wikibase:language"--> c23
end