query-9acb3d5360d51a484ffe971a5fc64b96
...as a graph with all disciplines
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#>
#defaultView:Graph
SELECT ?p ?pLabel ("EC0000" AS ?rgb) ?topic (CONCAT(?dfgTopic,?topicLabel) AS ?topicLabelFull) ?dfgTopic ?topicLabel
WHERE
{
?p wdt:P31 wd:Q98270496 .
OPTIONAL { ?p wdt:P101 ?topic }
OPTIONAL { ?topic wdt:P10287 ?dfgTopic .}
SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en" . }
} ORDER BY ASC(?topicLabel) ASC(?pLAbel)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?dfgTopic"):::projected
v3("?p"):::projected
v2("?pLAbel")
v6("?rgb")
v4("?topic"):::projected
v1("?topicLabel"):::projected
v7("?topicLabelFull")
c6(["bd:serviceParam"]):::iri
c8(["de,en"]):::literal
c2(["wd:Q98270496"]):::iri
v3 --"wdt:P31"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P101".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P10287".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind0[/"'EC0000'"/]
bind0 --as--o v6
bind1[/"concat(?dfgTopic,?topicLabel)"/]
v5 --o bind1
v1 --o bind1
bind1 --as--o v7