query-595a5f43910ff1785c2db4aa783899b3
Operas in the Order of their First Performance Operas in the Order of their First Performance Opera's in de volgorde van eerste uitvoering
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 (replace(group_concat(distinct ?composer;separator="; "), "http://www.wikidata.org/entity/", "") as ?composers) #Strip the path in order to get only the Q-number.
(group_concat(distinct ?composerLabel;separator="; ") as ?composerLabels)
?opera
?operaLabel
?languageLabel
?worldpremiere
WHERE
{
?opera wdt:P31/wdt:P279* wd:Q1344.
?opera wdt:P1191 ?worldpremiere .
OPTIONAL { ?opera wdt:P86 ?composer }
OPTIONAL { ?opera wdt:P86/rdfs:label ?composerLabel . FILTER (lang(?composerLabel) = "en") }
OPTIONAL { ?opera wdt:P407 ?language }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,de,fr,it,es,ru" }
}
GROUP BY ?opera
?operaLabel
?languageLabel
?worldpremiere
ORDER BY ASC(?worldpremiere)
Query found at
- https://www.wikidata.org/wiki/Wikidata:WikiProject_Performing_arts/Tools_%26_tasks
- https://www.wikidata.org/wiki/Wikidata:WikiProject_Performing_arts/Tools_%26_tasks/en
- https://www.wikidata.org/wiki/Wikidata:WikiProject_Performing_arts/Tools_%26_tasks/fr
- https://www.wikidata.org/wiki/Wikidata:WikiProject_Performing_arts/Tools_%26_tasks/nl
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?composer")
v2("?composerLabel"):::projected
v7("?composerLabels")
v6("?composers")
v5("?language")
v3("?opera"):::projected
v1("?worldpremiere"):::projected
a1((" "))
a2((" "))
c10(["bd:serviceParam"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en,de,fr,it,es,ru"]):::literal
c4(["wd:Q1344"]):::iri
v3 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c4
v3 --"wdt:P1191"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P86".-> v4
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P86".-> a2
a2 --"rdfs:label"--> v2
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v3 -."wdt:P407".-> v5
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end
bind2[/"replace(,'http://www.wikidata.org/entity/','')"/]
null --o bind2
bind2 --as--o v6
bind3[/"?composerLabel"/]
v2 --o bind3
bind3 --as--o v7