query-bcf3cae9aca4175e4bd4dc06c3bbb1c2
TODO
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#>
SELECT ?subject ?subjectLabel ?classLabel ?fuLabel ?ddLabel ?pdLabel WHERE {
?subject wdt:P1434 ?fu . FILTER (?fu in (wd:Q232737, wd:Q340181, wd:Q3177580, wd:Q18844725))
OPTIONAL { ?subject wdt:P2913 ?dd } .
#OPTIONAL { ?subject wdt:P577 ?pd } .
OPTIONAL {?subject wdt:P31 ?class } .
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;
v4("?class")
v3("?dd")
v1("?fu")
v2("?subject"):::projected
c9(["bd:serviceParam"]):::iri
c11(["en"]):::literal
list0c3(["wd:Q3177580"]):::iri
list0c2(["wd:Q340181"]):::iri
list0c4(["wd:Q18844725"]):::iri
list0c1(["wd:Q232737"]):::iri
list0c1 --o f0
list0c2 --o f0
list0c3 --o f0
list0c4 --o f0
f0[[" in "]]
f0 --> v1
v2 --"wdt:P1434"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P2913".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P31".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end