query-0d0532d5f06f8697d15bc668b6c735ef
Nadelbäume.(Q26325)Juniperus communis Wacholder: .(Q146048)Larix decidua Lärche: .(Q133128)Pinus sylvestris Waldkiefer, Föhre: .(Q145954)Pinus nigra Schwarzkiefer: .(Q146992)Abies alba Weißtanne, Edeltanne: .(Q145992)Picea abies Fichte, Rottanne:
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX v: <http://www.wikidata.org/prop/statement/>
SELECT ?species (YEAR(?year) AS ?toy) ?speciesLabel ?speciesName ?genusLabel ?genusName ?familyLabel ?familyName ?orderLabel ?orderName WHERE {
VALUES ?species {wd:Q145992 wd:Q146992 wd:Q145954 wd:Q133128 wd:Q146048 wd:Q26325}
?species wdt:P105 wd:Q7432 .
?species wdt:P225 ?speciesName .
?species wdt:P171* ?genus .
?genus wdt:P105 wd:Q34740 .
?genus wdt:P225 ?genusName .
?genus wdt:P171* ?family .
?family wdt:P105 wd:Q35409 .
?family wdt:P225 ?familyName .
?family wdt:P171* ?order .
?order wdt:P105 wd:Q36602 .
?order wdt:P225 ?orderName .
SERVICE wikibase:label {bd:serviceParam wikibase:language "de"}
FILTER(?order NOT IN (wd:Q14107023, wd:Q5794838, wd:Q2697797))
FILTER(?family NOT IN (wd:Q1450881, wd:Q145544))
OPTIONAL{?species p:P166 ?award . ?award v:P166 wd:Q91885056 . ?award pq:P585 ?year . FILTER(?year NOT IN ("2022-00-00"^^xsd:dat))}
}
ORDER BY ?orderLabel ?familyLabel ?genusLabel ?speciesLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v14("?award")
v5("?family")
v2("?familyLabel"):::projected
v12("?familyName"):::projected
v10("?genus")
v3("?genusLabel"):::projected
v11("?genusName"):::projected
v6("?order")
v1("?orderLabel"):::projected
v13("?orderName"):::projected
v8("?species"):::projected
v4("?speciesLabel"):::projected
v9("?speciesName"):::projected
v15("?toy")
v7("?year"):::projected
c17(["de"]):::literal
c12(["wd:Q35409"]):::iri
c20(["wd:Q91885056"]):::iri
c8(["wd:Q7432"]):::iri
c11(["wd:Q34740"]):::iri
c15(["bd:serviceParam"]):::iri
c13(["wd:Q36602"]):::iri
f0[["?family != 'wd:Q1450881'?family != 'wd:Q145544'"]]
f0 --> v5
f1[["?order != 'wd:Q14107023'?order != 'wd:Q5794838'?order != 'wd:Q2697797'"]]
f1 --> v6
bind2[/VALUES ?species/]
bind2-->v8
bind20(["wd:Q145992"])
bind20 --> bind2
bind21(["wd:Q146992"])
bind21 --> bind2
bind22(["wd:Q145954"])
bind22 --> bind2
bind23(["wd:Q133128"])
bind23 --> bind2
bind24(["wd:Q146048"])
bind24 --> bind2
bind25(["wd:Q26325"])
bind25 --> bind2
v8 --"p:direct/P105"--> c8
v8 --"p:direct/P225"--> v9
v8 --"p:direct/P171"--> v10
v10 --"p:direct/P105"--> c11
v10 --"p:direct/P225"--> v11
v10 --"p:direct/P171"--> v5
v5 --"p:direct/P105"--> c12
v5 --"p:direct/P225"--> v12
v5 --"p:direct/P171"--> v6
v6 --"p:direct/P105"--> c13
v6 --"p:direct/P225"--> v13
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c15 --"wikibase:language"--> c17
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v8 -."p:P166".-> v14
v14 --"p:statement/P166"--> c20
v14 --"p:qualifier/P585"--> v7
end
bind3[/"year-from-dateTime(?year)"/]
v7 --o bind3
bind3 --as--o v15