query-e31b8f3f4ac572018ceac4b59ed504c4

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT  ?item (year(?time) as ?year) ?applies_toLabel ?number 
WHERE 
{
  values ?item {wd:Q14302} 
?item p:P3872 ?statement .
?statement pq:P585 ?time .
?statement pq:P518 ?applies_to .
?statement ps:P3872 ?number .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} order by ?year ?applies_toLabel

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v6("?applies_to") v2("?applies_toLabel"):::projected v3("?item"):::projected v7("?number"):::projected v4("?statement") v5("?time"):::projected v8("?year") c6(["bd:serviceParam"]):::iri c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal bind0[/VALUES ?item/] bind0-->v3 bind00(["wd:Q14302"]) bind00 --> bind0 v3 --"p:P3872"--> v4 v4 --"p:qualifier/P585"--> v5 v4 --"p:qualifier/P518"--> v6 v4 --"p:statement/P3872"--> v7 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 end bind1[/"year-from-dateTime(?time)"/] v5 --o bind1 bind1 --as--o v8