David Leal

Duplicate masses removed from fluid sample

......@@ -25,36 +25,15 @@
<http://www.epim.no/schemas/mprml/1#A_Global-Objects>
spin:rule
[ rdf:type sp:Construct ;
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> ;
rdfs:comment "STEP 40011d Specify the mass of the fluid component if necessary"^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#hasPrimaryComponent> ;
sp:subject
[ sp:varName "sampledFluid"^^xsd:string
[ sp:varName "fluidComponent"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidPhaseType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object
[ sp:varName "fluidComponentKindType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object
[ sp:varName "fluidSubstanceKindType"^^xsd:string
] ;
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mass> ;
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 _:b1
]) ;
sp:where ([ sp:object
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
......@@ -67,134 +46,28 @@ The componentName element is used differently in the examples for the primary an
[ sp:varName "fluidAnalysisResultRef"^^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:object
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#fluidSampleCompositionRef> ;
sp:subject
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
]
] [ sp:object "true"^^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: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 "fluidComponent"^^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:subject
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
]
] [ sp:object
[ sp:varName "componentBaseKindRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#materialClassMapsToMPREnumeration> ;
sp:subject
[ sp:varName "fluidSubstanceKindType"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
] [ rdf:type sp:Exists ;
sp:elements ([ sp:object
[ sp:varName "componentKindRef"^^xsd:string
[ sp:varName "molePercentRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#componentKindRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#weightPercentRef> ;
sp:subject
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
]
])
] [ 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
]
] ;
sp:variable
[ sp:varName "fluidComponentKindType"^^xsd:string
]
])
] ;
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 _: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 _:b2
] [ sp:object
[ sp:varName "facility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b2
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "facility"^^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 <http://www.reportinghub.no/ep/schema/production-activity#FluidSamplingAndAnalysis> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "facility"^^xsd:string
]
])
] ;
spin:rule
......@@ -202,33 +75,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 _:b3
sp:subject _:b2
] [ sp:object
[ sp:varName "productionReport"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject _:b3
] [ sp:object _:b4 ;
sp:subject _:b2
] [ sp:object _:b3 ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject _:b3
sp:subject _:b2
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#FluidSamplingAndAnalysis> ;
sp:predicate rdf:type ;
sp:subject _:b4
sp:subject _:b3
] [ sp:object
[ sp:varName "fluidSamplingType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b4
sp:subject _:b3
] [ sp:object
[ sp:varName "acquisitionDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
sp:subject _:b4
sp:subject _:b3
] [ sp:object
[ sp:varName "fluidSampleRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b4
sp:subject _:b3
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
......@@ -281,11 +154,11 @@ The componentName element is used differently in the examples for the primary an
] ;
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 40003a Set the date for the sample of fluid - from acquisition date if possible"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "normalizedFacilityName"^^xsd:string
[ sp:varName "acquisitionDate"^^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
]
......@@ -301,136 +174,100 @@ The componentName element is used differently in the examples for the primary an
[ sp:varName "fluidSampleRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityRef"^^xsd:string
[ 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 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 _:b5
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#hasNonPrimaryComponent> ;
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 "sampledFluid"^^xsd:string
[ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidComponentKindType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b5
] [ sp:object
[ sp:varName "fluidSubstanceKindType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b5
] [ sp:object
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b5
sp:subject
[ sp:varName "sampledFluid"^^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 <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
[ sp:varName "fluidSampleRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "sampledFluid"^^xsd:string
[ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
[ sp:varName "sampledFluid"^^xsd:string
] ;
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:predicate <http://www.reportinghub.no/ep/schema/activity#sampledFluid> ;
sp:subject
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
[ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
]
] [ sp:object
[ sp:varName "name"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#componentName> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
sp:subject
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
[ sp:varName "fluidSampleRef"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#SubstanceType> ;
] [ 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 "fluidSubstanceKindType"^^xsd:string
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
]
] [ sp:object
[ sp:varName "name"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameFluidSample> ;
sp:subject
[ sp:varName "fluidSubstanceKindType"^^xsd:string
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "componentKindRef"^^xsd:string
[ sp:varName "nameFluidAnalysis"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#componentKindRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameFluidAnalysis> ;
sp:subject
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
[ sp:varName "fluidAnalysisResultRef"^^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
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40010 Specify the fluid analysis result."^^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 "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:varName "intervalIdentifier"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#nominalInstant> ;
sp:subject
[ sp:varName "sampledFluid"^^xsd:string
[ sp:varName "fluidSampleRef"^^xsd:string
]
]) ;
sp:where ([ sp:object
......@@ -438,82 +275,47 @@ 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 <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:varName "intervalIdentifier"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
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_fluidAnalysisResult> ;
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidSample> ;
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
[ sp:varName "fluidSampleRef"^^xsd:string
]
] [ rdf:type sp:Optional ;
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "nameFluidAnalysis"^^xsd:string
[ sp:varName "acquisitionDate"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameFluidAnalysis> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#acquisitionDate> ;
sp:subject
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
[ sp:varName "fluidSampleRef"^^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> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "sampledFluid"^^xsd:string
]
] [ sp:object
[ sp:varName "name"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
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 _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#samplingPerformedAt> ;
sp:subject
[ sp:varName "sampledFluid"^^xsd:string
[ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ sp:object
[ sp:varName "sampledFluid"^^xsd:string
[ sp:varName "facility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#sampledFluid> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b4
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
[ sp:varName "facility"^^xsd:string
]
]) ;
sp:where ([ sp:object
......@@ -527,56 +329,83 @@ It is matched to its results via the sample name, which is assumed to be unique
[ sp:varName "fluidSampleRef"^^xsd:string
]
] [ 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
[ sp:varName "time"^^xsd:string
[ sp:varName "fluidSampleRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#nominalInstant> ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
[ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#FluidSamplingAndAnalysis> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
]
] [ sp:object
[ sp:varName "normalizedFacilityName"^^xsd:string
[ sp:varName "facilityRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#facilityIdentifier> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidSampleRef"^^xsd:string
[ sp:varName "facilityRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
[ sp:varName "facility"^^xsd:string
]
] [ sp:object
[ sp:varName "name"^^xsd:string
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40010a Create the mass of the sample of fluid if necessary"^^xsd:string ;
sp:templates ([ sp:object _:b5 ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "sampledFluid"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mass> ;
sp:predicate rdf:type ;
sp:subject _:b5
]) ;
sp:where ([ sp:object
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
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 "fluidSampleRef"^^xsd:string
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:buildSampledFluidURI ;
sp:arg1 [ sp:varName "normalizedFacilityName"^^xsd:string
] ;
sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string
] ;
sp:arg3 [ sp:varName "name"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
] ;
sp:variable
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "sampledFluid"^^xsd:string
]
] [ rdf:type sp:Exists ;
sp:elements ([ 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
[ sp:varName "weightPercentRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#weightPercentRef> ;
sp:subject
[ sp:varName "fluidSampleCompositionRef"^^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
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 ;
......@@ -592,22 +421,10 @@ The componentName element is used differently in the examples for the primary an
sp:predicate rdf:type ;
sp:subject _:b6
] [ sp:object
[ sp:varName "substanceType"^^xsd:string
[ sp:varName "fluidSubstanceKindType"^^xsd:string
] ;
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 "substanceType"^^xsd:string
]
] [ sp:object
[ sp:varName "name"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "substanceType"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
] ;
......@@ -650,20 +467,18 @@ The componentName element is used differently in the examples for the primary an
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
]
])
] [ 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
......@@ -682,62 +497,311 @@ The componentName element is used differently in the examples for the primary an
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 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> ;
rdfs:comment "STEP 40011e Specify the mole of the fluid component if necessary"^^xsd:string ;
sp:templates ([ sp:object _:b7 ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
[ sp:varName "fluidComponent"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mole> ;
sp:predicate rdf:type ;
sp:subject _:b7
]) ;
sp:where ([ sp:object
[ sp:varName "fluidSampleRef"^^xsd:string
[ 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 "intervalIdentifier"^^xsd:string
[ sp:varName "fluidSampleCompositionRef"^^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:predicate <http://www.epim.no/schemas/mprml/1#fluidSampleCompositionRef> ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
]
] [ rdf:type sp:NotExists ;
] [ sp:object
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "fluidComponent"^^xsd:string
]
] [ rdf:type sp:Exists ;
sp:elements ([ sp:object
[ sp:varName "acquisitionDate"^^xsd:string
[ sp:varName "molePercentRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#acquisitionDate> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#molePercentRef> ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
[ sp:varName "fluidSampleCompositionRef"^^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
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> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "sampledFluid"^^xsd:string
]
] [ sp:object
[ sp:varName "name"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "sampledFluid"^^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: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 "intervalIdentifier"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "time"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#nominalInstant> ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
] [ 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: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 "name"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:buildSampledFluidURI ;
sp:arg1 [ sp:varName "normalizedFacilityName"^^xsd:string
] ;
sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string
] ;
sp:arg3 [ sp:varName "name"^^xsd:string
]
] ;
sp:variable
[ sp:varName "sampledFluid"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40010b Create the mole of the sample of fluid if necessary"^^xsd:string ;
sp:templates ([ sp:object _:b8 ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "sampledFluid"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mole> ;
sp:predicate rdf:type ;
sp:subject _:b8
]) ;
sp:where ([ 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 "fluidAnalysisResultRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "sampledFluid"^^xsd:string
]
] [ rdf:type sp:Exists ;
sp:elements ([ 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
[ sp:varName "molePercentRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#molePercentRef> ;
sp:subject
[ sp:varName "fluidSampleCompositionRef"^^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> ;
sp:predicate rdf:type ;
sp:subject _:b9
] [ sp:object _:b9 ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#hasNonPrimaryComponent> ;
sp:subject
[ sp:varName "sampledFluid"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidComponentKindType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b9
] [ sp:object
[ sp:varName "substanceType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b9
] [ sp:object <http://www.reportinghub.no/ep/schema/material#SubstanceType> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "substanceType"^^xsd:string
]
] [ sp:object
[ sp:varName "name"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ 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 _:b9
]) ;
sp:where ([ 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 "fluidAnalysisResultRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "sampledFluid"^^xsd:string
]
] [ 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: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 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
......@@ -904,31 +968,115 @@ The componentName element is used differently in the examples for the primary an
] ;
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
]
]) ;
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 _:b10
] [ sp:object _:b10 ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#hasPrimaryComponent> ;
sp:subject
[ sp:varName "sampledFluid"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidPhaseType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b10
] [ sp:object
[ sp:varName "fluidComponentKindType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b10
] [ sp:object
[ sp:varName "fluidSubstanceKindType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b10
] [ sp:object
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b10
]) ;
sp:where ([ sp:object
[ sp:varName "fluidSampleRef"^^xsd:string
[ 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_fluidSample> ;
] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_fluidAnalysisResult> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
]
] [ sp:object
[ sp:varName "acquisitionDate"^^xsd:string
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#acquisitionDate> ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
[ sp:varName "sampledFluid"^^xsd:string
]
] [ 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:object "true"^^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:Optional ;
sp:elements ([ sp:object
[ sp:varName "componentBaseKindRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#componentBaseKindRef> ;
sp:subject
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
]
] [ sp:object
[ sp:varName "componentBaseKindRef"^^xsd:string
] ;
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
] ;
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: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
]
] ;
sp:variable
[ sp:varName "fluidComponentKindType"^^xsd:string
]
])
] ;
......@@ -968,85 +1116,78 @@ The componentName element is used differently in the examples for the primary an
]
])
])
] .
<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 ;
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
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#facilityIdentifier> ;
sp:subject
[ sp:varName "component"^^xsd:string
[ sp:varName "fluidSampleRef"^^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:varName "fluidSampleRef"^^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: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 "fluidSampleCompositionRef"^^xsd:string
[ sp:varName "fluidSampleRef"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
[ 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 "component"^^xsd:string
[ 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
]
] [ rdf:type sp:NotExists ;
sp:elements ([ 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/core#Mass> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "massOfComponent"^^xsd:string
]
])
])
] ;
] .
<http://www.epim.no/schemas/mprml/1#MassConcentrationMeasurePercent>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40091c Set the mass ratio for the pair."^^xsd:string ;
rdfs:comment "STEP 40091 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:subject _:b11
] [ sp:object
[ sp:varName "massOfComponent"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#firstOfPair> ;
sp:subject _:b8
sp:subject _:b11
] [ sp:object
[ sp:varName "massOfWhole"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#secondOfPair> ;
sp:subject _:b8
] [ sp:object _:b9 ;
sp:subject _:b11
] [ sp:object _:b12 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#divide> ;
sp:subject _:b8
sp:subject _:b11
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Ratio> ;
sp:predicate rdf:type ;
sp:subject _:b9
sp:subject _:b12
] [ sp:object
[ sp:varName "realWeightPercent"^^xsd:string
] ;
sp:predicate
[ sp:varName "weightPercentScale"^^xsd:string
] ;
sp:subject _:b9
sp:subject _:b12
]) ;
sp:where ([ sp:object
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
......@@ -1118,153 +1259,12 @@ 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 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 "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 ;
rdfs:comment "STEP 40092 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
......@@ -1366,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/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: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:versionInfo "Created with TopBraid Composer"^^xsd:string .
......