query-200fa0e35eadb817139cc19c5344b021

rq turtle/ttl

TODO

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?time 
WHERE
{
  ?item p:P585 / psv:P585 ?fullvalue.
  ?fullvalue wikibase:timePrecision 11 . # Precision is date
  ?fullvalue wikibase:timeValue ?time.
  FILTER ((?time > "1001-01-01"^^xsd:dat))
   MINUS    { ?item (wdt:P31/wdt:P279*) wd:Q6888. } # exclude transit astronomiques
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "fr" . 
  }
}
GROUP BY ?time ?item ?itemLabel
ORDER BY DESC(?time)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?fullvalue") v2("?item"):::projected v1("?time"):::projected a1((" ")) a2((" ")) c5(["11^^xsd:integer"]):::literal c13(["fr"]):::literal c11(["bd:serviceParam"]):::iri c9(["wd:Q6888"]):::iri f0[["?time > s1001-01-01^^<http://www.w3.org/2001/XMLSchema#dat>'"]] f0 --> v1 v2 --"p:P585"--> a1 a1 --"p:statement/value/P585"--> v3 v3 --"wikibase:timePrecision"--> c5 v3 --"wikibase:timeValue"--> v1 subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v2 --"p:direct/P31"--> a2 a2 --"p:direct/P279"--> c9 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end