David Price

Merge branch 'master' into dpr2-aug30-11am

......@@ -754,39 +754,197 @@ dpr-tables:ProductionVolumes
] ;
rhspin:tableHeaders ("Field"^^xsd:string "Facility Name"^^xsd:string "Flow Purpose"^^xsd:string "Flow Definition"^^xsd:string "Flow Density"^^xsd:string "Flow Pressure"^^xsd:string "Flow Temperature"^^xsd:string) .
dpr-tables:WellInformation
dpr-tables:WellFluidLevelTest
rdf:type rhspin:TableTemplate ;
rdfs:label "Well Fluid Level Test"^^xsd:string ;
rdfs:subClassOf rhspin:DPRTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables ([ sp:varName "description"^^xsd:string
] _:b1 [ sp:varName "choke"^^xsd:string
] [ sp:varName "prod"^^xsd:string
sp:orderBy ([ sp:varName "wellboreName"^^xsd:string
] [ sp:varName "activityStart"^^xsd:string
]) ;
sp:where ([ sp:object _:b2 ;
sp:resultVariables ([ sp:varName "wellboreName"^^xsd:string
] [ sp:varName "wellTestTypeName"^^xsd:string
] [ sp:varName "wellTestReasonTypeName"^^xsd:string
] [ sp:varName "activityStart"^^xsd:string
] [ sp:varName "wellTestName"^^xsd:string
] [ sp:varName "fluidLevelValue"^^xsd:string
] [ sp:varName "depthUsableWaterValue"^^xsd:string
] [ sp:varName "fluidLevelTestPerformerName"^^xsd:string
]) ;
sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productionReport"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "wellTestReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#WellTestReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellTestReport"^^xsd:string
]
] [ sp:object
[ sp:varName "wellTest"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject
[ sp:varName "report"^^xsd:string
[ sp:varName "wellTestReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyProductionActivity> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellTest> ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object _:b3 ;
sp:subject
[ sp:varName "wellTest"^^xsd:string
]
] [ sp:object
[ sp:varName "wellTestPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject _:b2
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationsActivity> ;
sp:subject
[ sp:varName "wellTest"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#FluidLevelTest> ;
sp:predicate rdf:type ;
sp:subject _:b3
sp:subject
[ sp:varName "wellTestPart"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "wellTestName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "wellTest"^^xsd:string
]
])
] [ sp:object
[ sp:varName "wellborePart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject
[ sp:varName "wellTest"^^xsd:string
]
] [ sp:object
[ sp:varName "wellbore"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "wellborePart"^^xsd:string
]
] [ sp:object
[ sp:varName "wellboreName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "wellbore"^^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 _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-facility#numberOfOwnCrew> ;
sp:elements ([ sp:object
[ sp:varName "wellTestType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellTest"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellTestType> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "act"^^xsd:string
[ sp:varName "wellTestType"^^xsd:string
]
] [ sp:object
[ sp:varName "wellTestTypeName"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "wellTestType"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "wellTestReasonType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellTest"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#WellTestReasonType> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellTestReasonType"^^xsd:string
]
] [ sp:object
[ sp:varName "wellTestReasonTypeName"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "wellTestReasonType"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "wellborePartFluid"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ;
sp:subject
[ sp:varName "wellborePart"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "depthUsableWater"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-well#depthOfBaseUsableWaterFromSurface> ;
sp:subject
[ sp:varName "wellborePartFluid"^^xsd:string
]
] [ sp:object
[ sp:varName "depthUsableWaterValue"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#metre> ;
sp:subject
[ sp:varName "depthUsableWater"^^xsd:string
]
])
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "fluidLevelTestPerformerPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#performedByPersonOrOrganization> ;
sp:subject
[ sp:varName "wellTestPart"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidLevelTestPerformerWhole"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "fluidLevelTestPerformerPart"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidLevelTestPerformerName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "fluidLevelTestPerformerWhole"^^xsd:string
]
])
])
] ;
rhspin:tableHeaders ("Description"^^xsd:string "Oil Net m3"^^xsd:string "Choke %"^^xsd:string "Prod Hours"^^xsd:string) .
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) .
dpr-tables:WellInjectionTest
rdf:type rhspin:TableTemplate ;
......@@ -1310,9 +1468,9 @@ dpr-tables:WellInjectionTestResults
m3"""^^xsd:string """Density
kg/m3"""^^xsd:string) .
dpr-tables:WellTest
dpr-tables:WellProductionTest
rdf:type rhspin:TableTemplate ;
rdfs:label "Well Test Report"^^xsd:string ;
rdfs:label "Well Production Test"^^xsd:string ;
rdfs:subClassOf rhspin:DPRTableTemplates ;
spin:body
[ rdf:type sp:Select ;
......@@ -1321,13 +1479,9 @@ dpr-tables:WellTest
]) ;
sp:resultVariables ([ sp:varName "wellboreName"^^xsd:string
] [ sp:varName "wellTestTypeName"^^xsd:string
] [ sp:varName "activityStart"^^xsd:string
] [ sp:varName "predecessorAt"^^xsd:string
] [ sp:varName "validPredecessorAt"^^xsd:string
] [ sp:varName "wellTestReasonTypeName"^^xsd:string
] [ sp:varName "depthFromTopValue"^^xsd:string
] [ sp:varName "depthUsableWaterValue"^^xsd:string
] [ sp:varName "fluidLevelTestPerformerName"^^xsd:string
] [ sp:varName "activityStart"^^xsd:string
] [ sp:varName "wellTestName"^^xsd:string
]) ;
sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
sp:predicate rdf:type ;
......@@ -1359,6 +1513,27 @@ dpr-tables:WellTest
[ sp:varName "wellTest"^^xsd:string
]
] [ sp:object
[ sp:varName "wellTestPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject
[ sp:varName "wellTest"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#ProductionWellTest> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellTestPart"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "wellTestName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "wellTest"^^xsd:string
]
])
] [ sp:object
[ sp:varName "wellborePart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
......@@ -1372,11 +1547,6 @@ dpr-tables:WellTest
sp:subject
[ sp:varName "wellborePart"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellbore"^^xsd:string
]
] [ sp:object
[ sp:varName "wellboreName"^^xsd:string
] ;
......@@ -1393,160 +1563,262 @@ dpr-tables:WellTest
[ sp:varName "wellTest"^^xsd:string
]
])
] [ sp:object
[ sp:varName "wellTestType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellTest"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellTestType> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellTestType"^^xsd:string
]
] [ sp:object
[ sp:varName "wellTestTypeName"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "wellTestType"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "wellTestReasonType"^^xsd:string
[ sp:varName "wellTestType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellTest"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#WellTestReasonType> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellTestType> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellTestReasonType"^^xsd:string
[ sp:varName "wellTestType"^^xsd:string
]
] [ sp:object
[ sp:varName "wellTestReasonTypeName"^^xsd:string
[ sp:varName "wellTestTypeName"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "wellTestReasonType"^^xsd:string
[ sp:varName "wellTestType"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "predecessor"^^xsd:string
[ sp:varName "wellTestReasonType"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#hasPredecessor> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellTest"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#WellTestReasonType> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellTestReasonType"^^xsd:string
]
] [ sp:object
[ sp:varName "predecessorAt"^^xsd:string
[ sp:varName "wellTestReasonTypeName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "predecessor"^^xsd:string
[ sp:varName "wellTestReasonType"^^xsd:string
]
])
])
] ;
rhspin:tableHeaders ("Wellbore"^^xsd:string "Test Type"^^xsd:string "Reason"^^xsd:string "Started or Nominally At"^^xsd:string "Description "^^xsd:string) .
dpr-tables:WellTest
rdf:type rhspin:TableTemplate ;
rdfs:label "Well Test Report Summary"^^xsd:string ;
rdfs:subClassOf rhspin:DPRTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:orderBy ([ sp:varName "wellboreName"^^xsd:string
] [ sp:varName "activityStart"^^xsd:string
]) ;
sp:resultVariables ([ sp:varName "wellboreName"^^xsd:string
] [ sp:varName "wellTestTypeName"^^xsd:string
] [ sp:varName "wellTestPartActiivityName"^^xsd:string
] [ sp:varName "wellTestReasonTypeName"^^xsd:string
] [ sp:varName "activityStart"^^xsd:string
] [ sp:varName "durationValue"^^xsd:string
] [ sp:varName "wellTestName"^^xsd:string
] [ sp:varName "predecessorAt"^^xsd:string
] [ sp:varName "validPredecessorAt"^^xsd:string
]) ;
sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productionReport"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "wellTestReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#WellTestReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellTestReport"^^xsd:string
]
] [ sp:object
[ sp:varName "wellTest"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject
[ sp:varName "wellTestReport"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "validPredecessor"^^xsd:string
[ sp:varName "wellTestName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#hasValidPredecessor> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "wellTest"^^xsd:string
]
] [ sp:object
[ sp:varName "validPredecessorAt"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
sp:subject
[ sp:varName "validPredecessor"^^xsd:string
]
])
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellTest> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellTest"^^xsd:string
]
] [ sp:object
[ sp:varName "wellborePart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject
[ sp:varName "wellTest"^^xsd:string
]
] [ sp:object
[ sp:varName "wellbore"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "wellborePart"^^xsd:string
]
] [ sp:object
[ sp:varName "wellboreName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "wellbore"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "wellborePartFluid"^^xsd:string
[ sp:varName "wellTestPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject
[ sp:varName "wellborePart"^^xsd:string
[ sp:varName "wellTest"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "depthFromTop"^^xsd:string
[ sp:varName "duration"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-well#depthOfFluidSurfaceFromTopOfWell> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellborePartFluid"^^xsd:string
[ sp:varName "wellTestPart"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#TimeDuration> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "duration"^^xsd:string
]
] [ sp:object
[ sp:varName "depthFromTopValue"^^xsd:string
[ sp:varName "durationValue"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#metre> ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hour> ;
sp:subject
[ sp:varName "depthFromTop"^^xsd:string
[ sp:varName "duration"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "depthUsableWater"^^xsd:string
[ sp:varName "productionActivity"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-well#depthOfBaseUsableWaterFromSurface> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellborePartFluid"^^xsd:string
[ sp:varName "wellTestPart"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> ;
sp:predicate rdfs:subClassOf ;
sp:subject
[ sp:varName "productionActivity"^^xsd:string
]
] [ sp:object
[ sp:varName "depthUsableWaterValue"^^xsd:string
[ sp:varName "wellTestPartActiivityName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#metre> ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "depthUsableWater"^^xsd:string
[ sp:varName "productionActivity"^^xsd:string
]
])
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "fluidLevelTest"^^xsd:string
[ sp:varName "activityStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
sp:subject
[ sp:varName "wellTest"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#FluidLevelTest> ;
])
] [ sp:object
[ sp:varName "wellTestType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellTest"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellTestType> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellTestType"^^xsd:string
]
] [ sp:object
[ sp:varName "wellTestTypeName"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "wellTestType"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "wellTestReasonType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "fluidLevelTest"^^xsd:string
[ sp:varName "wellTest"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#WellTestReasonType> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellTestReasonType"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidLevelTestPerformerPart"^^xsd:string
[ sp:varName "wellTestReasonTypeName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#performedByPersonOrOrganization> ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "wellTestReasonType"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "predecessor"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#hasPredecessor> ;
sp:subject
[ sp:varName "fluidLevelTest"^^xsd:string
[ sp:varName "wellTest"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidLevelTestPerformerWhole"^^xsd:string
[ sp:varName "predecessorAt"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
sp:subject
[ sp:varName "fluidLevelTestPerformerPart"^^xsd:string
[ sp:varName "predecessor"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "validPredecessor"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#hasValidPredecessor> ;
sp:subject
[ sp:varName "wellTest"^^xsd:string
]
] [ sp:object
[ sp:varName "fluidLevelTestPerformerName"^^xsd:string
[ sp:varName "validPredecessorAt"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
sp:subject
[ sp:varName "fluidLevelTestPerformerWhole"^^xsd:string
[ sp:varName "validPredecessor"^^xsd:string
]
])
])
] ;
rhspin:tableHeaders ("Wellbore"^^xsd:string "Test Type"^^xsd:string "Started or Nominally At"^^xsd:string "Predecessor At"^^xsd:string "Last Valid At"^^xsd:string "Reason"^^xsd:string "Fluid Surface Depth m"^^xsd:string "Usable Water Depth"^^xsd:string "Fluid Level Test Performer"^^xsd:string) .
_:b2 sp:varName "dailyProductionActivity"^^xsd:string .
_:b1 sp:varName "oilNet"^^xsd:string .
_:b3 sp:varName "productionOperationsActivity"^^xsd:string .
rhspin:tableHeaders ("Wellbore"^^xsd:string "Test Type"^^xsd:string "Activity"^^xsd:string "Reason"^^xsd:string "Started or Nominally At"^^xsd:string "Duration hr"^^xsd:string "Description "^^xsd:string "Predecessor At"^^xsd:string "Last Valid At"^^xsd:string) .
......
......@@ -22,62 +22,7 @@ arg:kindRef
rdfs:label "kind ref"^^xsd:string ;
rdfs:subPropertyOf sp:arg .
<http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct>
spin:constraint
[ rdf:type mpr-proxy-constraints:CheckName ;
arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ;
arg:type <http://www.reportinghub.no/ep/schema/facility#Facility>
] ;
spin:constraint
[ rdf:type mpr-proxy-constraints:CheckName ;
arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ;
arg:type <http://www.reportinghub.no/ep/schema/facility#Facility>
] ;
spin:constraint
[ rdf:type mpr-proxy-constraints:CheckId ;
arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ;
arg:type <http://www.reportinghub.no/ep/schema/well#WellBore>
] ;
spin:constraint
[ rdf:type mpr-proxy-constraints:CheckId ;
arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ;
arg:type <http://www.reportinghub.no/ep/schema/facility#Facility>
] ;
spin:constraint
[ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ;
arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ;
arg:type <http://www.reportinghub.no/ep/schema/facility#Field>
] ;
spin:constraint
[ rdf:type mpr-proxy-constraints:CheckId ;
arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ;
arg:type <http://www.reportinghub.no/ep/schema/facility#Field>
] ;
spin:constraint
[ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ;
arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ;
arg:type <http://www.reportinghub.no/ep/schema/well#WellBore>
] ;
spin:constraint
[ rdf:type mpr-proxy-constraints:CheckId ;
arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ;
arg:type <http://www.reportinghub.no/ep/schema/facility#Facility>
] ;
spin:constraint
[ rdf:type mpr-proxy-constraints:CheckName ;
arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ;
arg:type <http://www.reportinghub.no/ep/schema/facility#Field>
] ;
spin:constraint
[ rdf:type mpr-proxy-constraints:CheckName ;
arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ;
arg:type <http://www.reportinghub.no/ep/schema/well#WellBore>
] ;
spin:constraint
[ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ;
arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ;
arg:type <http://www.reportinghub.no/ep/schema/facility#Platform>
] ;
<http://www.epim.no/schemas/mprml/1#Cs_wellContext>
spin:constraint
[ rdf:type sp:Construct ;
sp:templates ([ sp:object spin:ConstraintViolation ;
......@@ -89,34 +34,65 @@ arg:kindRef
sp:predicate rdfs:label ;
sp:subject _:b1
]) ;
sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:where ([ sp:object
[ sp:varName "struct"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#fieldRef> ;
sp:subject spin:_this
] [ sp:object "NPD"^^xsd:string ;
sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ;
sp:subject
[ sp:varName "struct"^^xsd:string
]
] [ sp:object
[ sp:varName "fieldName"^^xsd:string
[ sp:varName "name"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
sp:subject
[ sp:varName "struct"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:npdIndividualByName ;
arg:name
[ sp:varName "name"^^xsd:string
] ;
arg:type <http://www.reportinghub.no/ep/schema/facility#Field>
] ;
sp:variable
[ sp:varName "npd"^^xsd:string
]
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:not ;
sp:arg1 [ rdf:type rhspin:currentUserIsOperatorOfFieldWithName ;
arg:fieldName
[ sp:varName "fieldName"^^xsd:string
sp:arg1 [ rdf:type sp:bound ;
sp:arg1 [ sp:varName "npd"^^xsd:string
]
]
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type fn:concat ;
sp:arg1 "Your company is not the operator of field with name " ;
sp:arg2 [ sp:varName "fieldName"^^xsd:string
sp:arg1 "[RH-19] Invalid Field name " ;
sp:arg2 [ sp:varName "name"^^xsd:string
]
] ;
sp:variable
[ sp:varName "message"^^xsd:string
]
])
] .
<http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct>
spin:constraint
[ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ;
arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ;
arg:type <http://www.reportinghub.no/ep/schema/facility#Platform>
] ;
spin:constraint
[ rdf:type mpr-proxy-constraints:CheckId ;
arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ;
arg:type <http://www.reportinghub.no/ep/schema/facility#Facility>
] ;
spin:constraint
[ rdf:type sp:Construct ;
......@@ -175,9 +151,94 @@ arg:kindRef
])
] ;
spin:constraint
[ rdf:type sp:Construct ;
sp:templates ([ sp:object spin:ConstraintViolation ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object
[ sp:varName "message"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject _:b3
]) ;
sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ;
sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "fieldName"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject spin:_this
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:not ;
sp:arg1 [ rdf:type rhspin:currentUserIsOperatorOfFieldWithName ;
arg:fieldName
[ sp:varName "fieldName"^^xsd:string
]
]
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type fn:concat ;
sp:arg1 "Your company is not the operator of field with name " ;
sp:arg2 [ sp:varName "fieldName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "message"^^xsd:string
]
])
] ;
spin:constraint
[ rdf:type mpr-proxy-constraints:CheckId ;
arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ;
arg:type <http://www.reportinghub.no/ep/schema/well#WellBore>
] ;
spin:constraint
[ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ;
arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ;
arg:type <http://www.reportinghub.no/ep/schema/facility#Field>
] ;
spin:constraint
[ rdf:type mpr-proxy-constraints:CheckName ;
arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ;
arg:type <http://www.reportinghub.no/ep/schema/facility#Facility>
] ;
spin:constraint
[ rdf:type mpr-proxy-constraints:CheckId ;
arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ;
arg:type <http://www.reportinghub.no/ep/schema/facility#Facility>
] ;
spin:constraint
[ rdf:type mpr-proxy-constraints:CheckName ;
arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ;
arg:type <http://www.reportinghub.no/ep/schema/well#WellBore>
] ;
spin:constraint
[ rdf:type mpr-proxy-constraints:CheckName ;
arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ;
arg:type <http://www.reportinghub.no/ep/schema/facility#Facility>
] ;
spin:constraint
[ rdf:type mpr-proxy-constraints:CheckName ;
arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ;
arg:type <http://www.reportinghub.no/ep/schema/facility#Field>
] ;
spin:constraint
[ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ;
arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ;
arg:type <http://www.reportinghub.no/ep/schema/facility#Facility>
] ;
spin:constraint
[ rdf:type mpr-proxy-constraints:CheckId ;
arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ;
arg:type <http://www.reportinghub.no/ep/schema/facility#Field>
] ;
spin:constraint
[ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ;
arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ;
arg:type <http://www.reportinghub.no/ep/schema/well#WellBore>
] .
<http://www.epim.no/schemas/mprml/1#Obj_productVolume>
......@@ -185,12 +246,12 @@ arg:kindRef
[ rdf:type sp:Construct ;
sp:templates ([ sp:object spin:ConstraintViolation ;
sp:predicate rdf:type ;
sp:subject _:b3
sp:subject _:b4
] [ sp:object
[ sp:varName "message"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject _:b3
sp:subject _:b4
]) ;
sp:where ([ rdf:type sp:TriplePath ;
sp:object
......@@ -236,7 +297,7 @@ arg:kindRef
<http://www.reportinghub.no/ep/spin/mpr-proxy-constraints>
rdf:type owl:Ontology ;
rdfs:comment "Collection of constraints that are executed on the SXML proxy ontology for MPR schema based reports."^^xsd:string ;
owl:imports <http://www.reportinghub.no/spin/rh> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> ;
owl:imports <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/spin/rh> ;
owl:versionInfo "0.1.0"^^xsd:string .
mpr-proxy-constraints:CheckId
......@@ -247,12 +308,12 @@ mpr-proxy-constraints:CheckId
[ rdf:type sp:Construct ;
sp:templates ([ sp:object spin:ConstraintViolation ;
sp:predicate rdf:type ;
sp:subject _:b4
sp:subject _:b5
] [ sp:object
[ sp:varName "message"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject _:b4
sp:subject _:b5
]) ;
sp:where ([ sp:object
[ sp:varName "kindRef"^^xsd:string
......@@ -314,12 +375,12 @@ mpr-proxy-constraints:CheckIdAndNameMatch
[ rdf:type sp:Construct ;
sp:templates ([ sp:object spin:ConstraintViolation ;
sp:predicate rdf:type ;
sp:subject _:b5
sp:subject _:b6
] [ sp:object
[ sp:varName "message"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject _:b5
sp:subject _:b6
]) ;
sp:where ([ sp:object
[ sp:varName "kindRef"^^xsd:string
......@@ -414,12 +475,12 @@ mpr-proxy-constraints:CheckName
[ rdf:type sp:Construct ;
sp:templates ([ sp:object spin:ConstraintViolation ;
sp:predicate rdf:type ;
sp:subject _:b6
sp:subject _:b7
] [ sp:object
[ sp:varName "message"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject _:b6
sp:subject _:b7
]) ;
sp:where ([ sp:object
[ sp:varName "kindRef"^^xsd:string
......@@ -482,13 +543,13 @@ mpr-proxy-constraints:ConstraintTemplates
rdfs:subClassOf spin:ConstructTemplates ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The NPD type that the individual needs to have."^^xsd:string ;
spl:predicate arg:type ;
spl:valueType rdfs:Class
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The kind reference value."^^xsd:string ;
spl:predicate arg:kindRef ;
spl:valueType <http://www.epim.no/schemas/mprml/1#ReportingFacility>
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "The NPD type that the individual needs to have."^^xsd:string ;
spl:predicate arg:type ;
spl:valueType rdfs:Class
] .
......
......@@ -63,4 +63,12 @@ WHERE {
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellInjectionTest" />
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellInjectionTestResults" />
<h2>Well Fluid Level Test Information</h2>
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellFluidLevelTest" />
<h2>Well Production Test Information</h2>
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellProductionTest" />
</ui:group>
\ No newline at end of file
......