query-ab800268f796c62ce4ff93fd9a6312fd
Any statements or qualifiers relating to a specific point in time SELECT ?st ?itemLabel ?role ?propLabel WHERE { { ?prop wdt:P1647* wd:P585 ; wikibase:claim ?c ; wikibase:statementProperty ?sp ; wikibase:qualifier ?q .
?st ?sp "1941-12-07"^^xsd:dateTime ;
a wikibase:BestRank .
BIND("claim" AS ?role)
?item ?c ?st .
} UNION { ?prop wdt:P1647* wd:P585 ; wikibase:claim ?c ; wikibase:statementProperty ?sp ; wikibase:qualifier ?q .
?st ?q "1941-12-07"^^xsd:dateTime ;
a wikibase:BestRank .
BIND("qualifier" AS ?role)
?item ?pred ?st .
} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . } }
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 bd: <http://www.bigdata.com/rdf#>
# Any statements or qualifiers relating to a specific point in time
SELECT ?st ?itemLabel ?role ?propLabel
WHERE {
{
?prop wdt:P1647* wd:P585 ;
wikibase:claim ?c ;
wikibase:statementProperty ?sp ;
wikibase:qualifier ?q .
?st ?sp "1941-12-07"^^xsd:date ;
a wikibase:BestRank .
BIND("claim" AS ?role)
?item ?c ?st .
}
UNION
{
?prop wdt:P1647* wd:P585 ;
wikibase:claim ?c ;
wikibase:statementProperty ?sp ;
wikibase:qualifier ?q .
?st ?q "1941-12-07"^^xsd:date ;
a wikibase:BestRank .
BIND("qualifier" AS ?role)
?item ?pred ?st .
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?c")
v7("?item")
v8("?pred")
v1("?prop")
v4("?q")
v8("?role"):::projected
v3("?sp")
v5("?st"):::projected
c2(["wd:P585"]):::iri
c10(["bd:serviceParam"]):::iri
c6(["1941-12-07^^xsd:date"]):::literal
c8(["wikibase:BestRank"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P1647"--> c2
v1 --"wikibase:claim"--> v2
v1 --"wikibase:statementProperty"--> v3
v1 --"wikibase:qualifier"--> v4
v5 -->v4--> c6
v5 --"a"--> c8
bind0[/"'qualifier'"/]
bind0 --as--o v8
v7 -->v8--> v5
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P1647"--> c2
v1 --"wikibase:claim"--> v2
v1 --"wikibase:statementProperty"--> v3
v1 --"wikibase:qualifier"--> v4
v5 -->v3--> c6
v5 --"a"--> c8
bind1[/"'claim'"/]
bind1 --as--o v8
v7 -->v2--> v5
end
union0r <== or ==> union0l
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end