query-57555df4dc59f77b7fe1c70642d2282d
Bouzinac(Q98391507)ton of TNT conversion table(P2370)conversion to SI unit
Use at
- https://query.wikidata.org/sparql
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 ?essai_nucl_aire ?essai_nucl_aireLabel ?date ?op_rateur ?op_rateurLabel ?tnt ?equivalent_nergie_kT
WHERE {
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
?essai_nucl_aire (wdt:P31/wdt:P279*) wd:Q210112.
MINUS { ?essai_nucl_aire (wdt:P31/wdt:P279*) wd:Q98391050. } #série d'essais nucléaires
OPTIONAL { ?essai_nucl_aire wdt:P585 ?date. }
OPTIONAL { ?essai_nucl_aire wdt:P137 ?op_rateur. }
OPTIONAL { ?essai_nucl_aire wdt:P2145 ?tnt. }
OPTIONAL {
?essai_nucl_aire p:P2145 ?yield_statement.
?yield_statement a wikibase:BestRank. # Use only best rank, like if using the wdt:P2145 predicate
?yield_statement psv:P2145 ?yield_value.
?yield_value wikibase:quantityAmount ?yield.
?yield_value wikibase:quantityUnit ?unit.
?unit wdt:P2370 ?conversion_to_SI.
BIND (?yield * ?conversion_to_SI / 4184000000000.0 AS ?equivalent_nergie_kT)
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v9("?conversion_to_SI")
v2("?date"):::projected
v10("?equivalent_nergie_kT"):::projected
v1("?essai_nucl_aire"):::projected
v3("?op_rateur"):::projected
v4("?tnt"):::projected
v8("?unit")
v7("?yield")
v5("?yield_statement")
v6("?yield_value")
a1((" "))
a2((" "))
c7(["wd:Q210112"]):::iri
c14(["wikibase:BestRank"]):::iri
c2(["bd:serviceParam"]):::iri
c8(["wd:Q98391050"]):::iri
c4(["#91;AUTO_LANGUAGE#93;,en"]):::literal
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c2 --"wikibase:language"--> c4
end
v1 --"p:direct/P31"--> a1
a1 --"p:direct/P279"--> c7
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v1 --"p:direct/P31"--> a2
a2 --"p:direct/P279"--> c8
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P585".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P137".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P2145".-> v4
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:P2145".-> v5
v5 --"a"--> c14
v5 --"p:statement/value/P2145"--> v6
v6 --"wikibase:quantityAmount"--> v7
v6 --"wikibase:quantityUnit"--> v8
v8 --"p:direct/P2370"--> v9
bind1[/"?yield * ?conversion_to_SI / '4184000000000.0^^xsd:decimal'"/]
v7 --o bind1
v9 --o bind1
bind1 --as--o v10
end