query-254a3740288ccb88efb6559335ef0f77

rq turtle/ttl

TODO

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 wd: <http://www.wikidata.org/entity/>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?i ?iLabel ?year ?precisedate {
  ?i wdt:P39/wdt:P279 wd:Q16707842 .
  ?i p:P569/psv:P569 [ wikibase:timePrecision "9"^^xsd:integer ; wikibase:timeValue ?time ] . BIND(YEAR(?time) AS ?year)
  ?i p:P569/psv:P569 [ wikibase:timePrecision ?prec ; wikibase:timeValue ?precisedate ] . FILTER(?prec IN ("10"^^xsd:integer, "11"^^xsd:integer))
  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("?i"):::projected v1("?prec") v5("?precisedate"):::projected v3("?time") v4("?year"):::projected a1((" ")) a3((" ")) a2((" ")) a5((" ")) a4((" ")) c5(["wd:Q16707842"]):::iri c12(["bd:serviceParam"]):::iri c7(["9^^xsd:integer"]):::literal c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal list0c2(["11^^xsd:integer"]):::literal list0c1(["10^^xsd:integer"]):::literal list0c1 --o f0 list0c2 --o f0 f0[[" in "]] f0 --> v1 v2 --"p:direct/P39"--> a1 a1 --"p:direct/P279"--> c5 a2 --"wikibase:timePrecision"--> c7 a2 --"wikibase:timeValue"--> v3 v2 --"p:P569"--> a3 a3 --"p:statement/value/P569"--> a2 bind1[/"year-from-dateTime(?time)"/] v3 --o bind1 bind1 --as--o v4 a4 --"wikibase:timePrecision"--> v1 a4 --"wikibase:timeValue"--> v5 v2 --"p:P569"--> a5 a5 --"p:statement/value/P569"--> a4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c12 --"wikibase:language"--> c14 end