query-76783742d14c3239f3d11a4a49c074d2

rq turtle/ttl

TODO

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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?person ?personLabel ?dob ?prec
WHERE
{
  ?person wdt:P31 wd:Q5;
          wdt:P27 wd:Q215.
          OPTIONAL {?person p:P569 ?stat . 
                    ?stat ps:P569 ?dob.
                    ?stat psv:P569/wikibase:timePrecision ?prec.
                    }
  filter(?prec != 11 || !BOUND(?prec) )
  SERVICE wikibase:label { bd:serviceParam wikibase:language "sl". }.
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?dob"):::projected v2("?person"):::projected v1("?prec"):::projected v3("?stat") a1((" ")) c5(["wd:Q215"]):::iri c11(["bd:serviceParam"]):::iri c3(["wd:Q5"]):::iri c13(["sl"]):::literal f0[["(?prec != '11^^xsd:integer' || not bound(?prec))"]] f0 --> v1 v2 --"p:direct/P31"--> c3 v2 --"p:direct/P27"--> c5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."p:P569".-> v3 v3 --"p:statement/P569"--> v4 v3 --"p:statement/value/P569"--> a1 a1 --"wikibase:timePrecision"--> v1 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c11 --"wikibase:language"--> c13 end