query-d3b3637e19a1b5e9300e93257891285d

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/>
SELECT ?item ?time ?count
WHERE
{

{
  SELECT ?time (COUNT(?time) AS ?count)
  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
    MINUS { ?item (wdt:P31/wdt:P279*) wd:Q47150325. } # exclude calendar dates in themselves
  }
  GROUP BY ?time
  HAVING (?count > 1)
}  ?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
  MINUS { ?item (wdt:P31/wdt:P279*) wd:Q47150325. } # exclude calendar dates in themselves
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v5("?count"):::projected v3("?fullvalue") v2("?item"):::projected v4("?time"):::projected a1((" ")) a2((" ")) a3((" ")) a4((" ")) a5((" ")) a6((" ")) c5(["11^^xsd:integer"]):::literal c10(["wd:Q47150325"]):::iri c9(["wd:Q6888"]):::iri f0[["?count > '1^^xsd:integer'"]] f0 --> v5 v2 --"p:P585"--> a1 a1 --"p:statement/value/P585"--> v3 v3 --"wikibase:timePrecision"--> c5 v3 --"wikibase:timeValue"--> v4 subgraph minus1["MINUS"] style minus1 stroke-width:6px,fill:pink,stroke:red; v2 --"p:direct/P31"--> a2 a2 --"p:direct/P279"--> c9 end subgraph minus2["MINUS"] style minus2 stroke-width:6px,fill:pink,stroke:red; v2 --"p:direct/P31"--> a3 a3 --"p:direct/P279"--> c10 end bind4[/"count(?time)"/] v4 --o bind4 bind4 --as--o v5 v2 --"p:P585"--> a4 a4 --"p:statement/value/P585"--> v3 v3 --"wikibase:timePrecision"--> c5 v3 --"wikibase:timeValue"--> v4 subgraph minus5["MINUS"] style minus5 stroke-width:6px,fill:pink,stroke:red; v2 --"p:direct/P31"--> a5 a5 --"p:direct/P279"--> c9 end subgraph minus6["MINUS"] style minus6 stroke-width:6px,fill:pink,stroke:red; v2 --"p:direct/P31"--> a6 a6 --"p:direct/P279"--> c10 end