query-3186472b4c9c072d7111658242dc384e
TODO
Use at
- https://query.wikidata.org/sparql
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/>
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.
# FILTER ((?time < "1900-01-01"^^xsd:dat))
MINUS { ?item (wdt:P31/wdt:P279*) wd:Q6888. } # exclude transit astronomiques
MINUS { ?item (wdt:P31/wdt:P279*) wd:Q47150325. } # exclude calendar dates in themselves
MINUS { ?item (wdt:P31/wdt:P279*) wd:Q14795564. } # exclude OTHER calendar dates
MINUS { ?item (wdt:P31/wdt:P279*) wd:Q2334719. } # exclude trials
?item (wdt:P31/wdt:P279*) wd:Q141022.#éclipses
}
GROUP BY ?time
HAVING (?count > 1)
} ?item p:P585 / psv:P585 ?fullvalue.
?fullvalue wikibase:timePrecision 11 . # Precision is date
?fullvalue wikibase:timeValue ?time.
# FILTER ((?time < "1900-01-01"^^xsd:dat))
MINUS { ?item (wdt:P31/wdt:P279*) wd:Q6888. } # exclude transit astronomiques
MINUS { ?item (wdt:P31/wdt:P279*) wd:Q47150325. } # exclude calendar dates in themselves
MINUS { ?item (wdt:P31/wdt:P279*) wd:Q14795564. } # exclude OTHER calendar dates
MINUS { ?item (wdt:P31/wdt:P279*) wd:Q2334719. } # exclude trials
?item (wdt:P31/wdt:P279*) wd:Q141022.#éclipses
} order by ?time
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?count"):::projected
v4("?fullvalue")
v3("?item"):::projected
v1("?time"):::projected
a1((" "))
a2((" "))
a3((" "))
a4((" "))
a5((" "))
a6((" "))
a7((" "))
a8((" "))
a9((" "))
a10((" "))
a11((" "))
a12((" "))
c5(["11^^xsd:integer"]):::literal
c10(["wd:Q47150325"]):::iri
c12(["wd:Q2334719"]):::iri
c13(["wd:Q141022"]):::iri
c11(["wd:Q14795564"]):::iri
c9(["wd:Q6888"]):::iri
f0[["?count > '1^^xsd:integer'"]]
f0 --> v5
v3 --"p:P585"--> a1
a1 --"p:statement/value/P585"--> v4
v4 --"wikibase:timePrecision"--> c5
v4 --"wikibase:timeValue"--> v1
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v3 --"p:direct/P31"--> a2
a2 --"p:direct/P279"--> c9
end
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v3 --"p:direct/P31"--> a3
a3 --"p:direct/P279"--> c10
end
subgraph minus3["MINUS"]
style minus3 stroke-width:6px,fill:pink,stroke:red;
v3 --"p:direct/P31"--> a4
a4 --"p:direct/P279"--> c11
end
subgraph minus4["MINUS"]
style minus4 stroke-width:6px,fill:pink,stroke:red;
v3 --"p:direct/P31"--> a5
a5 --"p:direct/P279"--> c12
end
v3 --"p:direct/P31"--> a6
a6 --"p:direct/P279"--> c13
bind6[/"count(?time)"/]
v1 --o bind6
bind6 --as--o v5
v3 --"p:P585"--> a7
a7 --"p:statement/value/P585"--> v4
v4 --"wikibase:timePrecision"--> c5
v4 --"wikibase:timeValue"--> v1
subgraph minus7["MINUS"]
style minus7 stroke-width:6px,fill:pink,stroke:red;
v3 --"p:direct/P31"--> a8
a8 --"p:direct/P279"--> c9
end
subgraph minus8["MINUS"]
style minus8 stroke-width:6px,fill:pink,stroke:red;
v3 --"p:direct/P31"--> a9
a9 --"p:direct/P279"--> c10
end
subgraph minus9["MINUS"]
style minus9 stroke-width:6px,fill:pink,stroke:red;
v3 --"p:direct/P31"--> a10
a10 --"p:direct/P279"--> c11
end
subgraph minus10["MINUS"]
style minus10 stroke-width:6px,fill:pink,stroke:red;
v3 --"p:direct/P31"--> a11
a11 --"p:direct/P279"--> c12
end
v3 --"p:direct/P31"--> a12
a12 --"p:direct/P279"--> c13