David Leal

Remaining uses of rdfs:label for argument passing in MPR transforms removed.

......@@ -24,31 +24,271 @@
<http://www.epim.no/schemas/mprml/1#A_Global-Objects>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 40005a 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 40004 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 _:b1
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#hasPrimaryComponent> ;
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 "fluidPhaseType"^^xsd:string
[ 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 40002b Create the Facility where the sampling takes place - the same approach to identification of the facility is used as for product volume.
kind is not \"well\" and facilityParent1 is not supplied"""^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#samplingPerformedAt> ;
sp:subject
[ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
]
] [ sp:object
[ sp:varName "facility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "facility"^^xsd:string
]
] [ sp:object
[ sp:varName "normalizedFacilityName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "facility"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "facility"^^xsd:string
]
] [ sp:object
[ sp:varName "normalizedFacilityName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ;
sp:subject
[ sp:varName "facilityRef"^^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 "facilityRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityNameRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject
[ sp:varName "facilityRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "facilityNameRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityKind"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject
[ sp:varName "facilityNameRef"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject
[ sp:varName "facilityNameRef"^^xsd:string
]
])
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "facilityParent1Ref"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityParent1Ref> ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "facilityName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedFacilityName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 [ sp:varName "normalizedFacilityName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "facility"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ;
sp:arg1 [ sp:varName "facilityKind"^^xsd:string
]
] ;
sp:variable
[ sp:varName "facilityType"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 40005b Specify the fluid component - non-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 _:b2
] [ sp:object _:b2 ;
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 _:b1
sp:subject _:b2
] [ sp:object
[ sp:varName "fluidSubstanceKindType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b1
sp:subject _:b2
] [ sp:object <http://www.reportinghub.no/ep/schema/material#MaterialPartWholePair> ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object _:b2 ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#partMaterialOfPair> ;
sp:subject _:b3
] [ sp:object
[ sp:varName "sampledFluid"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#wholeMaterialOfPair> ;
sp:subject _:b3
] [ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#massRatio> ;
sp:subject _:b3
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Ratio> ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ sp:object
[ sp:varName "realWeightPercent"^^xsd:string
] ;
sp:predicate
[ sp:varName "weightPercentScale"^^xsd:string
] ;
sp:subject _:b4
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#moleRatio> ;
sp:subject _:b3
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Ratio> ;
sp:predicate rdf:type ;
sp:subject _:b5
] [ sp:object
[ sp:varName "realMolePercent"^^xsd:string
] ;
sp:predicate
[ sp:varName "molePercentScale"^^xsd:string
] ;
sp:subject _:b5
]) ;
sp:where ([ sp:object
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
......@@ -74,7 +314,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
......@@ -86,48 +326,143 @@ 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 ;
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 "componentBaseKindRef"^^xsd:string
[ sp:varName "componentKindRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#componentBaseKindRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#componentKindRef> ;
sp:subject
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "weightPercentRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#weightPercentRef> ;
sp:subject
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
]
] [ sp:object
[ sp:varName "componentBaseKindRef"^^xsd:string
[ sp:varName "realWeightPercent"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#mapsTo> ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "fluidSubstanceKindType"^^xsd:string
[ sp:varName "weightPercentRef"^^xsd:string
]
] [ sp:object
[ sp:varName "uomWeightPercent"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject
[ sp:varName "weightPercentRef"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
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#molePercentRef> ;
sp:subject
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
]
] [ sp:object
[ sp:varName "realMolePercent"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "molePercentRef"^^xsd:string
]
] [ sp:object
[ sp:varName "uomMolePercent"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject
[ sp:varName "molePercentRef"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectFluidPhaseType ;
sp:arg1 [ sp:varName "name"^^xsd:string
[ rdf:type ep-mpr-spin-lib:selectRatioScale ;
sp:arg1 [ sp:varName "uomWeightPercent"^^xsd:string
]
] ;
sp:variable
[ sp:varName "fluidPhaseType"^^xsd:string
sp:variable
[ sp:varName "weightPercentScale"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectRatioScale ;
sp:arg1 [ sp:varName "uomMolePercent"^^xsd:string
]
] ;
sp:variable
[ sp:varName "molePercentScale"^^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 40003 Create the Sample of fluid.
The sample is anonymous. 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 _:b6
] [ sp:object
[ sp:varName "name"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject _:b6
] [ sp:object _:b6 ;
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
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectFluidComponentKindType ;
sp:arg1 [ sp:varName "componentKindRef"^^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:variable
[ sp:varName "fluidComponentKindType"^^xsd:string
sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
])
] ;
......@@ -135,79 +470,146 @@ The componentName element is used differently in the examples for the primary an
[ rdf:type sp:Construct ;
rdfs:comment """STEP 40002d Create the Facility where the sampling takes place - the same approach to identification of the facility is used as for product volume.
kind is not \"well\" and facilityParent1 is not supplied"""^^xsd:string ;
sp:templates ([ sp:object _:b2 ;
sp:templates ([ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#samplingPerformedAt> ;
sp:subject _:b3
] [ sp:object _:b4 ;
sp:subject
[ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
]
] [ sp:object
[ sp:varName "facility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b2
sp:subject _:b7
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ sp:object _:b5 ;
sp:predicate rdfs:label ;
sp:subject _:b4
] [ sp:object _:b6 ;
sp:subject
[ sp:varName "facility"^^xsd:string
]
] [ sp:object
[ sp:varName "normalizedFacilityName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "facility"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b4
] [ sp:object _:b5 ;
sp:predicate rdfs:label ;
sp:subject _:b7
sp:subject
[ sp:varName "facility"^^xsd:string
]
] [ sp:object
[ sp:varName "normalizedFacilityName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ;
sp:subject
[ sp:varName "facilityRef"^^xsd:string
]
]) ;
sp:where ([ sp:object _:b8 ;
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 _:b8
] [ sp:object _:b8 ;
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 _:b3
] [ sp:object _:b7 ;
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 _:b8
] [ sp:object _:b9 ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityNameRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject _:b7
] [ sp:object _:b10 ;
sp:subject
[ sp:varName "facilityRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityChildName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b9
] [ sp:object _:b11 ;
sp:subject
[ sp:varName "facilityNameRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityKind"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject _:b9
sp:subject
[ sp:varName "facilityNameRef"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject _:b9
sp:subject
[ sp:varName "facilityNameRef"^^xsd:string
]
])
] [ sp:object _:b12 ;
] [ sp:object
[ sp:varName "facilityParent1Ref"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityParent1Ref> ;
sp:subject _:b8
] [ sp:object _:b13 ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityParent1Name"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b12
] [ sp:object _:b14 ;
sp:subject
[ sp:varName "facilityParent1Ref"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityParent2Ref"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityParent2Ref> ;
sp:subject _:b8
] [ sp:object _:b15 ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityParent2Name"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b14
sp:subject
[ sp:varName "facilityParent2Ref"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b10
sp:arg1 [ sp:varName "facilityChildName"^^xsd:string
]
] ;
sp:variable _:b16
sp:variable
[ sp:varName "normalizedFacilityChildName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b13
sp:arg1 [ sp:varName "facilityParent1Name"^^xsd:string
]
] ;
sp:variable _:b17
sp:variable
[ sp:varName "normalizedFacilityParent1Name"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b15
sp:arg1 [ sp:varName "facilityParent2Name"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedFacilityParent2Name"^^xsd:string
......@@ -215,101 +617,36 @@ kind is not \"well\" and facilityParent1 is not supplied"""^^xsd:string ;
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type fn:concat ;
sp:arg1 _:b17 ;
sp:arg2 "$" ;
sp:arg3 _:b17 ;
sp:arg4 "$" ;
sp:arg5 _:b16
] ;
sp:variable _:b5
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 _:b5
] ;
sp:variable _:b4
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ;
sp:arg1 _:b11
] ;
sp:variable _:b6
])
sp:arg1 [ sp:varName "normalizedFacilityParent1Name"^^xsd:string
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 40002b Create the Facility where the sampling takes place - the same approach to identification of the facility is used as for product volume.
kind is not \"well\" and facilityParent1 is not supplied"""^^xsd:string ;
sp:templates ([ sp:object _:b18 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#samplingPerformedAt> ;
sp:subject _:b19
] [ sp:object _:b20 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b18
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ;
sp:predicate rdf:type ;
sp:subject _:b20
] [ sp:object _:b21 ;
sp:predicate rdfs:label ;
sp:subject _:b20
] [ sp:object _:b22 ;
sp:predicate rdf:type ;
sp:subject _:b20
] [ sp:object _:b21 ;
sp:predicate rdfs:label ;
sp:subject _:b23
]) ;
sp:where ([ sp:object _:b24 ;
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 _:b24
] [ sp:object _:b24 ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b19
] [ sp:object _:b23 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityRef> ;
sp:subject _:b24
] [ sp:object _:b25 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject _:b23
] [ sp:object _:b26 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b25
] [ sp:object _:b27 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject _:b25
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject _:b25
])
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "facilityParent1Ref"^^xsd:string
sp:arg2 "$" ;
sp:arg3 [ sp:varName "normalizedFacilityParent1Name"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityParent1Ref> ;
sp:subject _:b24
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b26
sp:arg4 "$" ;
sp:arg5 [ sp:varName "normalizedFacilityChildName"^^xsd:string
]
] ;
sp:variable _:b21
sp:variable
[ sp:varName "normalizedFacilityName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 _:b21
sp:arg1 [ sp:varName "normalizedFacilityName"^^xsd:string
]
] ;
sp:variable _:b20
sp:variable
[ sp:varName "facility"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ;
sp:arg1 _:b27
sp:arg1 [ sp:varName "facilityKind"^^xsd:string
]
] ;
sp:variable _:b22
sp:variable
[ sp:varName "facilityType"^^xsd:string
]
])
] ;
spin:rule
......@@ -317,329 +654,339 @@ kind is not \"well\" and facilityParent1 is not supplied"""^^xsd:string ;
rdfs:comment "STEP 40001 Create the FluidSampleReport, FluidSampling activity and FluidSample object ."^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#FluidSampleReport> ;
sp:predicate rdf:type ;
sp:subject _:b28
] [ sp:object _:b29 ;
sp:subject _:b8
] [ sp:object _:b9 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject _:b28
] [ sp:object _:b30 ;
sp:subject _:b8
] [ sp:object _:b10 ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject _:b28
sp:subject _:b8
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#FluidSamplingAndAnalysis> ;
sp:predicate rdf:type ;
sp:subject _:b30
] [ sp:object _:b31 ;
sp:subject _:b10
] [ sp:object _:b11 ;
sp:predicate rdf:type ;
sp:subject _:b30
] [ sp:object _:b32 ;
sp:subject _:b10
] [ sp:object _:b12 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
sp:subject _:b30
] [ sp:object _:b33 ;
sp:subject _:b10
] [ sp:object _:b13 ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b30
sp:subject _:b10
]) ;
sp:where ([ sp:object spin:_this ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b29
] [ sp:object _:b33 ;
sp:subject _:b9
] [ sp:object _:b13 ;
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 _:b33
sp:subject _:b13
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b32 ;
sp:elements ([ sp:object _:b12 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#acquisitionDate> ;
sp:subject _:b33
sp:subject _:b13
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b34 ;
sp:elements ([ sp:object _:b14 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#sampleTypeRef> ;
sp:subject _:b33
sp:subject _:b13
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectFluidSamplingType ;
sp:arg1 _:b34
] ;
sp:variable _:b31
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 40003 Create the Sample of fluid.
The sample is anonymous. 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 _:b35
] [ sp:object _:b36 ;
sp:predicate rdfs:label ;
sp:subject _:b35
] [ sp:object _:b35 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#sampledFluid> ;
sp:subject _:b37
]) ;
sp:where ([ sp:object _:b38 ;
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 _:b38
] [ sp:object _:b38 ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b37
] [ sp:object _:b36 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
sp:subject _:b38
])
sp:arg1 _:b14
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 40004 Specify the fluid analysis result."^^xsd:string ;
sp:templates ([ sp:object _:b39 ;
sp:predicate rdfs:label ;
sp:subject _:b40
] [ sp:object _:b41 ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b42
]) ;
sp:where ([ sp:object _:b43 ;
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 _:b43
] [ sp:object _:b43 ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
sp:subject _:b40
] [ sp:object _:b42 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#sampledFluid> ;
sp:subject _:b40
] [ sp:object _:b44 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#name> ;
sp:subject _:b43
] [ sp:object _:b41 ;
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 _:b41
] [ sp:object _:b44 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameFluidSample> ;
sp:subject _:b41
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b39 ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameFluidAnalysis> ;
sp:subject _:b41
])
sp:variable _:b11
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 40002a Create the Facility where the sampling takes place - the same approach to identification of the facility is used as for product volume.
kind is \"well\" and facilityAlias is supplied"""^^xsd:string ;
sp:templates ([ sp:object _:b45 ;
sp:templates ([ sp:object _:b15 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#samplingPerformedAt> ;
sp:subject _:b46
] [ sp:object _:b47 ;
sp:subject
[ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
]
] [ sp:object
[ sp:varName "facility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b45
] [ sp:object _:b48 ;
sp:predicate rdfs:label ;
sp:subject _:b49
sp:subject _:b15
] [ sp:object
[ sp:varName "normalizedFacilityAlias"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ;
sp:subject
[ sp:varName "facilityRef"^^xsd:string
]
]) ;
sp:where ([ sp:object _:b50 ;
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 _:b50
] [ sp:object _:b50 ;
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 _:b46
] [ sp:object _:b49 ;
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 _:b50
] [ sp:object _:b51 ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityNameRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject _:b49
sp:subject
[ sp:varName "facilityRef"^^xsd:string
]
] [ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject _:b51
] [ sp:object _:b52 ;
sp:subject
[ sp:varName "facilityNameRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityAliasRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityAliasRef> ;
sp:subject _:b50
] [ sp:object _:b53 ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityAlias"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b52
sp:subject
[ sp:varName "facilityAliasRef"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b53
sp:arg1 [ sp:varName "facilityAlias"^^xsd:string
]
] ;
sp:variable _:b48
sp:variable
[ sp:varName "normalizedFacilityAlias"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:wellByName ;
arg:wellName _:b53
arg:wellName
[ sp:varName "facilityAlias"^^xsd:string
]
] ;
sp:variable _:b47
sp:variable
[ sp:varName "facility"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 40002c Create the Facility where the sampling takes place - the same approach to identification of the facility is used as for product volume.
kind is not \"well\" and facilityParent1 is not supplied"""^^xsd:string ;
sp:templates ([ sp:object _:b54 ;
sp:templates ([ sp:object _:b16 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#samplingPerformedAt> ;
sp:subject _:b55
] [ sp:object _:b56 ;
sp:subject
[ sp:varName "fluidSamplingAndAnalysis"^^xsd:string
]
] [ sp:object
[ sp:varName "facility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b54
sp:subject _:b16
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Facility> ;
sp:predicate rdf:type ;
sp:subject _:b56
] [ sp:object _:b57 ;
sp:predicate rdfs:label ;
sp:subject _:b56
] [ sp:object _:b58 ;
sp:subject
[ sp:varName "facility"^^xsd:string
]
] [ sp:object
[ sp:varName "normalizedFacilityName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "facility"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b56
] [ sp:object _:b57 ;
sp:predicate rdfs:label ;
sp:subject _:b59
sp:subject
[ sp:varName "facility"^^xsd:string
]
] [ sp:object
[ sp:varName "normalizedFacilityName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText> ;
sp:subject
[ sp:varName "facilityRef"^^xsd:string
]
]) ;
sp:where ([ sp:object _:b60 ;
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 _:b60
] [ sp:object _:b60 ;
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 _:b55
] [ sp:object _:b59 ;
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 _:b60
] [ sp:object _:b61 ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityNameRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
sp:subject _:b59
] [ sp:object _:b62 ;
sp:subject
[ sp:varName "facilityRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityChildName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b61
] [ sp:object _:b63 ;
sp:subject
[ sp:varName "facilityNameRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityKind"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject _:b61
sp:subject
[ sp:varName "facilityNameRef"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject _:b61
sp:subject
[ sp:varName "facilityNameRef"^^xsd:string
]
])
] [ sp:object _:b64 ;
] [ sp:object
[ sp:varName "facilityParent1Ref"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityParent1Ref> ;
sp:subject _:b60
] [ sp:object _:b65 ;
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityParent1Name"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b64
sp:subject
[ sp:varName "facilityParent1Ref"^^xsd:string
]
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "facilityParent2Ref"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#facilityParent2Ref> ;
sp:subject _:b60
sp:subject
[ sp:varName "fluidSampleRef"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b62
sp:arg1 [ sp:varName "facilityChildName"^^xsd:string
]
] ;
sp:variable _:b66
sp:variable
[ sp:varName "normalizedFacilityChildName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b65
sp:arg1 [ sp:varName "facilityParent1Name"^^xsd:string
]
] ;
sp:variable _:b67
sp:variable
[ sp:varName "normalizedFacilityParent1Name"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type fn:concat ;
sp:arg1 _:b67 ;
sp:arg1 [ sp:varName "normalizedFacilityParent1Name"^^xsd:string
] ;
sp:arg2 "$" ;
sp:arg3 _:b66
sp:arg3 [ sp:varName "normalizedFacilityChildName"^^xsd:string
]
] ;
sp:variable _:b57
sp:variable
[ sp:varName "normalizedFacilityName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ;
sp:arg1 _:b57
sp:arg1 [ sp:varName "normalizedFacilityName"^^xsd:string
]
] ;
sp:variable _:b56
sp:variable
[ sp:varName "facility"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectProductionFacilityType ;
sp:arg1 _:b63
sp:arg1 [ sp:varName "facilityKind"^^xsd:string
]
] ;
sp:variable _:b58
sp:variable
[ sp:varName "facilityType"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 40005b Specify the fluid component - non-primary component.
rdfs:comment """STEP 40005a 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 _:b68
] [ sp:object _:b68 ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#hasNonPrimaryComponent> ;
sp:subject _:b17
] [ sp:object _:b17 ;
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:predicate rdf:type ;
sp:subject _:b68
] [ sp:object
[ sp:varName "fluidSubstanceKindType"^^xsd:string
[ sp:varName "fluidPhaseType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject _:b68
] [ sp:object <http://www.reportinghub.no/ep/schema/material#MaterialPartWholePair> ;
sp:predicate rdf:type ;
sp:subject _:b69
] [ sp:object _:b68 ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#partMaterialOfPair> ;
sp:subject _:b69
sp:subject _:b17
] [ sp:object
[ sp:varName "sampledFluid"^^xsd:string
[ sp:varName "fluidComponentKindType"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#wholeMaterialOfPair> ;
sp:subject _:b69
] [ sp:object _:b70 ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#massRatio> ;
sp:subject _:b69
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Ratio> ;
sp:predicate rdf:type ;
sp:subject _:b70
sp:subject _:b17
] [ sp:object
[ sp:varName "realWeightPercent"^^xsd:string
] ;
sp:predicate
[ sp:varName "weightPercentScale"^^xsd:string
[ sp:varName "fluidSubstanceKindType"^^xsd:string
] ;
sp:subject _:b70
] [ sp:object _:b71 ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#moleRatio> ;
sp:subject _:b69
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Ratio> ;
sp:predicate rdf:type ;
sp:subject _:b71
] [ sp:object
[ sp:varName "realMolePercent"^^xsd:string
] ;
sp:predicate
[ sp:varName "molePercentScale"^^xsd:string
] ;
sp:subject _:b71
sp:subject _:b17
]) ;
sp:where ([ sp:object
[ sp:varName "fluidAnalysisResultRef"^^xsd:string
......@@ -665,7 +1012,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
......@@ -677,90 +1024,39 @@ 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 ;
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:Optional ;
sp:elements ([ sp:object
[ sp:varName "weightPercentRef"^^xsd:string
[ sp:varName "componentBaseKindRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#weightPercentRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#componentBaseKindRef> ;
sp:subject
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
]
] [ sp:object
[ sp:varName "realWeightPercent"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "weightPercentRef"^^xsd:string
]
] [ sp:object
[ sp:varName "uomWeightPercent"^^xsd:string
[ sp:varName "componentBaseKindRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#mapsTo> ;
sp:subject
[ sp:varName "weightPercentRef"^^xsd:string
[ sp:varName "fluidSubstanceKindType"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "molePercentRef"^^xsd:string
[ sp:varName "componentKindRef"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#molePercentRef> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#componentKindRef> ;
sp:subject
[ sp:varName "fluidSampleCompositionRef"^^xsd:string
]
] [ sp:object
[ sp:varName "realMolePercent"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "molePercentRef"^^xsd:string
]
] [ sp:object
[ sp:varName "uomMolePercent"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ;
sp:subject
[ sp:varName "molePercentRef"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectRatioScale ;
sp:arg1 [ sp:varName "uomWeightPercent"^^xsd:string
]
] ;
sp:variable
[ sp:varName "weightPercentScale"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectRatioScale ;
sp:arg1 [ sp:varName "uomMolePercent"^^xsd:string
[ rdf:type ep-mpr-spin-lib:selectFluidPhaseType ;
sp:arg1 [ sp:varName "name"^^xsd:string
]
] ;
sp:variable
[ sp:varName "molePercentScale"^^xsd:string
[ sp:varName "fluidPhaseType"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
......@@ -776,175 +1072,19 @@ 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> ;
owl:imports <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 .
_:b55
sp:varName "fluidSamplingAndAnalysis"^^xsd:string .
_:b56
sp:varName "facility"^^xsd:string .
_:b57
sp:varName "normalizedFacilityName"^^xsd:string .
_:b58
sp:varName "facilityType"^^xsd:string .
_:b59
sp:varName "facilityRef"^^xsd:string .
_:b60
sp:varName "fluidSampleRef"^^xsd:string .
_:b61
sp:varName "facilityNameRef"^^xsd:string .
_:b62
sp:varName "facilityChildName"^^xsd:string .
_:b63
sp:varName "facilityKind"^^xsd:string .
_:b64
sp:varName "facilityParent1Ref"^^xsd:string .
_:b65
sp:varName "facilityParent1Name"^^xsd:string .
_:b66
sp:varName "normalizedFacilityChildName"^^xsd:string .
_:b67
sp:varName "normalizedFacilityParent1Name"^^xsd:string .
_:b46
sp:varName "fluidSamplingAndAnalysis"^^xsd:string .
_:b47
sp:varName "facility"^^xsd:string .
_:b48
sp:varName "normalizedFacilityAlias"^^xsd:string .
_:b49
sp:varName "facilityRef"^^xsd:string .
_:b50
sp:varName "fluidSampleRef"^^xsd:string .
_:b51
sp:varName "facilityNameRef"^^xsd:string .
_:b52
sp:varName "facilityAliasRef"^^xsd:string .
_:b53
sp:varName "facilityAlias"^^xsd:string .
_:b39
sp:varName "nameFluidAnalysis"^^xsd:string .
_:b40
sp:varName "fluidSamplingAndAnalysis"^^xsd:string .
_:b41
sp:varName "fluidAnalysisResultRef"^^xsd:string .
_:b42
sp:varName "sampledFluid"^^xsd:string .
_:b43
sp:varName "fluidSampleRef"^^xsd:string .
_:b44
sp:varName "name"^^xsd:string .
_:b36
sp:varName "name"^^xsd:string .
_:b37
sp:varName "fluidSamplingAndAnalysis"^^xsd:string .
_:b38
sp:varName "fluidSampleRef"^^xsd:string .
_:b29
sp:varName "productionReport"^^xsd:string .
_:b31
sp:varName "fluidSamplingType"^^xsd:string .
_:b32
sp:varName "acquisitionDate"^^xsd:string .
_:b33
sp:varName "fluidSampleRef"^^xsd:string .
_:b34
sp:varName "sampleTypeRef"^^xsd:string .
_:b19
sp:varName "fluidSamplingAndAnalysis"^^xsd:string .
_:b20
sp:varName "facility"^^xsd:string .
_:b21
sp:varName "normalizedFacilityName"^^xsd:string .
_:b22
sp:varName "facilityType"^^xsd:string .
_:b23
sp:varName "facilityRef"^^xsd:string .
_:b24
sp:varName "fluidSampleRef"^^xsd:string .
_:b25
sp:varName "facilityNameRef"^^xsd:string .
_:b26
sp:varName "facilityName"^^xsd:string .
_:b27
sp:varName "facilityKind"^^xsd:string .
_:b3 sp:varName "fluidSamplingAndAnalysis"^^xsd:string .
_:b4 sp:varName "facility"^^xsd:string .
_:b5 sp:varName "normalizedFacilityName"^^xsd:string .
_:b6 sp:varName "facilityType"^^xsd:string .
_:b7 sp:varName "facilityRef"^^xsd:string .
_:b8 sp:varName "fluidSampleRef"^^xsd:string .
_:b9 sp:varName "facilityNameRef"^^xsd:string .
_:b10
sp:varName "facilityChildName"^^xsd:string .
_:b9 sp:varName "productionReport"^^xsd:string .
_:b11
sp:varName "facilityKind"^^xsd:string .
sp:varName "fluidSamplingType"^^xsd:string .
_:b12
sp:varName "facilityParent1Ref"^^xsd:string .
sp:varName "acquisitionDate"^^xsd:string .
_:b13
sp:varName "facilityParent1Name"^^xsd:string .
sp:varName "fluidSampleRef"^^xsd:string .
_:b14
sp:varName "facilityParent2Ref"^^xsd:string .
_:b15
sp:varName "facilityParent2Name"^^xsd:string .
_:b16
sp:varName "normalizedFacilityChildName"^^xsd:string .
_:b17
sp:varName "normalizedFacilityParent1Name"^^xsd:string .
sp:varName "sampleTypeRef"^^xsd:string .
......
This diff could not be displayed because it is too large.