Toggle navigation
Toggle navigation
This project
Loading...
Sign in
data.posccaesar.org
/
npd
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
1
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Authored by
MonkeyChap
2011-10-13 14:41:38 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
bb9555b3970d764b624a9d1cc149ff2c843a5fdc
bb9555b3
1 parent
b249cce1
Various tweaks and additions for production operations stuff
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
98 additions
and
71 deletions
www.reportinghub.no/ep/schema/1.0/SCHEMA_EP-PRODUCTION-ACTIVITY-V1.0.ttl
www.reportinghub.no/ep/spin/SPIN_EPIM-DPR-lib-v1.1.spin.ttl
www.reportinghub.no/ep/spin/SPIN_EPIM-DPR-lib-v1.1.spin.ttl.tbc
www.reportinghub.no/ep/schema/1.0/SCHEMA_EP-PRODUCTION-ACTIVITY-V1.0.ttl
View file @
bb9555b
# Saved by TopBraid on Thu Oct 13 1
3:06:48 BST 2011
# Saved by TopBraid on Thu Oct 13 1
4: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>
;
...
...
www.reportinghub.no/ep/spin/SPIN_EPIM-DPR-lib-v1.1.spin.ttl
View file @
bb9555b
# Saved by TopBraid on Thu Oct 13 1
3:05:22 BST 2011
# Saved by TopBraid on Thu Oct 13 1
4: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:
build
CountryURI
ep-dpr-spin-lib:
build
AnnualProductionActivityToEndOfPeriodURI
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:
build
DailyProductionActivityURI
ep-dpr-spin-lib:
build
CountryURI
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:
buildDailyProduction
OperationsActivityURI
ep-dpr-spin-lib:
buildDailyProduction
ActivityURI
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/dailyProduction
OperationsActivity/"
;
sp:
arg1
"https://www.reportinghub.no/ep/data/dailyProduction
Activity/"
;
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:
build
ProductFlowURI
ep-dpr-spin-lib:
build
DailyProductionOperationsActivityURI
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:
build
ProductionActivityToDateURI
ep-dpr-spin-lib:
build
FacilityURI
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:
buildProduct
ionFacilityURI
ep-dpr-spin-lib:
buildProduct
FlowURI
rdf:
type
spin:
Function
;
rdfs:
label
"build Product
ionFacility URI"
^^
xsd:
string
;
rdfs:
label
"build Product
Flow 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/product
ionFacility/"
;
sp:
arg1
"https://www.reportinghub.no/ep/data/product
Flow/"
;
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:
buildProductionF
lowURI
ep-dpr-spin-lib:
buildProductionF
acilityURI
rdf:
type
spin:
Function
;
rdfs:
label
"build ProductionF
low URI"
^^
xsd:
string
;
rdfs:
label
"build ProductionF
acility 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/productionF
low/"
;
sp:
arg1
"https://www.reportinghub.no/ep/data/productionF
acility/"
;
sp:
arg2
[
rdf:
type
fn:
concat
;
sp:
arg1
spin:
_arg1
]
...
...
@@ -213,9 +210,9 @@ ep-dpr-spin-lib:buildProductionFlowURI
])
]
.
ep-dpr-spin-lib:
buildProductionFlow
sForAPeriodURI
ep-dpr-spin-lib:
buildProductionFlow
URI
rdf:
type
spin:
Function
;
rdfs:
label
"build ProductionFlow
sForAPeriod 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/productionFlow
sForAPeriod/"
;
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:
buildProductionFlows
ToDateURI
ep-dpr-spin-lib:
buildProductionFlows
ForAPeriodURI
rdf:
type
spin:
Function
;
rdfs:
label
"build ProductionF
lowsToDate URI"
^^
xsd:
string
;
rdfs:
label
"build ProductionF
acility 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/productionFlows
ToDate/"
;
sp:
arg1
"https://www.reportinghub.no/ep/data/productionFlows
ForAPeriod/"
;
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
.
...
...
www.reportinghub.no/ep/spin/SPIN_EPIM-DPR-lib-v1.1.spin.ttl.tbc
View file @
bb9555b
# Saved by TopBraid on Thu Oct 13 1
3:05:23
BST 2011
# Saved by TopBraid on Thu Oct 13 1
4:16:00
BST 2011
# baseURI: null
@prefix
composite:
<http://www.topbraid.org/2007/05/composite.owl#>
.
...
...
Please
register
or
login
to post a comment