query-f9f53dbe88ba98ff51cb16f51a6455c0
TODO
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#>
#title:query per timeline
#defaultView:Timeline
SELECT DISTINCT ?tipograf ?tipografLabel (MAX (?en) as ?endd) (MIN(?st) as ?startt) ?luogolavLabel WHERE {
?tipograf wdt:P31 wd:Q5; wdt:P21 wd:Q6581072; wdt:P937 ?luogolav; wdt:P2031 ?st; wdt:P2032 ?en; wdt:P106 ?activity .
values ?activity {
wd:Q175151 wd:Q1229025 wd:Q998550 wd:Q2516866 wd:Q40881196
}
?luogolav wdt:P17 wd:Q38.
SERVICE wikibase:label { bd:serviceParam wikibase:language "it, en". }
}
GROUP BY ?tipograf ?tipografLabel ?luogolavLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?activity")
v4("?en"):::projected
v6("?endd")
v2("?luogolav")
v3("?st"):::projected
v7("?startt")
v1("?tipograf"):::projected
c4(["wd:Q6581072"]):::iri
c14(["it, en"]):::literal
c10(["wd:Q38"]):::iri
c12(["bd:serviceParam"]):::iri
c2(["wd:Q5"]):::iri
v1 --"wdt:P31"--> c2
v1 --"wdt:P21"--> c4
v1 --"wdt:P937"--> v2
v1 --"wdt:P2031"--> v3
v1 --"wdt:P2032"--> v4
v1 --"wdt:P106"--> v6
bind0[/VALUES ?activity/]
bind0-->v6
bind00(["wd:Q175151"])
bind00 --> bind0
bind01(["wd:Q1229025"])
bind01 --> bind0
bind02(["wd:Q998550"])
bind02 --> bind0
bind03(["wd:Q2516866"])
bind03 --> bind0
bind04(["wd:Q40881196"])
bind04 --> bind0
v2 --"wdt:P17"--> c10
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end
bind3[/"max(?en)"/]
v4 --o bind3
bind3 --as--o v6
bind4[/"min(?st)"/]
v3 --o bind4
bind4 --as--o v7