David Leal

Reworked fluid sample concentration and cargo ownership share

This diff could not be displayed because it is too large.
......@@ -25,244 +25,36 @@
<http://www.epim.no/schemas/mprml/1#A_Global-Objects>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40003a Set the date for the sample of fluid - from acquisition date if possible"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "acquisitionDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#nominalInstant> ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "fluidSampleRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
] [ sp:object
[ sp:varName "acquisitionDate"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#acquisitionDate> ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40004 Set the valid from and valid to for the report."^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "validFrom"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#validFrom> ;
sp:subject
[ sp:varName "fluidSampleReport"^^xsd:string
]
] [ sp:object
[ sp:varName "validTo"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#validTo> ;
sp:subject
[ sp:varName "fluidSampleReport"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "fluidSampleRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidSampleRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "fluidSamplingAndAnalysisActivity"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#FluidSamplingAndAnalysis> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "fluidSamplingAndAnalysisActivity"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidSamplingAndAnalysisActivity"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject
[ sp:varName "fluidSampleReport"^^xsd:string
]
] [ sp:object
[ sp:varName "customDataRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#customDataRef> ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
] [ sp:object
[ sp:varName "extensionNameValueRef"^^xsd:string
] ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject
[ sp:varName "customDataRef"^^xsd:string
]
] [ sp:object <http://www.epim.no/schemas/mprml/1#extensionNameValue> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "extensionNameValueRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "validFromRef"^^xsd:string
] ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject
[ sp:varName "extensionNameValueRef"^^xsd:string
]
] [ sp:object <http://www.epim.no/schemas/mprml/1#nameClass> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "validFromRef"^^xsd:string
]
] [ sp:object
[ sp:varName "validFromText"^^xsd:string
] ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject
[ sp:varName "validFromRef"^^xsd:string
]
] [ sp:object "ValidFrom" ;
sp:predicate <http://topbraid.org/sxml#text> ;
sp:subject
[ sp:varName "validFromText"^^xsd:string
]
] [ sp:object
[ sp:varName "valueFromRef"^^xsd:string
] ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject
[ sp:varName "extensionNameValueRef"^^xsd:string
]
] [ sp:object <http://www.epim.no/schemas/mprml/1#valueClass> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "valueFromRef"^^xsd:string
]
] [ sp:object
[ sp:varName "valueFromText"^^xsd:string
] ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject
[ sp:varName "valueFromRef"^^xsd:string
]
] [ sp:object
[ sp:varName "validFrom"^^xsd:string
] ;
sp:predicate <http://topbraid.org/sxml#text> ;
sp:subject
[ sp:varName "valueFromText"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "validToRef"^^xsd:string
] ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject
[ sp:varName "extensionNameValueRef"^^xsd:string
]
] [ sp:object <http://www.epim.no/schemas/mprml/1#nameClass> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "validToRef"^^xsd:string
]
] [ sp:object
[ sp:varName "validToText"^^xsd:string
] ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject
[ sp:varName "validToRef"^^xsd:string
]
] [ sp:object "ValidTo" ;
sp:predicate <http://topbraid.org/sxml#text> ;
sp:subject
[ sp:varName "validToText"^^xsd:string
]
] [ sp:object
[ sp:varName "valueToRef"^^xsd:string
] ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject
[ sp:varName "extensionNameValueRef"^^xsd:string
]
] [ sp:object <http://www.epim.no/schemas/mprml/1#valueClass> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "valueToRef"^^xsd:string
]
] [ sp:object
[ sp:varName "valueToText"^^xsd:string
] ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject
[ sp:varName "valueToRef"^^xsd:string
]
] [ sp:object
[ sp:varName "validTo"^^xsd:string
] ;
sp:predicate <http://topbraid.org/sxml#text> ;
sp:subject
[ sp:varName "valueToText"^^xsd:string
]
])
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 40011b Specify the fluid component - non-primary component - label found
rdfs:comment """STEP 40011a Specify the fluid component - primary component.
The componentName element is used differently in the examples for the primary and non-primary components."""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#hasNonPrimaryComponent> ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#hasPrimaryComponent> ;
sp:subject
[ sp:varName "sampledFluid"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidComponentKindType"^^xsd:string
[ sp:varName "fluidPhaseType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object
[ sp:varName "fluidSubstanceKindType"^^xsd:string
[ sp:varName "fluidComponentKindType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/material#MaterialPartWholePair> ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#partMaterialOfPair> ;
sp:subject _:b2
] [ sp:object
[ sp:varName "sampledFluid"^^xsd:string
[ sp:varName "fluidSubstanceKindType"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#wholeMaterialOfPair> ;
sp:subject _:b2
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b2
sp:subject _:b1
]) ;
sp:where ([ sp:object
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
......@@ -288,7 +80,7 @@ The componentName element is used differently in the examples for the primary an
sp:subject
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
]
] [ sp:object "false"^^xsd:boolean ;
] [ sp:object "true"^^xsd:boolean ;
sp:predicate <http://www.epim.no/schemas/mprml/1#isPrimary> ;
sp:subject
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
......@@ -300,18 +92,22 @@ The componentName element is used differently in the examples for the primary an
sp:subject
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#SubstanceType> ;
sp:predicate rdf:type ;
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "componentBaseKindRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#componentBaseKindRef> ;
sp:subject
[ sp:varName "fluidSubstanceKindType"^^xsd:string
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
]
] [ sp:object
[ sp:varName "name"^^xsd:string
[ sp:varName "componentBaseKindRef"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#materialClassMapsToMPREnumeration> ;
sp:subject
[ sp:varName "fluidSubstanceKindType"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "componentKindRef"^^xsd:string
......@@ -323,6 +119,15 @@ The componentName element is used differently in the examples for the primary an
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectFluidPhaseType ;
sp:arg1 [ sp:varName "name"^^xsd:string
]
] ;
sp:variable
[ sp:varName "fluidPhaseType"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectFluidComponentKindType ;
sp:arg1 [ sp:varName "componentKindRef"^^xsd:string
]
......@@ -335,19 +140,19 @@ The componentName element is used differently in the examples for the primary an
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40002 Create the Facility where the sampling takes place - the same approach to identification of the facility is used as for product volume."^^xsd:string ;
sp:templates ([ sp:object _:b3 ;
sp:templates ([ sp:object _:b2 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#samplingPerformedAt> ;
sp:subject
[ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject _:b3
sp:subject _:b2
] [ sp:object
[ sp:varName "facility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b3
sp:subject _:b2
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
......@@ -397,33 +202,33 @@ The componentName element is used differently in the examples for the primary an
rdfs:comment "STEP 40001 Create the FluidSampleReport and FluidSampling activity ."^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#FluidSampleReport> ;
sp:predicate rdf:type ;
sp:subject _:b4
sp:subject _:b3
] [ sp:object
[ sp:varName "productionReport"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject _:b4
] [ sp:object _:b5 ;
sp:subject _:b3
] [ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject _:b4
sp:subject _:b3
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#FluidSamplingAndAnalysis> ;
sp:predicate rdf:type ;
sp:subject _:b5
sp:subject _:b4
] [ sp:object
[ sp:varName "fluidSamplingType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b5
sp:subject _:b4
] [ sp:object
[ sp:varName "acquisitionDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
sp:subject _:b5
sp:subject _:b4
] [ sp:object
[ sp:varName "fluidSampleRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b5
sp:subject _:b4
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
......@@ -476,7 +281,7 @@ The componentName element is used differently in the examples for the primary an
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40003d Set the facility for the sample of fluid - from reporting facility if not"^^xsd:string ;
rdfs:comment "STEP 40003c Set the facility for the sample of fluid - from sampling facility if possible"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "normalizedFacilityName"^^xsd:string
] ;
......@@ -490,91 +295,57 @@ The componentName element is used differently in the examples for the primary an
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "normalizedFacilityName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#facilityIdentifier> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
] [ sp:object
[ sp:varName "facilityRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
])
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40003b Set the date for the sample of fluid - from report date if not"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "intervalIdentifier"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#nominalInstant> ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "fluidSampleRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "intervalIdentifier"^^xsd:string
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spl:object ;
sp:arg1 [ sp:varName "facilityRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "acquisitionDate"^^xsd:string
sp:arg2 <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText>
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#acquisitionDate> ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
sp:variable
[ sp:varName "normalizedFacilityName"^^xsd:string
]
])
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 40011a Specify the fluid component - primary component.
rdfs:comment """STEP 40011b Specify the fluid component - non-primary component - label found
The componentName element is used differently in the examples for the primary and non-primary components."""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ;
sp:predicate rdf:type ;
sp:subject _:b6
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#hasPrimaryComponent> ;
sp:subject _:b5
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#hasNonPrimaryComponent> ;
sp:subject
[ sp:varName "sampledFluid"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidPhaseType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b6
] [ sp:object
[ sp:varName "fluidComponentKindType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b6
sp:subject _:b5
] [ sp:object
[ sp:varName "fluidSubstanceKindType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b6
sp:subject _:b5
] [ sp:object
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b5
]) ;
sp:where ([ sp:object
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
......@@ -600,7 +371,7 @@ The componentName element is used differently in the examples for the primary an
sp:subject
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
]
] [ sp:object "true"^^xsd:boolean ;
] [ sp:object "false"^^xsd:boolean ;
sp:predicate <http://www.epim.no/schemas/mprml/1#isPrimary> ;
sp:subject
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
......@@ -612,22 +383,18 @@ The componentName element is used differently in the examples for the primary an
sp:subject
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "componentBaseKindRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#componentBaseKindRef> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/material#SubstanceType> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
[ sp:varName "fluidSubstanceKindType"^^xsd:string
]
] [ sp:object
[ sp:varName "componentBaseKindRef"^^xsd:string
[ sp:varName "name"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#materialClassMapsToMPREnumeration> ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "fluidSubstanceKindType"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "componentKindRef"^^xsd:string
......@@ -639,15 +406,6 @@ The componentName element is used differently in the examples for the primary an
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectFluidPhaseType ;
sp:arg1 [ sp:varName "name"^^xsd:string
]
] ;
sp:variable
[ sp:varName "fluidPhaseType"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectFluidComponentKindType ;
sp:arg1 [ sp:varName "componentKindRef"^^xsd:string
]
......@@ -659,6 +417,83 @@ The componentName element is used differently in the examples for the primary an
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40010 Specify the fluid analysis result."^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "nameFluidAnalysis"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "sampledFluid"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "fluidSampleRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidSampleRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
]
] [ sp:object
[ sp:varName "sampledFluid"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#sampledFluid> ;
sp:subject
[ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
]
] [ sp:object
[ sp:varName "name"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidAnalysisResult> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
]
] [ sp:object
[ sp:varName "name"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameFluidSample> ;
sp:subject
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "nameFluidAnalysis"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameFluidAnalysis> ;
sp:subject
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
]
])
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 40003e Create the Sample of fluid.
It is matched to its results via the sample name, which is assumed to be unique within the file."""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ;
......@@ -741,54 +576,45 @@ It is matched to its results via the sample name, which is assumed to be unique
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40010 Specify the fluid analysis result."^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "nameFluidAnalysis"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "sampledFluid"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "fluidSampleRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
rdfs:comment """STEP 40011c Specify the fluid component - non-primary component - label not found, so new substance type created
The componentName element is used differently in the examples for the primary and non-primary components."""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ;
sp:predicate rdf:type ;
sp:subject _:b6
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#hasNonPrimaryComponent> ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
[ sp:varName "sampledFluid"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidSampleRef"^^xsd:string
[ sp:varName "fluidComponentKindType"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
]
sp:predicate rdf:type ;
sp:subject _:b6
] [ sp:object
[ sp:varName "sampledFluid"^^xsd:string
[ sp:varName "substanceType"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#sampledFluid> ;
sp:predicate rdf:type ;
sp:subject _:b6
] [ sp:object <http://www.reportinghub.no/ep/schema/material#SubstanceType> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
[ sp:varName "substanceType"^^xsd:string
]
] [ sp:object
[ sp:varName "name"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
[ sp:varName "substanceType"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b6
]) ;
sp:where ([ sp:object
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
......@@ -799,30 +625,81 @@ It is matched to its results via the sample name, which is assumed to be unique
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
]
] [ sp:object
[ sp:varName "name"^^xsd:string
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameFluidSample> ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
[ sp:varName "sampledFluid"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "nameFluidAnalysis"^^xsd:string
] [ sp:object
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameFluidAnalysis> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#fluidSampleCompositionRef> ;
sp:subject
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
]
] [ sp:object "false"^^xsd:boolean ;
sp:predicate <http://www.epim.no/schemas/mprml/1#isPrimary> ;
sp:subject
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
]
] [ sp:object
[ sp:varName "name"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#componentName> ;
sp:subject
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/material#SubstanceType> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "fluidSubstanceKindType"^^xsd:string
]
] [ sp:object
[ sp:varName "name"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "fluidSubstanceKindType"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "componentKindRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#componentKindRef> ;
sp:subject
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectFluidComponentKindType ;
sp:arg1 [ sp:varName "componentKindRef"^^xsd:string
]
] ;
sp:variable
[ sp:varName "fluidComponentKindType"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:buildSubstanceTypeURI ;
sp:arg1 [ sp:varName "name"^^xsd:string
]
] ;
sp:variable
[ sp:varName "substanceType"^^xsd:string
]
])
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40003c Set the facility for the sample of fluid - from sampling facility if possible"^^xsd:string ;
rdfs:comment "STEP 40003b Set the date for the sample of fluid - from report date if not"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "normalizedFacilityName"^^xsd:string
[ sp:varName "intervalIdentifier"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#facilityIdentifier> ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#nominalInstant> ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
......@@ -832,170 +709,334 @@ It is matched to its results via the sample name, which is assumed to be unique
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "intervalIdentifier"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityRef"^^xsd:string
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "acquisitionDate"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#acquisitionDate> ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spl:object ;
sp:arg1 [ sp:varName "facilityRef"^^xsd:string
] ;
sp:arg2 <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText>
] ;
sp:variable
[ sp:varName "normalizedFacilityName"^^xsd:string
]
])
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 40011c Specify the fluid component - non-primary component - label not found, so new substance type created
The componentName element is used differently in the examples for the primary and non-primary components."""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#Fluid> ;
rdfs:comment "STEP 40004 Set the valid from and valid to for the report."^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "validFrom"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#validFrom> ;
sp:subject
[ sp:varName "fluidSampleReport"^^xsd:string
]
] [ sp:object
[ sp:varName "validTo"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#validTo> ;
sp:subject
[ sp:varName "fluidSampleReport"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "fluidSampleRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
sp:predicate rdf:type ;
sp:subject _:b7
] [ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#hasNonPrimaryComponent> ;
sp:subject
[ sp:varName "sampledFluid"^^xsd:string
[ sp:varName "fluidSampleRef"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidComponentKindType"^^xsd:string
[ sp:varName "fluidSampleRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "fluidSamplingAndAnalysisActivity"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#FluidSamplingAndAnalysis> ;
sp:predicate rdf:type ;
sp:subject _:b7
sp:subject
[ sp:varName "fluidSamplingAndAnalysisActivity"^^xsd:string
]
] [ sp:object
[ sp:varName "substanceType"^^xsd:string
[ sp:varName "fluidSamplingAndAnalysisActivity"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject
[ sp:varName "fluidSampleReport"^^xsd:string
]
] [ sp:object
[ sp:varName "customDataRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#customDataRef> ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
] [ sp:object
[ sp:varName "extensionNameValueRef"^^xsd:string
] ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject
[ sp:varName "customDataRef"^^xsd:string
]
] [ sp:object <http://www.epim.no/schemas/mprml/1#extensionNameValue> ;
sp:predicate rdf:type ;
sp:subject _:b7
] [ sp:object <http://www.reportinghub.no/ep/schema/material#SubstanceType> ;
sp:subject
[ sp:varName "extensionNameValueRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "validFromRef"^^xsd:string
] ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject
[ sp:varName "extensionNameValueRef"^^xsd:string
]
] [ sp:object <http://www.epim.no/schemas/mprml/1#nameClass> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "substanceType"^^xsd:string
[ sp:varName "validFromRef"^^xsd:string
]
] [ sp:object
[ sp:varName "name"^^xsd:string
[ sp:varName "validFromText"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject
[ sp:varName "substanceType"^^xsd:string
[ sp:varName "validFromRef"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#MaterialPartWholePair> ;
] [ sp:object "ValidFrom" ;
sp:predicate <http://topbraid.org/sxml#text> ;
sp:subject
[ sp:varName "validFromText"^^xsd:string
]
] [ sp:object
[ sp:varName "valueFromRef"^^xsd:string
] ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject
[ sp:varName "extensionNameValueRef"^^xsd:string
]
] [ sp:object <http://www.epim.no/schemas/mprml/1#valueClass> ;
sp:predicate rdf:type ;
sp:subject _:b8
] [ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#partMaterialOfPair> ;
sp:subject _:b8
sp:subject
[ sp:varName "valueFromRef"^^xsd:string
]
] [ sp:object
[ sp:varName "sampledFluid"^^xsd:string
[ sp:varName "valueFromText"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#wholeMaterialOfPair> ;
sp:subject _:b8
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject
[ sp:varName "valueFromRef"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
[ sp:varName "validFrom"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b8
sp:predicate <http://topbraid.org/sxml#text> ;
sp:subject
[ sp:varName "valueFromText"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "validToRef"^^xsd:string
] ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject
[ sp:varName "extensionNameValueRef"^^xsd:string
]
] [ sp:object <http://www.epim.no/schemas/mprml/1#nameClass> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "validToRef"^^xsd:string
]
] [ sp:object
[ sp:varName "validToText"^^xsd:string
] ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject
[ sp:varName "validToRef"^^xsd:string
]
] [ sp:object "ValidTo" ;
sp:predicate <http://topbraid.org/sxml#text> ;
sp:subject
[ sp:varName "validToText"^^xsd:string
]
] [ sp:object
[ sp:varName "valueToRef"^^xsd:string
] ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject
[ sp:varName "extensionNameValueRef"^^xsd:string
]
] [ sp:object <http://www.epim.no/schemas/mprml/1#valueClass> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "valueToRef"^^xsd:string
]
] [ sp:object
[ sp:varName "valueToText"^^xsd:string
] ;
sp:predicate <http://www.topbraid.org/2007/05/composite.owl#child> ;
sp:subject
[ sp:varName "valueToRef"^^xsd:string
]
] [ sp:object
[ sp:varName "validTo"^^xsd:string
] ;
sp:predicate <http://topbraid.org/sxml#text> ;
sp:subject
[ sp:varName "valueToText"^^xsd:string
]
])
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40003a Set the date for the sample of fluid - from acquisition date if possible"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "acquisitionDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#nominalInstant> ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "fluidSampleRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
] [ sp:object
[ sp:varName "acquisitionDate"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#acquisitionDate> ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40003d Set the facility for the sample of fluid - from reporting facility if not"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "normalizedFacilityName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#facilityIdentifier> ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
[ sp:varName "fluidSampleRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidAnalysisResult> ;
] [ sp:object
[ sp:varName "normalizedFacilityName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#facilityIdentifier> ;
sp:subject spin:_this
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
[ sp:varName "fluidSampleRef"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "facilityRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
sp:subject
[ sp:varName "sampledFluid"^^xsd:string
[ sp:varName "fluidSampleRef"^^xsd:string
]
] [ sp:object
])
])
] .
<http://www.epim.no/schemas/mprml/1#MassConcentrationMeasurePercent>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40091b Set the mass of component if necessary"^^xsd:string ;
sp:templates ([ sp:object _:b7 ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "component"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mass> ;
sp:predicate rdf:type ;
sp:subject _:b7
]) ;
sp:where ([ sp:object
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#fluidSampleCompositionRef> ;
sp:subject
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
[ sp:varName "fluidAnalysisResultsRef"^^xsd:string
]
] [ sp:object "false"^^xsd:boolean ;
sp:predicate <http://www.epim.no/schemas/mprml/1#isPrimary> ;
] [ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#weightPercentRef> ;
sp:subject
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
]
] [ sp:object
[ sp:varName "name"^^xsd:string
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#componentName> ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
[ sp:varName "component"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/material#SubstanceType> ;
sp:elements ([ sp:object
[ sp:varName "massOfComponent"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "fluidSubstanceKindType"^^xsd:string
[ sp:varName "component"^^xsd:string
]
] [ sp:object
[ sp:varName "name"^^xsd:string
] ;
sp:predicate rdfs:label ;
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mass> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "fluidSubstanceKindType"^^xsd:string
[ sp:varName "massOfComponent"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "componentKindRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#componentKindRef> ;
sp:subject
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectFluidComponentKindType ;
sp:arg1 [ sp:varName "componentKindRef"^^xsd:string
]
] ;
sp:variable
[ sp:varName "fluidComponentKindType"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:buildSubstanceTypeURI ;
sp:arg1 [ sp:varName "name"^^xsd:string
]
] ;
sp:variable
[ sp:varName "substanceType"^^xsd:string
]
])
] .
<http://www.epim.no/schemas/mprml/1#MassConcentrationMeasurePercent>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40091 Set the mass ratio for the pair."^^xsd:string ;
sp:templates ([ sp:object _:b9 ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#massRatio> ;
sp:subject
[ sp:varName "materialPartWholePair"^^xsd:string
]
rdfs:comment "STEP 40091c Set the mass ratio for the pair."^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/core#MassPair> ;
sp:predicate rdf:type ;
sp:subject _:b8
] [ sp:object
[ sp:varName "massOfComponent"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#firstOfPair> ;
sp:subject _:b8
] [ sp:object
[ sp:varName "massOfWhole"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#secondOfPair> ;
sp:subject _:b8
] [ sp:object _:b9 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#divide> ;
sp:subject _:b8
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Ratio> ;
sp:predicate rdf:type ;
sp:subject _:b9
......@@ -1007,22 +1048,55 @@ The componentName element is used differently in the examples for the primary an
] ;
sp:subject _:b9
]) ;
sp:where ([ sp:object spin:_this ;
sp:where ([ sp:object
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#fluidSampleCompositionRef> ;
sp:subject
[ sp:varName "fluidAnalysisResultsRef"^^xsd:string
]
] [ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#weightPercentRef> ;
sp:subject
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidAnalysisResultsRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "whole"^^xsd:string
]
] [ sp:object
[ sp:varName "massOfWhole"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "whole"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mass> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "massOfWhole"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "materialPartWholePair"^^xsd:string
[ sp:varName "component"^^xsd:string
]
] [ sp:object
[ sp:varName "massOfComponent"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "component"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#MaterialPartWholePair> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mass> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "materialPartWholePair"^^xsd:string
[ sp:varName "massOfComponent"^^xsd:string
]
] [ sp:object
[ sp:varName "realWeightPercent"^^xsd:string
......@@ -1044,44 +1118,229 @@ The componentName element is used differently in the examples for the primary an
[ sp:varName "weightPercentScale"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40091a Set the mass of whole if necessary"^^xsd:string ;
sp:templates ([ sp:object _:b10 ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "whole"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mass> ;
sp:predicate rdf:type ;
sp:subject _:b10
]) ;
sp:where ([ sp:object
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#fluidSampleCompositionRef> ;
sp:subject
[ sp:varName "fluidAnalysisResultsRef"^^xsd:string
]
] [ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#weightPercentRef> ;
sp:subject
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidAnalysisResultsRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "whole"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "massOfWhole"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "whole"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mass> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "massOfWhole"^^xsd:string
]
])
])
] .
<http://www.epim.no/schemas/mprml/1#MolarFractionMeasurePercent>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40092 Set the molar ratio for the pair."^^xsd:string ;
sp:templates ([ sp:object _:b10 ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#moleRatio> ;
rdfs:comment "STEP 40092b Set the mole of the component if necessary"^^xsd:string ;
sp:templates ([ sp:object _:b11 ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "component"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mole> ;
sp:predicate rdf:type ;
sp:subject _:b11
]) ;
sp:where ([ sp:object
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#fluidSampleCompositionRef> ;
sp:subject
[ sp:varName "fluidAnalysisResultsRef"^^xsd:string
]
] [ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#molePercentRef> ;
sp:subject
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "component"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "moleOfComponent"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "component"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mole> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "moleOfComponent"^^xsd:string
]
])
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40092a Set the mole of the sample if necessary"^^xsd:string ;
sp:templates ([ sp:object _:b12 ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "whole"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mole> ;
sp:predicate rdf:type ;
sp:subject _:b12
]) ;
sp:where ([ sp:object
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#fluidSampleCompositionRef> ;
sp:subject
[ sp:varName "fluidAnalysisResultsRef"^^xsd:string
]
] [ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#molePercentRef> ;
sp:subject
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidAnalysisResultsRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "whole"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "moleOfWhole"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "materialPartWholePair"^^xsd:string
[ sp:varName "whole"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mole> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "moleOfWhole"^^xsd:string
]
])
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40092c Set the mole ratio for the pair."^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/core#MolePair> ;
sp:predicate rdf:type ;
sp:subject _:b13
] [ sp:object
[ sp:varName "moleOfComponent"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#firstOfPair> ;
sp:subject _:b13
] [ sp:object
[ sp:varName "moleOfWhole"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#secondOfPair> ;
sp:subject _:b13
] [ sp:object _:b14 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#divide> ;
sp:subject _:b13
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Ratio> ;
sp:predicate rdf:type ;
sp:subject _:b10
sp:subject _:b14
] [ sp:object
[ sp:varName "realMolePercent"^^xsd:string
] ;
sp:predicate
[ sp:varName "molePercentScale"^^xsd:string
] ;
sp:subject _:b10
sp:subject _:b14
]) ;
sp:where ([ sp:object spin:_this ;
sp:where ([ sp:object
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#fluidSampleCompositionRef> ;
sp:subject
[ sp:varName "fluidAnalysisResultsRef"^^xsd:string
]
] [ sp:object spin:_this ;
sp:predicate <http://www.epim.no/schemas/mprml/1#molePercentRef> ;
sp:subject
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidAnalysisResultsRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "whole"^^xsd:string
]
] [ sp:object
[ sp:varName "moleOfWhole"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "whole"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mole> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "moleOfWhole"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "materialPartWholePair"^^xsd:string
[ sp:varName "component"^^xsd:string
]
] [ sp:object
[ sp:varName "moleOfComponent"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "component"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#MaterialPartWholePair> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mole> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "materialPartWholePair"^^xsd:string
[ sp:varName "moleOfComponent"^^xsd:string
]
] [ sp:object
[ sp:varName "realMolePercent"^^xsd:string
......@@ -1107,5 +1366,5 @@ The componentName element is used differently in the examples for the primary an
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://www.reportinghub.no/ep/schema/1.0/production-activity> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/material-class-maps-to-mpr-enumeration> ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/material-class-maps-to-mpr-enumeration> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/schema/1.0/production-activity> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......