query-0e1097ed105abd5f83178b652e15129b
Request all taxa that have at least one gene and are child of the genus Chlamydia SELECT DISTINCT ?taxa ?taxaLabel WHERE { ?gene wdt:P31 wd:Q7187 . ?gene wdt:P703 ?taxa . ?taxa wdt:P171* wd:Q846309 . SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . } }
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 bd: <http://www.bigdata.com/rdf#>
#Request all taxa that have at least one gene and are child of the genus Chlamydia
SELECT DISTINCT ?taxa ?taxaLabel WHERE {
?gene wdt:P31 wd:Q7187 .
?gene wdt:P703 ?taxa .
?taxa wdt:P171* wd:Q846309 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" . }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?gene")
v2("?taxa"):::projected
c7(["bd:serviceParam"]):::iri
c2(["wd:Q7187"]):::iri
c9(["en"]):::literal
c5(["wd:Q846309"]):::iri
v1 --"wdt:P31"--> c2
v1 --"wdt:P703"--> v2
v2 --"wdt:P171"--> c5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end