query-2718658020d4a0f339147e76b465a4fc
(49) Timeline of periods: era namesNo.49 (2020.08.07T0830 created)
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#>
# timeline of era names (also viewable as table)
#defaultView:Timeline
SELECT DISTINCT ?era ?eraLabel ?start ?end ?creatorLabel ?creator_image ?countryLabel
WHERE {
# define ?era as instance of (P31) any subclass of (wdt:P279*) era name (Q256408)
?era wdt:P31/wdt:P279* wd:Q256408
# optional: show ?era's start time (P580) as ?start
OPTIONAL {?era wdt:P580 ?start}
# optional: show ?era's end time (P582) as ?end
OPTIONAL {?era wdt:P582 ?end}
# optional: show ?era's creator (P170) as ?creator
OPTIONAL {?era wdt:P170 ?creator
# optional: show ?creator's image (P18) as ?creator_image
OPTIONAL {?creator wdt:P18 ?creator_image}
}
# optional: show ?era's country (P17) as ?country
OPTIONAL {?era wdt:P17 ?country}
# show label in auto language as default, and English when no default label exists
SERVICE wikibase:label {bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?country")
v4("?creator")
v5("?creator_image"):::projected
v3("?end"):::projected
v1("?era"):::projected
v2("?start"):::projected
a1((" "))
c10(["bd:serviceParam"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c3(["wd:Q256408"]):::iri
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P580".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P582".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P170".-> v4
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v4 -."wdt:P18".-> v5
end
end
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P17".-> v6
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end