David Price

Added near-complete shutdown production section

......@@ -3722,6 +3722,283 @@ dpr-tables:ProductionOperationMarineShip
] ;
rhspin:tableHeaders ("Facility"^^xsd:string "Marine Op Type"^^xsd:string "Ship"^^xsd:string "Dated Comment"^^xsd:string) .
dpr-tables:ProductionOperationShutdown
rdf:type rhspin:TableTemplate ;
rdfs:label "Shutdown Production Activities"^^xsd:string ;
rdfs:subClassOf rhspin:DPRTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:orderBy ([ sp:varName "facilityName"^^xsd:string
] [ sp:varName "activityStart"^^xsd:string
]) ;
sp:resultVariables ([ sp:varName "facilityName"^^xsd:string
] [ sp:varName "shutdownDuration"^^xsd:string
] [ sp:varName "activityStart"^^xsd:string
] [ sp:varName "activityFinish"^^xsd:string
] [ sp:varName "shutdownDescription"^^xsd:string
] [ sp:varName "volumeGasValue"^^xsd:string
] [ sp:varName "volumeOilValue"^^xsd:string
] [ sp:varName "commentText"^^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 "productionOperationReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject
[ sp:varName "productionOperationReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "temporalPartOfFacility"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Field> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "productionFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "productionOperationReport"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "productionOperationInstallationReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationInstallationReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationInstallationReport"^^xsd:string
]
] [ sp:object
[ sp:varName "installationPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject
[ sp:varName "productionOperationInstallationReport"^^xsd:string
]
] [ sp:object
[ sp:varName "installationPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#onProductionFacility> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "productionOperation"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "operationPart"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ShutdownProduction> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "operationPart"^^xsd:string
]
] [ sp:object
[ sp:varName "timeduration"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "operationPart"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#TimeDuration> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "timeduration"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizePropertyUnitAndValue ;
sp:arg1 [ sp:varName "timeduration"^^xsd:string
]
] ;
sp:variable
[ sp:varName "shutdownDuration"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "datedCommentActivity"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject
[ sp:varName "operationPart"^^xsd:string
]
] [ sp:object
[ sp:varName "datedCommentActivity"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentUpon> ;
sp:subject
[ sp:varName "commentExists"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:normalizeDatedComment ;
sp:arg1 [ sp:varName "datedCommentActivity"^^xsd:string
]
] ;
sp:variable
[ sp:varName "commentText"^^xsd:string
]
])
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "lossGas"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject
[ sp:varName "operationPart"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationProcessingLoss> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "lossGas"^^xsd:string
]
] [ sp:object
[ sp:varName "gas"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#processingLost> ;
sp:subject
[ sp:varName "lossGas"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#Gas> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "gas"^^xsd:string
]
] [ sp:object
[ sp:varName "volumeGas"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "gas"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "volumeGas"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizePropertyUnitAndValue ;
sp:arg1 [ sp:varName "volumeGas"^^xsd:string
]
] ;
sp:variable
[ sp:varName "volumeGasValue"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "lossOil"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject
[ sp:varName "operationPart"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#ProductionOperationProcessingLoss> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "lossOil"^^xsd:string
]
] [ sp:object
[ sp:varName "oil"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#processingLost> ;
sp:subject
[ sp:varName "lossOil"^^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 "volumeOil"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "oil"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "volumeOil"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizePropertyUnitAndValue ;
sp:arg1 [ sp:varName "volumeOil"^^xsd:string
]
] ;
sp:variable
[ sp:varName "volumeOilValue"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "activityStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "operationPart"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "activityFinish"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "operationPart"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "shutdownDescription"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#description> ;
sp:subject
[ sp:varName "operationPart"^^xsd:string
]
])
])
] ;
rhspin:tableHeaders ("Facility"^^xsd:string "Duration"^^xsd:string "Start"^^xsd:string "Finish"^^xsd:string "Description"^^xsd:string "Gas Loss"^^xsd:string "Oil Loss"^^xsd:string "Dated Comment"^^xsd:string) .
dpr-tables:ProductionVolumes
rdf:type rhspin:TableTemplate ;
rdfs:label "Production Volume List"^^xsd:string ;
......
......@@ -58,9 +58,8 @@ WHERE {
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:SafetyInformation" />
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:OperationInformation" />
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionOperationActivity" />
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionOperationShutdown" />
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionOperationCargoShip" />
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionOperationMarine" />
......