David Price

Added starting HSE tables

......@@ -283,6 +283,275 @@ dpr-tables:FluidSamples
] ;
rhspin:tableHeaders ("Sample Type"^^xsd:string "Aquisition Date"^^xsd:string "Sampling Facility"^^xsd:string "Fluid Sample Name"^^xsd:string) .
dpr-tables:HSEInformation
rdf:type rhspin:TableTemplate ;
rdfs:label "HSE Information"^^xsd:string ;
rdfs:subClassOf rhspin:DPRTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables ([ sp:varName "facilityName"^^xsd:string
] [ sp:varName "operationType"^^xsd:string
] [ sp:varName "definingType"^^xsd:string
] [ sp:varName "startedAt"^^xsd:string
] [ sp:varName "finishedAt"^^xsd:string
] [ sp:varName "safetyConsideration"^^xsd:string
] [ sp:varName "comment"^^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 "productionReport"^^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
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "productionOperationPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "productionOperationPartType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationPart"^^xsd:string
]
] [ sp:object
[ sp:varName "operationType"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "productionOperationPartType"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "startedAt"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "productionOperationPart"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "finishedAt"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "productionOperationPart"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/production-activity#SafetyConsideration> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionOperationPart"^^xsd:string
]
] [ sp:object
[ sp:varName "safetyConsideration"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#description> ;
sp:subject
[ sp:varName "productionOperationPart"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "productionOperationPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentUpon> ;
sp:subject
[ sp:varName "makeAComment"^^xsd:string
]
] [ sp:object
[ sp:varName "comment"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentMade> ;
sp:subject
[ sp:varName "makeAComment"^^xsd:string
]
])
])
])
] ;
rhspin:tableHeaders ("Facility"^^xsd:string "Operation Type"^^xsd:string "Start"^^xsd:string "Finish"^^xsd:string "Safety Text"^^xsd:string "Comment"^^xsd:string) .
dpr-tables:OperationInformation
rdf:type rhspin:TableTemplate ;
rdfs:label "Operation Information"^^xsd:string ;
rdfs:subClassOf rhspin:DPRTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables ([ sp:varName "facilityName"^^xsd:string
] [ sp:varName "definingType"^^xsd:string
] [ sp:varName "number"^^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 "productionReport"^^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
[ sp:varName "set"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSetOfAllPartsOfDefinedType> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "setDefiningType"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#definingType> ;
sp:subject
[ sp:varName "set"^^xsd:string
]
] [ sp:object
[ sp:varName "definingType"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "setDefiningType"^^xsd:string
]
] [ sp:object
[ sp:varName "number"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#numberInSet> ;
sp:subject
[ sp:varName "set"^^xsd:string
]
])
] ;
rhspin:tableHeaders ("Facility"^^xsd:string "Incident Type"^^xsd:string "Count"^^xsd:string) .
dpr-tables:PersonnelInformation
rdf:type rhspin:TableTemplate ;
rdfs:label "Personnel Information"^^xsd:string ;
......@@ -1019,6 +1288,139 @@ 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:SafetyInformation
rdf:type rhspin:TableTemplate ;
rdfs:label "Safety Information"^^xsd:string ;
rdfs:subClassOf rhspin:DPRTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables ([ sp:varName "facilityName"^^xsd:string
] [ sp:varName "definingType"^^xsd:string
] [ sp:varName "duration"^^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 "productionReport"^^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
[ sp:varName "lastPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#hasLastPartOfTypeRemainingActivityPair> ;
sp:subject
[ sp:varName "productionOperation"^^xsd:string
]
] [ sp:object
[ sp:varName "lastPartDefiningType"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#definingType> ;
sp:subject
[ sp:varName "lastPart"^^xsd:string
]
] [ sp:object
[ sp:varName "definingType"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "lastPartDefiningType"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "remainingActivity"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#remainingActivity> ;
sp:subject
[ sp:varName "lastPart"^^xsd:string
]
] [ sp:object
[ sp:varName "remainingActivityType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "remainingActivity"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#TimeDuration> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "remainingActivityType"^^xsd:string
]
] [ sp:object
[ sp:varName "duration"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#day> ;
sp:subject
[ sp:varName "remainingActivityType"^^xsd:string
]
])
])
] ;
rhspin:tableHeaders ("Facility"^^xsd:string "Incident Type"^^xsd:string """Duration
day"""^^xsd:string) .
dpr-tables:WellFluidLevelTest
rdf:type rhspin:TableTemplate ;
rdfs:label "Well Fluid Level Test"^^xsd:string ;
......
......@@ -47,6 +47,10 @@ WHERE {
<tr><td>{= ?facilityName }</td><td>{= ?beds}</td></tr>
</ui:forEach>
</table>
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:HSEInformation" />
<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" />
......@@ -81,4 +85,6 @@ WHERE {
</ui:group>
\ No newline at end of file
......