query-e813d09c7c62415164c74679d3777ca3

rq turtle/ttl

Example of date using Millennium precision 16:00, 27 June 2017 (UTC)) talk (JarektI am looking for an example item with some property storing date that use Millennium precision. Is there a query that can help me find one? --17:21, 27 June 2017 (UTC)) talk (Jarekt --Q632385I found one by hand: : (P585)point in time If you want a bunch of samples with Example of date using Millennium precision) 16:00, 27 June 2017 (UTC) talk (JarektI am looking for an example item with some property storing date that use Millennium precision. Is there a query that can help me find one? --) 17:21, 27 June 2017 (UTC)talk (Jarekt --Q632385I found one by hand: : (P585)point in time If you want a bunch of samples with

Use at

PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?precision ?precisionLabel ?prec ?sample ?sampleLabel ?date
WHERE      
{

{
    SELECT ?prec (SAMPLE(?item) as ?sample)
    {
        ?item p:P585/psv:P585/wikibase:timePrecision ?prec
    }
    GROUP BY ?prec
}
    ?precision wdt:P2803 ?pr .
    ?sample wdt:P585 ?date
    FILTER(?prec = xsd:integer(?pr) )
    SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en,it,fr,ro". }
}          
ORDER BY DESC(?prec)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?date"):::projected v3("?item") v2("?pr") v1("?prec"):::projected v5("?precision"):::projected v4("?sample"):::projected a1((" ")) a2((" ")) c7(["bd:serviceParam"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en,it,fr,ro"]):::literal f0[["?prec = http://www.w3.org/2001/XMLSchema#integer(?pr)"]] f0 --> v1 f0 --> v2 v3 --"p:P585"--> a1 a1 --"p:statement/value/P585"--> a2 a2 --"wikibase:timePrecision"--> v1 bind2[/"sample(?item)"/] v3 --o bind2 bind2 --as--o v4 v5 --"p:direct/P2803"--> v2 v4 --"p:direct/P585"--> v6 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end