David Price

Added Marine Operations and Marine Ship Operations section and normalizeDatedComment function

# baseURI: http://www.reportinghub.no/ep/spin/dpr-tables
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/schema/1.0/production
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.reportinghub.no/spin/rh
@prefix dpr-tables: <http://www.reportinghub.no/ep/spin/dpr-tables#> .
@prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> .
@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
......@@ -17,7 +19,7 @@
<http://www.reportinghub.no/ep/spin/dpr-tables>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/spin/rh> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://spinrdf.org/spin> ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/spin/rh> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
dpr-tables:ExportVolumes
......@@ -3146,6 +3148,580 @@ dpr-tables:ProductionOperationActivity
] ;
rhspin:tableHeaders ("Facility"^^xsd:string "Activity Type"^^xsd:string "Started or Nominally At"^^xsd:string "Finished At"^^xsd:string "Desciption"^^xsd:string) .
dpr-tables:ProductionOperationCargoShip
rdf:type rhspin:TableTemplate ;
rdfs:label "Cargo Ship Operation 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 "activityType"^^xsd:string
] [ sp:varName "activityStart"^^xsd:string
] [ sp:varName "activityFinish"^^xsd:string
] [ sp:varName "activityDescription"^^xsd:string
] [ sp:varName "shipName"^^xsd:string
] [ sp:varName "captainName"^^xsd:string
] [ sp:varName "cargoDescription"^^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#CargoShipOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "operationPart"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "activityType"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject <http://www.reportinghub.no/ep/schema/production-activity#CargoShipOperation>
])
] [ 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 "activityStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
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 "activityDescription"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#description> ;
sp:subject
[ sp:varName "operationPart"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ 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 "cargoshipoperation"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-activity#CargoShipOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "cargoshipoperation"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalpartofashiporboat"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#performedByShip> ;
sp:subject
[ sp:varName "cargoshipoperation"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-facility#TemporalPartOfAShipOrBoat> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "temporalpartofashiporboat"^^xsd:string
]
] [ sp:object
[ sp:varName "ship"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "temporalpartofashiporboat"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/production-facility#Ship> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "ship"^^xsd:string
]
] [ sp:object
[ sp:varName "shipName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "ship"^^xsd:string
]
] [ sp:object
[ sp:varName "person"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-equipment#hasCaptain> ;
sp:subject
[ sp:varName "temporalpartofashiporboat"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Person> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "person"^^xsd:string
]
] [ sp:object
[ sp:varName "wholelifeperson"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "person"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/organization#WholeLifePerson> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wholelifeperson"^^xsd:string
]
] [ sp:object
[ sp:varName "captainName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "wholelifeperson"^^xsd:string
]
] [ sp:object
[ sp:varName "quantityofmaterial"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#cargoLoaded> ;
sp:subject
[ sp:varName "cargoshipoperation"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityofmaterial"^^xsd:string
]
] [ sp:object
[ sp:varName "cargoDescription"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#description> ;
sp:subject
[ sp:varName "quantityofmaterial"^^xsd:string
]
])
])
] ;
rhspin:tableHeaders ("Facility"^^xsd:string "Activity Type"^^xsd:string "Started or Nominally At"^^xsd:string "Finished At"^^xsd:string "Desciption"^^xsd:string "Ship"^^xsd:string "Captain"^^xsd:string "Cargo Description"^^xsd:string) .
dpr-tables:ProductionOperationMarine
rdf:type rhspin:TableTemplate ;
rdfs:label "Marine Operation 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 "marineoperationPartTypeName"^^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#MarineOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "operationPart"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "marineoperationPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject
[ sp:varName "operationPart"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "marineoperationPartType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "marineoperationPart"^^xsd:string
]
] [ sp:object
[ sp:varName "marineoperationPartTypeName"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "marineoperationPartType"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "marineoperationPart"^^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 "marineoperationPart"^^xsd:string
]
] ;
sp:variable
[ sp:varName "commentText"^^xsd:string
]
])
])
])
] ;
rhspin:tableHeaders ("Facility"^^xsd:string "Marine Op Type"^^xsd:string "Dated Comment"^^xsd:string) .
dpr-tables:ProductionOperationMarineShip
rdf:type rhspin:TableTemplate ;
rdfs:label "Marine Ship Operation 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 "marineoperationPartTypeName"^^xsd:string
] [ sp:varName "shipName"^^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#MarineOperation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "operationPart"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "operationPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "marineoperationPart"^^xsd:string
]
] [ sp:object
[ sp:varName "marineoperationPartType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "marineoperationPart"^^xsd:string
]
] [ sp:object
[ sp:varName "marineoperationPartTypeName"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "marineoperationPartType"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "temporalpartofashiporboat"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#performedByShip> ;
sp:subject
[ sp:varName "marineoperationPart"^^xsd:string
]
] [ sp:object
[ sp:varName "ship"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "temporalpartofashiporboat"^^xsd:string
]
] [ sp:object
[ sp:varName "shipName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "ship"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "shipOperationPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject
[ sp:varName "marineoperationPart"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "shipOperationPart"^^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 "shipOperationPart"^^xsd:string
]
] ;
sp:variable
[ sp:varName "commentText"^^xsd:string
]
])
])
])
] ;
rhspin:tableHeaders ("Facility"^^xsd:string "Marine Op Type"^^xsd:string "Ship"^^xsd:string "Dated Comment"^^xsd:string) .
dpr-tables:ProductionVolumes
rdf:type rhspin:TableTemplate ;
rdfs:label "Production Volume List"^^xsd:string ;
......
......@@ -205,6 +205,86 @@ ep-mpr-spin-lib:buildWellTestTypeURI
])
] .
ep-mpr-spin-lib:normalizeDatedComment
rdf:type spin:Function ;
rdfs:subClassOf ep-mpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables ([ sp:varName "normalizedDatedComment"^^xsd:string
]) ;
sp:where ([ sp:object spin:_arg1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentUpon> ;
sp:subject
[ sp:varName "comment"^^xsd:string
]
] [ sp:object
[ sp:varName "commentText"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#commentMade> ;
sp:subject
[ sp:varName "comment"^^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 spin:_arg1
])
] [ 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 spin:_arg1
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:bound ;
sp:arg1 [ sp:varName "startedAt"^^xsd:string
]
] ;
sp:arg2 [ sp:varName "startedAt"^^xsd:string
] ;
sp:arg3 "No Start"
] ;
sp:variable
[ sp:varName "started"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:bound ;
sp:arg1 [ sp:varName "finishedAt"^^xsd:string
]
] ;
sp:arg2 [ sp:varName "finishedAt"^^xsd:string
] ;
sp:arg3 "No Finish"
] ;
sp:variable
[ sp:varName "finished"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type fn:concat ;
sp:arg1 [ sp:varName "commentText"^^xsd:string
] ;
sp:arg2 " (" ;
sp:arg3 [ sp:varName "started"^^xsd:string
] ;
sp:arg4 " TO " ;
sp:arg5 [ sp:varName "finished"^^xsd:string
] ;
sp:arg6 " )"
] ;
sp:variable
[ sp:varName "normalizedDatedComment"^^xsd:string
]
])
] .
ep-mpr-spin-lib:selectAverageAmountOfMaterialFlag
rdf:type spin:Function ;
rdfs:label "select AverageAmountOfMaterialFlag"^^xsd:string ;
......
......@@ -61,6 +61,13 @@ WHERE {
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionOperationActivity" />
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionOperationCargoShip" />
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionOperationMarine" />
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionOperationMarineShip" />
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionVolumes" />
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductFlows" />
......