query-0c8092a0a8c60a21666a8ac7fa2b5817

rq turtle/ttl

Pb de zéros négatifs 05:32, 6 June 2024 (UTC) 💛●✒️●💬 Bouzinac où les dates des dix ans avant JC deviennent du zéro négatif donc du zéro. Comment faire? https://w.wiki/AJRwBonjour, j'ai un pb de maths : -0 c'est la même chose que 0. Le problème se pose là dedans 07:19, 6 June 2024 (UTC) 💛●✒️●💬 BouzinacIl doit y avoir approximativement entre 25 et 28 éclipses solaires par décade/décennie. La décade 0 en affiche artificiellement 47 06:16, 6 June 2024 (UTC)) talk (VIGNERON. Cdlt, https://w.wiki/AJSc: (et qui m'amène à de profondes réflexions). Mais tout d'abord, où vois-tu -0 ? Si je filtre les résultats sur la décennie concernée, je vois 0 et pas -0: BouzinacHmmm, intéressante question @: Pas encore parfait mais un début de réponse, avec un encadrement : Bouzinac@

Use at

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#>
SELECT distinct ?éclipse ?date 
((floor(YEAR(?date )/ 10)) * 10 AS ?decade_min)
((ceil(YEAR(?date )/ 10)) * 10 AS ?decade_max)
WHERE {
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
  ?éclipse (wdt:P31/(wdt:P279*)) wd:Q3887; wdt:P585 ?date. 
} order by abs(?decade_min) ?date

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?date"):::projected v4("?decade_max") v4("?decade_min") v3("?éclipse"):::projected a1((" ")) c2(["bd:serviceParam"]):::iri c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal c7(["wd:Q3887"]):::iri subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c2 --"wikibase:language"--> c4 end v3 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c7 v3 --"wdt:P585"--> v2 bind0[/"numeric-floor(year-from-dateTime(?date) / '10^^xsd:integer') * '10^^xsd:integer'"/] v2 --o bind0 bind0 --as--o v4 bind1[/"numeric-ceil(year-from-dateTime(?date) / '10^^xsd:integer') * '10^^xsd:integer'"/] v2 --o bind1 bind1 --as--o v4