query-351e04a6bc6408d5b41bf02d69a69073

rq turtle/ttl

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 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
{
  {
    SELECT ?item ?time
    WHERE
    {
      ?item p:P585 / psv:P585 ?fullvalue.
      ?fullvalue wikibase:timePrecision 11 . # Precision is date
      ?fullvalue wikibase:timeValue ?time. 
      MINUS    { ?item (wdt:P31/wdt:P279*) wd:Q6888. } # exclude transit astronomiques
    }
    ORDER BY DESC(?time)
    LIMIT 10000
  }
  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; v3("?fullvalue") v2("?item"):::projected v1("?time"):::projected a1((" ")) a2((" ")) c4(["11^^xsd:integer"]):::literal c10(["bd:serviceParam"]):::iri c12(["fr"]):::literal c8(["wd:Q6888"]):::iri v2 --"p:P585"--> a1 a1 --"p:statement/value/P585"--> v3 v3 --"wikibase:timePrecision"--> c4 v3 --"wikibase:timeValue"--> v1 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v2 --"p:direct/P31"--> a2 a2 --"p:direct/P279"--> c8 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c10 --"wikibase:language"--> c12 end