query-7fd45f61dad511447211d2d25171b630

rq turtle/ttl

Any statements or qualifiers relating to a specific point in time SELECT ?st ?itemLabel ?role ?propLabel WHERE { { ?st ?sp "1941-12-07"^^xsd:dateTime ; a wikibase:BestRank . ?prop wikibase:statementProperty ?sp . BIND("claim" AS ?role) } UNION { ?st ?q "1941-12-07"^^xsd:dateTime ; a wikibase:BestRank . ?prop wikibase:qualifier ?q . BIND("qualifier" AS ?role) } ?item ?pred ?st . hint:Prior hint:runLast true . SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . } }

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Any statements or qualifiers relating to a specific point in time
SELECT ?st ?itemLabel ?role ?propLabel
WHERE {
  {
    ?st ?sp "1941-12-07"^^xsd:date ;
      a wikibase:BestRank .
    ?prop wikibase:statementProperty ?sp .
    BIND("claim" AS ?role)
  }
  UNION
  {
    ?st ?q "1941-12-07"^^xsd:date ;
      a wikibase:BestRank .
    ?prop wikibase:qualifier ?q .
    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; v6("?item") v7("?pred") v3("?prop") v5("?q") v6("?role"):::projected v2("?sp") v1("?st"):::projected c7(["bd:serviceParam"]):::iri c1(["1941-12-07^^xsd:date"]):::literal c3(["wikibase:BestRank"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v1 -->v5--> c1 v1 --"a"--> c3 v3 --"wikibase:qualifier"--> v5 bind0[/"'qualifier'"/] bind0 --as--o v6 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v1 -->v2--> c1 v1 --"a"--> c3 v3 --"wikibase:statementProperty"--> v2 bind1[/"'claim'"/] bind1 --as--o v6 end union0r <== or ==> union0l end v6 -->v7--> v1 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end