query-57d123c2d47f1d588b85ef0a2483d3ce
Scientific events series by number of events
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#>
SELECT
?events
?event_series ?event_seriesLabel
(CONCAT("#scientificeventseries/", SUBSTR(STR(?event_series), 32)) AS ?event_seriesUrl)
?event_seriesDescription
WHERE {
{
SELECT
(COUNT(?event) AS ?events)
?event_series
WHERE {
?event_series wdt:P31 / wdt:P279* wd:Q125391566 ;
^wdt:P179 ?event .
}
GROUP BY ?event_series
ORDER BY DESC(?events)
LIMIT 500
} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?events)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?event")
v2("?event_series"):::projected
v4("?event_seriesUrl")
v4("?events"):::projected
a1((" "))
c3(["wd:Q125391566"]):::iri
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v3 --"wdt:P179"--> v2
bind1[/"count(?event)"/]
v3 --o bind1
bind1 --as--o v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind2[/"concat('#scientificeventseries/',substring(str(?event_series),'32^^xsd:integer'))"/]
v2 --o bind2
bind2 --as--o v4