query-89a8237c5bb9c4f2d3cbe1b1c2610f8a
405 (auxiliary) WFM Dictionary No.
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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#>
#Yearly discovery figures for astronomical object types, from 1950.
#defaultView:LineChart
SELECT ?year (COUNT(?class) AS ?count) ?classLabel
WHERE
{
?object wdt:P31 ?class .
?class wdt:P31/wdt:P279* wd:Q17444909.
?object wdt:P575 ?time
BIND(str(YEAR(?time)) AS ?year)
FILTER (?time >= "1950-00-00T00:00:00Z"^^xsd:dateTime)
SERVICE wikibase:label {bd:serviceParam wikibase:language "en" .}
}
GROUP BY ?year ?classLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?class"):::projected
v5("?count")
v2("?object")
v1("?time")
v4("?year"):::projected
a1((" "))
c4(["wd:Q17444909"]):::iri
c7(["bd:serviceParam"]):::iri
c9(["en"]):::literal
f0[["?time >= '1950-00-00T00:00:00Z^^xsd:dateTime'"]]
f0 --> v1
v2 --"wdt:P31"--> v3
v3 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c4
v2 --"wdt:P575"--> v1
bind1[/"str(year-from-dateTime(?time))"/]
v1 --o bind1
bind1 --as--o v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end
bind3[/"count(?class)"/]
v3 --o bind3
bind3 --as--o v5