David Price

Started Well Test table work

......@@ -315,6 +315,129 @@ dpr-tables:WellInformation
] ;
rhspin:tableHeaders ("Description"^^xsd:string "Oil Net m3"^^xsd:string "Choke %"^^xsd:string "Prod Hours"^^xsd:string) .
dpr-tables:WellTest
rdf:type rhspin:TableTemplate ;
rdfs:label "Well Test8"^^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 "activityStart"^^xsd:string
] [ sp:varName "activityFinish"^^xsd:string
] [ sp:varName "wellTestReasonTypeName"^^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
]
] [ 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 <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
] ;
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
]
])
] [ 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 "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
]
])
])
] ;
rhspin:tableHeaders ("Wellbore"^^xsd:string "Test Type"^^xsd:string "Started or Nominally At"^^xsd:string "Finished At"^^xsd:string "Reason"^^xsd:string) .
_:b2 sp:varName "dailyProductionActivity"^^xsd:string .
_:b1 sp:varName "oilNet"^^xsd:string .
......
......@@ -51,7 +51,7 @@ WHERE {
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellTest" />
</ui:group>
\ No newline at end of file
......