MonkeyChap

Various tweaks and additions for production operations stuff

# Saved by TopBraid on Thu Oct 13 13:06:48 BST 2011
# Saved by TopBraid on Thu Oct 13 14:40:18 BST 2011
# baseURI: http://www.reportinghub.no/ep/schema/1.0/production-activity
# imports: http://www.reportinghub.no/ep/schema/1.0/production-facility
# imports: http://www.reportinghub.no/ep/schema/1.0/well
......@@ -19,15 +19,20 @@
owl:imports <http://www.reportinghub.no/ep/schema/1.0/flow> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/production-facility> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
<http://www.reportinghub.no/ep/schema/activity#ProductionActivityToDate>
rdf:type owl:Class ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
<http://www.reportinghub.no/ep/schema/activity#DailyProductionActivity>
rdf:type ep-prodact:ProductionOperationClassByDuration .
<http://www.reportinghub.no/ep/schema/activity#MonthlyProductionActivity>
rdf:type ep-prodact:ProductionOperationClassByDuration .
<http://www.reportinghub.no/ep/schema/activity#ProductionWellTest>
rdf:type owl:Class ;
rdfs:label "production well test"^^xsd:string ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> , <http://www.reportinghub.no/ep/schema/activity#WellTest> .
<http://www.reportinghub.no/ep/schema/activity#WeeklyProductionActivity>
rdf:type ep-prodact:ProductionOperationClassByDuration .
<http://www.reportinghub.no/ep/schema/activity#hasFlow>
rdf:type owl:ObjectProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/activity#Activity> ;
......@@ -79,19 +84,19 @@ ep-prodact:AirTrafficOperation
rdfs:subClassOf ep-prodact:PartOfProductionActivity .
ep-prodact:AnnualProductionActivity
rdf:type owl:Class ;
rdf:type ep-prodact:ProductionOperationClassByDuration , owl:Class ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
ep-prodact:AnnualProductionActivityToEndOfReportingPeriod
rdf:type owl:Class ;
rdf:type ep-prodact:ProductionOperationClassByDuration , owl:Class ;
rdfs:subClassOf ep-prodact:AnnualProductionActivity .
ep-prodact:AnnualProductionOperationsActivityToEndOfReportingPeriod
rdf:type owl:Class ;
rdf:type ep-prodact:ProductionOperationClassByDuration , owl:Class ;
rdfs:subClassOf ep-prodact:AnnualProductionActivityToEndOfReportingPeriod , ep-prodact:ProductionOperationsActivity .
ep-prodact:AnnualProductionVolumeActivityToEndOfReportingPeriod
rdf:type owl:Class ;
rdf:type ep-prodact:ProductionOperationClassByDuration , owl:Class ;
rdfs:subClassOf ep-prodact:AnnualProductionActivityToEndOfReportingPeriod , ep-prodact:ProductionVolumeActivity .
ep-prodact:ConstructionOperation
......@@ -99,15 +104,15 @@ ep-prodact:ConstructionOperation
rdfs:subClassOf ep-prodact:PartOfProductionActivity .
ep-prodact:CumulativeProductionActivitySinceProductionBegan
rdf:type owl:Class ;
rdf:type ep-prodact:ProductionOperationClassByDuration , owl:Class ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
ep-prodact:DailyProductionOperationsActivity
rdf:type owl:Class ;
rdf:type ep-prodact:ProductionOperationClassByDuration , owl:Class ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#DailyProductionActivity> , ep-prodact:ProductionOperationsActivity .
ep-prodact:DailyProductionVolumeActivity
rdf:type owl:Class ;
rdf:type ep-prodact:ProductionOperationClassByDuration , owl:Class ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#DailyProductionActivity> , ep-prodact:ProductionVolumeActivity .
ep-prodact:Deviation
......@@ -134,6 +139,14 @@ ep-prodact:FlowLine-Production
rdf:type owl:Class ;
rdfs:subClassOf ep-prodact:FlowLine .
ep-prodact:FusionOfHSEActivitiesOverPeriod
rdf:type owl:Class ;
rdfs:subClassOf ep-prodact:FusionOfPartsOfProductionActivityOverPeriod .
ep-prodact:FusionOfPartsOfProductionActivityOverPeriod
rdf:type owl:Class ;
rdfs:subClassOf ep-prodact:PartOfProductionActivity .
ep-prodact:HealthSafetyAndEnvironmentActivity
rdf:type owl:Class ;
rdfs:subClassOf ep-prodact:PartOfProductionActivity .
......@@ -179,7 +192,7 @@ ep-prodact:MedicalTreatmentInjury
rdfs:subClassOf ep-prodact:Injury .
ep-prodact:MonthlyProductionActivityToEndOfReportingPeriod
rdf:type owl:Class ;
rdf:type ep-prodact:ProductionOperationClassByDuration , owl:Class ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#MonthlyProductionActivity> .
ep-prodact:NearMiss
......@@ -199,9 +212,13 @@ ep-prodact:PowerStationFailure
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#Activity> .
ep-prodact:ProductionActivityLastingLessThanAYear
rdf:type owl:Class ;
rdf:type ep-prodact:ProductionOperationClassByDuration , owl:Class ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
ep-prodact:ProductionOperationClassByDuration
rdf:type rdfs:Class ;
rdfs:subClassOf owl:Class .
ep-prodact:ProductionOperationsActivity
rdf:type owl:Class ;
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> .
......@@ -258,6 +275,11 @@ ep-prodact:WorkingUnderPermitWithSJA
rdf:type owl:Class , ep-prodact:SafetyActivityType ;
rdfs:subClassOf ep-prodact:WorkingUnderPermit .
ep-prodact:classificationBySafetyActivityType
rdf:type owl:ObjectProperty ;
rdfs:domain ep-prodact:FusionOfHSEActivitiesOverPeriod ;
rdfs:range ep-prodact:SafetyActivityType .
ep-prodact:hasPart
rdf:type owl:ObjectProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> ;
......@@ -268,6 +290,11 @@ ep-prodact:involvedVessel
rdfs:domain ep-prodact:MarineOperation ;
rdfs:range <http://www.reportinghub.no/ep/schema/production-facility#ShipOrBoat> .
ep-prodact:involvement
rdf:type owl:ObjectProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/activity#Activity> ;
rdfs:range <http://www.reportinghub.no/ep/schema/core#PhysicalObject> .
ep-prodact:noOfDrillsOrExcercises
rdf:type owl:DatatypeProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> ;
......@@ -318,6 +345,11 @@ ep-prodact:noOfSpillsOrLeaks
rdfs:domain <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> ;
rdfs:range xsd:integer .
ep-prodact:productionActivityPeriodClassification
rdf:type owl:ObjectProperty ;
rdfs:domain ep-prodact:FusionOfPartsOfProductionActivityOverPeriod ;
rdfs:range ep-prodact:ProductionOperationClassByDuration .
ep-prodact:totalNoOfPermitsIssued
rdf:type owl:DatatypeProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/activity#ProductionActivity> ;
......
# Saved by TopBraid on Thu Oct 13 13:05:22 BST 2011
# Saved by TopBraid on Thu Oct 13 14:16:00 BST 2011
# baseURI: http://www.reportinghub.no/ep/dpr/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/schema/1.0/geography
# imports: http://www.reportinghub.no/ep/schema/1.0/well
......@@ -44,8 +44,7 @@ arg2 is report date"""^^xsd:string ;
sp:arg1 spin:_arg1
] ;
sp:arg2 "$" ;
sp:arg3 [ sp:varName "docDate"^^xsd:string
]
sp:arg3 spin:_arg2
]
] ;
sp:variable _:b1
......@@ -57,53 +56,50 @@ ep-dpr-spin-lib:Function
rdfs:label "function"^^xsd:string ;
rdfs:subClassOf spin:Functions .
ep-dpr-spin-lib:buildCountryURI
ep-dpr-spin-lib:buildAnnualProductionActivityToEndOfPeriodURI
rdf:type spin:Function ;
rdfs:label "build Country URI"^^xsd:string ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
rdfs:comment """arg1 is name of the facility (this may to change when we sort out the identity lookup)
arg2 is report end date"""^^xsd:string ;
sp:resultVariables (_:b2) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/country/" ;
sp:arg1 "https://www.reportinghub.no/ep/data/annualProducitonActivityToEndOfReportingPeriod/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg1 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg1
] ;
sp:arg2 "$" ;
sp:arg3 spin:_arg2
]
] ;
sp:variable _:b2
])
] .
ep-dpr-spin-lib:buildDailyProductionActivityURI
ep-dpr-spin-lib:buildCountryURI
rdf:type spin:Function ;
rdfs:label "build Country URI"^^xsd:string ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
rdfs:comment """arg1 is name of facility (this is going to change when we sort out the identity lookup)
arg2 is start date
arg3 is end date"""^^xsd:string ;
sp:resultVariables (_:b3) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/dailyProductionActivity/" ;
sp:arg1 "https://www.reportinghub.no/ep/data/country/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg1 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg1
] ;
sp:arg2 "$" ;
sp:arg3 spin:_arg2 ;
sp:arg4 "$" ;
sp:arg5 spin:_arg3
]
] ;
sp:variable _:b3
])
] .
ep-dpr-spin-lib:buildDailyProductionOperationsActivityURI
ep-dpr-spin-lib:buildDailyProductionActivityURI
rdf:type spin:Function ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
......@@ -115,7 +111,7 @@ arg3 is end date"""^^xsd:string ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/dailyProductionOperationsActivity/" ;
sp:arg1 "https://www.reportinghub.no/ep/data/dailyProductionActivity/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg1 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg1
......@@ -130,54 +126,53 @@ arg3 is end date"""^^xsd:string ;
])
] .
ep-dpr-spin-lib:buildProductFlowURI
ep-dpr-spin-lib:buildDailyProductionOperationsActivityURI
rdf:type spin:Function ;
rdfs:label "build ProductFlow URI"^^xsd:string ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
rdfs:comment """arg1 is name of facility (this is going to change when we sort out the identity lookup)
arg2 is start date
arg3 is end date"""^^xsd:string ;
sp:resultVariables (_:b5) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/productFlow/" ;
sp:arg1 "https://www.reportinghub.no/ep/data/dailyProductionOperationsActivity/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg1 spin:_arg1 ;
sp:arg1 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg1
] ;
sp:arg2 "$" ;
sp:arg3 spin:_arg2
sp:arg3 spin:_arg2 ;
sp:arg4 "$" ;
sp:arg5 spin:_arg3
]
] ;
sp:variable _:b5
])
] .
ep-dpr-spin-lib:buildProductionActivityToDateURI
ep-dpr-spin-lib:buildFacilityURI
rdf:type spin:Function ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
rdfs:comment """arg1 is name of facility (this is going to change when we sort out the identity lookup)
arg2 is end date"""^^xsd:string ;
rdfs:comment "arg1 is name of facility (this is going to change when we sort out the identity lookup)"^^xsd:string ;
sp:resultVariables (_:b6) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/productionActivityToDate/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg1 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 spin:_arg1
] ;
sp:arg2 "$" ;
sp:arg3 spin:_arg2
]
sp:arg1 "https://www.reportinghub.no/ep/data/temporalPartOfAFacility/" ;
sp:arg2 spin:_arg1
] ;
sp:variable _:b6
])
] .
ep-dpr-spin-lib:buildProductionFacilityURI
ep-dpr-spin-lib:buildProductFlowURI
rdf:type spin:Function ;
rdfs:label "build ProductionFacility URI"^^xsd:string ;
rdfs:label "build ProductFlow URI"^^xsd:string ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
......@@ -185,18 +180,20 @@ ep-dpr-spin-lib:buildProductionFacilityURI
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/productionFacility/" ;
sp:arg1 "https://www.reportinghub.no/ep/data/productFlow/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg1 spin:_arg1
sp:arg1 spin:_arg1 ;
sp:arg2 "$" ;
sp:arg3 spin:_arg2
]
] ;
sp:variable _:b7
])
] .
ep-dpr-spin-lib:buildProductionFlowURI
ep-dpr-spin-lib:buildProductionFacilityURI
rdf:type spin:Function ;
rdfs:label "build ProductionFlow URI"^^xsd:string ;
rdfs:label "build ProductionFacility URI"^^xsd:string ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
......@@ -204,7 +201,7 @@ ep-dpr-spin-lib:buildProductionFlowURI
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/productionFlow/" ;
sp:arg1 "https://www.reportinghub.no/ep/data/productionFacility/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg1 spin:_arg1
]
......@@ -213,9 +210,9 @@ ep-dpr-spin-lib:buildProductionFlowURI
])
] .
ep-dpr-spin-lib:buildProductionFlowsForAPeriodURI
ep-dpr-spin-lib:buildProductionFlowURI
rdf:type spin:Function ;
rdfs:label "build ProductionFlowsForAPeriod URI"^^xsd:string ;
rdfs:label "build ProductionFlow URI"^^xsd:string ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
......@@ -223,22 +220,18 @@ ep-dpr-spin-lib:buildProductionFlowsForAPeriodURI
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/productionFlowsForAPeriod/" ;
sp:arg1 "https://www.reportinghub.no/ep/data/productionFlow/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg1 spin:_arg1 ;
sp:arg2 "$" ;
sp:arg3 spin:_arg2 ;
sp:arg4 "$" ;
sp:arg5 spin:_arg3
sp:arg1 spin:_arg1
]
] ;
sp:variable _:b9
])
] .
ep-dpr-spin-lib:buildProductionFlowsToDateURI
ep-dpr-spin-lib:buildProductionFlowsForAPeriodURI
rdf:type spin:Function ;
rdfs:label "build ProductionFlowsToDate URI"^^xsd:string ;
rdfs:label "build ProductionFacility URI"^^xsd:string ;
rdfs:subClassOf ep-dpr-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
......@@ -246,11 +239,13 @@ ep-dpr-spin-lib:buildProductionFlowsToDateURI
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/productionFlowsToDate/" ;
sp:arg1 "https://www.reportinghub.no/ep/data/productionFlowsForAPeriod/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg1 spin:_arg1 ;
sp:arg2 "$" ;
sp:arg3 spin:_arg2
sp:arg3 spin:_arg2 ;
sp:arg4 "$" ;
sp:arg5 spin:_arg3
]
] ;
sp:variable _:b10
......@@ -1996,6 +1991,9 @@ _:b12
_:b11
sp:varName "uri"^^xsd:string .
_:b10
sp:varName "uri"^^xsd:string .
_:b9 sp:varName "uri"^^xsd:string .
_:b8 sp:varName "uri"^^xsd:string .
......@@ -2012,7 +2010,4 @@ _:b2 sp:varName "uri"^^xsd:string .
_:b1 sp:varName "uri"^^xsd:string .
_:b10
sp:varName "uri"^^xsd:string .
_:b6 sp:varName "uri"^^xsd:string .
......
# Saved by TopBraid on Thu Oct 13 13:05:23 BST 2011
# Saved by TopBraid on Thu Oct 13 14:16:00 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......