query-04f7e10c1479b96dc7eabda2667e8818

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
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 ?item ?itemLabel ?halflife ?normalized_halflife ?normalized_halflife_unitLabel
WHERE
{
   ?item p:P2114/psv:P2114/wikibase:quantityAmount ?halflife .
   ?item p:P2114/psv:P2114/wikibase:quantityUnit wd:Q1092296. # Unit is annum
   OPTIONAL 
   {
     ?item p:P2114/psv:P2114/wikibase:quantityNormalized/wikibase:quantityAmount ?normalized_halflife .
     ?item p:P2114/psv:P2114/wikibase:quantityNormalized/wikibase:quantityUnit ?normalized_halflife_unit .
   }
   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("?halflife"):::projected v1("?item"):::projected v3("?normalized_halflife"):::projected v4("?normalized_halflife_unit") a1((" ")) a2((" ")) a3((" ")) a4((" ")) a5((" ")) a6((" ")) a7((" ")) a8((" ")) a9((" ")) a10((" ")) c8(["bd:serviceParam"]):::iri c5(["wd:Q1092296"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal v1 --"p:P2114"--> a1 a1 --"p:statement/value/P2114"--> a2 a2 --"wikibase:quantityAmount"--> v2 v1 --"p:P2114"--> a3 a3 --"p:statement/value/P2114"--> a4 a4 --"wikibase:quantityUnit"--> c5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."p:P2114".-> a5 a5 --"p:statement/value/P2114"--> a6 a6 --"wikibase:quantityNormalized"--> a7 a7 --"wikibase:quantityAmount"--> v3 v1 --"p:P2114"--> a8 a8 --"p:statement/value/P2114"--> a9 a9 --"wikibase:quantityNormalized"--> a10 a10 --"wikibase:quantityUnit"--> v4 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end