David Price

Initial fluid sample and analysis tables added

......@@ -18,6 +18,271 @@
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.reportinghub.no/spin/rh> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
dpr-tables:FluidSampleAnalysisResults
rdf:type rhspin:TableTemplate ;
rdfs:label "Fluid Sample Analysis Results"^^xsd:string ;
rdfs:subClassOf rhspin:DPRTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:orderBy ([ sp:varName "sampledFluidName"^^xsd:string
]) ;
sp:resultVariables ([ sp:varName "sampledFluidName"^^xsd:string
] [ sp:varName "componentName"^^xsd:string
] [ sp:varName "partMaterialName"^^xsd:string
] [ sp:varName "moleRatioPercent"^^xsd:string
] [ sp:varName "massRatioPercent"^^xsd:string
]) ;
sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "report"^^xsd:string
]
] [ sp:object
[ sp:varName "report"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "fluidSampleReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#FluidSampleReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "fluidSampleReport"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidsamplingandanalysis"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject
[ sp:varName "fluidSampleReport"^^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 "sampledFluid"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#sampledFluid> ;
sp:subject
[ sp:varName "fluidsamplingandanalysis"^^xsd:string
]
] [ 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 "sampledFluidName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "sampledFluid"^^xsd:string
]
] [ rdf:type sp:TriplePath ;
sp:object
[ sp:varName "component"^^xsd:string
] ;
sp:path [ rdf:type sp:AltPath ;
sp:path1 <http://www.reportinghub.no/ep/schema/material#hasPrimaryComponent> ;
sp:path2 <http://www.reportinghub.no/ep/schema/material#hasNonPrimaryComponent>
] ;
sp:subject
[ sp:varName "sampledFluid"^^xsd:string
]
] [ sp:object
[ sp:varName "componentType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "component"^^xsd:string
]
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:ne ;
sp:arg1 [ sp:varName "componentType"^^xsd:string
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/material#Fluid>
]
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:ne ;
sp:arg1 [ sp:varName "componentType"^^xsd:string
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/material#FluidFraction>
]
] [ sp:object
[ sp:varName "componentName"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "componentType"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "component"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#partMaterialOfPair> ;
sp:subject
[ sp:varName "materialPair"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "massRatio"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#massRatio> ;
sp:subject
[ sp:varName "materialPair"^^xsd:string
]
] [ sp:object
[ sp:varName "massRatioPercent"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#percent> ;
sp:subject
[ sp:varName "massRatio"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "moleRatio"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/material#moleRatio> ;
sp:subject
[ sp:varName "materialPair"^^xsd:string
]
] [ sp:object
[ sp:varName "moleRatioPercent"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#percent> ;
sp:subject
[ sp:varName "moleRatio"^^xsd:string
]
])
])
])
] ;
rhspin:tableHeaders ("Fluid Sample Name"^^xsd:string "Component"^^xsd:string """Mole Ratio
Percent"""^^xsd:string """Mass Ratio
Percent"""^^xsd:string) .
dpr-tables:FluidSamples
rdf:type rhspin:TableTemplate ;
rdfs:label "Fluid Sample Report"^^xsd:string ;
rdfs:subClassOf rhspin:DPRTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:orderBy ([ sp:varName "sampledFluidName"^^xsd:string
]) ;
sp:resultVariables ([ sp:varName "fluidSamplingType"^^xsd:string
] [ sp:varName "sampleDate"^^xsd:string
] [ sp:varName "samplePerformedAt"^^xsd:string
] [ sp:varName "sampledFluidName"^^xsd:string
]) ;
sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "report"^^xsd:string
]
] [ sp:object
[ sp:varName "report"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "fluidSampleReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#FluidSampleReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "fluidSampleReport"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidsamplingandanalysis"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject
[ sp:varName "fluidSampleReport"^^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 "fluidsamplingandanalysisType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "fluidsamplingandanalysis"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#FluidSamplingType> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "fluidsamplingandanalysisType"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidSamplingType"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "fluidsamplingandanalysisType"^^xsd:string
]
] [ sp:object
[ sp:varName "sampleDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
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 <http://www.reportinghub.no/ep/schema/material#Fluid> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "sampledFluid"^^xsd:string
]
] [ sp:object
[ sp:varName "sampledFluidName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "sampledFluid"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalpartofaproductionfacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#samplingPerformedAt> ;
sp:subject
[ sp:varName "fluidsamplingandanalysis"^^xsd:string
]
] [ sp:object
[ sp:varName "productionfacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "temporalpartofaproductionfacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "temporalpartofaproductionfacility"^^xsd:string
]
] [ sp:object
[ sp:varName "samplePerformedAt"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "productionfacility"^^xsd:string
]
])
] ;
rhspin:tableHeaders ("Sample Type"^^xsd:string "Aquisition Date"^^xsd:string "Sampling Facility"^^xsd:string "Fluid Sample Name"^^xsd:string) .
dpr-tables:PersonnelInformation
rdf:type rhspin:TableTemplate ;
rdfs:label "Personnel Information"^^xsd:string ;
......@@ -760,10 +1025,10 @@ dpr-tables:WellFluidLevelTest
rdfs:subClassOf rhspin:DPRTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:orderBy ([ sp:varName "wellboreName"^^xsd:string
sp:orderBy ([ sp:varName "wellName"^^xsd:string
] [ sp:varName "activityStart"^^xsd:string
]) ;
sp:resultVariables ([ sp:varName "wellboreName"^^xsd:string
sp:resultVariables ([ sp:varName "wellName"^^xsd:string
] [ sp:varName "wellTestTypeName"^^xsd:string
] [ sp:varName "wellTestReasonTypeName"^^xsd:string
] [ sp:varName "activityStart"^^xsd:string
......@@ -802,7 +1067,7 @@ dpr-tables:WellFluidLevelTest
[ sp:varName "wellTest"^^xsd:string
]
] [ sp:object
[ sp:varName "wellTestPart"^^xsd:string
[ sp:varName "fluidLevelTest"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject
......@@ -811,7 +1076,7 @@ dpr-tables:WellFluidLevelTest
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#FluidLevelTest> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellTestPart"^^xsd:string
[ sp:varName "fluidLevelTest"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
......@@ -823,25 +1088,25 @@ dpr-tables:WellFluidLevelTest
]
])
] [ sp:object
[ sp:varName "wellborePart"^^xsd:string
[ sp:varName "wellPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ;
sp:subject
[ sp:varName "wellTest"^^xsd:string
]
] [ sp:object
[ sp:varName "wellbore"^^xsd:string
[ sp:varName "well"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "wellborePart"^^xsd:string
[ sp:varName "wellPart"^^xsd:string
]
] [ sp:object
[ sp:varName "wellboreName"^^xsd:string
[ sp:varName "wellName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "wellbore"^^xsd:string
[ sp:varName "well"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
......@@ -896,7 +1161,14 @@ dpr-tables:WellFluidLevelTest
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "wellborePartFluid"^^xsd:string
[ sp:varName "wellborePart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject
[ sp:varName "fluidLevelTest"^^xsd:string
]
] [ sp:object
[ sp:varName "wellPartFluid"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ;
sp:subject
......@@ -908,7 +1180,7 @@ dpr-tables:WellFluidLevelTest
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-well#depthOfBaseUsableWaterFromSurface> ;
sp:subject
[ sp:varName "wellborePartFluid"^^xsd:string
[ sp:varName "wellPartFluid"^^xsd:string
]
] [ sp:object
[ sp:varName "depthUsableWaterValue"^^xsd:string
......@@ -918,6 +1190,22 @@ dpr-tables:WellFluidLevelTest
[ sp:varName "depthUsableWater"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "fluidLevel"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-well#depthOfFluidSurfaceFromTopOfWell> ;
sp:subject
[ sp:varName "wellPartFluid"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidLevelValue"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#metre> ;
sp:subject
[ sp:varName "fluidLevel"^^xsd:string
]
])
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
......@@ -925,7 +1213,7 @@ dpr-tables:WellFluidLevelTest
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#performedByPersonOrOrganization> ;
sp:subject
[ sp:varName "wellTestPart"^^xsd:string
[ sp:varName "fluidLevelTest"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidLevelTestPerformerWhole"^^xsd:string
......@@ -944,7 +1232,11 @@ dpr-tables:WellFluidLevelTest
])
])
] ;
rhspin:tableHeaders ("Wellbore"^^xsd:string "Test Type"^^xsd:string "Reason"^^xsd:string "Started or Nominally At"^^xsd:string "Description "^^xsd:string "Fluid Level m"^^xsd:string "Usable Water Depth m"^^xsd:string "Fluid Level Test Performer"^^xsd:string) .
rhspin:tableHeaders ("Well"^^xsd:string "Test Type"^^xsd:string "Reason"^^xsd:string "Started or Nominally At"^^xsd:string "Description "^^xsd:string """Fluid Level
m"""^^xsd:string """Usable Water
Depth
m"""^^xsd:string """Fluid Level
Test Performer"""^^xsd:string) .
dpr-tables:WellInjectionTest
rdf:type rhspin:TableTemplate ;
......
......@@ -72,4 +72,13 @@ WHERE {
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellProductionTest" />
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellProductionTestResults" />
<h2>Fluid Sample Information</h2>
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:FluidSamples" />
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:FluidSampleAnalysisResults" />
</ui:group>
\ No newline at end of file
......