David Price

primary component set

...@@ -32,6 +32,7 @@ dpr-tables:FluidSampleAnalysisResults ...@@ -32,6 +32,7 @@ dpr-tables:FluidSampleAnalysisResults
32 ] [ sp:varName "componentName"^^xsd:string 32 ] [ sp:varName "componentName"^^xsd:string
33 ] [ sp:varName "moleRatioPercent"^^xsd:string 33 ] [ sp:varName "moleRatioPercent"^^xsd:string
34 ] [ sp:varName "massRatioPercent"^^xsd:string 34 ] [ sp:varName "massRatioPercent"^^xsd:string
35 + ] [ sp:varName "isPrimary"^^xsd:string
35 ]) ; 36 ]) ;
36 sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; 37 sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
37 sp:predicate rdf:type ; 38 sp:predicate rdf:type ;
...@@ -165,9 +166,23 @@ dpr-tables:FluidSampleAnalysisResults ...@@ -165,9 +166,23 @@ dpr-tables:FluidSampleAnalysisResults
165 ] 166 ]
166 ]) 167 ])
167 ]) 168 ])
169 + ] [ rdf:type sp:Optional ;
170 + sp:elements ([ sp:object
171 + [ sp:varName "component"^^xsd:string
172 + ] ;
173 + sp:predicate <http://www.reportinghub.no/ep/schema/material#hasPrimaryComponent> ;
174 + sp:subject
175 + [ sp:varName "sampledFluid"^^xsd:string
176 + ]
177 + ] [ rdf:type sp:Bind ;
178 + sp:expression "True" ;
179 + sp:variable
180 + [ sp:varName "isPrimary"^^xsd:string
181 + ]
182 + ])
168 ]) 183 ])
169 ] ; 184 ] ;
170 - rhspin:tableHeaders ("Fluid Sample Name"^^xsd:string "Component"^^xsd:string "Mole Ratio"^^xsd:string "Mass Ratio"^^xsd:string) . 185 + rhspin:tableHeaders ("Fluid Sample Name"^^xsd:string "Component"^^xsd:string "Mole Ratio"^^xsd:string "Mass Ratio"^^xsd:string "Is Primary"^^xsd:string) .
171 186
172 dpr-tables:FluidSamples 187 dpr-tables:FluidSamples
173 rdf:type rhspin:TableTemplate ; 188 rdf:type rhspin:TableTemplate ;
......