David Price

Injection Well Test Mostly Working

......@@ -952,10 +952,10 @@ dpr-tables:WellInjectionTest
rdfs:subClassOf rhspin:DPRTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:orderBy ([ sp:varName "wellboreName"^^xsd:string
sp:orderBy ([ sp:varName "welName"^^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 "activityStart"^^xsd:string
] [ sp:varName "duration"^^xsd:string
......@@ -997,30 +997,30 @@ dpr-tables:WellInjectionTest
[ sp:varName "wellTest"^^xsd:string
]
] [ 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 <http://www.reportinghub.no/ep/schema/well#WellBore> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellbore"^^xsd:string
[ sp:varName "well"^^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
]
] [ sp:object
[ sp:varName "wellTestType"^^xsd:string
......@@ -1053,7 +1053,8 @@ dpr-tables:WellInjectionTest
sp:subject
[ sp:varName "injectionWellTest"^^xsd:string
]
] [ sp:object
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "timeDuration"^^xsd:string
] ;
sp:predicate rdf:type ;
......@@ -1072,7 +1073,9 @@ dpr-tables:WellInjectionTest
sp:subject
[ sp:varName "timeDuration"^^xsd:string
]
] [ sp:object
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "injectionWellTestFlow"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#hasFlow> ;
......@@ -1086,7 +1089,7 @@ dpr-tables:WellInjectionTest
sp:subject
[ sp:varName "injectionWellTestFlow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-well#InjectionFluidType> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/well#FluidComponentType> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "injectionFluidType"^^xsd:string
......@@ -1098,6 +1101,7 @@ dpr-tables:WellInjectionTest
sp:subject
[ sp:varName "injectionFluidType"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "minAnnularPres"^^xsd:string
......@@ -1230,16 +1234,15 @@ dpr-tables:WellInjectionTestResults
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 "activityStart"^^xsd:string
] [ sp:varName "materialName"^^xsd:string
] [ sp:varName "injectionWellTestFlowRate"^^xsd:string
] [ sp:varName "materialFlowVolumeValue"^^xsd:string
] [ sp:varName "materialFlowDensityValue"^^xsd:string
] [ sp:varName "oilRate"^^xsd:string
] [ sp:varName "gasRate"^^xsd:string
] [ sp:varName "waterRate"^^xsd:string
]) ;
sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
sp:predicate rdf:type ;
......@@ -1271,30 +1274,30 @@ dpr-tables:WellInjectionTestResults
[ sp:varName "wellTest"^^xsd:string
]
] [ sp:object
[ sp:varName "wellborePart"^^xsd:string
[ sp:varName "wellPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
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 <http://www.reportinghub.no/ep/schema/well#WellBore> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellbore"^^xsd:string
[ sp:varName "well"^^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
]
] [ sp:object
[ sp:varName "wellTestType"^^xsd:string
......@@ -1327,146 +1330,191 @@ dpr-tables:WellInjectionTestResults
sp:subject
[ sp:varName "injectionWellTest"^^xsd:string
]
] [ sp:object
[ sp:varName "injectionWellTestFlow"^^xsd:string
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "activityStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
sp:subject
[ sp:varName "wellTest"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "flow"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#hasFlow> ;
sp:subject
[ sp:varName "injectionWellTest"^^xsd:string
]
] [ sp:object
[ sp:varName "injectionWellTestFlowPart"^^xsd:string
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "flow"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "oilPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ;
sp:subject
[ sp:varName "injectionWellTestFlow"^^xsd:string
[ sp:varName "flow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "injectionWellTestFlowPart"^^xsd:string
[ sp:varName "oilPart"^^xsd:string
]
] [ sp:object
[ sp:varName "materialFlow"^^xsd:string
[ sp:varName "oil"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ;
sp:subject
[ sp:varName "injectionWellTestFlowPart"^^xsd:string
[ sp:varName "oilPart"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#Oil> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "oil"^^xsd:string
]
] [ sp:object
[ sp:varName "oilPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "oilflowinastandardstate"^^xsd:string
]
] [ sp:object
[ sp:varName "materialFlowType"^^xsd:string
[ sp:varName "oilvolumetricflowrate"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "materialFlow"^^xsd:string
[ sp:varName "oilflowinastandardstate"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/well#FluidComponentType> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/core#VolumetricFlowRate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "materialFlowType"^^xsd:string
[ sp:varName "oilvolumetricflowrate"^^xsd:string
]
] [ sp:object
[ sp:varName "materialName"^^xsd:string
[ sp:varName "oilRate"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#metre3_hour-1> ;
sp:subject
[ sp:varName "materialFlowType"^^xsd:string
[ sp:varName "oilvolumetricflowrate"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "materialFlow"^^xsd:string
[ sp:varName "waterPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ;
sp:subject
[ sp:varName "quantityOfMaterialInStandardState"^^xsd:string
[ sp:varName "flow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "waterPart"^^xsd:string
]
] [ sp:object
[ sp:varName "materialFlowDensity"^^xsd:string
[ sp:varName "water"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ;
sp:subject
[ sp:varName "quantityOfMaterialInStandardState"^^xsd:string
[ sp:varName "waterPart"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Density> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/material#Water> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "materialFlowDensity"^^xsd:string
[ sp:varName "water"^^xsd:string
]
] [ sp:object
[ sp:varName "materialFlowDensityValue"^^xsd:string
[ sp:varName "waterPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#kilogram_m-3> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "materialFlowDensity"^^xsd:string
[ sp:varName "waterflowinastandardstate"^^xsd:string
]
] [ sp:object
[ sp:varName "materialFlowVolume"^^xsd:string
[ sp:varName "watervolumetricflowrate"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityOfMaterialInStandardState"^^xsd:string
[ sp:varName "waterflowinastandardstate"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/core#VolumetricFlowRate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "materialFlowVolume"^^xsd:string
[ sp:varName "watervolumetricflowrate"^^xsd:string
]
] [ sp:object
[ sp:varName "materialFlowVolumeValue"^^xsd:string
[ sp:varName "waterRate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#metre3> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#metre3_hour-1> ;
sp:subject
[ sp:varName "materialFlowVolume"^^xsd:string
[ sp:varName "watervolumetricflowrate"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "injectionWellTestFlowPart"^^xsd:string
[ sp:varName "gasPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ;
sp:subject
[ sp:varName "flowInAStandardState"^^xsd:string
[ sp:varName "flow"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#FlowInAStandardState> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "flowInAStandardState"^^xsd:string
[ sp:varName "gasPart"^^xsd:string
]
] [ sp:object
[ sp:varName "volumetricFlowRate"^^xsd:string
[ sp:varName "gas"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ;
sp:subject
[ sp:varName "gasPart"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#Gas> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "flowInAStandardState"^^xsd:string
[ sp:varName "gas"^^xsd:string
]
] [ sp:object
[ sp:varName "gasPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "gasflowinastandardstate"^^xsd:string
]
] [ sp:object
[ sp:varName "gasvolumetricflowrate"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "gasflowinastandardstate"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#VolumetricFlowRate> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "volumetricFlowRate"^^xsd:string
[ sp:varName "gasvolumetricflowrate"^^xsd:string
]
] [ sp:object
[ sp:varName "injectionWellTestFlowRate"^^xsd:string
[ sp:varName "gasRate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#metre3_hour-1> ;
sp:subject
[ sp:varName "volumetricFlowRate"^^xsd:string
[ sp:varName "gasvolumetricflowrate"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "activityStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
sp:subject
[ sp:varName "wellTest"^^xsd:string
]
])
])
] ;
rhspin:tableHeaders ("Wellbore"^^xsd:string "Test Type"^^xsd:string "Nominally At"^^xsd:string "Fluid"^^xsd:string """Flow Rate
m3/hr"""^^xsd:string """Volume
m3"""^^xsd:string """Density
kg/m3"""^^xsd:string) .
rhspin:tableHeaders ("Well"^^xsd:string "Test Type"^^xsd:string "Nominally At"^^xsd:string """Oil Rate
m3/hr"""^^xsd:string """Gas Rate
m3/hr"""^^xsd:string """Water Rate
m3/hr"""^^xsd:string) .
dpr-tables:WellProductionTest
rdf:type rhspin:TableTemplate ;
......