David Price

Fix Rig URI. Clean up well and wellbore names

# Saved by TopBraid on Tue Oct 25 15:54:44 BST 2011
# baseURI: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/schema/1.0/drilling-equipment-type
# imports: http://www.reportinghub.no/ep/schema/1.0/report
# imports: http://www.witsml.org/schemas/1series
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/well
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/drilling-equipment-type
# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
# imports: http://www.reportinghub.no/ep/schema/1.0/facility
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/1.0/report
# imports: http://www.reportinghub.no/ep/schema/1.0/well
# imports: http://www.reportinghub.no/spin/rh
# imports: http://www.witsml.org/schemas/1series
@prefix activity-purpose: <http://www.reportinghub.no/ep/schema/1.0/activity-purpose#> .
@prefix ddr: <http://www.witsml.org/schemas/1series#> .
......@@ -29,7 +28,7 @@
<http://www.reportinghub.no/ep/spin/1.1/lib>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/spin/rh> , <http://www.reportinghub.no/ep/schema/1.0/drilling-equipment-type> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://spinrdf.org/spin> , <http://www.witsml.org/schemas/1series> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> ;
owl:imports <http://www.reportinghub.no/spin/rh> , <http://www.reportinghub.no/ep/schema/1.0/drilling-equipment-type> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://spinrdf.org/spin> , <http://www.witsml.org/schemas/1series> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/facility> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-spin-lib:Function
......@@ -406,14 +405,17 @@ ep-spin-lib:buildRigURI
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b18) ;
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/data/Rig/" ;
sp:arg1 "http://www.reportinghub.no/np/data/npd/Facility-" ;
sp:arg2 spin:_arg1
] ;
sp:variable _:b18
sp:variable
[ sp:varName "uri"^^xsd:string
]
])
] .
......@@ -423,7 +425,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 ;
......@@ -436,7 +438,7 @@ ep-spin-lib:buildTemporalPartOfARigURI
sp:arg5 spin:_arg3
]
] ;
sp:variable _:b19
sp:variable _:b18
])
] .
......@@ -446,7 +448,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 ;
......@@ -457,7 +459,7 @@ ep-spin-lib:buildTemporalPartOfAWellBoreDuringWellControlIncidentURI
sp:arg3 spin:_arg2
]
] ;
sp:variable _:b20
sp:variable _:b19
])
] .
......@@ -467,7 +469,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 ;
......@@ -480,7 +482,7 @@ ep-spin-lib:buildTemporalPartOfAWellBoreURI
sp:arg5 spin:_arg3
]
] ;
sp:variable _:b21
sp:variable _:b20
])
] .
......@@ -490,7 +492,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 ;
......@@ -499,17 +501,17 @@ ep-spin-lib:buildURI
sp:arg2 spin:_arg2
]
] ;
sp:variable _:b22
sp:variable _:b21
])
] ;
spin:constraint
[ rdf:type spl:Argument ;
spl:predicate sp:arg1 ;
spl:predicate sp:arg2 ;
spl:valueType xsd:string
] ;
spin:constraint
[ rdf:type spl:Argument ;
spl:predicate sp:arg2 ;
spl:predicate sp:arg1 ;
spl:valueType xsd:string
] .
......@@ -519,7 +521,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 ;
......@@ -532,7 +534,7 @@ ep-spin-lib:buildWellBoreDirectionalSurveyURI
sp:arg5 spin:_arg3
]
] ;
sp:variable _:b23
sp:variable _:b22
])
] .
......@@ -542,7 +544,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 ;
......@@ -555,7 +557,7 @@ ep-spin-lib:buildWellBoreDrillBitRunURI
sp:arg5 spin:_arg3
]
] ;
sp:variable _:b24
sp:variable _:b23
])
] .
......@@ -565,7 +567,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 ;
......@@ -576,7 +578,7 @@ ep-spin-lib:buildWellBoreDrillBitURI
sp:arg3 spin:_arg2
]
] ;
sp:variable _:b25
sp:variable _:b24
])
] .
......@@ -586,7 +588,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 ;
......@@ -595,7 +597,7 @@ ep-spin-lib:buildWellBoreKickOffURI
sp:arg1 spin:_arg1
]
] ;
sp:variable _:b26
sp:variable _:b25
])
] .
......@@ -605,7 +607,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 ;
......@@ -618,7 +620,7 @@ ep-spin-lib:buildWellBoreLogRunURI
sp:arg5 spin:_arg3
]
] ;
sp:variable _:b27
sp:variable _:b26
])
] .
......@@ -628,7 +630,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 ;
......@@ -639,7 +641,7 @@ ep-spin-lib:buildWellCementJobURI
sp:arg3 spin:_arg2
]
] ;
sp:variable _:b28
sp:variable _:b27
])
] .
......@@ -649,7 +651,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 ;
......@@ -660,7 +662,7 @@ ep-spin-lib:buildWellControlIncidentURI
sp:arg3 spin:_arg2
]
] ;
sp:variable _:b29
sp:variable _:b28
])
] .
......@@ -670,7 +672,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 ;
......@@ -681,7 +683,7 @@ ep-spin-lib:buildWellStimulationURI
sp:arg3 spin:_arg2
]
] ;
sp:variable _:b30
sp:variable _:b29
])
] .
......@@ -691,7 +693,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 ;
......@@ -702,7 +704,7 @@ ep-spin-lib:buildWellTestURI
sp:arg3 spin:_arg2
]
] ;
sp:variable _:b31
sp:variable _:b30
])
] .
......@@ -712,7 +714,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 ;
......@@ -723,7 +725,7 @@ ep-spin-lib:buildWirelineFormationTestURI
sp:arg3 spin:_arg2
]
] ;
sp:variable _:b32
sp:variable _:b31
])
] .
......@@ -805,7 +807,7 @@ ep-spin-lib:normalizeString
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 ;
......@@ -813,67 +815,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
......@@ -888,7 +890,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 ;
......@@ -899,7 +901,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
])
] .
......@@ -909,7 +911,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 ;
......@@ -934,7 +936,7 @@ ep-spin-lib:selectCasingRoleType
]
]
] ;
sp:variable _:b43
sp:variable _:b42
])
] .
......@@ -944,7 +946,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 ;
......@@ -955,7 +957,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
])
] .
......@@ -965,7 +967,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 ;
......@@ -983,7 +985,7 @@ ep-spin-lib:selectClassOfWellDatumObject
sp:arg3 owl:Nothing
]
] ;
sp:variable _:b45
sp:variable _:b44
])
] .
......@@ -993,7 +995,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 ;
......@@ -1032,7 +1034,7 @@ ep-spin-lib:selectComponentType
]
]
] ;
sp:variable _:b46
sp:variable _:b45
])
] .
......@@ -1042,7 +1044,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 ;
......@@ -1060,7 +1062,7 @@ ep-spin-lib:selectDailyDrillingReportType
sp:arg3 <http://www.reportinghub.no/ep/schema/report#FinalDailyDrillingReport>
]
] ;
sp:variable _:b47
sp:variable _:b46
])
] .
......@@ -1070,7 +1072,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 ;
......@@ -1088,7 +1090,7 @@ ep-spin-lib:selectDensityScale
sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
]
] ;
sp:variable _:b48
sp:variable _:b47
])
] .
......@@ -1098,7 +1100,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 ;
......@@ -1165,7 +1167,7 @@ ep-spin-lib:selectDrillingActivityOutcomeType
]
]
] ;
sp:variable _:b49
sp:variable _:b48
])
] .
......@@ -1175,7 +1177,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 ;
......@@ -1760,7 +1762,7 @@ ep-spin-lib:selectDrillingActivityPurposeType
]
]
] ;
sp:variable _:b50
sp:variable _:b49
])
] .
......@@ -1770,7 +1772,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 ;
......@@ -1809,7 +1811,7 @@ ep-spin-lib:selectDrillingActivityTypeAccordingToEquipmentType
]
]
] ;
sp:variable _:b51
sp:variable _:b50
])
] .
......@@ -1819,7 +1821,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 ;
......@@ -2236,7 +2238,7 @@ ep-spin-lib:selectDrillingEquipmentType
]
]
] ;
sp:variable _:b52
sp:variable _:b51
])
] .
......@@ -2246,7 +2248,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 ;
......@@ -2257,7 +2259,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
])
] .
......@@ -2267,7 +2269,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 ;
......@@ -2299,7 +2301,7 @@ ep-spin-lib:selectFluidType
]
]
] ;
sp:variable _:b54
sp:variable _:b53
])
] .
......@@ -2309,7 +2311,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 ;
......@@ -2376,7 +2378,7 @@ ep-spin-lib:selectGasReadingType
]
]
] ;
sp:variable _:b55
sp:variable _:b54
])
] .
......@@ -2386,7 +2388,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 ;
......@@ -2418,7 +2420,7 @@ ep-spin-lib:selectInnerBarrelType
]
]
] ;
sp:variable _:b56
sp:variable _:b55
])
] .
......@@ -2428,7 +2430,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 ;
......@@ -2474,7 +2476,7 @@ ep-spin-lib:selectLabelOfSystem
]
]
] ;
sp:variable _:b57
sp:variable _:b56
])
] .
......@@ -2484,7 +2486,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 ;
......@@ -2565,7 +2567,7 @@ ep-spin-lib:selectLengthScale
]
]
] ;
sp:variable _:b58
sp:variable _:b57
])
] .
......@@ -2575,7 +2577,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 ;
......@@ -2586,7 +2588,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
])
] .
......@@ -2596,7 +2598,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 ;
......@@ -2621,7 +2623,7 @@ ep-spin-lib:selectMudClass
]
]
] ;
sp:variable _:b60
sp:variable _:b59
])
] .
......@@ -2631,7 +2633,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 ;
......@@ -2642,7 +2644,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
])
] .
......@@ -2652,7 +2654,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 ;
......@@ -2726,7 +2728,7 @@ ep-spin-lib:selectPlasticViscosityScale
]
]
] ;
sp:variable _:b62
sp:variable _:b61
])
] .
......@@ -2736,7 +2738,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 ;
......@@ -2754,7 +2756,7 @@ ep-spin-lib:selectPorePressureDeterminationType
sp:arg3 <http://www.reportinghub.no/ep/schema/activity#PorePressureDetermination>
]
] ;
sp:variable _:b63
sp:variable _:b62
])
] .
......@@ -2764,7 +2766,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 ;
......@@ -2803,7 +2805,7 @@ ep-spin-lib:selectPressureScale
]
]
] ;
sp:variable _:b64
sp:variable _:b63
])
] .
......@@ -2813,7 +2815,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 ;
......@@ -2831,7 +2833,7 @@ ep-spin-lib:selectPressureTestType
sp:arg3 <http://www.reportinghub.no/ep/schema/activity#WellBorePressureTest>
]
] ;
sp:variable _:b65
sp:variable _:b64
])
] .
......@@ -2841,7 +2843,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 ;
......@@ -2852,7 +2854,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
])
] .
......@@ -2862,7 +2864,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 ;
......@@ -2922,7 +2924,7 @@ ep-spin-lib:selectSpecificVolumeScale
]
]
] ;
sp:variable _:b67
sp:variable _:b66
])
] .
......@@ -2932,7 +2934,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 ;
......@@ -2943,7 +2945,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
])
] .
......@@ -2953,7 +2955,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 ;
......@@ -2971,7 +2973,7 @@ ep-spin-lib:selectStrengthOfRockFormationScale
sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
]
] ;
sp:variable _:b69
sp:variable _:b68
])
] .
......@@ -2981,7 +2983,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 ;
......@@ -2992,7 +2994,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
])
] .
......@@ -3002,7 +3004,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 ;
......@@ -3048,7 +3050,7 @@ ep-spin-lib:selectTimeDurationScale
]
]
] ;
sp:variable _:b71
sp:variable _:b70
])
] .
......@@ -3058,7 +3060,7 @@ ep-spin-lib:selectTubeType
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 ;
......@@ -3083,7 +3085,7 @@ ep-spin-lib:selectTubeType
]
]
] ;
sp:variable _:b72
sp:variable _:b71
])
] .
......@@ -3093,7 +3095,7 @@ ep-spin-lib:selectVolumeScale
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 ;
......@@ -3118,7 +3120,7 @@ ep-spin-lib:selectVolumeScale
]
]
] ;
sp:variable _:b73
sp:variable _:b72
])
] .
......@@ -3128,7 +3130,7 @@ ep-spin-lib:selectVolumetricFlowRateScale
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 ;
......@@ -3153,7 +3155,7 @@ ep-spin-lib:selectVolumetricFlowRateScale
]
]
] ;
sp:variable _:b74
sp:variable _:b73
])
] .
......@@ -3163,7 +3165,7 @@ ep-spin-lib:selectWellBoreDrillingType
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 ;
......@@ -3209,7 +3211,7 @@ ep-spin-lib:selectWellBoreDrillingType
]
]
] ;
sp:variable _:b75
sp:variable _:b74
])
] .
......@@ -3219,7 +3221,7 @@ ep-spin-lib:selectWellBoreHphtType
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 ;
......@@ -3230,7 +3232,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 _:b76
sp:variable _:b75
])
] .
......@@ -3240,7 +3242,7 @@ ep-spin-lib:selectWellBoreTightnessType
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 ;
......@@ -3251,7 +3253,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 _:b77
sp:variable _:b76
])
] .
......@@ -3261,7 +3263,7 @@ ep-spin-lib:selectWellCementJobBottomPlugType
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 ;
......@@ -3272,7 +3274,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 _:b78
sp:variable _:b77
])
] .
......@@ -3282,7 +3284,7 @@ ep-spin-lib:selectWellCementJobCasingReciprocationType
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 ;
......@@ -3293,7 +3295,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 _:b79
sp:variable _:b78
])
] .
......@@ -3303,7 +3305,7 @@ ep-spin-lib:selectWellCementJobCasingRotationType
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 ;
......@@ -3314,7 +3316,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 _:b80
sp:variable _:b79
])
] .
......@@ -3324,7 +3326,7 @@ ep-spin-lib:selectWellCementJobFloatHoldingType
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 ;
......@@ -3335,7 +3337,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 _:b81
sp:variable _:b80
])
] .
......@@ -3345,7 +3347,7 @@ ep-spin-lib:selectWellCementJobPlugBumpingType
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 ;
......@@ -3356,7 +3358,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 _:b82
sp:variable _:b81
])
] .
......@@ -3366,7 +3368,7 @@ ep-spin-lib:selectWellCementJobTopPlugType
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 ;
......@@ -3377,7 +3379,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 _:b83
sp:variable _:b82
])
] .
......@@ -3387,7 +3389,7 @@ ep-spin-lib:selectWellCementJobType
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 ;
......@@ -3419,7 +3421,7 @@ ep-spin-lib:selectWellCementJobType
]
]
] ;
sp:variable _:b84
sp:variable _:b83
])
] .
......@@ -3429,7 +3431,7 @@ ep-spin-lib:selectWellControlIncidentType
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 ;
......@@ -3461,7 +3463,7 @@ ep-spin-lib:selectWellControlIncidentType
]
]
] ;
sp:variable _:b85
sp:variable _:b84
])
] .
......@@ -3471,7 +3473,7 @@ ep-spin-lib:selectWellKillingType
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 ;
......@@ -3517,7 +3519,7 @@ ep-spin-lib:selectWellKillingType
]
]
] ;
sp:variable _:b86
sp:variable _:b85
])
] .
......@@ -3527,7 +3529,7 @@ ep-spin-lib:selectWellTestType
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 ;
......@@ -3545,7 +3547,7 @@ ep-spin-lib:selectWellTestType
sp:arg3 <http://www.reportinghub.no/ep/schema/activity#WellTest>
]
] ;
sp:variable _:b87
sp:variable _:b86
])
] .
......@@ -3555,7 +3557,7 @@ ep-spin-lib:selectWirelineFormationTestGoodnessOfSealType
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 ;
......@@ -3566,7 +3568,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 _:b88
sp:variable _:b87
])
] .
......@@ -3576,7 +3578,7 @@ ep-spin-lib:selectYieldPointScale
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b89) ;
sp:resultVariables (_:b88) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -3601,7 +3603,7 @@ ep-spin-lib:selectYieldPointScale
]
]
] ;
sp:variable _:b89
sp:variable _:b88
])
] .
......@@ -3695,175 +3697,172 @@ _: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 "tubeType"^^xsd:string .
_:b73
_:b72
sp:varName "volumeScale"^^xsd:string .
_:b74
_:b73
sp:varName "volumetricFlowRateScale"^^xsd:string .
_:b75
_:b74
sp:varName "wellBoreDrillingType"^^xsd:string .
_:b76
_:b75
sp:varName "wellBoreHphtType"^^xsd:string .
_:b77
_:b76
sp:varName "wellBoreTightnessType"^^xsd:string .
_:b78
_:b77
sp:varName "wellCementJobBottomPlugType"^^xsd:string .
_:b79
_:b78
sp:varName "wellCementJobCasingReciprocationType"^^xsd:string .
_:b80
_:b79
sp:varName "wellCementJobCasingRotationType"^^xsd:string .
_:b81
_:b80
sp:varName "wellCementJobFloatHoldingType"^^xsd:string .
_:b82
_:b81
sp:varName "wellCementJobPlugBumpingType"^^xsd:string .
_:b83
_:b82
sp:varName "wellCementJobTopPlugType"^^xsd:string .
_:b84
_:b83
sp:varName "wellCementJobType"^^xsd:string .
_:b85
_:b84
sp:varName "wellControlIncidentType"^^xsd:string .
_:b86
_:b85
sp:varName "wellKillingType"^^xsd:string .
_:b87
_:b86
sp:varName "wellTestType"^^xsd:string .
_:b88
_:b87
sp:varName "wirelineFormationTestGoodnessOfSealType"^^xsd:string .
_:b89
_:b88
sp:varName "yieldPointScale"^^xsd:string .
......
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/collector
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/activity
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/bitRecord
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/casingLinerTubingRun
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/cementStage
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/controlIncidentInfo
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/coreInfo
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/equipFailureInfo
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/fluid
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/formTestInfo
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/gasReadingInfo
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/lithShowInfo
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/logInfo
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/perfInfo
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/porePressure
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/stratInfo
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/surveyStation
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/wellTestInfo
# imports: http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias
# imports: http://www.reportinghub.no/ep/transform/1.1/wellDatum
# imports: http://www.reportinghub.no/ep/transform/1.1/wellboreInfo
# imports: http://www.reportinghub.no/ep/transform/check
@prefix : <http://www.reportinghub.no/ep/transform/1.1/ddr/collector#> .
@prefix activity: <http://www.reportinghub.no/ep/transform/1.1/ddr/activity#> .
@prefix bitRecord: <http://www.reportinghub.no/ep/transform/1.1/ddr/bitRecord#> .
@prefix casingLinerTubingRun: <http://www.reportinghub.no/ep/transform/1.1/ddr/casingLinerTubingRun#> .
@prefix cementStage: <http://www.reportinghub.no/ep/transform/1.1/ddr/cementStage#> .
@prefix check: <http://www.reportinghub.no/ep/transform/check#> .
@prefix controlIncidentInfo: <http://www.reportinghub.no/ep/transform/1.1/ddr/controlIncidentInfo#> .
@prefix coreInfo: <http://www.reportinghub.no/ep/transform/1.1/ddr/coreInfo#> .
@prefix equipFailureInfo: <http://www.reportinghub.no/ep/transform/1.1/ddr/equipFailureInfo#> .
@prefix fluid: <http://www.reportinghub.no/ep/transform/1.1/ddr/fluid#> .
@prefix formTestInfo: <http://www.reportinghub.no/ep/transform/1.1/ddr/formTestInfo#> .
@prefix gasReadingInfo: <http://www.reportinghub.no/ep/transform/1.1/ddr/gasReadingInfo#> .
@prefix lithShowInfo: <http://www.reportinghub.no/ep/transform/1.1/ddr/lithShowInfo#> .
@prefix logInfo: <http://www.reportinghub.no/ep/transform/1.1/ddr/logInfo#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix perfInfo: <http://www.reportinghub.no/ep/transform/1.1/ddr/perfInfo#> .
@prefix porePressure: <http://www.reportinghub.no/ep/transform/1.1/ddr/porePressure#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix statusInfo: <http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo#> .
@prefix stratInfo: <http://www.reportinghub.no/ep/transform/1.1/ddr/stratInfo#> .
@prefix surveyStation: <http://www.reportinghub.no/ep/transform/1.1/ddr/surveyStation#> .
@prefix unnamed1: <http://www.reportinghub.no/ep/transform/unnamed1#> .
@prefix wellAndWellBoreAlias: <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias#> .
@prefix wellDatum: <http://www.reportinghub.no/ep/transform/1.1/wellDatum#> .
@prefix wellTestInfo: <http://www.reportinghub.no/ep/transform/1.1/ddr/wellTestInfo#> .
@prefix wellboreInfo: <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/transform/1.1/ddr/collector>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.1/ddr/activity> , <http://www.reportinghub.no/ep/transform/1.1/ddr/bitRecord> , <http://www.reportinghub.no/ep/transform/1.1/ddr/casingLinerTubingRun> , <http://www.reportinghub.no/ep/transform/1.1/ddr/cementStage> , <http://www.reportinghub.no/ep/transform/1.1/ddr/controlIncidentInfo> , <http://www.reportinghub.no/ep/transform/1.1/ddr/coreInfo> , <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> , <http://www.reportinghub.no/ep/transform/1.1/ddr/equipFailureInfo> , <http://www.reportinghub.no/ep/transform/1.1/ddr/fluid> , <http://www.reportinghub.no/ep/transform/1.1/ddr/formTestInfo> , <http://www.reportinghub.no/ep/transform/1.1/ddr/gasReadingInfo> , <http://www.reportinghub.no/ep/transform/1.1/ddr/lithShowInfo> , <http://www.reportinghub.no/ep/transform/1.1/ddr/logInfo> , <http://www.reportinghub.no/ep/transform/1.1/ddr/perfInfo> , <http://www.reportinghub.no/ep/transform/1.1/ddr/porePressure> , <http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo> , <http://www.reportinghub.no/ep/transform/1.1/ddr/stratInfo> , <http://www.reportinghub.no/ep/transform/1.1/ddr/surveyStation> , <http://www.reportinghub.no/ep/transform/1.1/ddr/wellTestInfo> , <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias> , <http://www.reportinghub.no/ep/transform/1.1/wellDatum> , <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo> , <http://www.reportinghub.no/ep/transform/check> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/collector
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/activity
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/bitRecord
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/casingLinerTubingRun
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/cementStage
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/controlIncidentInfo
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/coreInfo
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/equipFailureInfo
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/fluid
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/formTestInfo
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/gasReadingInfo
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/lithShowInfo
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/logInfo
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/perfInfo
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/porePressure
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/stratInfo
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/surveyStation
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/wellTestInfo
# imports: http://www.reportinghub.no/ep/transform/1.1/wellDatum
# imports: http://www.reportinghub.no/ep/transform/1.1/wellboreInfo
# imports: http://www.reportinghub.no/ep/transform/check
@prefix : <http://www.reportinghub.no/ep/transform/1.1/ddr/collector#> .
@prefix activity: <http://www.reportinghub.no/ep/transform/1.1/ddr/activity#> .
@prefix bitRecord: <http://www.reportinghub.no/ep/transform/1.1/ddr/bitRecord#> .
@prefix casingLinerTubingRun: <http://www.reportinghub.no/ep/transform/1.1/ddr/casingLinerTubingRun#> .
@prefix cementStage: <http://www.reportinghub.no/ep/transform/1.1/ddr/cementStage#> .
@prefix check: <http://www.reportinghub.no/ep/transform/check#> .
@prefix controlIncidentInfo: <http://www.reportinghub.no/ep/transform/1.1/ddr/controlIncidentInfo#> .
@prefix coreInfo: <http://www.reportinghub.no/ep/transform/1.1/ddr/coreInfo#> .
@prefix equipFailureInfo: <http://www.reportinghub.no/ep/transform/1.1/ddr/equipFailureInfo#> .
@prefix fluid: <http://www.reportinghub.no/ep/transform/1.1/ddr/fluid#> .
@prefix formTestInfo: <http://www.reportinghub.no/ep/transform/1.1/ddr/formTestInfo#> .
@prefix gasReadingInfo: <http://www.reportinghub.no/ep/transform/1.1/ddr/gasReadingInfo#> .
@prefix lithShowInfo: <http://www.reportinghub.no/ep/transform/1.1/ddr/lithShowInfo#> .
@prefix logInfo: <http://www.reportinghub.no/ep/transform/1.1/ddr/logInfo#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix perfInfo: <http://www.reportinghub.no/ep/transform/1.1/ddr/perfInfo#> .
@prefix porePressure: <http://www.reportinghub.no/ep/transform/1.1/ddr/porePressure#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix statusInfo: <http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo#> .
@prefix stratInfo: <http://www.reportinghub.no/ep/transform/1.1/ddr/stratInfo#> .
@prefix surveyStation: <http://www.reportinghub.no/ep/transform/1.1/ddr/surveyStation#> .
@prefix unnamed1: <http://www.reportinghub.no/ep/transform/unnamed1#> .
@prefix wellAndWellBoreAlias: <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias#> .
@prefix wellDatum: <http://www.reportinghub.no/ep/transform/1.1/wellDatum#> .
@prefix wellTestInfo: <http://www.reportinghub.no/ep/transform/1.1/ddr/wellTestInfo#> .
@prefix wellboreInfo: <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/transform/1.1/ddr/collector>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/transform/check> , <http://www.reportinghub.no/ep/transform/1.1/ddr/formTestInfo> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.1/ddr/stratInfo> , <http://www.reportinghub.no/ep/transform/1.1/ddr/fluid> , <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> , <http://www.reportinghub.no/ep/transform/1.1/ddr/porePressure> , <http://www.reportinghub.no/ep/transform/1.1/ddr/logInfo> , <http://www.reportinghub.no/ep/transform/1.1/ddr/activity> , <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo> , <http://www.reportinghub.no/ep/transform/1.1/ddr/surveyStation> , <http://www.reportinghub.no/ep/transform/1.1/ddr/equipFailureInfo> , <http://www.reportinghub.no/ep/transform/1.1/ddr/wellTestInfo> , <http://www.reportinghub.no/ep/transform/1.1/ddr/coreInfo> , <http://www.reportinghub.no/ep/transform/1.1/ddr/perfInfo> , <http://www.reportinghub.no/ep/transform/1.1/ddr/lithShowInfo> , <http://www.reportinghub.no/ep/transform/1.1/ddr/controlIncidentInfo> , <http://www.reportinghub.no/ep/transform/1.1/ddr/bitRecord> , <http://www.reportinghub.no/ep/transform/1.1/ddr/cementStage> , <http://www.reportinghub.no/ep/transform/1.1/ddr/gasReadingInfo> , <http://www.reportinghub.no/ep/transform/1.1/ddr/casingLinerTubingRun> , <http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo> , <http://www.reportinghub.no/ep/transform/1.1/wellDatum> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
# Saved by TopBraid on Tue Sep 27 11:47:13 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
......@@ -25,93 +25,35 @@
<http://www.reportinghub.no/ep/transform/1.1/wellboreInfo>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.witsml.org/schemas/1series> ;
owl:imports <http://www.witsml.org/schemas/1series> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://spinrdf.org/spin> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ddr:Obj_drillReport
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 160b Set rig for drilling activity - NPD Code not supplied"^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
sp:predicate ep-activity:onRig ;
sp:subject _:b2
] [ sp:object ep-facility:TemporalPartOfARig ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object _:b3 ;
sp:predicate ep-core:temporalPartOf ;
sp:subject _:b1
] [ sp:object ep-facility:Rig ;
sp:predicate rdf:type ;
sp:subject _:b3
]) ;
sp:where ([ sp:object _:b4 ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object _:b5 ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object _:b6 ;
sp:predicate ddr:wellboreInfoRef ;
sp:subject spin:_this
] [ sp:object _:b7 ;
sp:predicate ddr:rigAliasRef ;
sp:subject _:b6
] [ sp:object
[ sp:varName "code"^^xsd:string
] ;
sp:predicate ddr:name ;
sp:subject _:b7
] [ rdf:type sp:Union ;
sp:elements (([ sp:object "NPD Code"^^xsd:string ;
sp:predicate ddr:namingSystem ;
sp:subject _:b7
]) ([ sp:object "NPD code"^^xsd:string ;
sp:predicate ddr:namingSystem ;
sp:subject _:b7
]))
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b4
] ;
sp:variable _:b8
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b8 ;
sp:arg2 _:b5
] ;
sp:variable _:b2
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 169a Transfer waterDepth
This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ;
sp:templates ([ sp:object _:b9 ;
sp:templates ([ sp:object _:b1 ;
sp:predicate ep-core:hasPart ;
sp:subject
[ sp:varName "temporalPartOfARig"^^xsd:string
]
] [ sp:object ep-facility:SurroundingWater ;
sp:predicate rdf:type ;
sp:subject _:b9
] [ sp:object _:b10 ;
sp:subject _:b1
] [ sp:object _:b2 ;
sp:predicate ep-facility:depthOfSurroundingWater ;
sp:subject _:b9
sp:subject _:b1
] [ sp:object ep-core:Length ;
sp:predicate rdf:type ;
sp:subject _:b10
sp:subject _:b2
] [ sp:object
[ sp:varName "real"^^xsd:string
] ;
sp:predicate
[ sp:varName "lengthScale"^^xsd:string
] ;
sp:subject _:b10
sp:subject _:b2
]) ;
sp:where ([ sp:object
[ sp:varName "nameWellBore"^^xsd:string
......@@ -189,20 +131,72 @@ This rule processes data from statusInfo, but is here because it must be execute
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 163 Set drilling contractor for drilling activity"^^xsd:string ;
sp:templates ([ sp:object _:b11 ;
sp:predicate ep-activity:drillingContractor ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object ep-org:Company ;
rdfs:comment "STEP 160b Set rig for drilling activity - NPD Code not supplied"^^xsd:string ;
sp:templates ([ sp:object _:b3 ;
sp:predicate ep-activity:onRig ;
sp:subject _:b4
] [ sp:object ep-facility:TemporalPartOfARig ;
sp:predicate rdf:type ;
sp:subject _:b11
] [ sp:object
[ sp:varName "nameContractor"^^xsd:string
sp:subject _:b3
] [ sp:object _:b5 ;
sp:predicate ep-core:temporalPartOf ;
sp:subject _:b3
] [ sp:object ep-facility:Rig ;
sp:predicate rdf:type ;
sp:subject _:b5
]) ;
sp:where ([ sp:object _:b6 ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object _:b7 ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ rdf:type sp:NotExists ;
sp:elements ([ sp:object _:b8 ;
sp:predicate ddr:wellboreInfoRef ;
sp:subject spin:_this
] [ sp:object _:b9 ;
sp:predicate ddr:rigAliasRef ;
sp:subject _:b8
] [ sp:object
[ sp:varName "code"^^xsd:string
] ;
sp:predicate ddr:name ;
sp:subject _:b9
] [ rdf:type sp:Union ;
sp:elements (([ sp:object "NPD Code"^^xsd:string ;
sp:predicate ddr:namingSystem ;
sp:subject _:b9
]) ([ sp:object "NPD code"^^xsd:string ;
sp:predicate ddr:namingSystem ;
sp:subject _:b9
]))
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b6
] ;
sp:predicate ep-core:name ;
sp:subject _:b11
sp:variable _:b10
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b10 ;
sp:arg2 _:b7
] ;
sp:variable _:b4
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 167 Set drill completion date"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "dateDrillComplete"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBoreCompletedAt> ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "nameWellBore"^^xsd:string
......@@ -220,12 +214,31 @@ This rule processes data from statusInfo, but is here because it must be execute
sp:predicate ddr:wellboreInfoRef ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "nameContractor"^^xsd:string
[ sp:varName "dateDrillComplete"^^xsd:string
] ;
sp:predicate ddr:drillContractor ;
sp:predicate ddr:dateDrillComplete ;
sp:subject
[ sp:varName "wellboreInfo"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
] ;
sp:predicate ep-activity:onWellBore ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object
[ sp:varName "wellBore"^^xsd:string
] ;
sp:predicate ep-core:temporalPartOf ;
sp:subject
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
......@@ -246,91 +259,24 @@ This rule processes data from statusInfo, but is here because it must be execute
sp:variable
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "nameContractor"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedContractorName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:companyById ;
arg:id [ sp:varName "normalizedContractorName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "contractor"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 161 Set NPD name for Rig"^^xsd:string ;
sp:templates ([ sp:object _:b12 ;
sp:predicate ep-core:npdName ;
sp:subject _:b13
]) ;
sp:where ([ sp:object _:b14 ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object _:b15 ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ sp:object _:b16 ;
sp:predicate ddr:wellboreInfoRef ;
sp:subject spin:_this
] [ sp:object _:b17 ;
sp:predicate ddr:rigAliasRef ;
sp:subject _:b16
] [ sp:object _:b12 ;
sp:predicate ddr:name ;
sp:subject _:b17
] [ rdf:type sp:Union ;
sp:elements (([ sp:object "NPD Name"^^xsd:string ;
sp:predicate ddr:namingSystem ;
sp:subject _:b17
]) ([ sp:object "NPD name"^^xsd:string ;
sp:predicate ddr:namingSystem ;
sp:subject _:b17
]))
] [ sp:object _:b18 ;
rdfs:comment "STEP 160a Set rig for drilling activity - NPD Code supplied"^^xsd:string ;
sp:templates ([ sp:object _:b11 ;
sp:predicate ep-activity:onRig ;
sp:subject _:b19
] [ sp:object _:b13 ;
sp:predicate ep-core:temporalPartOf ;
sp:subject _:b18
] [ sp:object ep-facility:Rig ;
sp:predicate rdf:type ;
sp:subject _:b13
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b14
] ;
sp:variable _:b20
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b20 ;
sp:arg2 _:b15
] ;
sp:variable _:b19
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 168 Transfer fixedRig
This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "fixedOrMoveableRigType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "rig"^^xsd:string
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object ep-facility:TemporalPartOfARig ;
sp:predicate rdf:type ;
sp:subject _:b11
] [ sp:object
[ sp:varName "rig"^^xsd:string
] ;
sp:predicate ep-core:temporalPartOf ;
sp:subject _:b11
]) ;
sp:where ([ sp:object
[ sp:varName "nameWellBore"^^xsd:string
......@@ -343,36 +289,36 @@ This rule processes data from statusInfo, but is here because it must be execute
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "temporalPartOfARig"^^xsd:string
[ sp:varName "wellboreInfo"^^xsd:string
] ;
sp:predicate ep-activity:onRig ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
sp:predicate ddr:wellboreInfoRef ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "rig"^^xsd:string
[ sp:varName "rigAlias"^^xsd:string
] ;
sp:predicate ep-core:temporalPartOf ;
sp:subject
[ sp:varName "temporalPartOfARig"^^xsd:string
]
] [ sp:object ep-facility:Rig ;
sp:predicate rdf:type ;
sp:predicate ddr:rigAliasRef ;
sp:subject
[ sp:varName "rig"^^xsd:string
[ sp:varName "wellboreInfo"^^xsd:string
]
] [ sp:object
[ sp:varName "statusInfo"^^xsd:string
[ sp:varName "code"^^xsd:string
] ;
sp:predicate ddr:statusInfoRef ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "fixedRig"^^xsd:string
] ;
sp:predicate ddr:fixedRig ;
sp:predicate ddr:name ;
sp:subject
[ sp:varName "statusInfo"^^xsd:string
[ sp:varName "rigAlias"^^xsd:string
]
] [ rdf:type sp:Union ;
sp:elements (([ sp:object "NPD Code"^^xsd:string ;
sp:predicate ddr:namingSystem ;
sp:subject
[ sp:varName "rigAlias"^^xsd:string
]
]) ([ sp:object "NPD code"^^xsd:string ;
sp:predicate ddr:namingSystem ;
sp:subject
[ sp:varName "rigAlias"^^xsd:string
]
]))
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
......@@ -384,6 +330,15 @@ This rule processes data from statusInfo, but is here because it must be execute
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "code"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedCode"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
......@@ -395,25 +350,31 @@ This rule processes data from statusInfo, but is here because it must be execute
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectFixedOrMoveableRigType ;
sp:arg1 [ sp:varName "fixedRig"^^xsd:string
[ rdf:type ep-spin-lib:buildRigURI ;
sp:arg1 [ sp:varName "normalizedCode"^^xsd:string
]
] ;
sp:variable
[ sp:varName "fixedOrMoveableRigType"^^xsd:string
[ sp:varName "rig"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 167 Set drill completion date"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "dateDrillComplete"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBoreCompletedAt> ;
rdfs:comment "STEP 163 Set drilling contractor for drilling activity"^^xsd:string ;
sp:templates ([ sp:object _:b12 ;
sp:predicate ep-activity:drillingContractor ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object ep-org:Company ;
sp:predicate rdf:type ;
sp:subject _:b12
] [ sp:object
[ sp:varName "nameContractor"^^xsd:string
] ;
sp:predicate ep-core:name ;
sp:subject _:b12
]) ;
sp:where ([ sp:object
[ sp:varName "nameWellBore"^^xsd:string
......@@ -431,31 +392,12 @@ This rule processes data from statusInfo, but is here because it must be execute
sp:predicate ddr:wellboreInfoRef ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dateDrillComplete"^^xsd:string
[ sp:varName "nameContractor"^^xsd:string
] ;
sp:predicate ddr:dateDrillComplete ;
sp:predicate ddr:drillContractor ;
sp:subject
[ sp:varName "wellboreInfo"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
] ;
sp:predicate ep-activity:onWellBore ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object
[ sp:varName "wellBore"^^xsd:string
] ;
sp:predicate ep-core:temporalPartOf ;
sp:subject
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
......@@ -476,24 +418,42 @@ This rule processes data from statusInfo, but is here because it must be execute
sp:variable
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "nameContractor"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedContractorName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:companyById ;
arg:id [ sp:varName "normalizedContractorName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "contractor"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 162 Set drilling operator for drilling activity"^^xsd:string ;
sp:templates ([ sp:object _:b21 ;
sp:templates ([ sp:object _:b13 ;
sp:predicate ep-activity:drillingOperator ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object ep-org:Company ;
sp:predicate rdf:type ;
sp:subject _:b21
sp:subject _:b13
] [ sp:object
[ sp:varName "nameOperator"^^xsd:string
] ;
sp:predicate ep-core:name ;
sp:subject _:b21
sp:subject _:b13
]) ;
sp:where ([ sp:object
[ sp:varName "nameWellBore"^^xsd:string
......@@ -541,80 +501,11 @@ This rule processes data from statusInfo, but is here because it must be execute
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 160a Set rig for drilling activity - NPD Code supplied"^^xsd:string ;
sp:templates ([ sp:object _:b22 ;
sp:predicate ep-activity:onRig ;
sp:subject _:b23
] [ sp:object ep-facility:TemporalPartOfARig ;
sp:predicate rdf:type ;
sp:subject _:b22
] [ sp:object _:b24 ;
sp:predicate ep-core:temporalPartOf ;
sp:subject _:b22
] [ sp:object ep-facility:Rig ;
sp:predicate rdf:type ;
sp:subject _:b24
] [ sp:object _:b25 ;
sp:predicate ep-core:npdCode ;
sp:subject _:b24
]) ;
sp:where ([ sp:object _:b26 ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object _:b27 ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ sp:object _:b28 ;
sp:predicate ddr:wellboreInfoRef ;
sp:subject spin:_this
] [ sp:object _:b29 ;
sp:predicate ddr:rigAliasRef ;
sp:subject _:b28
] [ sp:object _:b25 ;
sp:predicate ddr:name ;
sp:subject _:b29
] [ rdf:type sp:Union ;
sp:elements (([ sp:object "NPD Code"^^xsd:string ;
sp:predicate ddr:namingSystem ;
sp:subject _:b29
]) ([ sp:object "NPD code"^^xsd:string ;
sp:predicate ddr:namingSystem ;
sp:subject _:b29
]))
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b26
] ;
sp:variable _:b30
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b25
] ;
sp:variable _:b31
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b30 ;
sp:arg2 _:b27
] ;
sp:variable _:b23
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildRigURI ;
sp:arg1 _:b31
] ;
sp:variable _:b24
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 166 Set SPUD date"^^xsd:string ;
rdfs:comment "STEP 164 Set preSPUD date"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "spudDate"^^xsd:string
[ sp:varName "preSpudDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBoreSpudAt> ;
sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBorePreSpudAt> ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
]
......@@ -635,9 +526,9 @@ This rule processes data from statusInfo, but is here because it must be execute
sp:predicate ddr:wellboreInfoRef ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "spudDate"^^xsd:string
[ sp:varName "preSpudDate"^^xsd:string
] ;
sp:predicate ddr:dTimSpud ;
sp:predicate ddr:dTimPreSpud ;
sp:subject
[ sp:varName "wellboreInfo"^^xsd:string
]
......@@ -686,27 +577,27 @@ This rule processes data from statusInfo, but is here because it must be execute
[ rdf:type sp:Construct ;
rdfs:comment """STEP 169 Transfer elevKelly
This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ;
sp:templates ([ sp:object _:b32 ;
sp:templates ([ sp:object _:b14 ;
sp:predicate ep-core:hasPart ;
sp:subject
[ sp:varName "temporalPartOfARig"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/equipment#KellyBushing> ;
sp:predicate rdf:type ;
sp:subject _:b32
] [ sp:object _:b33 ;
sp:subject _:b14
] [ sp:object _:b15 ;
sp:predicate <http://www.reportinghub.no/ep/schema/equipment#elevationOfKellyBushing> ;
sp:subject _:b32
sp:subject _:b14
] [ sp:object ep-core:Length ;
sp:predicate rdf:type ;
sp:subject _:b33
sp:subject _:b15
] [ sp:object
[ sp:varName "real"^^xsd:string
] ;
sp:predicate
[ sp:varName "lengthScale"^^xsd:string
] ;
sp:subject _:b33
sp:subject _:b15
]) ;
sp:where ([ sp:object
[ sp:varName "nameWellBore"^^xsd:string
......@@ -784,11 +675,95 @@ This rule processes data from statusInfo, but is here because it must be execute
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 164 Set preSPUD date"^^xsd:string ;
rdfs:comment """STEP 168 Transfer fixedRig
This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "preSpudDate"^^xsd:string
[ sp:varName "fixedOrMoveableRigType"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBorePreSpudAt> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "rig"^^xsd:string
]
]) ;
sp:where ([ sp:object
[ sp:varName "nameWellBore"^^xsd:string
] ;
sp:predicate ep-spin-lib:nameWellbore ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "temporalPartOfARig"^^xsd:string
] ;
sp:predicate ep-activity:onRig ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object
[ sp:varName "rig"^^xsd:string
] ;
sp:predicate ep-core:temporalPartOf ;
sp:subject
[ sp:varName "temporalPartOfARig"^^xsd:string
]
] [ sp:object ep-facility:Rig ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "rig"^^xsd:string
]
] [ sp:object
[ sp:varName "statusInfo"^^xsd:string
] ;
sp:predicate ddr:statusInfoRef ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "fixedRig"^^xsd:string
] ;
sp:predicate ddr:fixedRig ;
sp:subject
[ sp:varName "statusInfo"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
]
] ;
sp:variable
[ sp:varName "normalizedWellBoreName"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
sp:arg2 [ sp:varName "dTimStart"^^xsd:string
]
] ;
sp:variable
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectFixedOrMoveableRigType ;
sp:arg1 [ sp:varName "fixedRig"^^xsd:string
]
] ;
sp:variable
[ sp:varName "fixedOrMoveableRigType"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 166 Set SPUD date"^^xsd:string ;
sp:templates ([ sp:object
[ sp:varName "spudDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBoreSpudAt> ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
]
......@@ -809,9 +784,9 @@ This rule processes data from statusInfo, but is here because it must be execute
sp:predicate ddr:wellboreInfoRef ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "preSpudDate"^^xsd:string
[ sp:varName "spudDate"^^xsd:string
] ;
sp:predicate ddr:dTimPreSpud ;
sp:predicate ddr:dTimSpud ;
sp:subject
[ sp:varName "wellboreInfo"^^xsd:string
]
......@@ -857,84 +832,31 @@ This rule processes data from statusInfo, but is here because it must be execute
])
] .
[] rdf:type sp:Modify .
[] rdf:type fn:starts-with .
[] rdf:type smf:trim .
[] rdf:type smf:regex .
_:b8 sp:varName "normalizedWellBoreName"^^xsd:string .
_:b7 sp:varName "rigAlias"^^xsd:string .
_:b6 sp:varName "wellboreInfo"^^xsd:string .
_:b5 sp:varName "dTimStart"^^xsd:string .
_:b4 sp:varName "nameWellBore"^^xsd:string .
_:b2 sp:varName "dailyDrillingActivity"^^xsd:string .
_:b31
sp:varName "normalizedCode"^^xsd:string .
_:b30
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b29
sp:varName "rigAlias"^^xsd:string .
_:b28
sp:varName "wellboreInfo"^^xsd:string .
_:b4 sp:varName "dailyDrillingActivity"^^xsd:string .
_:b27
sp:varName "dTimStart"^^xsd:string .
_:b6 sp:varName "nameWellBore"^^xsd:string .
_:b26
sp:varName "nameWellBore"^^xsd:string .
_:b7 sp:varName "dTimStart"^^xsd:string .
_:b25
sp:varName "code"^^xsd:string .
_:b8 sp:varName "wellboreInfo"^^xsd:string .
_:b24
sp:varName "rig"^^xsd:string .
_:b9 sp:varName "rigAlias"^^xsd:string .
_:b23
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b20
_:b10
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b19
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b18
sp:varName "temporalPartOfARig"^^xsd:string .
_:b17
sp:varName "rigAlias"^^xsd:string .
_:b16
sp:varName "wellboreInfo"^^xsd:string .
_:b15
sp:varName "dTimStart"^^xsd:string .
_:b14
sp:varName "nameWellBore"^^xsd:string .
[] rdf:type sp:Modify .
_:b13
sp:varName "rig"^^xsd:string .
[] rdf:type fn:starts-with .
_:b12
sp:varName "name"^^xsd:string .
[] rdf:type smf:trim .
([]) .
[] rdf:type smf:regex .
([]) .
([] [] [ rdf:type sp:Filter
] [ rdf:type sp:Bind
]) .
([]) .
......
# Saved by TopBraid on Fri Oct 14 12:02:45 BST 2011
# baseURI: http://www.reportinghub.no/np/schema/1.0/npd
# imports: http://www.reportinghub.no/ep/schema/1.0/organization
# imports: http://www.reportinghub.no/ep/schema/1.0/well
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/facility
# imports: http://www.reportinghub.no/ep/schema/1.0/organization
# imports: http://www.reportinghub.no/ep/schema/1.0/well
@prefix facility: <http://www.reportinghub.no/ep/schema/1.0/facility#> .
@prefix npd: <http://www.reportinghub.no/np/schema/npd#> .
......@@ -31,13 +30,13 @@
<http://www.reportinghub.no/np/schema/1.0/npd>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/well> ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/organization> ;
owl:versionInfo "0.1.0"^^xsd:string .
npd:BusinessArrangementArea
rdf:type owl:Class ;
rdfs:comment "A business arrangement area in this context is an area which is a result of unitisations, sliding scale rules or other business arrangements which have altered the terms of the original production licence."^^xsd:string ;
rdfs:subClassOf npd:Owner , <http://www.reportinghub.no/ep/schema/core#PhysicalThing> , npd:NPDIndividual .
rdfs:subClassOf npd:NPDIndividual , <http://www.reportinghub.no/ep/schema/core#PhysicalThing> , npd:Owner .
npd:DAS_DecidedByTheLicensees
rdf:type npd:DiscoveryActivityStatus ;
......@@ -290,7 +289,7 @@ npd:LS_Inactive
npd:Licence
rdf:type owl:Class ;
rdfs:comment "Production licences are granted by the Ministry of Petroleum and Energy. Transfer of a production licence or participating interest in a production licence must be approved by the ministry."^^xsd:string ;
rdfs:subClassOf npd:Owner , <http://www.reportinghub.no/ep/schema/core#PhysicalThing> , npd:NPDIndividual .
rdfs:subClassOf npd:NPDIndividual , <http://www.reportinghub.no/ep/schema/core#PhysicalThing> , npd:Owner .
npd:LicenceStatus
rdf:type owl:Class ;
......@@ -325,7 +324,7 @@ npd:NPDIndividual
npd:OperatingCompany
rdf:type owl:Class ;
rdfs:subClassOf npd:NPDIndividual , <http://www.reportinghub.no/ep/schema/organization#Company> .
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/organization#Company> , npd:NPDIndividual .
npd:Owner
rdf:type owl:Class ;
......@@ -365,7 +364,7 @@ npd:SlidingScaleBAA
npd:TUF
rdf:type owl:Class ;
rdfs:comment "TUF is an abbreviation for \"Transportation and Utilization Facilities\"."^^xsd:string ;
rdfs:subClassOf npd:FixedFacilityParent , <http://www.reportinghub.no/ep/schema/facility#Facility> .
rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> , npd:FixedFacilityParent .
npd:TUFPart
rdf:type owl:Class ;
......@@ -543,6 +542,12 @@ npd:endDate
rdfs:domain <http://www.reportinghub.no/ep/schema/core#PhysicalThing> ;
rdfs:range xsd:date .
npd:facilityFunctions
rdf:type owl:DatatypeProperty ;
rdfs:comment "corresponds to Functions field in both the fixed and moveable facility tables"^^xsd:string ;
rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ;
rdfs:range xsd:string .
npd:facilityKind
rdf:type owl:DatatypeProperty ;
rdfs:comment "corresponds to Kind field in both the fixed and moveable facility tables"^^xsd:string ;
......
......@@ -16,7 +16,7 @@
let:completeDate="{# SELECT ?completeDate WHERE {?wb ep-well:wellBoreCompletedAt ?completeDate}}"
>
<h1>Summary report Wellbore: {# SELECT ?wbName WHERE {?wb ep-core:npdCode ?wbName}}</h1>
<h1>Summary report Wellbore: {# SELECT ?wbName WHERE {?wb npd:name ?wbName}}</h1>
<div>End time: <ui:if ui:condition="{= bound(?activityEnd) }">{= spif:dateFormat(?activityEnd, 'yyyy-MM-dd HH:mm') }</ui:if></div>
<hr />
<table>
......@@ -24,10 +24,10 @@
<tr>
<td class="ddrSummaryLeft">
<rhswp:NameValuePair arg:name="Report Number:" arg:value="{# SELECT ?repNum WHERE {?report ep-report:dailyDrillingReportNumber ?repNum}}" />
<rhswp:NameValuePair arg:name="Wellbore:" arg:value="{# SELECT ?wbName WHERE {?wb ep-core:npdCode ?wbName}}" />
<rhswp:NameValuePair arg:name="Wellbore:" arg:value="{# SELECT ?wbName WHERE {?wb npd:name ?wbName}}" />
<rhswp:NameValuePair arg:name="Status:" arg:value="{# SELECT ?repTypeName WHERE {?report a ?repType . ?repType rdfs:label ?repTypeName}}" />
<rhswp:NameValuePair arg:name="Operator:" arg:value="{# SELECT ?operatorName WHERE {?activity ep-activity:drillingOperator ?operator . ?operator ep-core:name ?operatorName }}" />
<rhswp:NameValuePair arg:name="Rig name:" arg:value="{# SELECT ?rigName WHERE {?rig ep-core:npdName ?rigName}}" />
<rhswp:NameValuePair arg:name="Rig name:" arg:value="{# SELECT ?rigName WHERE {?rig npd:name ?rigName}}" />
<rhswp:NameValuePair arg:name="Spud date:" arg:value="{= IF(bound(?spudDate), spif:dateFormat(?spudDate, 'yyyy-MM-dd'), ?unbound) }" />
<rhswp:NameValuePair arg:name="Elevation RKB-MSL m:" arg:value="{# SELECT ?kellyElevVMeas WHERE {?activity ep-activity:onRig ?rigState . ?rigState ep-core:hasPart ?kellyBushing . ?kellyBushing a ep-eqt:KellyBushing . ?kellyBushing ep-eqt:elevationOfKellyBushing ?kellyElev . ?kellyElev ep-core:metre ?kellyElevMeas}}" />
<rhswp:NameValuePair arg:name="Tight well:" arg:value="{# SELECT ?wbTightTypeLabel WHERE { ?statusActivityWb a ?wbTightType . ?wbTightType a ep-well:WellBoreTightnessType . ?wbTightType rdfs:label ?wbTightTypeLabel} }" />
......@@ -46,10 +46,10 @@
<rhswp:NameValuePair arg:name="Period:" arg:value="{= fn:concat(spif:dateFormat(?activityStart, 'yyyy-MM-dd HH:mm'), ' - ', spif:dateFormat(?activityEnd, 'yyyy-MM-dd HH:mm')) }" />
<rhswp:NameValuePair arg:name="Wellbore Id:" arg:value="{# SELECT DISTINCT ?wbID WHERE {?wb ep-core:npdNumber ?wbID}}" />
<rhswp:NameValuePair arg:name="Wellbore Id:" arg:value="{# SELECT DISTINCT ?wbID WHERE {?wb npd:id ?wbID}}" />
<rhswp:NameValuePair arg:name="Created date:" arg:value="{= IF(bound(?createdAt), spif:dateFormat(?createdAt, 'yyyy-MM-dd HH:mm'), ?unbound) }" />
<rhswp:NameValuePair arg:name="Drilling contractor:" arg:value="{# SELECT ?contractorName WHERE {?activity ep-activity:drillingContractor ?contractor . ?contractor ep-core:name ?contractorName}}" />
<rhswp:NameValuePair arg:name="NPD Rig Id:" arg:value="{= spl:object(?rig, ep-core:npdCode) }" />
<rhswp:NameValuePair arg:name="NPD Rig Id:" arg:value="{= spl:object(?rig, npd:id) }" />
<rhswp:NameValuePair arg:name="Date Well Complete:" arg:value="{= IF(bound(?completeDate), spif:dateFormat(?completeDate, 'yyyy-MM-dd'), ?unbound) }" />
<rhswp:NameValuePair arg:name="Water depth MSL m:" arg:value="{# SELECT ?waterDepthVal WHERE {?activity ep-activity:onRig ?rigState . ?rigState a ep-fac:TemporalPartOfARig . ?rigState ep-core:hasPart ?water . ?water a ep-fac:SurroundingWater . ?water ep-fac:depthOfSurroundingWater ?waterDepth . ?waterDepth ep-core:metre ?waterDepthVal}}" />
<rhswp:NameValuePair arg:name="High pressure - High temperature:" arg:value="{# SELECT ?wbPTTypeLabel WHERE { ?statusActivityWb a ?wbPTType . ?wbPTType a ep-well:WellBoreHphtType . ?wbPTType rdfs:label ?wbPTTypeLabel} }" />
......