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-28 17:01:06 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
017fd30ce0c8e722add239bbd7f4fab88bfff02a
017fd30c
1 parent
bab3ad4b
Made DrillBitClass construct and function
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
661 additions
and
510 deletions
www.reportinghub.no/ep/spin/SPIN_EPIM-lib-v1.1.spin.ttl
www.reportinghub.no/ep/transform/TRANSFORM_ddr-bitRecord-v1.1.1.ttl
www.reportinghub.no/ep/spin/SPIN_EPIM-lib-v1.1.spin.ttl
View file @
017fd30
...
...
@@ -12,6 +12,8 @@
# imports: http://www.witsml.org/schemas/1series
@prefix
activity-purpose:
<http://www.reportinghub.no/ep/schema/1.0/activity-purpose#>
.
@prefix
afn:
<http://jena.hpl.hp.com/ARQ/function#>
.
@prefix
arg:
<http://spinrdf.org/arg#>
.
@prefix
ddr:
<http://www.witsml.org/schemas/1series#>
.
@prefix
dtype:
<http://www.linkedmodel.org/schema/dtype#>
.
@prefix
ep-drill-eqt-typ:
<http://www.reportinghub.no/ep/schema/drilling-equipment-type#>
.
...
...
@@ -22,6 +24,7 @@
@prefix
rdfs:
<http://www.w3.org/2000/01/rdf-schema#>
.
@prefix
smf:
<http://topbraid.org/sparqlmotionfunctions#>
.
@prefix
sp:
<http://spinrdf.org/sp#>
.
@prefix
spif:
<http://spinrdf.org/spif#>
.
@prefix
spin:
<http://spinrdf.org/spin#>
.
@prefix
spl:
<http://spinrdf.org/spl#>
.
@prefix
xsd:
<http://www.w3.org/2001/XMLSchema#>
.
...
...
@@ -118,22 +121,48 @@ ep-spin-lib:buildDailyDrillingReportURI
])
]
.
ep-spin-lib:
buildDrillBitClassURI
rdf:
type
spin:
Function
;
rdfs:
label
"build WellBoreDrillBitClass URI"
^^
xsd:
string
;
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
([
sp:
varName
"uri"
^^
xsd:
string
])
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
sp:
arg1
"http://www.reportinghub.no/ep/schema/drilling-equipment-type#DrillBit-"
;
sp:
arg2
[
rdf:
type
fn:
concat
;
sp:
arg1
spin:
_arg1
;
sp:
arg2
"-NS"
]
]
;
sp:
variable
[
sp:
varName
"uri"
^^
xsd:
string
]
])
]
.
ep-spin-lib:
buildDullGradeURI
rdf:
type
spin:
Function
;
rdfs:
label
"build DullGrade URI"
^^
xsd:
string
;
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b5
)
;
sp:
resultVariables
([
sp:
varName
"uri"
^^
xsd:
string
])
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
sp:
arg1
"http
s://www.reportinghub.no/ep/schema/1.0/equipment/dullGrade/
"
;
sp:
arg1
"http
://www.reportinghub.no/ep/schema/equipment#DullGrade-
"
;
sp:
arg2
[
rdf:
type
fn:
concat
;
sp:
arg1
spin:
_arg1
]
]
;
sp:
variable
_:
b5
sp:
variable
[
sp:
varName
"uri"
^^
xsd:
string
]
])
]
.
...
...
@@ -143,7 +172,7 @@ ep-spin-lib:buildEquipmentFailureAndRepairURI
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
6
)
;
sp:
resultVariables
(
_:
b
5
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -156,7 +185,7 @@ ep-spin-lib:buildEquipmentFailureAndRepairURI
sp:
arg5
spin:
_arg3
]
]
;
sp:
variable
_:
b
6
sp:
variable
_:
b
5
])
]
.
...
...
@@ -166,14 +195,14 @@ ep-spin-lib:buildEquipmentTypeURI
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
7
)
;
sp:
resultVariables
(
_:
b
6
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
sp:
arg1
"http://www.reportinghub.no/ep/schema/drilling-equipment-type#"
;
sp:
arg2
spin:
_arg1
]
;
sp:
variable
_:
b
7
sp:
variable
_:
b
6
])
]
.
...
...
@@ -183,7 +212,7 @@ ep-spin-lib:buildExtractAWellCoreURI
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
8
)
;
sp:
resultVariables
(
_:
b
7
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -194,7 +223,7 @@ ep-spin-lib:buildExtractAWellCoreURI
sp:
arg3
spin:
_arg2
]
]
;
sp:
variable
_:
b
8
sp:
variable
_:
b
7
])
]
.
...
...
@@ -204,7 +233,7 @@ ep-spin-lib:buildFluidReadingURI
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
9
)
;
sp:
resultVariables
(
_:
b
8
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -217,7 +246,7 @@ ep-spin-lib:buildFluidReadingURI
sp:
arg5
spin:
_arg3
]
]
;
sp:
variable
_:
b
9
sp:
variable
_:
b
8
])
]
.
...
...
@@ -227,7 +256,7 @@ ep-spin-lib:buildGasReadingURI
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
10
)
;
sp:
resultVariables
(
_:
b
9
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -238,7 +267,7 @@ ep-spin-lib:buildGasReadingURI
sp:
arg3
spin:
_arg2
]
]
;
sp:
variable
_:
b
10
sp:
variable
_:
b
9
])
]
.
...
...
@@ -248,7 +277,7 @@ ep-spin-lib:buildLastCasingOfAWellBoreURI
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
1
)
;
sp:
resultVariables
(
_:
b1
0
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -259,7 +288,7 @@ ep-spin-lib:buildLastCasingOfAWellBoreURI
sp:
arg3
spin:
_arg2
]
]
;
sp:
variable
_:
b1
1
sp:
variable
_:
b1
0
])
]
.
...
...
@@ -269,7 +298,7 @@ ep-spin-lib:buildLithShowObservationURI
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
2
)
;
sp:
resultVariables
(
_:
b1
1
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -282,7 +311,7 @@ ep-spin-lib:buildLithShowObservationURI
sp:
arg5
spin:
_arg3
]
]
;
sp:
variable
_:
b1
2
sp:
variable
_:
b1
1
])
]
.
...
...
@@ -292,7 +321,7 @@ ep-spin-lib:buildOpenPerforationIntervalURI
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
3
)
;
sp:
resultVariables
(
_:
b1
2
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -303,7 +332,7 @@ ep-spin-lib:buildOpenPerforationIntervalURI
sp:
arg3
spin:
_arg2
]
]
;
sp:
variable
_:
b1
3
sp:
variable
_:
b1
2
])
]
.
...
...
@@ -313,7 +342,7 @@ ep-spin-lib:buildPartActivityURI
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
4
)
;
sp:
resultVariables
(
_:
b1
3
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -326,7 +355,7 @@ ep-spin-lib:buildPartActivityURI
sp:
arg5
spin:
_arg3
]
]
;
sp:
variable
_:
b1
4
sp:
variable
_:
b1
3
])
]
.
...
...
@@ -336,7 +365,7 @@ ep-spin-lib:buildPartOfAWellBoreDuringWellTestURI
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
5
)
;
sp:
resultVariables
(
_:
b1
4
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -347,7 +376,7 @@ ep-spin-lib:buildPartOfAWellBoreDuringWellTestURI
sp:
arg3
spin:
_arg2
]
]
;
sp:
variable
_:
b1
5
sp:
variable
_:
b1
4
])
]
.
...
...
@@ -357,7 +386,7 @@ ep-spin-lib:buildPilotHoleOfAWellBoreURI
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
6
)
;
sp:
resultVariables
(
_:
b1
5
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -368,7 +397,7 @@ ep-spin-lib:buildPilotHoleOfAWellBoreURI
sp:
arg3
spin:
_arg2
]
]
;
sp:
variable
_:
b1
6
sp:
variable
_:
b1
5
])
]
.
...
...
@@ -378,7 +407,7 @@ ep-spin-lib:buildPorePressureDeterminationURI
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
7
)
;
sp:
resultVariables
(
_:
b1
6
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -391,7 +420,7 @@ ep-spin-lib:buildPorePressureDeterminationURI
sp:
arg5
spin:
_arg3
]
]
;
sp:
variable
_:
b1
7
sp:
variable
_:
b1
6
])
]
.
...
...
@@ -401,7 +430,7 @@ ep-spin-lib:buildPreliminaryZonationURI
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
8
)
;
sp:
resultVariables
(
_:
b1
7
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -414,7 +443,7 @@ ep-spin-lib:buildPreliminaryZonationURI
sp:
arg5
spin:
_arg3
]
]
;
sp:
variable
_:
b1
8
sp:
variable
_:
b1
7
])
]
.
...
...
@@ -444,7 +473,7 @@ ep-spin-lib:buildTemporalPartOfARigURI
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b1
9
)
;
sp:
resultVariables
(
_:
b1
8
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -457,7 +486,7 @@ ep-spin-lib:buildTemporalPartOfARigURI
sp:
arg5
spin:
_arg3
]
]
;
sp:
variable
_:
b1
9
sp:
variable
_:
b1
8
])
]
.
...
...
@@ -467,7 +496,7 @@ ep-spin-lib:buildTemporalPartOfAWellBoreDuringWellControlIncidentURI
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
20
)
;
sp:
resultVariables
(
_:
b
19
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -478,7 +507,7 @@ ep-spin-lib:buildTemporalPartOfAWellBoreDuringWellControlIncidentURI
sp:
arg3
spin:
_arg2
]
]
;
sp:
variable
_:
b
20
sp:
variable
_:
b
19
])
]
.
...
...
@@ -488,7 +517,7 @@ ep-spin-lib:buildTemporalPartOfAWellBoreURI
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b2
1
)
;
sp:
resultVariables
(
_:
b2
0
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -501,7 +530,7 @@ ep-spin-lib:buildTemporalPartOfAWellBoreURI
sp:
arg5
spin:
_arg3
]
]
;
sp:
variable
_:
b2
1
sp:
variable
_:
b2
0
])
]
.
...
...
@@ -511,7 +540,7 @@ ep-spin-lib:buildURI
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b2
2
)
;
sp:
resultVariables
(
_:
b2
1
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
iri
;
...
...
@@ -520,7 +549,7 @@ ep-spin-lib:buildURI
sp:
arg2
spin:
_arg2
]
]
;
sp:
variable
_:
b2
2
sp:
variable
_:
b2
1
])
]
;
spin:
constraint
...
...
@@ -540,7 +569,7 @@ ep-spin-lib:buildWellBoreDirectionalSurveyURI
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b2
3
)
;
sp:
resultVariables
(
_:
b2
2
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -553,7 +582,7 @@ ep-spin-lib:buildWellBoreDirectionalSurveyURI
sp:
arg5
spin:
_arg3
]
]
;
sp:
variable
_:
b2
3
sp:
variable
_:
b2
2
])
]
.
...
...
@@ -563,7 +592,7 @@ ep-spin-lib:buildWellBoreDrillBitRunURI
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b2
4
)
;
sp:
resultVariables
(
_:
b2
3
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -576,7 +605,7 @@ ep-spin-lib:buildWellBoreDrillBitRunURI
sp:
arg5
spin:
_arg3
]
]
;
sp:
variable
_:
b2
4
sp:
variable
_:
b2
3
])
]
.
...
...
@@ -586,7 +615,7 @@ ep-spin-lib:buildWellBoreDrillBitURI
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b2
5
)
;
sp:
resultVariables
(
_:
b2
4
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -597,7 +626,7 @@ ep-spin-lib:buildWellBoreDrillBitURI
sp:
arg3
spin:
_arg2
]
]
;
sp:
variable
_:
b2
5
sp:
variable
_:
b2
4
])
]
.
...
...
@@ -607,7 +636,7 @@ ep-spin-lib:buildWellBoreKickOffURI
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b2
6
)
;
sp:
resultVariables
(
_:
b2
5
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -616,7 +645,7 @@ ep-spin-lib:buildWellBoreKickOffURI
sp:
arg1
spin:
_arg1
]
]
;
sp:
variable
_:
b2
6
sp:
variable
_:
b2
5
])
]
.
...
...
@@ -626,7 +655,7 @@ ep-spin-lib:buildWellBoreLogRunURI
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b2
7
)
;
sp:
resultVariables
(
_:
b2
6
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -639,7 +668,7 @@ ep-spin-lib:buildWellBoreLogRunURI
sp:
arg5
spin:
_arg3
]
]
;
sp:
variable
_:
b2
7
sp:
variable
_:
b2
6
])
]
.
...
...
@@ -649,7 +678,7 @@ ep-spin-lib:buildWellCementJobURI
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b2
8
)
;
sp:
resultVariables
(
_:
b2
7
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -660,7 +689,7 @@ ep-spin-lib:buildWellCementJobURI
sp:
arg3
spin:
_arg2
]
]
;
sp:
variable
_:
b2
8
sp:
variable
_:
b2
7
])
]
.
...
...
@@ -670,7 +699,7 @@ ep-spin-lib:buildWellControlIncidentURI
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b2
9
)
;
sp:
resultVariables
(
_:
b2
8
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -681,7 +710,7 @@ ep-spin-lib:buildWellControlIncidentURI
sp:
arg3
spin:
_arg2
]
]
;
sp:
variable
_:
b2
9
sp:
variable
_:
b2
8
])
]
.
...
...
@@ -691,7 +720,7 @@ ep-spin-lib:buildWellStimulationURI
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
30
)
;
sp:
resultVariables
(
_:
b
29
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -702,7 +731,7 @@ ep-spin-lib:buildWellStimulationURI
sp:
arg3
spin:
_arg2
]
]
;
sp:
variable
_:
b
30
sp:
variable
_:
b
29
])
]
.
...
...
@@ -712,7 +741,7 @@ ep-spin-lib:buildWellTestURI
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b3
1
)
;
sp:
resultVariables
(
_:
b3
0
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -723,7 +752,7 @@ ep-spin-lib:buildWellTestURI
sp:
arg3
spin:
_arg2
]
]
;
sp:
variable
_:
b3
1
sp:
variable
_:
b3
0
])
]
.
...
...
@@ -733,7 +762,7 @@ ep-spin-lib:buildWirelineFormationTestURI
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b3
2
)
;
sp:
resultVariables
(
_:
b3
1
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildURI
;
...
...
@@ -744,7 +773,7 @@ ep-spin-lib:buildWirelineFormationTestURI
sp:
arg3
spin:
_arg2
]
]
;
sp:
variable
_:
b3
2
sp:
variable
_:
b3
1
])
]
.
...
...
@@ -820,13 +849,68 @@ ep-spin-lib:nameWellbore
]
;
spin:
returnType
xsd:
string
.
ep-spin-lib:
normalizeDoubleName
rdf:
type
spin:
Function
;
rdfs:
label
"normalize an xsd:double to a rounded name string"
^^
xsd:
string
;
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
([
sp:
varName
"normalizedDouble"
^^
xsd:
string
])
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
xsd:
string
;
sp:
arg1
spin:
_arg1
]
;
sp:
variable
[
sp:
varName
"str"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
fn:
string-length
;
sp:
arg1
[
sp:
varName
"str"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"len"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
afn:
min
;
sp:
arg1
[
sp:
varName
"len"
^^
xsd:
string
]
;
sp:
arg2
5
]
;
sp:
variable
[
sp:
varName
"ind2"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
fn:
substring
;
sp:
arg1
[
sp:
varName
"str"
^^
xsd:
string
]
;
sp:
arg2
1
;
sp:
arg3
[
sp:
varName
"ind2"
^^
xsd:
string
]
]
;
sp:
variable
[
sp:
varName
"normalizedDouble"
^^
xsd:
string
]
])
]
;
spin:
constraint
[
rdf:
type
spl:
Argument
;
spl:
predicate
sp:
arg1
;
spl:
valueType
xsd:
double
]
.
ep-spin-lib:
normalizeString
rdf:
type
spin:
Function
;
rdfs:
label
"normalize string"
^^
xsd:
string
;
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b3
3
)
;
sp:
resultVariables
(
_:
b3
2
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
regex
;
...
...
@@ -834,67 +918,67 @@ ep-spin-lib:normalizeString
sp:
arg2
"\\((.*)\\)"
;
sp:
arg3
""
]
;
sp:
variable
_:
b3
4
sp:
variable
_:
b3
3
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
trim
;
sp:
arg1
_:
b3
4
sp:
arg1
_:
b3
3
]
;
sp:
variable
_:
b3
5
sp:
variable
_:
b3
4
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
encodeURL
;
sp:
arg1
_:
b3
5
sp:
arg1
_:
b3
4
]
;
sp:
variable
_:
b3
6
sp:
variable
_:
b3
5
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
regex
;
sp:
arg1
_:
b3
6
;
sp:
arg1
_:
b3
5
;
sp:
arg2
"%2F"
;
sp:
arg3
"_"
]
;
sp:
variable
_:
b3
7
sp:
variable
_:
b3
6
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
regex
;
sp:
arg1
_:
b3
7
;
sp:
arg1
_:
b3
6
;
sp:
arg2
"%[0-9A-F][0-9A-F]"
;
sp:
arg3
""
]
;
sp:
variable
_:
b3
8
sp:
variable
_:
b3
7
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
regex
;
sp:
arg1
_:
b3
8
;
sp:
arg1
_:
b3
7
;
sp:
arg2
"\\+"
;
sp:
arg3
"_"
]
;
sp:
variable
_:
b3
9
sp:
variable
_:
b3
8
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
regex
;
sp:
arg1
_:
b3
9
;
sp:
arg1
_:
b3
8
;
sp:
arg2
"_+"
;
sp:
arg3
"_"
]
;
sp:
variable
_:
b
40
sp:
variable
_:
b
39
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
smf:
regex
;
sp:
arg1
_:
b
40
;
sp:
arg1
_:
b
39
;
sp:
arg2
"\\*"
;
sp:
arg3
""
]
;
sp:
variable
_:
b4
1
sp:
variable
_:
b4
0
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
xsd:
string
;
sp:
arg1
[
rdf:
type
smf:
upperCase
;
sp:
arg1
_:
b4
1
sp:
arg1
_:
b4
0
]
]
;
sp:
variable
_:
b3
3
sp:
variable
_:
b3
2
])
]
;
spin:
constraint
...
...
@@ -909,7 +993,7 @@ ep-spin-lib:selectActivitySuccessType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b4
2
)
;
sp:
resultVariables
(
_:
b4
1
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -920,7 +1004,7 @@ ep-spin-lib:selectActivitySuccessType
sp:
arg2
<http://www.reportinghub.no/ep/schema/activity#SuccessfulActivity>
;
sp:
arg3
<http://www.reportinghub.no/ep/schema/activity#FailedActivity>
]
;
sp:
variable
_:
b4
2
sp:
variable
_:
b4
1
])
]
.
...
...
@@ -930,7 +1014,7 @@ ep-spin-lib:selectCasingRoleType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b4
3
)
;
sp:
resultVariables
(
_:
b4
2
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -955,7 +1039,7 @@ ep-spin-lib:selectCasingRoleType
]
]
]
;
sp:
variable
_:
b4
3
sp:
variable
_:
b4
2
])
]
.
...
...
@@ -965,7 +1049,7 @@ ep-spin-lib:selectCementingFluidReturnType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b4
4
)
;
sp:
resultVariables
(
_:
b4
3
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -976,7 +1060,7 @@ ep-spin-lib:selectCementingFluidReturnType
sp:
arg2
<http://www.reportinghub.no/ep/schema/activity#WellCementPumpingWithFluidReturn>
;
sp:
arg3
<http://www.reportinghub.no/ep/schema/activity#WellCementPumpingWithoutFluidReturn>
]
;
sp:
variable
_:
b4
4
sp:
variable
_:
b4
3
])
]
.
...
...
@@ -986,7 +1070,7 @@ ep-spin-lib:selectClassOfWellDatumObject
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b4
5
)
;
sp:
resultVariables
(
_:
b4
4
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -1004,7 +1088,7 @@ ep-spin-lib:selectClassOfWellDatumObject
sp:
arg3
owl:
Nothing
]
]
;
sp:
variable
_:
b4
5
sp:
variable
_:
b4
4
])
]
.
...
...
@@ -1014,7 +1098,7 @@ ep-spin-lib:selectComponentType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b4
6
)
;
sp:
resultVariables
(
_:
b4
5
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -1053,7 +1137,7 @@ ep-spin-lib:selectComponentType
]
]
]
;
sp:
variable
_:
b4
6
sp:
variable
_:
b4
5
])
]
.
...
...
@@ -1063,7 +1147,7 @@ ep-spin-lib:selectDailyDrillingReportType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b4
7
)
;
sp:
resultVariables
(
_:
b4
6
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -1081,7 +1165,7 @@ ep-spin-lib:selectDailyDrillingReportType
sp:
arg3
<http://www.reportinghub.no/ep/schema/report#FinalDailyDrillingReport>
]
]
;
sp:
variable
_:
b4
7
sp:
variable
_:
b4
6
])
]
.
...
...
@@ -1091,7 +1175,7 @@ ep-spin-lib:selectDensityScale
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b4
8
)
;
sp:
resultVariables
(
_:
b4
7
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -1109,7 +1193,7 @@ ep-spin-lib:selectDensityScale
sp:
arg3
<http://www.reportinghub.no/ep/schema/core#undefinedScale>
]
]
;
sp:
variable
_:
b4
8
sp:
variable
_:
b4
7
])
]
.
...
...
@@ -1119,7 +1203,7 @@ ep-spin-lib:selectDrillingActivityOutcomeType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b4
9
)
;
sp:
resultVariables
(
_:
b4
8
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -1186,7 +1270,7 @@ ep-spin-lib:selectDrillingActivityOutcomeType
]
]
]
;
sp:
variable
_:
b4
9
sp:
variable
_:
b4
8
])
]
.
...
...
@@ -1196,7 +1280,7 @@ ep-spin-lib:selectDrillingActivityPurposeType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
50
)
;
sp:
resultVariables
(
_:
b
49
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -1781,7 +1865,7 @@ ep-spin-lib:selectDrillingActivityPurposeType
]
]
]
;
sp:
variable
_:
b
50
sp:
variable
_:
b
49
])
]
.
...
...
@@ -1791,7 +1875,7 @@ ep-spin-lib:selectDrillingActivityTypeAccordingToEquipmentType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b5
1
)
;
sp:
resultVariables
(
_:
b5
0
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -1830,7 +1914,7 @@ ep-spin-lib:selectDrillingActivityTypeAccordingToEquipmentType
]
]
]
;
sp:
variable
_:
b5
1
sp:
variable
_:
b5
0
])
]
.
...
...
@@ -1840,7 +1924,7 @@ ep-spin-lib:selectDrillingEquipmentType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b5
2
)
;
sp:
resultVariables
(
_:
b5
1
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -2257,7 +2341,7 @@ ep-spin-lib:selectDrillingEquipmentType
]
]
]
;
sp:
variable
_:
b5
2
sp:
variable
_:
b5
1
])
]
.
...
...
@@ -2267,7 +2351,7 @@ ep-spin-lib:selectFixedOrMoveableRigType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b5
3
)
;
sp:
resultVariables
(
_:
b5
2
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -2278,7 +2362,7 @@ ep-spin-lib:selectFixedOrMoveableRigType
sp:
arg2
<http://www.reportinghub.no/ep/schema/facility#FixedRig>
;
sp:
arg3
<http://www.reportinghub.no/ep/schema/facility#MoveableRig>
]
;
sp:
variable
_:
b5
3
sp:
variable
_:
b5
2
])
]
.
...
...
@@ -2288,7 +2372,7 @@ ep-spin-lib:selectFluidType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b5
4
)
;
sp:
resultVariables
(
_:
b5
3
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -2320,7 +2404,7 @@ ep-spin-lib:selectFluidType
]
]
]
;
sp:
variable
_:
b5
4
sp:
variable
_:
b5
3
])
]
.
...
...
@@ -2330,7 +2414,7 @@ ep-spin-lib:selectGasReadingType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b5
5
)
;
sp:
resultVariables
(
_:
b5
4
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -2397,7 +2481,7 @@ ep-spin-lib:selectGasReadingType
]
]
]
;
sp:
variable
_:
b5
5
sp:
variable
_:
b5
4
])
]
.
...
...
@@ -2407,7 +2491,7 @@ ep-spin-lib:selectInnerBarrelType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b5
6
)
;
sp:
resultVariables
(
_:
b5
5
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -2439,7 +2523,7 @@ ep-spin-lib:selectInnerBarrelType
]
]
]
;
sp:
variable
_:
b5
6
sp:
variable
_:
b5
5
])
]
.
...
...
@@ -2449,7 +2533,7 @@ ep-spin-lib:selectLabelOfSystem
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b5
7
)
;
sp:
resultVariables
(
_:
b5
6
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -2495,7 +2579,7 @@ ep-spin-lib:selectLabelOfSystem
]
]
]
;
sp:
variable
_:
b5
7
sp:
variable
_:
b5
6
])
]
.
...
...
@@ -2505,7 +2589,7 @@ ep-spin-lib:selectLengthScale
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b5
8
)
;
sp:
resultVariables
(
_:
b5
7
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -2586,7 +2670,7 @@ ep-spin-lib:selectLengthScale
]
]
]
;
sp:
variable
_:
b5
8
sp:
variable
_:
b5
7
])
]
.
...
...
@@ -2596,7 +2680,7 @@ ep-spin-lib:selectMassPerUnitLengthScale
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b5
9
)
;
sp:
resultVariables
(
_:
b5
8
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -2607,7 +2691,7 @@ ep-spin-lib:selectMassPerUnitLengthScale
sp:
arg2
<http://www.reportinghub.no/ep/schema/core#pound_foot-1>
;
sp:
arg3
<http://www.reportinghub.no/ep/schema/core#undefinedScale>
]
;
sp:
variable
_:
b5
9
sp:
variable
_:
b5
8
])
]
.
...
...
@@ -2617,7 +2701,7 @@ ep-spin-lib:selectMudClass
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
60
)
;
sp:
resultVariables
(
_:
b
59
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -2642,7 +2726,7 @@ ep-spin-lib:selectMudClass
]
]
]
;
sp:
variable
_:
b
60
sp:
variable
_:
b
59
])
]
.
...
...
@@ -2652,7 +2736,7 @@ ep-spin-lib:selectPlaneAngleScale
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b6
1
)
;
sp:
resultVariables
(
_:
b6
0
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -2663,7 +2747,7 @@ ep-spin-lib:selectPlaneAngleScale
sp:
arg2
<http://www.reportinghub.no/ep/schema/core#degreesOfAngle>
;
sp:
arg3
<http://www.reportinghub.no/ep/schema/core#undefinedScale>
]
;
sp:
variable
_:
b6
1
sp:
variable
_:
b6
0
])
]
.
...
...
@@ -2673,7 +2757,7 @@ ep-spin-lib:selectPlasticViscosityScale
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b6
2
)
;
sp:
resultVariables
(
_:
b6
1
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -2747,7 +2831,7 @@ ep-spin-lib:selectPlasticViscosityScale
]
]
]
;
sp:
variable
_:
b6
2
sp:
variable
_:
b6
1
])
]
.
...
...
@@ -2757,7 +2841,7 @@ ep-spin-lib:selectPorePressureDeterminationType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b6
3
)
;
sp:
resultVariables
(
_:
b6
2
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -2775,7 +2859,7 @@ ep-spin-lib:selectPorePressureDeterminationType
sp:
arg3
<http://www.reportinghub.no/ep/schema/activity#PorePressureDetermination>
]
]
;
sp:
variable
_:
b6
3
sp:
variable
_:
b6
2
])
]
.
...
...
@@ -2785,7 +2869,7 @@ ep-spin-lib:selectPressureScale
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b6
4
)
;
sp:
resultVariables
(
_:
b6
3
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -2824,7 +2908,7 @@ ep-spin-lib:selectPressureScale
]
]
]
;
sp:
variable
_:
b6
4
sp:
variable
_:
b6
3
])
]
.
...
...
@@ -2834,7 +2918,7 @@ ep-spin-lib:selectPressureTestType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b6
5
)
;
sp:
resultVariables
(
_:
b6
4
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -2852,7 +2936,7 @@ ep-spin-lib:selectPressureTestType
sp:
arg3
<http://www.reportinghub.no/ep/schema/activity#WellBorePressureTest>
]
]
;
sp:
variable
_:
b6
5
sp:
variable
_:
b6
4
])
]
.
...
...
@@ -2862,7 +2946,7 @@ ep-spin-lib:selectSpecificMassScale
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b6
6
)
;
sp:
resultVariables
(
_:
b6
5
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -2873,7 +2957,7 @@ ep-spin-lib:selectSpecificMassScale
sp:
arg2
<http://www.reportinghub.no/ep/schema/core#partPerMillionByMass>
;
sp:
arg3
<http://www.reportinghub.no/ep/schema/core#undefinedScale>
]
;
sp:
variable
_:
b6
6
sp:
variable
_:
b6
5
])
]
.
...
...
@@ -2883,7 +2967,7 @@ ep-spin-lib:selectSpecificVolumeScale
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b6
7
)
;
sp:
resultVariables
(
_:
b6
6
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -2943,7 +3027,7 @@ ep-spin-lib:selectSpecificVolumeScale
]
]
]
;
sp:
variable
_:
b6
7
sp:
variable
_:
b6
6
])
]
.
...
...
@@ -2953,7 +3037,7 @@ ep-spin-lib:selectSpeedScale
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b6
8
)
;
sp:
resultVariables
(
_:
b6
7
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -2964,7 +3048,7 @@ ep-spin-lib:selectSpeedScale
sp:
arg2
<http://www.reportinghub.no/ep/schema/core#metre_hour-1>
;
sp:
arg3
<http://www.reportinghub.no/ep/schema/core#undefinedScale>
]
;
sp:
variable
_:
b6
8
sp:
variable
_:
b6
7
])
]
.
...
...
@@ -2974,7 +3058,7 @@ ep-spin-lib:selectStrengthOfRockFormationScale
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b6
9
)
;
sp:
resultVariables
(
_:
b6
8
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -2992,7 +3076,7 @@ ep-spin-lib:selectStrengthOfRockFormationScale
sp:
arg3
<http://www.reportinghub.no/ep/schema/core#undefinedScale>
]
]
;
sp:
variable
_:
b6
9
sp:
variable
_:
b6
8
])
]
.
...
...
@@ -3002,7 +3086,7 @@ ep-spin-lib:selectTemperatureScale
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
70
)
;
sp:
resultVariables
(
_:
b
69
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -3013,7 +3097,7 @@ ep-spin-lib:selectTemperatureScale
sp:
arg2
<http://www.reportinghub.no/ep/schema/core#celsius>
;
sp:
arg3
<http://www.reportinghub.no/ep/schema/core#undefinedScale>
]
;
sp:
variable
_:
b
70
sp:
variable
_:
b
69
])
]
.
...
...
@@ -3023,7 +3107,7 @@ ep-spin-lib:selectTimeDurationScale
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b7
1
)
;
sp:
resultVariables
(
_:
b7
0
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -3069,7 +3153,7 @@ ep-spin-lib:selectTimeDurationScale
]
]
]
;
sp:
variable
_:
b7
1
sp:
variable
_:
b7
0
])
]
.
...
...
@@ -3117,7 +3201,7 @@ ep-spin-lib:selectVolumeScale
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b7
2
)
;
sp:
resultVariables
(
_:
b7
1
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -3142,7 +3226,7 @@ ep-spin-lib:selectVolumeScale
]
]
]
;
sp:
variable
_:
b7
2
sp:
variable
_:
b7
1
])
]
.
...
...
@@ -3152,7 +3236,7 @@ ep-spin-lib:selectVolumetricFlowRateScale
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b7
3
)
;
sp:
resultVariables
(
_:
b7
2
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -3177,7 +3261,7 @@ ep-spin-lib:selectVolumetricFlowRateScale
]
]
]
;
sp:
variable
_:
b7
3
sp:
variable
_:
b7
2
])
]
.
...
...
@@ -3187,7 +3271,7 @@ ep-spin-lib:selectWellBoreDrillingType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b7
4
)
;
sp:
resultVariables
(
_:
b7
3
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -3233,7 +3317,7 @@ ep-spin-lib:selectWellBoreDrillingType
]
]
]
;
sp:
variable
_:
b7
4
sp:
variable
_:
b7
3
])
]
.
...
...
@@ -3243,7 +3327,7 @@ ep-spin-lib:selectWellBoreHphtType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b7
5
)
;
sp:
resultVariables
(
_:
b7
4
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -3254,7 +3338,7 @@ ep-spin-lib:selectWellBoreHphtType
sp:
arg2
<http://www.reportinghub.no/ep/schema/well#HphtWellBore>
;
sp:
arg3
<http://www.reportinghub.no/ep/schema/well#NotHphtWellBore>
]
;
sp:
variable
_:
b7
5
sp:
variable
_:
b7
4
])
]
.
...
...
@@ -3264,7 +3348,7 @@ ep-spin-lib:selectWellBoreTightnessType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b7
6
)
;
sp:
resultVariables
(
_:
b7
5
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -3275,7 +3359,7 @@ ep-spin-lib:selectWellBoreTightnessType
sp:
arg2
<http://www.reportinghub.no/ep/schema/well#TightWellBore>
;
sp:
arg3
<http://www.reportinghub.no/ep/schema/well#LeakyWellBore>
]
;
sp:
variable
_:
b7
6
sp:
variable
_:
b7
5
])
]
.
...
...
@@ -3285,7 +3369,7 @@ ep-spin-lib:selectWellCementJobBottomPlugType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b7
7
)
;
sp:
resultVariables
(
_:
b7
6
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -3296,7 +3380,7 @@ ep-spin-lib:selectWellCementJobBottomPlugType
sp:
arg2
<http://www.reportinghub.no/ep/schema/activity#WellCementJobWithBottomPlug>
;
sp:
arg3
<http://www.reportinghub.no/ep/schema/activity#WellCementJobWithoutBottomPlug>
]
;
sp:
variable
_:
b7
7
sp:
variable
_:
b7
6
])
]
.
...
...
@@ -3306,7 +3390,7 @@ ep-spin-lib:selectWellCementJobCasingReciprocationType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b7
8
)
;
sp:
resultVariables
(
_:
b7
7
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -3317,7 +3401,7 @@ ep-spin-lib:selectWellCementJobCasingReciprocationType
sp:
arg2
<http://www.reportinghub.no/ep/schema/activity#WellCementJobWithCasingReciprocation>
;
sp:
arg3
<http://www.reportinghub.no/ep/schema/activity#WellCementJobWithoutCasingReciprocation>
]
;
sp:
variable
_:
b7
8
sp:
variable
_:
b7
7
])
]
.
...
...
@@ -3327,7 +3411,7 @@ ep-spin-lib:selectWellCementJobCasingRotationType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b7
9
)
;
sp:
resultVariables
(
_:
b7
8
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -3338,7 +3422,7 @@ ep-spin-lib:selectWellCementJobCasingRotationType
sp:
arg2
<http://www.reportinghub.no/ep/schema/activity#WellCementJobWithCasingRotation>
;
sp:
arg3
<http://www.reportinghub.no/ep/schema/activity#WellCementJobWithoutCasingRotation>
]
;
sp:
variable
_:
b7
9
sp:
variable
_:
b7
8
])
]
.
...
...
@@ -3348,7 +3432,7 @@ ep-spin-lib:selectWellCementJobFloatHoldingType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b
80
)
;
sp:
resultVariables
(
_:
b
79
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -3359,7 +3443,7 @@ ep-spin-lib:selectWellCementJobFloatHoldingType
sp:
arg2
<http://www.reportinghub.no/ep/schema/activity#WellCementJobWithFloatHolding>
;
sp:
arg3
<http://www.reportinghub.no/ep/schema/activity#WellCementJobWithoutFloatHolding>
]
;
sp:
variable
_:
b
80
sp:
variable
_:
b
79
])
]
.
...
...
@@ -3369,7 +3453,7 @@ ep-spin-lib:selectWellCementJobPlugBumpingType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b8
1
)
;
sp:
resultVariables
(
_:
b8
0
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -3380,7 +3464,7 @@ ep-spin-lib:selectWellCementJobPlugBumpingType
sp:
arg2
<http://www.reportinghub.no/ep/schema/activity#WellCementJobWithPlugBumping>
;
sp:
arg3
<http://www.reportinghub.no/ep/schema/activity#WellCementJobWithoutPlugBumping>
]
;
sp:
variable
_:
b8
1
sp:
variable
_:
b8
0
])
]
.
...
...
@@ -3390,7 +3474,7 @@ ep-spin-lib:selectWellCementJobTopPlugType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b8
2
)
;
sp:
resultVariables
(
_:
b8
1
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -3401,7 +3485,7 @@ ep-spin-lib:selectWellCementJobTopPlugType
sp:
arg2
<http://www.reportinghub.no/ep/schema/activity#WellCementJobWithTopPlug>
;
sp:
arg3
<http://www.reportinghub.no/ep/schema/activity#WellCementJobWithoutTopPlug>
]
;
sp:
variable
_:
b8
2
sp:
variable
_:
b8
1
])
]
.
...
...
@@ -3411,7 +3495,7 @@ ep-spin-lib:selectWellCementJobType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b8
3
)
;
sp:
resultVariables
(
_:
b8
2
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -3443,7 +3527,7 @@ ep-spin-lib:selectWellCementJobType
]
]
]
;
sp:
variable
_:
b8
3
sp:
variable
_:
b8
2
])
]
.
...
...
@@ -3453,7 +3537,7 @@ ep-spin-lib:selectWellControlIncidentType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b8
4
)
;
sp:
resultVariables
(
_:
b8
3
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -3485,7 +3569,7 @@ ep-spin-lib:selectWellControlIncidentType
]
]
]
;
sp:
variable
_:
b8
4
sp:
variable
_:
b8
3
])
]
.
...
...
@@ -3495,7 +3579,7 @@ ep-spin-lib:selectWellKillingType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b8
5
)
;
sp:
resultVariables
(
_:
b8
4
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -3541,7 +3625,7 @@ ep-spin-lib:selectWellKillingType
]
]
]
;
sp:
variable
_:
b8
5
sp:
variable
_:
b8
4
])
]
.
...
...
@@ -3551,7 +3635,7 @@ ep-spin-lib:selectWellTestType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b8
6
)
;
sp:
resultVariables
(
_:
b8
5
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -3569,7 +3653,7 @@ ep-spin-lib:selectWellTestType
sp:
arg3
<http://www.reportinghub.no/ep/schema/activity#WellTest>
]
]
;
sp:
variable
_:
b8
6
sp:
variable
_:
b8
5
])
]
.
...
...
@@ -3579,7 +3663,7 @@ ep-spin-lib:selectWirelineFormationTestGoodnessOfSealType
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b8
7
)
;
sp:
resultVariables
(
_:
b8
6
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -3590,7 +3674,7 @@ ep-spin-lib:selectWirelineFormationTestGoodnessOfSealType
sp:
arg2
<http://www.reportinghub.no/ep/schema/activity#WirelineFormationTestWithGoodSeal>
;
sp:
arg3
<http://www.reportinghub.no/ep/schema/activity#WirelineFormationTestWithoutGoodSeal>
]
;
sp:
variable
_:
b8
7
sp:
variable
_:
b8
6
])
]
.
...
...
@@ -3600,7 +3684,7 @@ ep-spin-lib:selectYieldPointScale
rdfs:
subClassOf
ep-spin-lib:
Function
;
spin:
body
[
rdf:
type
sp:
Select
;
sp:
resultVariables
(
_:
b8
8
)
;
sp:
resultVariables
(
_:
b8
7
)
;
sp:
where
([
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
sp:
if
;
...
...
@@ -3625,7 +3709,7 @@ ep-spin-lib:selectYieldPointScale
]
]
]
;
sp:
variable
_:
b8
8
sp:
variable
_:
b8
7
])
]
.
...
...
@@ -3719,172 +3803,169 @@ _:b31
sp:
varName
"uri"
^^
xsd:
string
.
_:
b32
sp:
varName
"uri"
^^
xsd:
string
.
_:
b33
sp:
varName
"normalizedStr"
^^
xsd:
string
.
_:
b3
4
_:
b3
3
sp:
varName
"s1"
^^
xsd:
string
.
_:
b3
5
_:
b3
4
sp:
varName
"s2"
^^
xsd:
string
.
_:
b3
6
_:
b3
5
sp:
varName
"t0a"
^^
xsd:
string
.
_:
b3
7
_:
b3
6
sp:
varName
"t0b"
^^
xsd:
string
.
_:
b3
8
_:
b3
7
sp:
varName
"t1"
^^
xsd:
string
.
_:
b3
9
_:
b3
8
sp:
varName
"t2"
^^
xsd:
string
.
_:
b
40
_:
b
39
sp:
varName
"t3"
^^
xsd:
string
.
_:
b4
1
_:
b4
0
sp:
varName
"t4"
^^
xsd:
string
.
_:
b4
2
_:
b4
1
sp:
varName
"activitySuccessType"
^^
xsd:
string
.
_:
b4
3
_:
b4
2
sp:
varName
"casingRoleType"
^^
xsd:
string
.
_:
b4
4
_:
b4
3
sp:
varName
"cementingFluidReturnType"
^^
xsd:
string
.
_:
b4
5
_:
b4
4
sp:
varName
"classOfWellDatumObject"
^^
xsd:
string
.
_:
b4
6
_:
b4
5
sp:
varName
"componentType"
^^
xsd:
string
.
_:
b4
7
_:
b4
6
sp:
varName
"dailyDrillingReportType"
^^
xsd:
string
.
_:
b4
8
_:
b4
7
sp:
varName
"densityScale"
^^
xsd:
string
.
_:
b4
9
_:
b4
8
sp:
varName
"drillingActivityOutcomeType"
^^
xsd:
string
.
_:
b
50
_:
b
49
sp:
varName
"drillingActivityPurposeType"
^^
xsd:
string
.
_:
b5
1
_:
b5
0
sp:
varName
"drillingActivityTypeAccordingToEquipmentType"
^^
xsd:
string
.
_:
b5
2
_:
b5
1
sp:
varName
"drillingEquipmentType"
^^
xsd:
string
.
_:
b5
3
_:
b5
2
sp:
varName
"fixedOrMoveableRigType"
^^
xsd:
string
.
_:
b5
4
_:
b5
3
sp:
varName
"fluidType"
^^
xsd:
string
.
_:
b5
5
_:
b5
4
sp:
varName
"gasReadingType"
^^
xsd:
string
.
_:
b5
6
_:
b5
5
sp:
varName
"innerBarrelType"
^^
xsd:
string
.
_:
b5
7
_:
b5
6
sp:
varName
"dailyDrillingReportType"
^^
xsd:
string
.
_:
b5
8
_:
b5
7
sp:
varName
"lengthScale"
^^
xsd:
string
.
_:
b5
9
_:
b5
8
sp:
varName
"massPerUnitLengthScale"
^^
xsd:
string
.
_:
b
60
_:
b
59
sp:
varName
"mudClass"
^^
xsd:
string
.
_:
b6
1
_:
b6
0
sp:
varName
"angleScale"
^^
xsd:
string
.
_:
b6
2
_:
b6
1
sp:
varName
"plasticViscosityScale"
^^
xsd:
string
.
_:
b6
3
_:
b6
2
sp:
varName
"porePressureDeterminationType"
^^
xsd:
string
.
_:
b6
4
_:
b6
3
sp:
varName
"pressureScale"
^^
xsd:
string
.
_:
b6
5
_:
b6
4
sp:
varName
"pressureTestType"
^^
xsd:
string
.
_:
b6
6
_:
b6
5
sp:
varName
"specificMassScale"
^^
xsd:
string
.
_:
b6
7
_:
b6
6
sp:
varName
"specificVolumeScale"
^^
xsd:
string
.
_:
b6
8
_:
b6
7
sp:
varName
"speedScale"
^^
xsd:
string
.
_:
b6
9
_:
b6
8
sp:
varName
"strengthScale"
^^
xsd:
string
.
_:
b
70
_:
b
69
sp:
varName
"temperatureScale"
^^
xsd:
string
.
_:
b7
1
_:
b7
0
sp:
varName
"durationScale"
^^
xsd:
string
.
_:
b7
2
_:
b7
1
sp:
varName
"volumeScale"
^^
xsd:
string
.
_:
b7
3
_:
b7
2
sp:
varName
"volumetricFlowRateScale"
^^
xsd:
string
.
_:
b7
4
_:
b7
3
sp:
varName
"wellBoreDrillingType"
^^
xsd:
string
.
_:
b7
5
_:
b7
4
sp:
varName
"wellBoreHphtType"
^^
xsd:
string
.
_:
b7
6
_:
b7
5
sp:
varName
"wellBoreTightnessType"
^^
xsd:
string
.
_:
b7
7
_:
b7
6
sp:
varName
"wellCementJobBottomPlugType"
^^
xsd:
string
.
_:
b7
8
_:
b7
7
sp:
varName
"wellCementJobCasingReciprocationType"
^^
xsd:
string
.
_:
b7
9
_:
b7
8
sp:
varName
"wellCementJobCasingRotationType"
^^
xsd:
string
.
_:
b
80
_:
b
79
sp:
varName
"wellCementJobFloatHoldingType"
^^
xsd:
string
.
_:
b8
1
_:
b8
0
sp:
varName
"wellCementJobPlugBumpingType"
^^
xsd:
string
.
_:
b8
2
_:
b8
1
sp:
varName
"wellCementJobTopPlugType"
^^
xsd:
string
.
_:
b8
3
_:
b8
2
sp:
varName
"wellCementJobType"
^^
xsd:
string
.
_:
b8
4
_:
b8
3
sp:
varName
"wellControlIncidentType"
^^
xsd:
string
.
_:
b8
5
_:
b8
4
sp:
varName
"wellKillingType"
^^
xsd:
string
.
_:
b8
6
_:
b8
5
sp:
varName
"wellTestType"
^^
xsd:
string
.
_:
b8
7
_:
b8
6
sp:
varName
"wirelineFormationTestGoodnessOfSealType"
^^
xsd:
string
.
_:
b8
8
_:
b8
7
sp:
varName
"yieldPointScale"
^^
xsd:
string
.
...
...
www.reportinghub.no/ep/transform/TRANSFORM_ddr-bitRecord-v1.1.1.ttl
View file @
017fd30
# Saved by TopBraid on Thu Oct 27 11:10:33 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/bitRecord
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.witsml.org/schemas/1series
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
# imports: http://spinrdf.org/spin
@prefix
:
<http://www.reportinghub.no/ep/transform/1.1/ddr/bitRecord#>
.
@prefix
afn:
<http://jena.hpl.hp.com/ARQ/function#>
.
...
...
@@ -20,7 +19,7 @@
<http://www.reportinghub.no/ep/transform/1.1/ddr/bitRecord>
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/activity>
,
<http://spinrdf.org/spin
>
;
owl:
imports
<http://
spinrdf.org/spin>
,
<http://www.reportinghub.no/ep/schema/1.0/activity>
,
<http://www.reportinghub.no/ep/spin/1.1/lib>
,
<http://www.witsml.org/schemas/1series
>
;
owl:
versionInfo
"Created with TopBraid Composer"
^^
xsd:
string
.
<http://www.witsml.org/schemas/1series#Obj_drillReport>
...
...
@@ -29,387 +28,426 @@
rdfs:
comment
"STEP 190a Create a well bore bit run activity"
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/activity#WellBoreDrillBitRun-singleRun>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b1
]
[
sp:
object
_:
b2
;
sp:
subject
[
sp:
varName
"wellBoreDrillBitRun"
^^
xsd:
string
]
]
[
sp:
object
_:
b1
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b1
sp:
subject
[
sp:
varName
"wellBoreDrillBitRun"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/activity#WellBoreDrillBitRun-entire>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
2
]
[
sp:
object
_:
b
3
;
sp:
subject
_:
b
1
]
[
sp:
object
_:
b
2
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#hasPart>
;
sp:
subject
_:
b4
]
[
sp:
object
_:
b1
;
sp:
subject
[
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"wellBoreDrillBitRun"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b
3
sp:
subject
_:
b
2
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/activity#WellBoreDrillBitRun-withinReportingPeriod>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
3
]
[
sp:
object
_:
b
5
;
sp:
subject
_:
b
2
]
[
sp:
object
_:
b
3
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#onWellBore>
;
sp:
subject
_:
b
3
sp:
subject
_:
b
2
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b5
]
[
sp:
object
_:
b6
;
sp:
subject
_:
b3
]
[
sp:
object
[
sp:
varName
"dailyTemporalPartOfAWellBore"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b
5
]
[
sp:
object
_:
b
7
;
sp:
subject
_:
b
3
]
[
sp:
object
_:
b
4
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#onDrillBit>
;
sp:
subject
_:
b1
sp:
subject
[
sp:
varName
"wellBoreDrillBitRun"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/equipment#Equipment>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b7
]
[
sp:
object
_:
b8
;
sp:
subject
_:
b4
]
[
sp:
object
[
sp:
varName
"drillBitForWellBore"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b
7
sp:
subject
_:
b
4
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/equipment#DrillBitForWellBore>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b8
]
[
sp:
object
_:
b9
;
sp:
subject
[
sp:
varName
"drillBitForWellBore"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"numBit"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#name>
;
sp:
subject
_:
b8
]
[
sp:
object
_:
b10
;
sp:
subject
[
sp:
varName
"drillBitForWellBore"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"wellBoreDrillBitClass"
^^
xsd:
string
]
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b8
sp:
subject
[
sp:
varName
"drillBitForWellBore"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/equipment#ClassOfSupplyDefinedByAManufacturer>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b10
]
[
sp:
object
_:
b11
;
sp:
subject
[
sp:
varName
"wellBoreDrillBitClass"
^^
xsd:
string
]
]
[
sp:
object
_:
b5
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/equipment#diameterOfDrillBit>
;
sp:
subject
_:
b10
sp:
subject
[
sp:
varName
"wellBoreDrillBitClass"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#Length>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b11
]
[
sp:
object
_:
b12
;
sp:
predicate
_:
b13
;
sp:
subject
_:
b11
]
[
sp:
object
_:
b14
;
sp:
subject
_:
b5
]
[
sp:
object
[
sp:
varName
"realDia"
^^
xsd:
string
]
;
sp:
predicate
[
sp:
varName
"lengthScaleDia"
^^
xsd:
string
]
;
sp:
subject
_:
b5
]
[
sp:
object
_:
b6
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/equipment#manufacturedBy>
;
sp:
subject
_:
b8
sp:
subject
[
sp:
varName
"drillBitForWellBore"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/organization#Organization>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b14
]
[
sp:
object
_:
b15
;
sp:
subject
_:
b6
]
[
sp:
object
[
sp:
varName
"nameManufacturer"
^^
xsd:
string
]
;
sp:
predicate
rdfs:
label
;
sp:
subject
_:
b14
]
[
sp:
object
_:
b16
;
sp:
subject
_:
b6
]
[
sp:
object
[
sp:
varName
"codeMfg"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/equipment#codeAssignedByAManufacturer>
;
sp:
subject
_:
b10
sp:
subject
[
sp:
varName
"wellBoreDrillBitClass"
^^
xsd:
string
]
])
;
sp:
where
([
sp:
object
_:
b17
;
sp:
where
([
sp:
object
[
sp:
varName
"nameWellBore"
^^
xsd:
string
]
;
sp:
predicate
ep-spin-lib:
nameWellbore
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b18
;
]
[
sp:
object
[
sp:
varName
"dTimStart"
^^
xsd:
string
]
;
sp:
predicate
<http://www.witsml.org/schemas/1series#dTimStart>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b6
;
]
[
sp:
object
[
sp:
varName
"dailyTemporalPartOfAWellBore"
^^
xsd:
string
]
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#onWellBore>
;
sp:
subject
_:
b4
]
[
sp:
object
_:
b19
;
sp:
subject
[
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"bitRecord"
^^
xsd:
string
]
;
sp:
predicate
<http://www.witsml.org/schemas/1series#bitRecordRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b9
;
]
[
sp:
object
[
sp:
varName
"numBit"
^^
xsd:
string
]
;
sp:
predicate
<http://www.witsml.org/schemas/1series#numBit>
;
sp:
subject
_:
b19
]
[
sp:
object
_:
b20
;
sp:
subject
[
sp:
varName
"bitRecord"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"diaBit"
^^
xsd:
string
]
;
sp:
predicate
<http://www.witsml.org/schemas/1series#diaBitRef>
;
sp:
subject
_:
b19
]
[
sp:
object
_:
b21
;
sp:
subject
[
sp:
varName
"bitRecord"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"uomDia"
^^
xsd:
string
]
;
sp:
predicate
<http://www.witsml.org/schemas/1series#uomRef>
;
sp:
subject
_:
b20
]
[
sp:
object
_:
b12
;
sp:
subject
[
sp:
varName
"diaBit"
^^
xsd:
string
]
]
[
sp:
object
[
sp:
varName
"realDia"
^^
xsd:
string
]
;
sp:
predicate
<http://www.linkedmodel.org/schema/dtype#value>
;
sp:
subject
_:
b20
sp:
subject
[
sp:
varName
"diaBit"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
_:
b15
;
sp:
elements
([
sp:
object
[
sp:
varName
"nameManufacturer"
^^
xsd:
string
]
;
sp:
predicate
<http://www.witsml.org/schemas/1series#manufacturer>
;
sp:
subject
_:
b19
sp:
subject
[
sp:
varName
"bitRecord"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
Optional
;
sp:
elements
([
sp:
object
_:
b16
;
sp:
elements
([
sp:
object
[
sp:
varName
"codeMfg"
^^
xsd:
string
]
;
sp:
predicate
<http://www.witsml.org/schemas/1series#codeMfg>
;
sp:
subject
_:
b19
sp:
subject
[
sp:
varName
"bitRecord"
^^
xsd:
string
]
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b17
sp:
arg1
[
sp:
varName
"nameWellBore"
^^
xsd:
string
]
]
;
sp:
variable
_:
b22
sp:
variable
[
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildDailyDrillingActivityURI
;
sp:
arg1
_:
b22
;
sp:
arg2
_:
b18
sp:
arg1
[
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
]
;
sp:
arg2
[
sp:
varName
"dTimStart"
^^
xsd:
string
]
]
;
sp:
variable
_:
b4
sp:
variable
[
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b19
sp:
arg1
[
sp:
varName
"bitRecord"
^^
xsd:
string
]
]
;
sp:
variable
_:
b23
sp:
variable
[
sp:
varName
"localname"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildWellBoreDrillBitRunURI
;
sp:
arg1
_:
b22
;
sp:
arg2
_:
b18
;
sp:
arg3
_:
b23
]
;
sp:
variable
_:
b1
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b9
]
;
sp:
variable
_:
b24
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildWellBoreDrillBitURI
;
sp:
arg1
_:
b22
;
sp:
arg2
_:
b24
sp:
arg1
[
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
]
;
sp:
variable
_:
b8
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
selectLengthScale
;
sp:
arg1
_:
b21
sp:
arg2
[
sp:
varName
"dTimStart"
^^
xsd:
string
]
;
sp:
variable
_:
b13
])
sp:
arg3
[
sp:
varName
"localname"
^^
xsd:
string
]
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 190d Classify a drillbit according to dull grade - dull grade class exists"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b25
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b26
])
;
sp:
where
([
sp:
object
_:
b27
;
sp:
predicate
ep-spin-lib:
nameWellbore
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b28
;
sp:
predicate
<http://www.witsml.org/schemas/1series#dTimStart>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b29
;
sp:
predicate
<http://www.witsml.org/schemas/1series#bitRecordRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b30
;
sp:
predicate
<http://www.witsml.org/schemas/1series#numBit>
;
sp:
subject
_:
b29
]
[
sp:
object
_:
b31
;
sp:
predicate
<http://www.witsml.org/schemas/1series#dullGrade>
;
sp:
subject
_:
b29
]
[
sp:
object
_:
b26
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#onDrillBit>
;
sp:
subject
_:
b32
]
[
sp:
object
_:
b33
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b26
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/equipment#DullGrade>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b25
sp:
variable
[
sp:
varName
"wellBoreDrillBitRun"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b27
]
;
sp:
variable
_:
b34
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b29
sp:
arg1
[
sp:
varName
"numBit"
^^
xsd:
string
]
]
;
sp:
variable
_:
b35
sp:
variable
[
sp:
varName
"normalizedNumBit"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildWellBoreDrillBitRunURI
;
sp:
arg1
_:
b34
;
sp:
arg2
_:
b28
;
sp:
arg3
_:
b35
[
rdf:
type
ep-spin-lib:
buildWellBoreDrillBitURI
;
sp:
arg1
[
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
]
;
sp:
variable
_:
b32
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b30
sp:
arg2
[
sp:
varName
"normalizedNumBit"
^^
xsd:
string
]
]
;
sp:
variable
_:
b36
sp:
variable
[
sp:
varName
"drillBitForWellBore"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildWellBoreDrillBitURI
;
sp:
arg1
_:
b34
;
sp:
arg2
_:
b36
[
rdf:
type
ep-spin-lib:
selectLengthScale
;
sp:
arg1
[
sp:
varName
"uomDia"
^^
xsd:
string
]
]
;
sp:
variable
_:
b33
sp:
variable
[
sp:
varName
"lengthScaleDia"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b31
[
rdf:
type
ep-spin-lib:
normalizeDoubleName
;
sp:
arg1
[
sp:
varName
"realDia"
^^
xsd:
string
]
]
;
sp:
variable
_:
b37
sp:
variable
[
sp:
varName
"diaName"
^^
xsd:
string
]
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildDullGradeURI
;
sp:
arg1
_:
b37
[
rdf:
type
ep-spin-lib:
buildDrillBitClassURI
;
sp:
arg1
[
sp:
varName
"diaName"
^^
xsd:
string
]
]
;
sp:
variable
_:
b25
sp:
variable
[
sp:
varName
"wellBoreDrillBitClass"
^^
xsd:
string
]
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 190b Create a well bore bit run activity"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b
38
;
sp:
templates
([
sp:
object
_:
b
7
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#durationOfDrilling>
;
sp:
subject
[
sp:
varName
"wellBoreDrillBitRun"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#TimeDuration>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
38
sp:
subject
_:
b
7
]
[
sp:
object
[
sp:
varName
"realHrsDrilledRun"
^^
xsd:
string
]
;
sp:
predicate
[
sp:
varName
"durationScaleHrsDrilledRun"
^^
xsd:
string
]
;
sp:
subject
_:
b
38
]
[
sp:
object
_:
b
39
;
sp:
subject
_:
b
7
]
[
sp:
object
_:
b
8
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#distanceDrilled>
;
sp:
subject
[
sp:
varName
"wellBoreDrillBitRun"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#Length>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
39
sp:
subject
_:
b
8
]
[
sp:
object
[
sp:
varName
"realHoleMadeRun"
^^
xsd:
string
]
;
sp:
predicate
[
sp:
varName
"lengthScaleHoleMadeRun"
^^
xsd:
string
]
;
sp:
subject
_:
b
39
]
[
sp:
object
_:
b
40
;
sp:
subject
_:
b
8
]
[
sp:
object
_:
b
9
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#durationOfDrilling>
;
sp:
subject
[
sp:
varName
"wellBoreDrillBitRunEntire"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#TimeDuration>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
40
sp:
subject
_:
b
9
]
[
sp:
object
[
sp:
varName
"realHrsDrilledTot"
^^
xsd:
string
]
;
sp:
predicate
[
sp:
varName
"durationScaleHrsDrilledTot"
^^
xsd:
string
]
;
sp:
subject
_:
b
40
]
[
sp:
object
_:
b
41
;
sp:
subject
_:
b
9
]
[
sp:
object
_:
b
10
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#distanceDrilled>
;
sp:
subject
[
sp:
varName
"wellBoreDrillBitRunEntire"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#Length>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
41
sp:
subject
_:
b
10
]
[
sp:
object
[
sp:
varName
"realHoleMadeTot"
^^
xsd:
string
]
;
sp:
predicate
[
sp:
varName
"lengthScaleHoleMadeTot"
^^
xsd:
string
]
;
sp:
subject
_:
b
41
]
[
sp:
object
_:
b
42
;
sp:
subject
_:
b
10
]
[
sp:
object
_:
b
11
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#averageRateOfDrilling>
;
sp:
subject
[
sp:
varName
"wellBoreDrillBitRunEntire"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#Speed>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
42
sp:
subject
_:
b
11
]
[
sp:
object
[
sp:
varName
"realRopTot"
^^
xsd:
string
]
;
sp:
predicate
[
sp:
varName
"speedScaleRopTot"
^^
xsd:
string
]
;
sp:
subject
_:
b
42
]
[
sp:
object
_:
b
43
;
sp:
subject
_:
b
11
]
[
sp:
object
_:
b
12
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#operatingTimeOfDrillBit>
;
sp:
subject
[
sp:
varName
"wellBoreDrillBitRunWithinReportingPeriod"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#TimeDuration>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
43
sp:
subject
_:
b
12
]
[
sp:
object
[
sp:
varName
"realETim"
^^
xsd:
string
]
;
sp:
predicate
[
sp:
varName
"durationScaleETim"
^^
xsd:
string
]
;
sp:
subject
_:
b
43
]
[
sp:
object
_:
b
44
;
sp:
subject
_:
b
12
]
[
sp:
object
_:
b
13
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#durationOfDrilling>
;
sp:
subject
[
sp:
varName
"wellBoreDrillBitRunWithinReportingPeriod"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#TimeDuration>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
44
sp:
subject
_:
b
13
]
[
sp:
object
[
sp:
varName
"realHrsDrilled"
^^
xsd:
string
]
;
sp:
predicate
[
sp:
varName
"durationScaleHrsDrilled"
^^
xsd:
string
]
;
sp:
subject
_:
b
44
]
[
sp:
object
_:
b
45
;
sp:
subject
_:
b
13
]
[
sp:
object
_:
b
14
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#averageRateOfDrilling>
;
sp:
subject
[
sp:
varName
"wellBoreDrillBitRunWithinReportingPeriod"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#Speed>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
45
sp:
subject
_:
b
14
]
[
sp:
object
[
sp:
varName
"realRop"
^^
xsd:
string
]
;
sp:
predicate
[
sp:
varName
"speedScaleRop"
^^
xsd:
string
]
;
sp:
subject
_:
b
45
]
[
sp:
object
_:
b
46
;
sp:
subject
_:
b
14
]
[
sp:
object
_:
b
15
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/well#initialBottomHoleMeasuredDepth>
;
sp:
subject
[
sp:
varName
"temporalPartOfWellBoreDuringDrillingRunWithinReportingPeriod"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#Length>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
46
sp:
subject
_:
b
15
]
[
sp:
object
[
sp:
varName
"realMdStart"
^^
xsd:
string
]
;
sp:
predicate
[
sp:
varName
"lengthScaleMdStart"
^^
xsd:
string
]
;
sp:
subject
_:
b
46
]
[
sp:
object
_:
b
47
;
sp:
subject
_:
b
15
]
[
sp:
object
_:
b
16
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/well#finalBottomHoleMeasuredDepth>
;
sp:
subject
[
sp:
varName
"temporalPartOfWellBoreDuringDrillingRunWithinReportingPeriod"
^^
xsd:
string
]
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/core#Length>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
47
sp:
subject
_:
b
16
]
[
sp:
object
[
sp:
varName
"realMdStop"
^^
xsd:
string
]
;
sp:
predicate
[
sp:
varName
"lengthScaleMdStop"
^^
xsd:
string
]
;
sp:
subject
_:
b
47
sp:
subject
_:
b
16
])
;
sp:
where
([
sp:
object
[
sp:
varName
"nameWellBore"
^^
xsd:
string
...
...
@@ -855,211 +893,243 @@
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 190d Classify a drillbit according to dull grade - dull grade class exists"
^^
xsd:
string
;
sp:
templates
([
sp:
object
_:
b17
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b18
])
;
sp:
where
([
sp:
object
_:
b19
;
sp:
predicate
ep-spin-lib:
nameWellbore
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b20
;
sp:
predicate
<http://www.witsml.org/schemas/1series#dTimStart>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b21
;
sp:
predicate
<http://www.witsml.org/schemas/1series#bitRecordRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b22
;
sp:
predicate
<http://www.witsml.org/schemas/1series#numBit>
;
sp:
subject
_:
b21
]
[
sp:
object
_:
b23
;
sp:
predicate
<http://www.witsml.org/schemas/1series#dullGrade>
;
sp:
subject
_:
b21
]
[
sp:
object
_:
b18
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#onDrillBit>
;
sp:
subject
_:
b24
]
[
sp:
object
_:
b25
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b18
]
[
sp:
object
<http://www.reportinghub.no/ep/schema/equipment#DullGrade>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b17
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b19
]
;
sp:
variable
_:
b26
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b21
]
;
sp:
variable
_:
b27
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildWellBoreDrillBitRunURI
;
sp:
arg1
_:
b26
;
sp:
arg2
_:
b20
;
sp:
arg3
_:
b27
]
;
sp:
variable
_:
b24
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b22
]
;
sp:
variable
_:
b28
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildWellBoreDrillBitURI
;
sp:
arg1
_:
b26
;
sp:
arg2
_:
b28
]
;
sp:
variable
_:
b25
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b23
]
;
sp:
variable
_:
b29
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildDullGradeURI
;
sp:
arg1
_:
b29
]
;
sp:
variable
_:
b17
])
]
;
spin:
rule
[
rdf:
type
sp:
Construct
;
rdfs:
comment
"STEP 190c Classify a drillbit according to dull grade - dull grade class does not exist"
^^
xsd:
string
;
sp:
templates
([
sp:
object
<http://www.reportinghub.no/ep/schema/equipment#DullGrade>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
48
]
[
sp:
object
_:
b
49
;
sp:
subject
_:
b
30
]
[
sp:
object
_:
b
31
;
sp:
predicate
rdfs:
label
;
sp:
subject
_:
b
48
]
[
sp:
object
_:
b
48
;
sp:
subject
_:
b
30
]
[
sp:
object
_:
b
30
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
50
sp:
subject
_:
b
32
])
;
sp:
where
([
sp:
object
_:
b
51
;
sp:
where
([
sp:
object
_:
b
33
;
sp:
predicate
ep-spin-lib:
nameWellbore
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b
52
;
]
[
sp:
object
_:
b
34
;
sp:
predicate
<http://www.witsml.org/schemas/1series#dTimStart>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b
53
;
]
[
sp:
object
_:
b
35
;
sp:
predicate
<http://www.witsml.org/schemas/1series#bitRecordRef>
;
sp:
subject
spin:
_this
]
[
sp:
object
_:
b
54
;
]
[
sp:
object
_:
b
36
;
sp:
predicate
<http://www.witsml.org/schemas/1series#numBit>
;
sp:
subject
_:
b
53
]
[
sp:
object
_:
b
49
;
sp:
subject
_:
b
35
]
[
sp:
object
_:
b
31
;
sp:
predicate
<http://www.witsml.org/schemas/1series#dullGrade>
;
sp:
subject
_:
b
53
]
[
sp:
object
_:
b
50
;
sp:
subject
_:
b
35
]
[
sp:
object
_:
b
32
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/activity#onDrillBit>
;
sp:
subject
_:
b
55
]
[
sp:
object
_:
b
56
;
sp:
subject
_:
b
37
]
[
sp:
object
_:
b
38
;
sp:
predicate
<http://www.reportinghub.no/ep/schema/core#temporalPartOf>
;
sp:
subject
_:
b
50
sp:
subject
_:
b
32
]
[
rdf:
type
sp:
NotExists
;
sp:
elements
([
sp:
object
<http://www.reportinghub.no/ep/schema/equipment#DullGrade>
;
sp:
predicate
rdf:
type
;
sp:
subject
_:
b
48
sp:
subject
_:
b
30
])
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b
51
sp:
arg1
_:
b
33
]
;
sp:
variable
_:
b
57
sp:
variable
_:
b
39
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
afn:
localname
;
sp:
arg1
_:
b
53
sp:
arg1
_:
b
35
]
;
sp:
variable
_:
b
58
sp:
variable
_:
b
40
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildWellBoreDrillBitRunURI
;
sp:
arg1
_:
b
57
;
sp:
arg2
_:
b
52
;
sp:
arg3
_:
b
58
sp:
arg1
_:
b
39
;
sp:
arg2
_:
b
34
;
sp:
arg3
_:
b
40
]
;
sp:
variable
_:
b
55
sp:
variable
_:
b
37
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b
54
sp:
arg1
_:
b
36
]
;
sp:
variable
_:
b
59
sp:
variable
_:
b
41
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildWellBoreDrillBitURI
;
sp:
arg1
_:
b
57
;
sp:
arg2
_:
b
59
sp:
arg1
_:
b
39
;
sp:
arg2
_:
b
41
]
;
sp:
variable
_:
b
56
sp:
variable
_:
b
38
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
normalizeString
;
sp:
arg1
_:
b
49
sp:
arg1
_:
b
31
]
;
sp:
variable
_:
b
60
sp:
variable
_:
b
42
]
[
rdf:
type
sp:
Bind
;
sp:
expression
[
rdf:
type
ep-spin-lib:
buildDullGradeURI
;
sp:
arg1
_:
b
60
sp:
arg1
_:
b
42
]
;
sp:
variable
_:
b
48
sp:
variable
_:
b
30
])
]
.
_:
b17
sp:
varName
"
nameWellBor
e"
^^
xsd:
string
.
sp:
varName
"
dullGrad
e"
^^
xsd:
string
.
_:
b18
sp:
varName
"dTimStart"
^^
xsd:
string
.
_:
b4
sp:
varName
"dailyDrillingActivity"
^^
xsd:
string
.
_:
b6
sp:
varName
"dailyTemporalPartOfAWellBore"
^^
xsd:
string
.
sp:
varName
"temporalPartOfADrillBit"
^^
xsd:
string
.
_:
b19
sp:
varName
"bitRecord"
^^
xsd:
string
.
_:
b9
sp:
varName
"numBit"
^^
xsd:
string
.
sp:
varName
"nameWellBore"
^^
xsd:
string
.
_:
b20
sp:
varName
"d
iaBi
t"
^^
xsd:
string
.
sp:
varName
"d
TimStar
t"
^^
xsd:
string
.
_:
b21
sp:
varName
"uomDia"
^^
xsd:
string
.
_:
b12
sp:
varName
"realDia"
^^
xsd:
string
.
_:
b15
sp:
varName
"nameManufacturer"
^^
xsd:
string
.
_:
b16
sp:
varName
"codeMfg"
^^
xsd:
string
.
sp:
varName
"bitRecord"
^^
xsd:
string
.
_:
b22
sp:
varName
"n
ormalizedWellBoreName
"
^^
xsd:
string
.
sp:
varName
"n
umBit
"
^^
xsd:
string
.
_:
b23
sp:
varName
"localname"
^^
xsd:
string
.
_:
b1
sp:
varName
"wellBoreDrillBitRun"
^^
xsd:
string
.
sp:
varName
"dullGradeLabel"
^^
xsd:
string
.
_:
b24
sp:
varName
"
normalizedNumBit
"
^^
xsd:
string
.
sp:
varName
"
wellBoreDrillBitRun
"
^^
xsd:
string
.
_:
b8
sp:
varName
"drillBitForWellBore"
^^
xsd:
string
.
_:
b25
sp:
varName
"drillBitForWellBore"
^^
xsd:
string
.
_:
b
13
sp:
varName
"
lengthScaleDia
"
^^
xsd:
string
.
_:
b
26
sp:
varName
"
normalizedWellBoreName
"
^^
xsd:
string
.
_:
b27
sp:
varName
"
nameWellBor
e"
^^
xsd:
string
.
sp:
varName
"
localnam
e"
^^
xsd:
string
.
_:
b28
sp:
varName
"
dTimStar
t"
^^
xsd:
string
.
sp:
varName
"
normalizedNumBi
t"
^^
xsd:
string
.
_:
b29
sp:
varName
"
bitRecord
"
^^
xsd:
string
.
sp:
varName
"
normalizedDullGradeLabel
"
^^
xsd:
string
.
_:
b30
sp:
varName
"
numBit
"
^^
xsd:
string
.
sp:
varName
"
dullGrade
"
^^
xsd:
string
.
_:
b31
sp:
varName
"dullGradeLabel"
^^
xsd:
string
.
_:
b32
sp:
varName
"wellBoreDrillBitRun"
^^
xsd:
string
.
_:
b26
sp:
varName
"temporalPartOfADrillBit"
^^
xsd:
string
.
_:
b33
sp:
varName
"drillBitForWellBore"
^^
xsd:
string
.
_:
b25
sp:
varName
"dullGrade"
^^
xsd:
string
.
_:
b34
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
.
_:
b35
sp:
varName
"localname"
^^
xsd:
string
.
_:
b36
sp:
varName
"normalizedNumBit"
^^
xsd:
string
.
_:
b37
sp:
varName
"normalizedDullGradeLabel"
^^
xsd:
string
.
_:
b51
sp:
varName
"nameWellBore"
^^
xsd:
string
.
_:
b
52
_:
b
34
sp:
varName
"dTimStart"
^^
xsd:
string
.
_:
b
53
_:
b
35
sp:
varName
"bitRecord"
^^
xsd:
string
.
_:
b
54
_:
b
36
sp:
varName
"numBit"
^^
xsd:
string
.
_:
b49
sp:
varName
"dullGradeLabel"
^^
xsd:
string
.
_:
b55
_:
b37
sp:
varName
"wellBoreDrillBitRun"
^^
xsd:
string
.
_:
b50
sp:
varName
"temporalPartOfADrillBit"
^^
xsd:
string
.
_:
b56
_:
b38
sp:
varName
"drillBitForWellBore"
^^
xsd:
string
.
_:
b48
sp:
varName
"dullGrade"
^^
xsd:
string
.
_:
b57
_:
b39
sp:
varName
"normalizedWellBoreName"
^^
xsd:
string
.
_:
b
58
_:
b
40
sp:
varName
"localname"
^^
xsd:
string
.
_:
b
59
_:
b
41
sp:
varName
"normalizedNumBit"
^^
xsd:
string
.
_:
b
60
_:
b
42
sp:
varName
"normalizedDullGradeLabel"
^^
xsd:
string
.
...
...
Please
register
or
login
to post a comment