query-a780cd5f1fa89f688dd791684756216d

rq turtle/ttl

Normalized mass of RMS Titanic with optional reference SELECT ?item ?itemLabel ?nmass ?nunitLabel ?reftype ?ref WHERE { VALUES ?item { wd:Q25173 } ?item p:P2067 ?ms. ?ms psn:P2067 [ wikibase:quantityAmount ?nmass; wikibase:quantityUnit ?nunit ]. OPTIONAL { ?ms prov:wasDerivedFrom [ ?reftype ?ref ] . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } }

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX psn: <http://www.wikidata.org/prop/statement/value-normalized/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Normalized mass of RMS Titanic with optional reference
SELECT ?item ?itemLabel ?nmass ?nunitLabel ?reftype ?ref
WHERE {
  VALUES ?item { wd:Q25173 }
  ?item p:P2067 ?ms.
  ?ms psn:P2067 [ wikibase:quantityAmount ?nmass; wikibase:quantityUnit ?nunit ]. 
  OPTIONAL { ?ms prov:wasDerivedFrom [ ?reftype ?ref ] . }
  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; v1("?item"):::projected v2("?ms") v3("?nmass"):::projected v4("?nunit") v6("?ref"):::projected v5("?reftype"):::projected a1((" ")) a2((" ")) c7(["bd:serviceParam"]):::iri c9(["#91;AUTO_LANGUAGE#93;,en"]):::literal bind0[/VALUES ?item/] bind0-->v1 bind00(["wd:Q25173"]) bind00 --> bind0 v1 --"p:P2067"--> v2 a1 --"wikibase:quantityAmount"--> v3 a1 --"wikibase:quantityUnit"--> v4 v2 --"p:statement/value-normalized/P2067"--> a1 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; a2 -->v5--> v6 v2 -."prov:wasDerivedFrom".-> a2 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end