query-2361393957899479b5e3326e3469b83b
Number of articles by year
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?year (COUNT(?item) AS ?articles) WHERE {
?item wdt:P1433 wd:Q220370 .
OPTIONAL {?item wdt:P577 ?published} .
BIND(xsd:integer(YEAR(?published)) as ?year)
}
GROUP BY ?year
ORDER BY ASC(?year)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?articles")
v2("?item"):::projected
v3("?published")
v4("?year"):::projected
c2(["wd:Q220370"]):::iri
v2 --"wdt:P1433"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P577".-> v3
end
bind0[/"http://www.w3.org/2001/XMLSchema#integer(year-from-dateTime(?published))"/]
v3 --o bind0
bind0 --as--o v4
bind2[/"count(?item)"/]
v2 --o bind2
bind2 --as--o v4