query-40f304ea70ef6f02dfde281c3a0e5044
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?dyr ?dyrLabel (GROUP_CONCAT(?kategorien_kombinerer_emnerneLabel; SEPARATOR=",") AS ?komninerer) WHERE {
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en".
?kategorien_kombinerer_emnerne rdfs:label ?kategorien_kombinerer_emnerneLabel.
?dyr rdfs:label ?dyrLabel.
}
?dyr wdt:P4224 wd:Q729; wdt:P971 wd:Q21160456.
OPTIONAL { ?dyr wdt:P971 ?kategorien_kombinerer_emnerne. }
}
GROUP BY ?dyr ?dyrLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?dyr"):::projected
v4("?dyrLabel"):::projected
v1("?kategorien_kombinerer_emnerne")
v2("?kategorien_kombinerer_emnerneLabel"):::projected
v5("?komninerer")
c2(["bd:serviceParam"]):::iri
c9(["wd:Q21160456"]):::iri
c7(["wd:Q729"]):::iri
c4(["en"]):::literal
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
v1 --"rdfs:label"--> v2
v3 --"rdfs:label"--> v4
end
v3 --"wdt:P4224"--> c7
v3 --"wdt:P971"--> c9
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P971".-> v1
end
bind1[/"?kategorien_kombinerer_emnerneLabel"/]
v2 --o bind1
bind1 --as--o v5