David Price

Made DrillBitClass construct and function

......@@ -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 "https://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 (_:b6) ;
sp:resultVariables (_:b5) ;
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 _:b6
sp:variable _:b5
])
] .
......@@ -166,14 +195,14 @@ ep-spin-lib:buildEquipmentTypeURI
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b7) ;
sp:resultVariables (_:b6) ;
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 _:b7
sp:variable _:b6
])
] .
......@@ -183,7 +212,7 @@ ep-spin-lib:buildExtractAWellCoreURI
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b8) ;
sp:resultVariables (_:b7) ;
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 _:b8
sp:variable _:b7
])
] .
......@@ -204,7 +233,7 @@ ep-spin-lib:buildFluidReadingURI
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b9) ;
sp:resultVariables (_:b8) ;
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 _:b9
sp:variable _:b8
])
] .
......@@ -227,7 +256,7 @@ ep-spin-lib:buildGasReadingURI
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b10) ;
sp:resultVariables (_:b9) ;
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 _:b10
sp:variable _:b9
])
] .
......@@ -248,7 +277,7 @@ ep-spin-lib:buildLastCasingOfAWellBoreURI
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b11) ;
sp:resultVariables (_:b10) ;
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 _:b11
sp:variable _:b10
])
] .
......@@ -269,7 +298,7 @@ ep-spin-lib:buildLithShowObservationURI
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b12) ;
sp:resultVariables (_:b11) ;
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 _:b12
sp:variable _:b11
])
] .
......@@ -292,7 +321,7 @@ ep-spin-lib:buildOpenPerforationIntervalURI
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b13) ;
sp:resultVariables (_:b12) ;
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 _:b13
sp:variable _:b12
])
] .
......@@ -313,7 +342,7 @@ ep-spin-lib:buildPartActivityURI
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b14) ;
sp:resultVariables (_:b13) ;
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 _:b14
sp:variable _:b13
])
] .
......@@ -336,7 +365,7 @@ ep-spin-lib:buildPartOfAWellBoreDuringWellTestURI
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b15) ;
sp:resultVariables (_:b14) ;
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 _:b15
sp:variable _:b14
])
] .
......@@ -357,7 +386,7 @@ ep-spin-lib:buildPilotHoleOfAWellBoreURI
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b16) ;
sp:resultVariables (_:b15) ;
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 _:b16
sp:variable _:b15
])
] .
......@@ -378,7 +407,7 @@ ep-spin-lib:buildPorePressureDeterminationURI
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b17) ;
sp:resultVariables (_:b16) ;
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 _:b17
sp:variable _:b16
])
] .
......@@ -401,7 +430,7 @@ ep-spin-lib:buildPreliminaryZonationURI
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b18) ;
sp:resultVariables (_:b17) ;
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 _:b18
sp:variable _:b17
])
] .
......@@ -444,7 +473,7 @@ ep-spin-lib:buildTemporalPartOfARigURI
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b19) ;
sp:resultVariables (_:b18) ;
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 _:b19
sp:variable _:b18
])
] .
......@@ -467,7 +496,7 @@ ep-spin-lib:buildTemporalPartOfAWellBoreDuringWellControlIncidentURI
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b20) ;
sp:resultVariables (_:b19) ;
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 _:b20
sp:variable _:b19
])
] .
......@@ -488,7 +517,7 @@ ep-spin-lib:buildTemporalPartOfAWellBoreURI
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b21) ;
sp:resultVariables (_:b20) ;
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 _:b21
sp:variable _:b20
])
] .
......@@ -511,7 +540,7 @@ ep-spin-lib:buildURI
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b22) ;
sp:resultVariables (_:b21) ;
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 _:b22
sp:variable _:b21
])
] ;
spin:constraint
......@@ -540,7 +569,7 @@ ep-spin-lib:buildWellBoreDirectionalSurveyURI
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b23) ;
sp:resultVariables (_:b22) ;
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 _:b23
sp:variable _:b22
])
] .
......@@ -563,7 +592,7 @@ ep-spin-lib:buildWellBoreDrillBitRunURI
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b24) ;
sp:resultVariables (_:b23) ;
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 _:b24
sp:variable _:b23
])
] .
......@@ -586,7 +615,7 @@ ep-spin-lib:buildWellBoreDrillBitURI
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b25) ;
sp:resultVariables (_:b24) ;
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 _:b25
sp:variable _:b24
])
] .
......@@ -607,7 +636,7 @@ ep-spin-lib:buildWellBoreKickOffURI
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b26) ;
sp:resultVariables (_:b25) ;
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 _:b26
sp:variable _:b25
])
] .
......@@ -626,7 +655,7 @@ ep-spin-lib:buildWellBoreLogRunURI
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b27) ;
sp:resultVariables (_:b26) ;
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 _:b27
sp:variable _:b26
])
] .
......@@ -649,7 +678,7 @@ ep-spin-lib:buildWellCementJobURI
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b28) ;
sp:resultVariables (_:b27) ;
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 _:b28
sp:variable _:b27
])
] .
......@@ -670,7 +699,7 @@ ep-spin-lib:buildWellControlIncidentURI
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b29) ;
sp:resultVariables (_:b28) ;
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 _:b29
sp:variable _:b28
])
] .
......@@ -691,7 +720,7 @@ ep-spin-lib:buildWellStimulationURI
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b30) ;
sp:resultVariables (_:b29) ;
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 _:b30
sp:variable _:b29
])
] .
......@@ -712,7 +741,7 @@ ep-spin-lib:buildWellTestURI
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b31) ;
sp:resultVariables (_:b30) ;
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 _:b31
sp:variable _:b30
])
] .
......@@ -733,7 +762,7 @@ ep-spin-lib:buildWirelineFormationTestURI
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b32) ;
sp:resultVariables (_:b31) ;
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 _:b32
sp:variable _:b31
])
] .
......@@ -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 (_:b33) ;
sp:resultVariables (_:b32) ;
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 _:b34
sp:variable _:b33
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:trim ;
sp:arg1 _:b34
sp:arg1 _:b33
] ;
sp:variable _:b35
sp:variable _:b34
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:encodeURL ;
sp:arg1 _:b35
sp:arg1 _:b34
] ;
sp:variable _:b36
sp:variable _:b35
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b36 ;
sp:arg1 _:b35 ;
sp:arg2 "%2F" ;
sp:arg3 "_"
] ;
sp:variable _:b37
sp:variable _:b36
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b37 ;
sp:arg1 _:b36 ;
sp:arg2 "%[0-9A-F][0-9A-F]" ;
sp:arg3 ""
] ;
sp:variable _:b38
sp:variable _:b37
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b38 ;
sp:arg1 _:b37 ;
sp:arg2 "\\+" ;
sp:arg3 "_"
] ;
sp:variable _:b39
sp:variable _:b38
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b39 ;
sp:arg1 _:b38 ;
sp:arg2 "_+" ;
sp:arg3 "_"
] ;
sp:variable _:b40
sp:variable _:b39
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b40 ;
sp:arg1 _:b39 ;
sp:arg2 "\\*" ;
sp:arg3 ""
] ;
sp:variable _:b41
sp:variable _:b40
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:string ;
sp:arg1 [ rdf:type smf:upperCase ;
sp:arg1 _:b41
sp:arg1 _:b40
]
] ;
sp:variable _:b33
sp:variable _:b32
])
] ;
spin:constraint
......@@ -909,7 +993,7 @@ ep-spin-lib:selectActivitySuccessType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b42) ;
sp:resultVariables (_:b41) ;
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 _:b42
sp:variable _:b41
])
] .
......@@ -930,7 +1014,7 @@ ep-spin-lib:selectCasingRoleType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b43) ;
sp:resultVariables (_:b42) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -955,7 +1039,7 @@ ep-spin-lib:selectCasingRoleType
]
]
] ;
sp:variable _:b43
sp:variable _:b42
])
] .
......@@ -965,7 +1049,7 @@ ep-spin-lib:selectCementingFluidReturnType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b44) ;
sp:resultVariables (_:b43) ;
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 _:b44
sp:variable _:b43
])
] .
......@@ -986,7 +1070,7 @@ ep-spin-lib:selectClassOfWellDatumObject
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b45) ;
sp:resultVariables (_:b44) ;
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 _:b45
sp:variable _:b44
])
] .
......@@ -1014,7 +1098,7 @@ ep-spin-lib:selectComponentType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b46) ;
sp:resultVariables (_:b45) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -1053,7 +1137,7 @@ ep-spin-lib:selectComponentType
]
]
] ;
sp:variable _:b46
sp:variable _:b45
])
] .
......@@ -1063,7 +1147,7 @@ ep-spin-lib:selectDailyDrillingReportType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b47) ;
sp:resultVariables (_:b46) ;
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 _:b47
sp:variable _:b46
])
] .
......@@ -1091,7 +1175,7 @@ ep-spin-lib:selectDensityScale
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b48) ;
sp:resultVariables (_:b47) ;
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 _:b48
sp:variable _:b47
])
] .
......@@ -1119,7 +1203,7 @@ ep-spin-lib:selectDrillingActivityOutcomeType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b49) ;
sp:resultVariables (_:b48) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -1186,7 +1270,7 @@ ep-spin-lib:selectDrillingActivityOutcomeType
]
]
] ;
sp:variable _:b49
sp:variable _:b48
])
] .
......@@ -1196,7 +1280,7 @@ ep-spin-lib:selectDrillingActivityPurposeType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b50) ;
sp:resultVariables (_:b49) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -1781,7 +1865,7 @@ ep-spin-lib:selectDrillingActivityPurposeType
]
]
] ;
sp:variable _:b50
sp:variable _:b49
])
] .
......@@ -1791,7 +1875,7 @@ ep-spin-lib:selectDrillingActivityTypeAccordingToEquipmentType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b51) ;
sp:resultVariables (_:b50) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -1830,7 +1914,7 @@ ep-spin-lib:selectDrillingActivityTypeAccordingToEquipmentType
]
]
] ;
sp:variable _:b51
sp:variable _:b50
])
] .
......@@ -1840,7 +1924,7 @@ ep-spin-lib:selectDrillingEquipmentType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b52) ;
sp:resultVariables (_:b51) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2257,7 +2341,7 @@ ep-spin-lib:selectDrillingEquipmentType
]
]
] ;
sp:variable _:b52
sp:variable _:b51
])
] .
......@@ -2267,7 +2351,7 @@ ep-spin-lib:selectFixedOrMoveableRigType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b53) ;
sp:resultVariables (_:b52) ;
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 _:b53
sp:variable _:b52
])
] .
......@@ -2288,7 +2372,7 @@ ep-spin-lib:selectFluidType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b54) ;
sp:resultVariables (_:b53) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2320,7 +2404,7 @@ ep-spin-lib:selectFluidType
]
]
] ;
sp:variable _:b54
sp:variable _:b53
])
] .
......@@ -2330,7 +2414,7 @@ ep-spin-lib:selectGasReadingType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b55) ;
sp:resultVariables (_:b54) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2397,7 +2481,7 @@ ep-spin-lib:selectGasReadingType
]
]
] ;
sp:variable _:b55
sp:variable _:b54
])
] .
......@@ -2407,7 +2491,7 @@ ep-spin-lib:selectInnerBarrelType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b56) ;
sp:resultVariables (_:b55) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2439,7 +2523,7 @@ ep-spin-lib:selectInnerBarrelType
]
]
] ;
sp:variable _:b56
sp:variable _:b55
])
] .
......@@ -2449,7 +2533,7 @@ ep-spin-lib:selectLabelOfSystem
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b57) ;
sp:resultVariables (_:b56) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2495,7 +2579,7 @@ ep-spin-lib:selectLabelOfSystem
]
]
] ;
sp:variable _:b57
sp:variable _:b56
])
] .
......@@ -2505,7 +2589,7 @@ ep-spin-lib:selectLengthScale
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b58) ;
sp:resultVariables (_:b57) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2586,7 +2670,7 @@ ep-spin-lib:selectLengthScale
]
]
] ;
sp:variable _:b58
sp:variable _:b57
])
] .
......@@ -2596,7 +2680,7 @@ ep-spin-lib:selectMassPerUnitLengthScale
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b59) ;
sp:resultVariables (_:b58) ;
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 _:b59
sp:variable _:b58
])
] .
......@@ -2617,7 +2701,7 @@ ep-spin-lib:selectMudClass
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b60) ;
sp:resultVariables (_:b59) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2642,7 +2726,7 @@ ep-spin-lib:selectMudClass
]
]
] ;
sp:variable _:b60
sp:variable _:b59
])
] .
......@@ -2652,7 +2736,7 @@ ep-spin-lib:selectPlaneAngleScale
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b61) ;
sp:resultVariables (_:b60) ;
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 _:b61
sp:variable _:b60
])
] .
......@@ -2673,7 +2757,7 @@ ep-spin-lib:selectPlasticViscosityScale
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b62) ;
sp:resultVariables (_:b61) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2747,7 +2831,7 @@ ep-spin-lib:selectPlasticViscosityScale
]
]
] ;
sp:variable _:b62
sp:variable _:b61
])
] .
......@@ -2757,7 +2841,7 @@ ep-spin-lib:selectPorePressureDeterminationType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b63) ;
sp:resultVariables (_:b62) ;
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 _:b63
sp:variable _:b62
])
] .
......@@ -2785,7 +2869,7 @@ ep-spin-lib:selectPressureScale
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b64) ;
sp:resultVariables (_:b63) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2824,7 +2908,7 @@ ep-spin-lib:selectPressureScale
]
]
] ;
sp:variable _:b64
sp:variable _:b63
])
] .
......@@ -2834,7 +2918,7 @@ ep-spin-lib:selectPressureTestType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b65) ;
sp:resultVariables (_:b64) ;
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 _:b65
sp:variable _:b64
])
] .
......@@ -2862,7 +2946,7 @@ ep-spin-lib:selectSpecificMassScale
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b66) ;
sp:resultVariables (_:b65) ;
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 _:b66
sp:variable _:b65
])
] .
......@@ -2883,7 +2967,7 @@ ep-spin-lib:selectSpecificVolumeScale
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b67) ;
sp:resultVariables (_:b66) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2943,7 +3027,7 @@ ep-spin-lib:selectSpecificVolumeScale
]
]
] ;
sp:variable _:b67
sp:variable _:b66
])
] .
......@@ -2953,7 +3037,7 @@ ep-spin-lib:selectSpeedScale
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b68) ;
sp:resultVariables (_:b67) ;
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 _:b68
sp:variable _:b67
])
] .
......@@ -2974,7 +3058,7 @@ ep-spin-lib:selectStrengthOfRockFormationScale
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b69) ;
sp:resultVariables (_:b68) ;
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 _:b69
sp:variable _:b68
])
] .
......@@ -3002,7 +3086,7 @@ ep-spin-lib:selectTemperatureScale
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b70) ;
sp:resultVariables (_:b69) ;
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 _:b70
sp:variable _:b69
])
] .
......@@ -3023,7 +3107,7 @@ ep-spin-lib:selectTimeDurationScale
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b71) ;
sp:resultVariables (_:b70) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -3069,7 +3153,7 @@ ep-spin-lib:selectTimeDurationScale
]
]
] ;
sp:variable _:b71
sp:variable _:b70
])
] .
......@@ -3117,7 +3201,7 @@ ep-spin-lib:selectVolumeScale
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b72) ;
sp:resultVariables (_:b71) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -3142,7 +3226,7 @@ ep-spin-lib:selectVolumeScale
]
]
] ;
sp:variable _:b72
sp:variable _:b71
])
] .
......@@ -3152,7 +3236,7 @@ ep-spin-lib:selectVolumetricFlowRateScale
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b73) ;
sp:resultVariables (_:b72) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -3177,7 +3261,7 @@ ep-spin-lib:selectVolumetricFlowRateScale
]
]
] ;
sp:variable _:b73
sp:variable _:b72
])
] .
......@@ -3187,7 +3271,7 @@ ep-spin-lib:selectWellBoreDrillingType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b74) ;
sp:resultVariables (_:b73) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -3233,7 +3317,7 @@ ep-spin-lib:selectWellBoreDrillingType
]
]
] ;
sp:variable _:b74
sp:variable _:b73
])
] .
......@@ -3243,7 +3327,7 @@ ep-spin-lib:selectWellBoreHphtType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b75) ;
sp:resultVariables (_:b74) ;
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 _:b75
sp:variable _:b74
])
] .
......@@ -3264,7 +3348,7 @@ ep-spin-lib:selectWellBoreTightnessType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b76) ;
sp:resultVariables (_:b75) ;
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 _:b76
sp:variable _:b75
])
] .
......@@ -3285,7 +3369,7 @@ ep-spin-lib:selectWellCementJobBottomPlugType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b77) ;
sp:resultVariables (_:b76) ;
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 _:b77
sp:variable _:b76
])
] .
......@@ -3306,7 +3390,7 @@ ep-spin-lib:selectWellCementJobCasingReciprocationType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b78) ;
sp:resultVariables (_:b77) ;
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 _:b78
sp:variable _:b77
])
] .
......@@ -3327,7 +3411,7 @@ ep-spin-lib:selectWellCementJobCasingRotationType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b79) ;
sp:resultVariables (_:b78) ;
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 _:b79
sp:variable _:b78
])
] .
......@@ -3348,7 +3432,7 @@ ep-spin-lib:selectWellCementJobFloatHoldingType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b80) ;
sp:resultVariables (_:b79) ;
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 _:b80
sp:variable _:b79
])
] .
......@@ -3369,7 +3453,7 @@ ep-spin-lib:selectWellCementJobPlugBumpingType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b81) ;
sp:resultVariables (_:b80) ;
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 _:b81
sp:variable _:b80
])
] .
......@@ -3390,7 +3474,7 @@ ep-spin-lib:selectWellCementJobTopPlugType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b82) ;
sp:resultVariables (_:b81) ;
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 _:b82
sp:variable _:b81
])
] .
......@@ -3411,7 +3495,7 @@ ep-spin-lib:selectWellCementJobType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b83) ;
sp:resultVariables (_:b82) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -3443,7 +3527,7 @@ ep-spin-lib:selectWellCementJobType
]
]
] ;
sp:variable _:b83
sp:variable _:b82
])
] .
......@@ -3453,7 +3537,7 @@ ep-spin-lib:selectWellControlIncidentType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b84) ;
sp:resultVariables (_:b83) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -3485,7 +3569,7 @@ ep-spin-lib:selectWellControlIncidentType
]
]
] ;
sp:variable _:b84
sp:variable _:b83
])
] .
......@@ -3495,7 +3579,7 @@ ep-spin-lib:selectWellKillingType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b85) ;
sp:resultVariables (_:b84) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -3541,7 +3625,7 @@ ep-spin-lib:selectWellKillingType
]
]
] ;
sp:variable _:b85
sp:variable _:b84
])
] .
......@@ -3551,7 +3635,7 @@ ep-spin-lib:selectWellTestType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b86) ;
sp:resultVariables (_:b85) ;
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 _:b86
sp:variable _:b85
])
] .
......@@ -3579,7 +3663,7 @@ ep-spin-lib:selectWirelineFormationTestGoodnessOfSealType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b87) ;
sp:resultVariables (_:b86) ;
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 _:b87
sp:variable _:b86
])
] .
......@@ -3600,7 +3684,7 @@ ep-spin-lib:selectYieldPointScale
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b88) ;
sp:resultVariables (_:b87) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -3625,7 +3709,7 @@ ep-spin-lib:selectYieldPointScale
]
]
] ;
sp:variable _:b88
sp:variable _:b87
])
] .
......@@ -3719,172 +3803,169 @@ _:b31
sp:varName "uri"^^xsd:string .
_:b32
sp:varName "uri"^^xsd:string .
_:b33
sp:varName "normalizedStr"^^xsd:string .
_:b34
_:b33
sp:varName "s1"^^xsd:string .
_:b35
_:b34
sp:varName "s2"^^xsd:string .
_:b36
_:b35
sp:varName "t0a"^^xsd:string .
_:b37
_:b36
sp:varName "t0b"^^xsd:string .
_:b38
_:b37
sp:varName "t1"^^xsd:string .
_:b39
_:b38
sp:varName "t2"^^xsd:string .
_:b40
_:b39
sp:varName "t3"^^xsd:string .
_:b41
_:b40
sp:varName "t4"^^xsd:string .
_:b42
_:b41
sp:varName "activitySuccessType"^^xsd:string .
_:b43
_:b42
sp:varName "casingRoleType"^^xsd:string .
_:b44
_:b43
sp:varName "cementingFluidReturnType"^^xsd:string .
_:b45
_:b44
sp:varName "classOfWellDatumObject"^^xsd:string .
_:b46
_:b45
sp:varName "componentType"^^xsd:string .
_:b47
_:b46
sp:varName "dailyDrillingReportType"^^xsd:string .
_:b48
_:b47
sp:varName "densityScale"^^xsd:string .
_:b49
_:b48
sp:varName "drillingActivityOutcomeType"^^xsd:string .
_:b50
_:b49
sp:varName "drillingActivityPurposeType"^^xsd:string .
_:b51
_:b50
sp:varName "drillingActivityTypeAccordingToEquipmentType"^^xsd:string .
_:b52
_:b51
sp:varName "drillingEquipmentType"^^xsd:string .
_:b53
_:b52
sp:varName "fixedOrMoveableRigType"^^xsd:string .
_:b54
_:b53
sp:varName "fluidType"^^xsd:string .
_:b55
_:b54
sp:varName "gasReadingType"^^xsd:string .
_:b56
_:b55
sp:varName "innerBarrelType"^^xsd:string .
_:b57
_:b56
sp:varName "dailyDrillingReportType"^^xsd:string .
_:b58
_:b57
sp:varName "lengthScale"^^xsd:string .
_:b59
_:b58
sp:varName "massPerUnitLengthScale"^^xsd:string .
_:b60
_:b59
sp:varName "mudClass"^^xsd:string .
_:b61
_:b60
sp:varName "angleScale"^^xsd:string .
_:b62
_:b61
sp:varName "plasticViscosityScale"^^xsd:string .
_:b63
_:b62
sp:varName "porePressureDeterminationType"^^xsd:string .
_:b64
_:b63
sp:varName "pressureScale"^^xsd:string .
_:b65
_:b64
sp:varName "pressureTestType"^^xsd:string .
_:b66
_:b65
sp:varName "specificMassScale"^^xsd:string .
_:b67
_:b66
sp:varName "specificVolumeScale"^^xsd:string .
_:b68
_:b67
sp:varName "speedScale"^^xsd:string .
_:b69
_:b68
sp:varName "strengthScale"^^xsd:string .
_:b70
_:b69
sp:varName "temperatureScale"^^xsd:string .
_:b71
_:b70
sp:varName "durationScale"^^xsd:string .
_:b72
_:b71
sp:varName "volumeScale"^^xsd:string .
_:b73
_:b72
sp:varName "volumetricFlowRateScale"^^xsd:string .
_:b74
_:b73
sp:varName "wellBoreDrillingType"^^xsd:string .
_:b75
_:b74
sp:varName "wellBoreHphtType"^^xsd:string .
_:b76
_:b75
sp:varName "wellBoreTightnessType"^^xsd:string .
_:b77
_:b76
sp:varName "wellCementJobBottomPlugType"^^xsd:string .
_:b78
_:b77
sp:varName "wellCementJobCasingReciprocationType"^^xsd:string .
_:b79
_:b78
sp:varName "wellCementJobCasingRotationType"^^xsd:string .
_:b80
_:b79
sp:varName "wellCementJobFloatHoldingType"^^xsd:string .
_:b81
_:b80
sp:varName "wellCementJobPlugBumpingType"^^xsd:string .
_:b82
_:b81
sp:varName "wellCementJobTopPlugType"^^xsd:string .
_:b83
_:b82
sp:varName "wellCementJobType"^^xsd:string .
_:b84
_:b83
sp:varName "wellControlIncidentType"^^xsd:string .
_:b85
_:b84
sp:varName "wellKillingType"^^xsd:string .
_:b86
_:b85
sp:varName "wellTestType"^^xsd:string .
_:b87
_:b86
sp:varName "wirelineFormationTestGoodnessOfSealType"^^xsd:string .
_:b88
_:b87
sp:varName "yieldPointScale"^^xsd:string .
......
# 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 _:b2
] [ sp:object _:b3 ;
sp:subject _:b1
] [ sp:object _:b2 ;
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 _:b3
sp:subject _:b2
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellBoreDrillBitRun-withinReportingPeriod> ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object _:b5 ;
sp:subject _:b2
] [ sp:object _:b3 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b3
sp:subject _:b2
] [ 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 _:b5
] [ sp:object _:b7 ;
sp:subject _:b3
] [ sp:object _:b4 ;
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 _:b7
sp:subject _:b4
] [ 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:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
sp:arg2 [ sp:varName "dTimStart"^^xsd:string
] ;
sp:arg3 [ sp:varName "localname"^^xsd:string
]
] ;
sp:variable _:b1
sp:variable
[ sp:varName "wellBoreDrillBitRun"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b9
sp:arg1 [ sp:varName "numBit"^^xsd:string
]
] ;
sp:variable _:b24
sp:variable
[ sp:varName "normalizedNumBit"^^xsd:string
]
] [ 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:arg2 [ sp:varName "normalizedNumBit"^^xsd:string
]
] ;
sp:variable _:b8
sp:variable
[ sp:varName "drillBitForWellBore"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectLengthScale ;
sp:arg1 _:b21
] ;
sp:variable _:b13
])
] ;
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
] [ 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:variable _:b35
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildWellBoreDrillBitRunURI ;
sp:arg1 _:b34 ;
sp:arg2 _:b28 ;
sp:arg3 _:b35
] ;
sp:variable _:b32
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b30
] ;
sp:variable _:b36
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildWellBoreDrillBitURI ;
sp:arg1 _:b34 ;
sp:arg2 _:b36
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 _:b38 ;
sp:templates ([ sp:object _:b7 ;
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 _:b38
sp:subject _:b7
] [ sp:object
[ sp:varName "realHrsDrilledRun"^^xsd:string
] ;
sp:predicate
[ sp:varName "durationScaleHrsDrilledRun"^^xsd:string
] ;
sp:subject _:b38
] [ sp:object _:b39 ;
sp:subject _:b7
] [ sp:object _:b8 ;
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 _:b39
sp:subject _:b8
] [ sp:object
[ sp:varName "realHoleMadeRun"^^xsd:string
] ;
sp:predicate
[ sp:varName "lengthScaleHoleMadeRun"^^xsd:string
] ;
sp:subject _:b39
] [ sp:object _:b40 ;
sp:subject _:b8
] [ sp:object _:b9 ;
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 _:b40
sp:subject _:b9
] [ sp:object
[ sp:varName "realHrsDrilledTot"^^xsd:string
] ;
sp:predicate
[ sp:varName "durationScaleHrsDrilledTot"^^xsd:string
] ;
sp:subject _:b40
] [ sp:object _:b41 ;
sp:subject _:b9
] [ sp:object _:b10 ;
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 _:b41
sp:subject _:b10
] [ sp:object
[ sp:varName "realHoleMadeTot"^^xsd:string
] ;
sp:predicate
[ sp:varName "lengthScaleHoleMadeTot"^^xsd:string
] ;
sp:subject _:b41
] [ sp:object _:b42 ;
sp:subject _:b10
] [ sp:object _:b11 ;
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 _:b42
sp:subject _:b11
] [ sp:object
[ sp:varName "realRopTot"^^xsd:string
] ;
sp:predicate
[ sp:varName "speedScaleRopTot"^^xsd:string
] ;
sp:subject _:b42
] [ sp:object _:b43 ;
sp:subject _:b11
] [ sp:object _:b12 ;
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 _:b43
sp:subject _:b12
] [ sp:object
[ sp:varName "realETim"^^xsd:string
] ;
sp:predicate
[ sp:varName "durationScaleETim"^^xsd:string
] ;
sp:subject _:b43
] [ sp:object _:b44 ;
sp:subject _:b12
] [ sp:object _:b13 ;
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 _:b44
sp:subject _:b13
] [ sp:object
[ sp:varName "realHrsDrilled"^^xsd:string
] ;
sp:predicate
[ sp:varName "durationScaleHrsDrilled"^^xsd:string
] ;
sp:subject _:b44
] [ sp:object _:b45 ;
sp:subject _:b13
] [ sp:object _:b14 ;
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 _:b45
sp:subject _:b14
] [ sp:object
[ sp:varName "realRop"^^xsd:string
] ;
sp:predicate
[ sp:varName "speedScaleRop"^^xsd:string
] ;
sp:subject _:b45
] [ sp:object _:b46 ;
sp:subject _:b14
] [ sp:object _:b15 ;
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 _:b46
sp:subject _:b15
] [ sp:object
[ sp:varName "realMdStart"^^xsd:string
] ;
sp:predicate
[ sp:varName "lengthScaleMdStart"^^xsd:string
] ;
sp:subject _:b46
] [ sp:object _:b47 ;
sp:subject _:b15
] [ sp:object _:b16 ;
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 _:b47
sp:subject _:b16
] [ sp:object
[ sp:varName "realMdStop"^^xsd:string
] ;
sp:predicate
[ sp:varName "lengthScaleMdStop"^^xsd:string
] ;
sp:subject _:b47
sp:subject _:b16
]) ;
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 _:b48
] [ sp:object _:b49 ;
sp:subject _:b30
] [ sp:object _:b31 ;
sp:predicate rdfs:label ;
sp:subject _:b48
] [ sp:object _:b48 ;
sp:subject _:b30
] [ sp:object _:b30 ;
sp:predicate rdf:type ;
sp:subject _:b50
sp:subject _:b32
]) ;
sp:where ([ sp:object _:b51 ;
sp:where ([ sp:object _:b33 ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object _:b52 ;
] [ sp:object _:b34 ;
sp:predicate <http://www.witsml.org/schemas/1series#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b53 ;
] [ sp:object _:b35 ;
sp:predicate <http://www.witsml.org/schemas/1series#bitRecordRef> ;
sp:subject spin:_this
] [ sp:object _:b54 ;
] [ sp:object _:b36 ;
sp:predicate <http://www.witsml.org/schemas/1series#numBit> ;
sp:subject _:b53
] [ sp:object _:b49 ;
sp:subject _:b35
] [ sp:object _:b31 ;
sp:predicate <http://www.witsml.org/schemas/1series#dullGrade> ;
sp:subject _:b53
] [ sp:object _:b50 ;
sp:subject _:b35
] [ sp:object _:b32 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onDrillBit> ;
sp:subject _:b55
] [ sp:object _:b56 ;
sp:subject _:b37
] [ sp:object _:b38 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b50
sp:subject _:b32
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/equipment#DullGrade> ;
sp:predicate rdf:type ;
sp:subject _:b48
sp:subject _:b30
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b51
sp:arg1 _:b33
] ;
sp:variable _:b57
sp:variable _:b39
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type afn:localname ;
sp:arg1 _:b53
sp:arg1 _:b35
] ;
sp:variable _:b58
sp:variable _:b40
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildWellBoreDrillBitRunURI ;
sp:arg1 _:b57 ;
sp:arg2 _:b52 ;
sp:arg3 _:b58
sp:arg1 _:b39 ;
sp:arg2 _:b34 ;
sp:arg3 _:b40
] ;
sp:variable _:b55
sp:variable _:b37
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b54
sp:arg1 _:b36
] ;
sp:variable _:b59
sp:variable _:b41
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildWellBoreDrillBitURI ;
sp:arg1 _:b57 ;
sp:arg2 _:b59
sp:arg1 _:b39 ;
sp:arg2 _:b41
] ;
sp:variable _:b56
sp:variable _:b38
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b49
sp:arg1 _:b31
] ;
sp:variable _:b60
sp:variable _:b42
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDullGradeURI ;
sp:arg1 _:b60
sp:arg1 _:b42
] ;
sp:variable _:b48
sp:variable _:b30
])
] .
_:b17
sp:varName "nameWellBore"^^xsd:string .
sp:varName "dullGrade"^^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 "diaBit"^^xsd:string .
sp:varName "dTimStart"^^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 "normalizedWellBoreName"^^xsd:string .
sp:varName "numBit"^^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 .
_:b13
sp:varName "lengthScaleDia"^^xsd:string .
_:b26
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b27
sp:varName "nameWellBore"^^xsd:string .
sp:varName "localname"^^xsd:string .
_:b28
sp:varName "dTimStart"^^xsd:string .
sp:varName "normalizedNumBit"^^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 .
_:b52
_:b34
sp:varName "dTimStart"^^xsd:string .
_:b53
_:b35
sp:varName "bitRecord"^^xsd:string .
_:b54
_:b36
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 .
_:b58
_:b40
sp:varName "localname"^^xsd:string .
_:b59
_:b41
sp:varName "normalizedNumBit"^^xsd:string .
_:b60
_:b42
sp:varName "normalizedDullGradeLabel"^^xsd:string .
......