query-a455c1962e82c576770b9c7c520e9ee5
Pták roku
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/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
#defaultView:ImageGrid{"hide":["?obrazek"]}
select ?item (?sitelink_Label AS ?itemLabel) ?rok (sample(?img) as ?obrazek) where {
?item p:P166 [ ps:P166 wd:Q12047564 ; pq:P585 ?datum ] .
?sitelink schema:about ?item . ?sitelink schema:inLanguage "cs" . ?sitelink schema:name ?sitelink_Label .
?item wdt:P18 ?img .
bind(year(?datum) as ?rok) .
}
group by ?item ?sitelink_Label ?rok
order by desc(?rok)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?datum")
v6("?img"):::projected
v3("?item"):::projected
v7("?itemLabel")
v8("?obrazek")
v7("?rok"):::projected
v4("?sitelink")
v5("?sitelink_Label"):::projected
a1((" "))
c7(["cs"]):::literal
c2(["wd:Q12047564"]):::iri
a1 --"p:statement/P166"--> c2
a1 --"p:qualifier/P585"--> v2
v3 --"p:P166"--> a1
v4 --"schema:about"--> v3
v4 --"schema:inLanguage"--> c7
v4 --"schema:name"--> v5
v3 --"p:direct/P18"--> v6
bind0[/"year-from-dateTime(?datum)"/]
v2 --o bind0
bind0 --as--o v7
bind2[/"?sitelink_Label"/]
v5 --o bind2
bind2 --as--o v7
bind3[/"sample(?img)"/]
v6 --o bind3
bind3 --as--o v8