query-a9ac134e2889730e06846e31999ce556
Comparative query
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel
(GROUP_CONCAT(DISTINCT ?cc1; separator=", ") as ?CorpusCorporum)
(GROUP_CONCAT(DISTINCT ?gnd1; separator=", ") as ?GND)
(GROUP_CONCAT(DISTINCT ?viaf1; separator=", ") as ?VIAF)
(GROUP_CONCAT(DISTINCT ?mw1; separator=", ") as ?Mirabile)
WHERE
{
?item wdt:P7935 ?cc1 .
OPTIONAL { ?item wdt:P227 ?gnd1 . }
OPTIONAL { ?item wdt:P214 ?viaf1 . }
OPTIONAL { ?item wdt:P7986 ?mw1 . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "de,en,la" . }
}
GROUP BY ?item ?itemLabel
ORDER BY ?cc
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?CorpusCorporum")
v8("?GND")
v10("?Mirabile")
v9("?VIAF")
v1("?cc")
v3("?cc1"):::projected
v4("?gnd1"):::projected
v2("?item"):::projected
v6("?mw1"):::projected
v5("?viaf1"):::projected
c6(["bd:serviceParam"]):::iri
c8(["de,en,la"]):::literal
v2 --"wdt:P7935"--> v3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P227".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P214".-> v5
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P7986".-> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind4[/"?cc1"/]
v3 --o bind4
bind4 --as--o v7
bind5[/"?gnd1"/]
v4 --o bind5
bind5 --as--o v8
bind6[/"?viaf1"/]
v5 --o bind6
bind6 --as--o v9
bind7[/"?mw1"/]
v6 --o bind7
bind7 --as--o v10