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
David Price
2011-10-26 15:07:34 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e424172fd6c6602fb192af78cbb56da37fad3d9d
e424172f
1 parent
1ce9347a
Remove company URIs for non validated company name use
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
378 additions
and
450 deletions
www.reportinghub.no/ep/transform/TRANSFORM_ddr-logInfo-v1.1.1.ttl
www.reportinghub.no/ep/transform/TRANSFORM_ddr-wellboreInfo-v1.1.1.ttl
www.reportinghub.no/swp/DailyDrillingReport.uispin.html
www.reportinghub.no/ep/transform/TRANSFORM_ddr-logInfo-v1.1.1.ttl
View file @
e424172
...
...
@@ -20,7 +20,7 @@
<http://www.reportinghub.no/ep/transform/1.1/ddr/logInfo>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://
spinrdf.org/spin>
,
<http://www.reportinghub.no/ep/schema/1.0/activity>
,
<http://www.reportinghub.no/ep/schema/1.0/core>
,
<http://www.reportinghub.no/ep/spin/1.1/lib>
,
<http://www.witsml.org/schemas/1series>
;
owl:
imports
<http://
www.witsml.org/schemas/1series>
,
<http://www.reportinghub.no/ep/spin/1.1/lib>
,
<http://www.reportinghub.no/ep/schema/1.0/core>
,
<http://www.reportinghub.no/ep/schema/1.0/activity>
,
<http://spinrdf.org/spin>
;
owl:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
<http://www.witsml.org/schemas/1series#Obj_drillReport>
...
...
@@ -77,26 +77,14 @@
sp:
subject
[
sp:
varName
"wellBoreLogRun"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/organization#
Organization>
;
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/organization#
Company>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b3
]
[
sp:
object
[
sp:
varName
"serviceCompany"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b3
]
[
sp:
object
[
sp:
varName
"nameServiceCompany"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#name>
;
sp:
subject
[
sp:
varName
"serviceCompany"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/organization#Company>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"serviceCompany"
^^
xsd:
string
]
sp:
subject
_:
b3
]
[
sp:
object
_:
b4
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#wellBoreLoggingTool>
;
sp:
subject
...
...
@@ -475,24 +463,6 @@
sp:
variable
[
sp:
varName
"lengthScaleTvdTool"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
[
sp:
varName
"nameServiceCompany"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"normalizedNameServiceCompany"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
rhspin:
companyById
;
arg:
id
[
sp:
varName
"normalizedNameServiceCompany"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"serviceCompany"
^^
xsd:
string
]
])
]
;
spin:
rule
...
...
www.reportinghub.no/ep/transform/TRANSFORM_ddr-wellboreInfo-v1.1.1.ttl
View file @
e424172
# Saved by TopBraid on Mon Oct 03 12:54:15 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/wellboreInfo
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/1.0/organization
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.witsml.org/schemas/1series
# imports: http://spinrdf.org/spin
@prefix
:
<http://www.reportinghub.no/ep/transform/1.1/wellboreInfo#>
.
@prefix
arg:
<http://spinrdf.org/arg#>
.
...
...
@@ -26,35 +25,93 @@
<http://www.reportinghub.no/ep/transform/1.1/wellboreInfo>
rdf:
type
owl:
Ontology
;
owl:
imports
<http://
www.witsml.org/schemas/1series>
,
<http://www.reportinghub.no/ep/spin/1.1/lib>
,
<http://www.reportinghub.no/ep/schema/1.0/organization>
,
<http://spinrdf.org/spin
>
;
owl:
imports
<http://
spinrdf.org/spin>
,
<http://www.reportinghub.no/ep/schema/1.0/organization>
,
<http://www.reportinghub.no/ep/spin/1.1/lib>
,
<http://www.witsml.org/schemas/1series
>
;
owl:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
ddr:
Obj_drillReport
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 160b Set rig for drilling activity - NPD Code not supplied"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b1
;
sp:
predicate
ep-activity:
onRig
;
sp:
subject
_:
b2
]
[
sp:
object
ep-facility:
TemporalPartOfARig
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
]
[
sp:
object
_:
b3
;
sp:
predicate
ep-core:
temporalPartOf
;
sp:
subject
_:
b1
]
[
sp:
object
ep-facility:
Rig
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b3
])
;
sp:
where
([
sp:
object
_:
b4
;
sp:
predicate
ep-spin-lib:
nameWellbore
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b5
;
sp:
predicate
ddr:
dTimStart
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
_:
b6
;
sp:
predicate
ddr:
wellboreInfoRef
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b7
;
sp:
predicate
ddr:
rigAliasRef
;
sp:
subject
_:
b6
]
[
sp:
object
[
sp:
varName
"code"
^^
xsd:
string
]
;
sp:
predicate
ddr:
name
;
sp:
subject
_:
b7
]
[
rdf:
type
sp:
Union
;
sp:
elements
(([
sp:
object
"NPD Code"
^^
xsd:
string
;
sp:
predicate
ddr:
namingSystem
;
sp:
subject
_:
b7
])
([
sp:
object
"NPD code"
^^
xsd:
string
;
sp:
predicate
ddr:
namingSystem
;
sp:
subject
_:
b7
]))
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b4
]
;
sp:
variable
_:
b8
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildDailyDrillingActivityURI
;
sp:
arg1
_:
b8
;
sp:
arg2
_:
b5
]
;
sp:
variable
_:
b2
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 169a Transfer waterDepth
This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b
1
;
sp:
templates
([
sp:
object
_:
b
9
;
sp:
predicate
ep-core:
hasPart
;
sp:
subject
[
sp:
varName
"temporalPartOfARig"
^^
xsd:
string
]
]
[
sp:
object
ep-facility:
SurroundingWater
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
1
]
[
sp:
object
_:
b
2
;
sp:
subject
_:
b
9
]
[
sp:
object
_:
b
10
;
sp:
predicate
ep-facility:
depthOfSurroundingWater
;
sp:
subject
_:
b
1
sp:
subject
_:
b
9
]
[
sp:
object
ep-core:
Length
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
2
sp:
subject
_:
b
10
]
[
sp:
object
[
sp:
varName
"real"
^^
xsd:
string
]
;
sp:
predicate
[
sp:
varName
"lengthScale"
^^
xsd:
string
]
;
sp:
subject
_:
b
2
sp:
subject
_:
b
10
])
;
sp:
where
([
sp:
object
[
sp:
varName
"nameWellBore"
^^
xsd:
string
...
...
@@ -132,6 +189,139 @@ This rule processes data from statusInfo, but is here because it must be execute
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 163 Set drilling contractor for drilling activity"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b11
;
sp:
predicate
ep-activity:
drillingContractor
;
sp:
subject
[
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
]
]
[
sp:
object
ep-org:
Company
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b11
]
[
sp:
object
[
sp:
varName
"nameContractor"
^^
xsd:
string
]
;
sp:
predicate
ep-core:
name
;
sp:
subject
_:
b11
])
;
sp:
where
([
sp:
object
[
sp:
varName
"nameWellBore"
^^
xsd:
string
]
;
sp:
predicate
ep-spin-lib:
nameWellbore
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"dTimStart"
^^
xsd:
string
]
;
sp:
predicate
ddr:
dTimStart
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"wellboreInfo"
^^
xsd:
string
]
;
sp:
predicate
ddr:
wellboreInfoRef
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"nameContractor"
^^
xsd:
string
]
;
sp:
predicate
ddr:
drillContractor
;
sp:
subject
[
sp:
varName
"wellboreInfo"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
[
sp:
varName
"nameWellBore"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildDailyDrillingActivityURI
;
sp:
arg1
[
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
]
;
sp:
arg2
[
sp:
varName
"dTimStart"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
[
sp:
varName
"nameContractor"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"normalizedContractorName"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
rhspin:
companyById
;
arg:
id
[
sp:
varName
"normalizedContractorName"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"contractor"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 161 Set NPD name for Rig"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b12
;
sp:
predicate
ep-core:
npdName
;
sp:
subject
_:
b13
])
;
sp:
where
([
sp:
object
_:
b14
;
sp:
predicate
ep-spin-lib:
nameWellbore
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b15
;
sp:
predicate
ddr:
dTimStart
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b16
;
sp:
predicate
ddr:
wellboreInfoRef
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b17
;
sp:
predicate
ddr:
rigAliasRef
;
sp:
subject
_:
b16
]
[
sp:
object
_:
b12
;
sp:
predicate
ddr:
name
;
sp:
subject
_:
b17
]
[
rdf:
type
sp:
Union
;
sp:
elements
(([
sp:
object
"NPD Name"
^^
xsd:
string
;
sp:
predicate
ddr:
namingSystem
;
sp:
subject
_:
b17
])
([
sp:
object
"NPD name"
^^
xsd:
string
;
sp:
predicate
ddr:
namingSystem
;
sp:
subject
_:
b17
]))
]
[
sp:
object
_:
b18
;
sp:
predicate
ep-activity:
onRig
;
sp:
subject
_:
b19
]
[
sp:
object
_:
b13
;
sp:
predicate
ep-core:
temporalPartOf
;
sp:
subject
_:
b18
]
[
sp:
object
ep-facility:
Rig
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b13
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b14
]
;
sp:
variable
_:
b20
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildDailyDrillingActivityURI
;
sp:
arg1
_:
b20
;
sp:
arg2
_:
b15
]
;
sp:
variable
_:
b19
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 168 Transfer fixedRig
This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""
^^
xsd:
string
;
sp:
templates
([
sp:
object
...
...
@@ -216,65 +406,11 @@ This rule processes data from statusInfo, but is here because it must be execute
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 161 Set NPD name for Rig"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b3
;
sp:
predicate
ep-core:
npdName
;
sp:
subject
_:
b4
])
;
sp:
where
([
sp:
object
_:
b5
;
sp:
predicate
ep-spin-lib:
nameWellbore
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b6
;
sp:
predicate
ddr:
dTimStart
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b7
;
sp:
predicate
ddr:
wellboreInfoRef
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b8
;
sp:
predicate
ddr:
rigAliasRef
;
sp:
subject
_:
b7
]
[
sp:
object
_:
b3
;
sp:
predicate
ddr:
name
;
sp:
subject
_:
b8
]
[
rdf:
type
sp:
Union
;
sp:
elements
(([
sp:
object
"NPD Name"
^^
xsd:
string
;
sp:
predicate
ddr:
namingSystem
;
sp:
subject
_:
b8
])
([
sp:
object
"NPD name"
^^
xsd:
string
;
sp:
predicate
ddr:
namingSystem
;
sp:
subject
_:
b8
]))
]
[
sp:
object
_:
b9
;
sp:
predicate
ep-activity:
onRig
;
sp:
subject
_:
b10
]
[
sp:
object
_:
b4
;
sp:
predicate
ep-core:
temporalPartOf
;
sp:
subject
_:
b9
]
[
sp:
object
ep-facility:
Rig
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b4
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b5
]
;
sp:
variable
_:
b11
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildDailyDrillingActivityURI
;
sp:
arg1
_:
b11
;
sp:
arg2
_:
b6
]
;
sp:
variable
_:
b10
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 164 Set preSPUD date"
^^
xsd:
string
;
rdfs:
comment
"STEP 167 Set drill completion date"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"
preSpudDa
te"
^^
xsd:
string
[
sp:
varName
"
dateDrillComple
te"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/well#wellBore
PreSpu
dAt>
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/well#wellBore
Complete
dAt>
;
sp:
subject
[
sp:
varName
"wellBore"
^^
xsd:
string
]
...
...
@@ -295,9 +431,9 @@ This rule processes data from statusInfo, but is here because it must be execute
sp:
predicate
ddr:
wellboreInfoRef
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"
preSpudDa
te"
^^
xsd:
string
[
sp:
varName
"
dateDrillComple
te"
^^
xsd:
string
]
;
sp:
predicate
ddr:
d
TimPreSpud
;
sp:
predicate
ddr:
d
ateDrillComplete
;
sp:
subject
[
sp:
varName
"wellboreInfo"
^^
xsd:
string
]
...
...
@@ -344,110 +480,29 @@ This rule processes data from statusInfo, but is here because it must be execute
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 160a Set rig for drilling activity - NPD Code supplied"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b12
;
sp:
predicate
ep-activity:
onRig
;
sp:
subject
_:
b13
]
[
sp:
object
ep-facility:
TemporalPartOfARig
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b12
]
[
sp:
object
_:
b14
;
sp:
predicate
ep-core:
temporalPartOf
;
sp:
subject
_:
b12
]
[
sp:
object
ep-facility:
Rig
;
rdfs:
comment
"STEP 162 Set drilling operator for drilling activity"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b21
;
sp:
predicate
ep-activity:
drillingOperator
;
sp:
subject
[
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
]
]
[
sp:
object
ep-org:
Company
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b14
]
[
sp:
object
_:
b15
;
sp:
predicate
ep-core:
npdCode
;
sp:
subject
_:
b14
sp:
subject
_:
b21
]
[
sp:
object
[
sp:
varName
"nameOperator"
^^
xsd:
string
]
;
sp:
predicate
ep-core:
name
;
sp:
subject
_:
b21
])
;
sp:
where
([
sp:
object
_:
b16
;
sp:
where
([
sp:
object
[
sp:
varName
"nameWellBore"
^^
xsd:
string
]
;
sp:
predicate
ep-spin-lib:
nameWellbore
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b17
;
sp:
predicate
ddr:
dTimStart
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b18
;
sp:
predicate
ddr:
wellboreInfoRef
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b19
;
sp:
predicate
ddr:
rigAliasRef
;
sp:
subject
_:
b18
]
[
sp:
object
_:
b15
;
sp:
predicate
ddr:
name
;
sp:
subject
_:
b19
]
[
rdf:
type
sp:
Union
;
sp:
elements
(([
sp:
object
"NPD Code"
^^
xsd:
string
;
sp:
predicate
ddr:
namingSystem
;
sp:
subject
_:
b19
])
([
sp:
object
"NPD code"
^^
xsd:
string
;
sp:
predicate
ddr:
namingSystem
;
sp:
subject
_:
b19
]))
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b16
]
;
sp:
variable
_:
b20
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b15
]
;
sp:
variable
_:
b21
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildDailyDrillingActivityURI
;
sp:
arg1
_:
b20
;
sp:
arg2
_:
b17
]
;
sp:
variable
_:
b13
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildRigURI
;
sp:
arg1
_:
b21
]
;
sp:
variable
_:
b14
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 163 Set drilling contractor for drilling activity"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b22
;
sp:
predicate
ep-activity:
drillingContractor
;
sp:
subject
[
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"contractor"
^^
xsd:
string
]
;
sp:
predicate
ep-core:
temporalPartOf
;
sp:
subject
_:
b22
]
[
sp:
object
ep-org:
Organization
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b22
]
[
sp:
object
[
sp:
varName
"nameContractor"
^^
xsd:
string
]
;
sp:
predicate
ep-core:
name
;
sp:
subject
[
sp:
varName
"contractor"
^^
xsd:
string
]
]
[
sp:
object
ep-org:
Company
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"contractor"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
[
sp:
varName
"nameWellBore"
^^
xsd:
string
]
;
sp:
predicate
ep-spin-lib:
nameWellbore
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"dTimStart"
^^
xsd:
string
]
;
]
[
sp:
object
[
sp:
varName
"dTimStart"
^^
xsd:
string
]
;
sp:
predicate
ddr:
dTimStart
;
sp:
subject
spin:
_this
]
[
sp:
object
...
...
@@ -456,9 +511,9 @@ This rule processes data from statusInfo, but is here because it must be execute
sp:
predicate
ddr:
wellboreInfoRef
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"name
Contrac
tor"
^^
xsd:
string
[
sp:
varName
"name
Opera
tor"
^^
xsd:
string
]
;
sp:
predicate
ddr:
drillContrac
tor
;
sp:
predicate
ddr:
opera
tor
;
sp:
subject
[
sp:
varName
"wellboreInfo"
^^
xsd:
string
]
...
...
@@ -482,98 +537,75 @@ This rule processes data from statusInfo, but is here because it must be execute
sp:
variable
[
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
[
sp:
varName
"nameContractor"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"normalizedContractorName"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
rhspin:
companyById
;
arg:
id
[
sp:
varName
"normalizedContractorName"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"contractor"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 167 Set drill completion date"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"dateDrillComplete"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/well#wellBoreCompletedAt>
;
sp:
subject
[
sp:
varName
"wellBore"
^^
xsd:
string
]
rdfs:
comment
"STEP 160a Set rig for drilling activity - NPD Code supplied"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b22
;
sp:
predicate
ep-activity:
onRig
;
sp:
subject
_:
b23
]
[
sp:
object
ep-facility:
TemporalPartOfARig
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b22
]
[
sp:
object
_:
b24
;
sp:
predicate
ep-core:
temporalPartOf
;
sp:
subject
_:
b22
]
[
sp:
object
ep-facility:
Rig
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b24
]
[
sp:
object
_:
b25
;
sp:
predicate
ep-core:
npdCode
;
sp:
subject
_:
b24
])
;
sp:
where
([
sp:
object
[
sp:
varName
"nameWellBore"
^^
xsd:
string
]
;
sp:
where
([
sp:
object
_:
b26
;
sp:
predicate
ep-spin-lib:
nameWellbore
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"dTimStart"
^^
xsd:
string
]
;
]
[
sp:
object
_:
b27
;
sp:
predicate
ddr:
dTimStart
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"wellboreInfo"
^^
xsd:
string
]
;
]
[
sp:
object
_:
b28
;
sp:
predicate
ddr:
wellboreInfoRef
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"dateDrillComplete"
^^
xsd:
string
]
;
sp:
predicate
ddr:
dateDrillComplete
;
sp:
subject
[
sp:
varName
"wellboreInfo"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"temporalPartOfAWellBore"
^^
xsd:
string
]
;
sp:
predicate
ep-activity:
onWellBore
;
sp:
subject
[
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"wellBore"
^^
xsd:
string
]
[
sp:
object
_:
b29
;
sp:
predicate
ddr:
rigAliasRef
;
sp:
subject
_:
b28
]
[
sp:
object
_:
b25
;
sp:
predicate
ddr:
name
;
sp:
subject
_:
b29
]
[
rdf:
type
sp:
Union
;
sp:
elements
(([
sp:
object
"NPD Code"
^^
xsd:
string
;
sp:
predicate
ddr:
namingSystem
;
sp:
subject
_:
b29
])
([
sp:
object
"NPD code"
^^
xsd:
string
;
sp:
predicate
ddr:
namingSystem
;
sp:
subject
_:
b29
]))
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b26
]
;
sp:
predicate
ep-core:
temporalPartOf
;
sp:
subject
[
sp:
varName
"temporalPartOfAWellBore"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/well#WellBore>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"wellBore"
^^
xsd:
string
]
sp:
variable
_:
b30
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
[
sp:
varName
"nameWellBore"
^^
xsd:
string
]
sp:
arg1
_:
b25
]
;
sp:
variable
[
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
]
sp:
variable
_:
b31
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildDailyDrillingActivityURI
;
sp:
arg1
[
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
sp:
arg1
_:
b30
;
sp:
arg2
_:
b27
]
;
sp:
arg2
[
sp:
varName
"dTimStart"
^^
xsd:
string
]
sp:
variable
_:
b23
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildRigURI
;
sp:
arg1
_:
b31
]
;
sp:
variable
[
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
]
sp:
variable
_:
b24
])
]
;
spin:
rule
...
...
@@ -652,120 +684,29 @@ This rule processes data from statusInfo, but is here because it must be execute
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 162 Set drilling operator for drilling activity"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b23
;
sp:
predicate
ep-activity:
drillingOperator
;
sp:
subject
[
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"operator"
^^
xsd:
string
]
;
sp:
predicate
ep-core:
temporalPartOf
;
sp:
subject
_:
b23
]
[
sp:
object
ep-org:
Organization
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b23
]
[
sp:
object
[
sp:
varName
"nameOperator"
^^
xsd:
string
]
;
sp:
predicate
ep-core:
name
;
sp:
subject
[
sp:
varName
"operator"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/np/schema/npd#OperatingCompany>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"operator"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
[
sp:
varName
"nameWellBore"
^^
xsd:
string
]
;
sp:
predicate
ep-spin-lib:
nameWellbore
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"dTimStart"
^^
xsd:
string
]
;
sp:
predicate
ddr:
dTimStart
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"wellboreInfo"
^^
xsd:
string
]
;
sp:
predicate
ddr:
wellboreInfoRef
;
sp:
subject
spin:
_this
]
[
sp:
object
[
sp:
varName
"nameOperator"
^^
xsd:
string
]
;
sp:
predicate
ddr:
operator
;
sp:
subject
[
sp:
varName
"wellboreInfo"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
[
sp:
varName
"nameWellBore"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildDailyDrillingActivityURI
;
sp:
arg1
[
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
]
;
sp:
arg2
[
sp:
varName
"dTimStart"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
[
sp:
varName
"nameOperator"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"normalizedOperatorName"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
rhspin:
companyById
;
arg:
id
[
sp:
varName
"normalizedOperatorName"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"operator"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"""STEP 169 Transfer elevKelly
This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b
24
;
sp:
templates
([
sp:
object
_:
b
32
;
sp:
predicate
ep-core:
hasPart
;
sp:
subject
[
sp:
varName
"temporalPartOfARig"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/equipment#KellyBushing>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
24
]
[
sp:
object
_:
b
25
;
sp:
subject
_:
b
32
]
[
sp:
object
_:
b
33
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/equipment#elevationOfKellyBushing>
;
sp:
subject
_:
b
24
sp:
subject
_:
b
32
]
[
sp:
object
ep-core:
Length
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
25
sp:
subject
_:
b
33
]
[
sp:
object
[
sp:
varName
"real"
^^
xsd:
string
]
;
sp:
predicate
[
sp:
varName
"lengthScale"
^^
xsd:
string
]
;
sp:
subject
_:
b
25
sp:
subject
_:
b
33
])
;
sp:
where
([
sp:
object
[
sp:
varName
"nameWellBore"
^^
xsd:
string
...
...
@@ -843,140 +784,157 @@ This rule processes data from statusInfo, but is here because it must be execute
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 160b Set rig for drilling activity - NPD Code not supplied"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b26
;
sp:
predicate
ep-activity:
onRig
;
sp:
subject
_:
b27
]
[
sp:
object
ep-facility:
TemporalPartOfARig
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b26
]
[
sp:
object
_:
b28
;
sp:
predicate
ep-core:
temporalPartOf
;
sp:
subject
_:
b26
]
[
sp:
object
ep-facility:
Rig
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b28
rdfs:
comment
"STEP 164 Set preSPUD date"
^^
xsd:
string
;
sp:
templates
([
sp:
object
[
sp:
varName
"preSpudDate"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/well#wellBorePreSpudAt>
;
sp:
subject
[
sp:
varName
"wellBore"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
_:
b29
;
sp:
where
([
sp:
object
[
sp:
varName
"nameWellBore"
^^
xsd:
string
]
;
sp:
predicate
ep-spin-lib:
nameWellbore
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b30
;
]
[
sp:
object
[
sp:
varName
"dTimStart"
^^
xsd:
string
]
;
sp:
predicate
ddr:
dTimStart
;
sp:
subject
spin:
_this
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
_:
b31
;
]
[
sp:
object
[
sp:
varName
"wellboreInfo"
^^
xsd:
string
]
;
sp:
predicate
ddr:
wellboreInfoRef
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b32
;
sp:
predicate
ddr:
rigAliasRef
;
sp:
subject
_:
b31
]
[
sp:
object
[
sp:
varName
"cod
e"
^^
xsd:
string
[
sp:
varName
"preSpudDat
e"
^^
xsd:
string
]
;
sp:
predicate
ddr:
name
;
sp:
subject
_:
b32
]
[
rdf:
type
sp:
Union
;
sp:
elements
(([
sp:
object
"NPD Code"
^^
xsd:
string
;
sp:
predicate
ddr:
namingSystem
;
sp:
subject
_:
b32
])
([
sp:
object
"NPD code"
^^
xsd:
string
;
sp:
predicate
ddr:
namingSystem
;
sp:
subject
_:
b32
]))
])
sp:
predicate
ddr:
dTimPreSpud
;
sp:
subject
[
sp:
varName
"wellboreInfo"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"temporalPartOfAWellBore"
^^
xsd:
string
]
;
sp:
predicate
ep-activity:
onWellBore
;
sp:
subject
[
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"wellBore"
^^
xsd:
string
]
;
sp:
predicate
ep-core:
temporalPartOf
;
sp:
subject
[
sp:
varName
"temporalPartOfAWellBore"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/well#WellBore>
;
sp:
predicate
rdf:
type
;
sp:
subject
[
sp:
varName
"wellBore"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b29
sp:
arg1
[
sp:
varName
"nameWellBore"
^^
xsd:
string
]
]
;
sp:
variable
_:
b33
sp:
variable
[
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildDailyDrillingActivityURI
;
sp:
arg1
_:
b33
;
sp:
arg2
_:
b30
sp:
arg1
[
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
]
;
sp:
variable
_:
b27
sp:
arg2
[
sp:
varName
"dTimStart"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
]
])
]
.
[]
rdf:
type
smf:
regex
.
[]
rdf:
type
smf:
trim
.
[]
rdf:
type
sp:
Modify
.
[]
rdf:
type
fn:
starts-with
.
[]
rdf:
type
s
p:
Modify
.
[]
rdf:
type
s
mf:
trim
.
_:
b5
sp:
varName
"nameWellBore"
^^
xsd:
string
.
[]
rdf:
type
smf:
regex
.
_:
b
6
sp:
varName
"dTimStart
"
^^
xsd:
string
.
_:
b
8
sp:
varName
"normalizedWellBoreName
"
^^
xsd:
string
.
_:
b7
sp:
varName
"
wellboreInfo
"
^^
xsd:
string
.
_:
b7
sp:
varName
"
rigAlias
"
^^
xsd:
string
.
_:
b
8
sp:
varName
"rigAlias
"
^^
xsd:
string
.
_:
b
6
sp:
varName
"wellboreInfo
"
^^
xsd:
string
.
_:
b
3
sp:
varName
"name
"
^^
xsd:
string
.
_:
b
5
sp:
varName
"dTimStart
"
^^
xsd:
string
.
_:
b10
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
.
_:
b4
sp:
varName
"nameWellBore"
^^
xsd:
string
.
_:
b
9
sp:
varName
"temporalPartOfARig
"
^^
xsd:
string
.
_:
b
2
sp:
varName
"dailyDrillingActivity
"
^^
xsd:
string
.
_:
b4
sp:
varName
"rig"
^^
xsd:
string
.
_:
b31
sp:
varName
"normalizedCode"
^^
xsd:
string
.
_:
b
11
_:
b
30
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
.
_:
b29
sp:
varName
"
nameWellBore
"
^^
xsd:
string
.
sp:
varName
"
rigAlias
"
^^
xsd:
string
.
_:
b30
_:
b28
sp:
varName
"wellboreInfo"
^^
xsd:
string
.
_:
b27
sp:
varName
"dTimStart"
^^
xsd:
string
.
_:
b
31
sp:
varName
"
wellboreInfo
"
^^
xsd:
string
.
_:
b
26
sp:
varName
"
nameWellBore
"
^^
xsd:
string
.
_:
b
32
sp:
varName
"
rigAlias
"
^^
xsd:
string
.
_:
b
25
sp:
varName
"
code
"
^^
xsd:
string
.
_:
b
33
sp:
varName
"
normalizedWellBoreName
"
^^
xsd:
string
.
_:
b
24
sp:
varName
"
rig
"
^^
xsd:
string
.
_:
b2
7
_:
b2
3
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
.
_:
b
16
sp:
varName
"n
ameWellBor
e"
^^
xsd:
string
.
_:
b
20
sp:
varName
"n
ormalizedWellBoreNam
e"
^^
xsd:
string
.
_:
b1
7
sp:
varName
"d
TimStart
"
^^
xsd:
string
.
_:
b1
9
sp:
varName
"d
ailyDrillingActivity
"
^^
xsd:
string
.
_:
b18
sp:
varName
"
wellboreInfo
"
^^
xsd:
string
.
sp:
varName
"
temporalPartOfARig
"
^^
xsd:
string
.
_:
b1
9
_:
b1
7
sp:
varName
"rigAlias"
^^
xsd:
string
.
_:
b1
5
sp:
varName
"
code
"
^^
xsd:
string
.
_:
b1
6
sp:
varName
"
wellboreInfo
"
^^
xsd:
string
.
_:
b
20
sp:
varName
"
normalizedWellBoreName
"
^^
xsd:
string
.
_:
b
15
sp:
varName
"
dTimStart
"
^^
xsd:
string
.
_:
b
21
sp:
varName
"n
ormalizedCod
e"
^^
xsd:
string
.
_:
b
14
sp:
varName
"n
ameWellBor
e"
^^
xsd:
string
.
_:
b13
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
.
_:
b14
sp:
varName
"rig"
^^
xsd:
string
.
_:
b12
sp:
varName
"name"
^^
xsd:
string
.
([])
.
([])
.
([]
[]
[
rdf:
type
sp:
Filter
]
[
rdf:
type
sp:
Bind
])
.
([])
.
...
...
www.reportinghub.no/swp/DailyDrillingReport.uispin.html
View file @
e424172
...
...
@@ -26,7 +26,7 @@
<rhswp:NameValuePair
arg:name=
"Report Number:"
arg:value=
"{# SELECT ?repNum WHERE {?report ep-report:dailyDrillingReportNumber ?repNum}}"
/>
<rhswp:NameValuePair
arg:name=
"Wellbore:"
arg:value=
"{# SELECT ?wbName WHERE {?wb ep-core:npdCode ?wbName}}"
/>
<rhswp:NameValuePair
arg:name=
"Status:"
arg:value=
"{# SELECT ?repTypeName WHERE {?report a ?repType . ?repType rdfs:label ?repTypeName}}"
/>
<rhswp:NameValuePair
arg:name=
"Operator:"
arg:value=
"{# SELECT ?
parentName WHERE {?activity ep-activity:drillingOperator ?opCo . ?opCo ep-core:temporalPartOf ?parentCo . ?parentCo ep-core:name ?parent
Name }}"
/>
<rhswp:NameValuePair
arg:name=
"Operator:"
arg:value=
"{# SELECT ?
operatorName WHERE {?activity ep-activity:drillingOperator ?operator . ?operator ep-core:name ?operator
Name }}"
/>
<rhswp:NameValuePair
arg:name=
"Rig name:"
arg:value=
"{# SELECT ?rigName WHERE {?rig ep-core:npdName ?rigName}}"
/>
<rhswp:NameValuePair
arg:name=
"Spud date:"
arg:value=
"{= IF(bound(?spudDate), spif:dateFormat(?spudDate, 'yyyy-MM-dd'), ?unbound) }"
/>
<rhswp:NameValuePair
arg:name=
"Elevation RKB-MSL m:"
arg:value=
"{# SELECT ?kellyElevVMeas WHERE {?activity ep-activity:onRig ?rigState . ?rigState ep-core:hasPart ?kellyBushing . ?kellyBushing a ep-eqt:KellyBushing . ?kellyBushing ep-eqt:elevationOfKellyBushing ?kellyElev . ?kellyElev ep-core:metre ?kellyElevMeas}}"
/>
...
...
@@ -48,7 +48,7 @@
<rhswp:NameValuePair
arg:name=
"Wellbore Id:"
arg:value=
"{# SELECT DISTINCT ?wbID WHERE {?wb ep-core:npdNumber ?wbID}}"
/>
<rhswp:NameValuePair
arg:name=
"Created date:"
arg:value=
"{= IF(bound(?createdAt), spif:dateFormat(?createdAt, 'yyyy-MM-dd HH:mm'), ?unbound) }"
/>
<rhswp:NameValuePair
arg:name=
"Drilling contractor:"
arg:value=
"{# SELECT ?
parentName WHERE {?activity ep-activity:drillingContractor ?contractor . ?contractor ep-core:temporalPartOf ?parentCo . ?parentCo ep-core:name ?parent
Name}}"
/>
<rhswp:NameValuePair
arg:name=
"Drilling contractor:"
arg:value=
"{# SELECT ?
contractorName WHERE {?activity ep-activity:drillingContractor ?contractor . ?contractor ep-core:name ?contractor
Name}}"
/>
<rhswp:NameValuePair
arg:name=
"NPD Rig Id:"
arg:value=
"{= spl:object(?rig, ep-core:npdCode) }"
/>
<rhswp:NameValuePair
arg:name=
"Date Well Complete:"
arg:value=
"{= IF(bound(?completeDate), spif:dateFormat(?completeDate, 'yyyy-MM-dd'), ?unbound) }"
/>
<rhswp:NameValuePair
arg:name=
"Water depth MSL m:"
arg:value=
"{# SELECT ?waterDepthVal WHERE {?activity ep-activity:onRig ?rigState . ?rigState a ep-fac:TemporalPartOfARig . ?rigState ep-core:hasPart ?water . ?water a ep-fac:SurroundingWater . ?water ep-fac:depthOfSurroundingWater ?waterDepth . ?waterDepth ep-core:metre ?waterDepthVal}}"
/>
...
...
Please
register
or
login
to post a comment