query-afdbcf8d5b25ef777a91f2c761d8ff9c
Paintings on Wikidata (with Wikipedia articles) per year of creation:
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
#defaultView:BarChart
SELECT ?year (COUNT(?year) AS ?count) WHERE {
?item wdt:P31 wd:Q3305213;
wdt:P571 ?inception.
BIND(YEAR(?inception) AS ?year)
FILTER(?year < 1900 )
FILTER(?year > 1400 )
?article schema:about ?item;
schema:isPartOf ?wiki.
FILTER(REGEX(STR(?wiki), ".+.wikipedia.org"))
}
GROUP BY ?year
ORDER BY ?year
LIMIT 500
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?article")
v6("?count")
v4("?inception")
v3("?item")
v2("?wiki")
v5("?year"):::projected
c5(["wd:Q3305213"]):::iri
f0[["regex(str(?wiki),'.+.wikipedia.org')"]]
f0 --> v2
f1[["?year > '1400^^xsd:integer'"]]
f1 --> v5
f2[["?year < '1900^^xsd:integer'"]]
f2 --> v5
v3 --"wdt:P31"--> c5
v3 --"wdt:P571"--> v4
bind3[/"year-from-dateTime(?inception)"/]
v4 --o bind3
bind3 --as--o v5
v5 --"schema:about"--> v3
v5 --"schema:isPartOf"--> v2
bind5[/"count(?year)"/]
v5 --o bind5
bind5 --as--o v6