query-52ca4079b0c000f5cff72540dabaca89
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 ?item ?itemLabel (group_concat(?instLabel; separator="; ") as ?type) ?date ?inLabel
WHERE
{
?item wdt:P921 wd:Q2013.
?item wdt:P31 ?inst .
optional {?item wdt:P577 ?date . }
optional {?item wdt:P1433 ?in . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
?inst rdfs:label ?instLabel .
?item rdfs:label ?itemLabel .
?in rdfs:label ?inLabel .}
} group by ?item ?itemLabel ?date ?inLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?date"):::projected
v4("?in")
v7("?inLabel"):::projected
v2("?inst")
v5("?instLabel"):::projected
v1("?item"):::projected
v6("?itemLabel"):::projected
v8("?type")
c7(["bd:serviceParam"]):::iri
c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q2013"]):::iri
v1 --"wdt:P921"--> c2
v1 --"wdt:P31"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P577".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P1433".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
v2 --"rdfs:label"--> v5
v1 --"rdfs:label"--> v6
v4 --"rdfs:label"--> v7
end
bind1[/"?instLabel"/]
v5 --o bind1
bind1 --as--o v8