query-621c988abfb6498f402979c634baede1
Query by centuryHi, . I've got this : (P571)inception I wanted to put layers on a map by century of
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#>
#defaultView:Map
SELECT ?item ?itemLabel ?coord (round(YEAR(?date)/100) as ?layer)
WHERE
{
?item wdt:P131+ wd:Q12549 ; wdt:P625 ?coord ; wdt:P571 ?date .
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr" }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?coord"):::projected
v3("?date"):::projected
v1("?item"):::projected
v4("?layer")
c6(["bd:serviceParam"]):::iri
c2(["wd:Q12549"]):::iri
c8(["fr"]):::literal
v1 --"wdt:P131"--> c2
v1 --"wdt:P625"--> v2
v1 --"wdt:P571"--> v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind0[/"numeric-round(year-from-dateTime(?date) / '100^^xsd:integer')"/]
v3 --o bind0
bind0 --as--o v4