query-6f7ae4e1bcfe1915ba07759ef2324d47
-ae (Female (sex or gender (P21)=female (Q6581072))
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 ?personLabel ?genderLabel 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 .
OPTIONAL {?item wdt:P138 ?person} .
OPTIONAL {?item wdt:P138/wdt:P21 ?gender} .
FILTER((STRENDS(?taxonName, "ae") && !STRENDS(?taxonName, "iae")))
FILTER(bound(?person))
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;
v4("?gender")
v3("?item"):::projected
v2("?person")
v1("?taxonName"):::projected
a1((" "))
c4(["gas:program"]):::iri
c17(["Reverse"]):::literal
c13(["2700000^^xsd:integer"]):::literal
c6(["com.bigdata.rdf.graph.analytics.BFS"]):::literal
c22(["bd:serviceParam"]):::iri
c15(["wdt:P171"]):::iri
c8(["wd:Q756"]):::iri
c24(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c11(["20^^xsd:integer"]):::literal
f0[["bound(?person)"]]
f0 --> v2
f1[["ends-with(?taxonName,'ae')not ends-with(?taxonName,'iae')"]]
f1 --> v1
subgraph s1["http://www.bigdata.com/rdf/gas#service"]
style s1 stroke-width:4px;
c4 --"gas:gasClass"--> c6
c4 --"gas:in"--> c8
c4 --"gas:out"--> v3
c4 --"gas:maxIterations"--> c11
c4 --"gas:maxVisited"--> c13
c4 --"gas:linkType"--> c15
c4 --"gas:traversalDirection"--> c17
end
v3 --"wdt:P225"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P138".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P138".-> a1
a1 --"wdt:P21"--> v4
end
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c22 --"wikibase:language"--> c24
end