Holger Knublauch

Made DDR import and SPIN functions tolerate new user-defined datatypes

Deleted -temporaryForTesting, now uses correct NPD resources
# Saved by TopBraid on Sun Sep 25 18:53:17 BST 2011
# baseURI: http://www.reportinghub.no/ep/spin/1.1/lib
# 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/equipment
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
# 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/ep/schema/drilling-equipment-type
# imports: http://spinrdf.org/spin
# 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/report> , <http://www.reportinghub.no/ep/schema/drilling-equipment-type> , <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> ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <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/report> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/drilling-equipment-type> , <http://www.reportinghub.no/spin/rh> , <http://www.witsml.org/schemas/1series> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-spin-lib:Function
......@@ -484,30 +483,13 @@ ep-spin-lib:buildTemporalPartOfAWellBoreURI
])
] .
ep-spin-lib:buildTemporaryWellBoreURI
rdf:type spin:Function ;
rdfs:label "build temporary WellBore URI"^^xsd:string ;
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b22) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/WellBore-temporaryForTesting/" ;
sp:arg2 spin:_arg1
] ;
sp:variable _:b22
])
] .
ep-spin-lib:buildURI
rdf:type spin:Function ;
rdfs:label "build URI"^^xsd:string ;
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 sp:iri ;
......@@ -516,17 +498,17 @@ ep-spin-lib:buildURI
sp:arg2 spin:_arg2
]
] ;
sp:variable _:b23
sp:variable _:b22
])
] ;
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
] .
......@@ -536,7 +518,7 @@ ep-spin-lib:buildWellBoreDirectionalSurveyURI
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 ;
......@@ -549,7 +531,7 @@ ep-spin-lib:buildWellBoreDirectionalSurveyURI
sp:arg5 spin:_arg3
]
] ;
sp:variable _:b24
sp:variable _:b23
])
] .
......@@ -559,7 +541,7 @@ ep-spin-lib:buildWellBoreDrillBitRunURI
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 ;
......@@ -572,7 +554,7 @@ ep-spin-lib:buildWellBoreDrillBitRunURI
sp:arg5 spin:_arg3
]
] ;
sp:variable _:b25
sp:variable _:b24
])
] .
......@@ -582,7 +564,7 @@ ep-spin-lib:buildWellBoreDrillBitURI
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 ;
......@@ -593,7 +575,7 @@ ep-spin-lib:buildWellBoreDrillBitURI
sp:arg3 spin:_arg2
]
] ;
sp:variable _:b26
sp:variable _:b25
])
] .
......@@ -603,7 +585,7 @@ ep-spin-lib:buildWellBoreKickOffURI
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 ;
......@@ -612,7 +594,7 @@ ep-spin-lib:buildWellBoreKickOffURI
sp:arg1 spin:_arg1
]
] ;
sp:variable _:b27
sp:variable _:b26
])
] .
......@@ -622,7 +604,7 @@ ep-spin-lib:buildWellBoreLogRunURI
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 ;
......@@ -635,7 +617,7 @@ ep-spin-lib:buildWellBoreLogRunURI
sp:arg5 spin:_arg3
]
] ;
sp:variable _:b28
sp:variable _:b27
])
] .
......@@ -645,7 +627,7 @@ ep-spin-lib:buildWellCementJobURI
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 ;
......@@ -656,7 +638,7 @@ ep-spin-lib:buildWellCementJobURI
sp:arg3 spin:_arg2
]
] ;
sp:variable _:b29
sp:variable _:b28
])
] .
......@@ -666,7 +648,7 @@ ep-spin-lib:buildWellControlIncidentURI
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 ;
......@@ -677,7 +659,7 @@ ep-spin-lib:buildWellControlIncidentURI
sp:arg3 spin:_arg2
]
] ;
sp:variable _:b30
sp:variable _:b29
])
] .
......@@ -687,7 +669,7 @@ ep-spin-lib:buildWellStimulationURI
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 ;
......@@ -698,7 +680,7 @@ ep-spin-lib:buildWellStimulationURI
sp:arg3 spin:_arg2
]
] ;
sp:variable _:b31
sp:variable _:b30
])
] .
......@@ -708,7 +690,7 @@ ep-spin-lib:buildWellTestURI
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 ;
......@@ -719,7 +701,7 @@ ep-spin-lib:buildWellTestURI
sp:arg3 spin:_arg2
]
] ;
sp:variable _:b32
sp:variable _:b31
])
] .
......@@ -729,7 +711,7 @@ ep-spin-lib:buildWirelineFormationTestURI
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 ep-spin-lib:buildURI ;
......@@ -740,7 +722,7 @@ ep-spin-lib:buildWirelineFormationTestURI
sp:arg3 spin:_arg2
]
] ;
sp:variable _:b33
sp:variable _:b32
])
] .
......@@ -750,7 +732,7 @@ ep-spin-lib:normalizeString
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b34) ;
sp:resultVariables (_:b33) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
......@@ -758,67 +740,67 @@ ep-spin-lib:normalizeString
sp:arg2 "\\((.*)\\)" ;
sp:arg3 ""
] ;
sp:variable _:b35
sp:variable _:b34
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:trim ;
sp:arg1 _:b35
sp:arg1 _:b34
] ;
sp:variable _:b36
sp:variable _:b35
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:encodeURL ;
sp:arg1 _:b36
sp:arg1 _:b35
] ;
sp:variable _:b37
sp:variable _:b36
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b37 ;
sp:arg1 _:b36 ;
sp:arg2 "%2F" ;
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 "%[0-9A-F][0-9A-F]" ;
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 smf:regex ;
sp:arg1 _:b41 ;
sp:arg1 _:b40 ;
sp:arg2 "\\*" ;
sp:arg3 ""
] ;
sp:variable _:b42
sp:variable _:b41
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:string ;
sp:arg1 [ rdf:type smf:upperCase ;
sp:arg1 _:b42
sp:arg1 _:b41
]
] ;
sp:variable _:b34
sp:variable _:b33
])
] ;
spin:constraint
......@@ -833,7 +815,7 @@ ep-spin-lib:selectActivitySuccessType
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 ;
......@@ -844,7 +826,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 _:b43
sp:variable _:b42
])
] .
......@@ -854,7 +836,7 @@ ep-spin-lib:selectCasingRoleType
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 ;
......@@ -879,7 +861,7 @@ ep-spin-lib:selectCasingRoleType
]
]
] ;
sp:variable _:b44
sp:variable _:b43
])
] .
......@@ -889,7 +871,7 @@ ep-spin-lib:selectCementingFluidReturnType
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 ;
......@@ -900,7 +882,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 _:b45
sp:variable _:b44
])
] .
......@@ -910,7 +892,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 ;
......@@ -949,7 +931,7 @@ ep-spin-lib:selectComponentType
]
]
] ;
sp:variable _:b46
sp:variable _:b45
])
] .
......@@ -959,7 +941,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 ;
......@@ -977,7 +959,7 @@ ep-spin-lib:selectDailyDrillingReportType
sp:arg3 <http://www.reportinghub.no/ep/schema/report#FinalDailyDrillingReport>
]
] ;
sp:variable _:b47
sp:variable _:b46
])
] .
......@@ -987,7 +969,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 ;
......@@ -1005,7 +987,7 @@ ep-spin-lib:selectDensityScale
sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
]
] ;
sp:variable _:b48
sp:variable _:b47
])
] .
......@@ -1015,7 +997,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 ;
......@@ -1082,7 +1064,7 @@ ep-spin-lib:selectDrillingActivityOutcomeType
]
]
] ;
sp:variable _:b49
sp:variable _:b48
])
] .
......@@ -1092,7 +1074,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 ;
......@@ -1677,7 +1659,7 @@ ep-spin-lib:selectDrillingActivityPurposeType
]
]
] ;
sp:variable _:b50
sp:variable _:b49
])
] .
......@@ -1687,7 +1669,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 ;
......@@ -1726,7 +1708,7 @@ ep-spin-lib:selectDrillingActivityTypeAccordingToEquipmentType
]
]
] ;
sp:variable _:b51
sp:variable _:b50
])
] .
......@@ -1736,7 +1718,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 ;
......@@ -1957,7 +1939,7 @@ ep-spin-lib:selectDrillingEquipmentType
]
]
] ;
sp:variable _:b52
sp:variable _:b51
])
] .
......@@ -1967,7 +1949,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 ;
......@@ -1978,7 +1960,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
])
] .
......@@ -1988,7 +1970,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 ;
......@@ -2020,7 +2002,7 @@ ep-spin-lib:selectFluidType
]
]
] ;
sp:variable _:b54
sp:variable _:b53
])
] .
......@@ -2030,7 +2012,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 ;
......@@ -2097,7 +2079,7 @@ ep-spin-lib:selectGasReadingType
]
]
] ;
sp:variable _:b55
sp:variable _:b54
])
] .
......@@ -2107,7 +2089,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 ;
......@@ -2139,7 +2121,7 @@ ep-spin-lib:selectInnerBarrelType
]
]
] ;
sp:variable _:b56
sp:variable _:b55
])
] .
......@@ -2149,7 +2131,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 ;
......@@ -2195,7 +2177,7 @@ ep-spin-lib:selectLabelOfSystem
]
]
] ;
sp:variable _:b57
sp:variable _:b56
])
] .
......@@ -2205,7 +2187,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 ;
......@@ -2286,7 +2268,7 @@ ep-spin-lib:selectLengthScale
]
]
] ;
sp:variable _:b58
sp:variable _:b57
])
] .
......@@ -2296,7 +2278,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 ;
......@@ -2307,7 +2289,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
])
] .
......@@ -2317,7 +2299,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 ;
......@@ -2342,7 +2324,7 @@ ep-spin-lib:selectMudClass
]
]
] ;
sp:variable _:b60
sp:variable _:b59
])
] .
......@@ -2352,7 +2334,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 ;
......@@ -2363,7 +2345,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
])
] .
......@@ -2373,7 +2355,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 ;
......@@ -2447,7 +2429,7 @@ ep-spin-lib:selectPlasticViscosityScale
]
]
] ;
sp:variable _:b62
sp:variable _:b61
])
] .
......@@ -2457,7 +2439,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 ;
......@@ -2475,7 +2457,7 @@ ep-spin-lib:selectPorePressureDeterminationType
sp:arg3 <http://www.reportinghub.no/ep/schema/activity#PorePressureDetermination>
]
] ;
sp:variable _:b63
sp:variable _:b62
])
] .
......@@ -2485,7 +2467,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 ;
......@@ -2524,7 +2506,7 @@ ep-spin-lib:selectPressureScale
]
]
] ;
sp:variable _:b64
sp:variable _:b63
])
] .
......@@ -2534,7 +2516,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 ;
......@@ -2552,7 +2534,7 @@ ep-spin-lib:selectPressureTestType
sp:arg3 <http://www.reportinghub.no/ep/schema/activity#WellBorePressureTest>
]
] ;
sp:variable _:b65
sp:variable _:b64
])
] .
......@@ -2562,7 +2544,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 ;
......@@ -2573,7 +2555,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
])
] .
......@@ -2583,7 +2565,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 ;
......@@ -2643,7 +2625,7 @@ ep-spin-lib:selectSpecificVolumeScale
]
]
] ;
sp:variable _:b67
sp:variable _:b66
])
] .
......@@ -2653,7 +2635,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 ;
......@@ -2664,7 +2646,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
])
] .
......@@ -2674,7 +2656,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 ;
......@@ -2692,7 +2674,7 @@ ep-spin-lib:selectStrengthOfRockFormationScale
sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
]
] ;
sp:variable _:b69
sp:variable _:b68
])
] .
......@@ -2702,7 +2684,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 ;
......@@ -2713,7 +2695,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
])
] .
......@@ -2723,7 +2705,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 ;
......@@ -2769,7 +2751,7 @@ ep-spin-lib:selectTimeDurationScale
]
]
] ;
sp:variable _:b71
sp:variable _:b70
])
] .
......@@ -2779,7 +2761,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 ;
......@@ -2804,7 +2786,7 @@ ep-spin-lib:selectTubeType
]
]
] ;
sp:variable _:b72
sp:variable _:b71
])
] .
......@@ -2814,7 +2796,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 ;
......@@ -2839,7 +2821,7 @@ ep-spin-lib:selectVolumeScale
]
]
] ;
sp:variable _:b73
sp:variable _:b72
])
] .
......@@ -2849,7 +2831,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 ;
......@@ -2860,7 +2842,7 @@ ep-spin-lib:selectVolumetricFlowRateScale
sp:arg2 <http://www.reportinghub.no/ep/schema/core#million_metre3_day-1> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
] ;
sp:variable _:b74
sp:variable _:b73
])
] .
......@@ -2870,7 +2852,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 ;
......@@ -2916,7 +2898,7 @@ ep-spin-lib:selectWellBoreDrillingType
]
]
] ;
sp:variable _:b75
sp:variable _:b74
])
] .
......@@ -2926,7 +2908,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 ;
......@@ -2937,7 +2919,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
])
] .
......@@ -2947,7 +2929,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 ;
......@@ -2958,7 +2940,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
])
] .
......@@ -2968,7 +2950,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 ;
......@@ -2979,7 +2961,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
])
] .
......@@ -2989,7 +2971,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 ;
......@@ -3000,7 +2982,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
])
] .
......@@ -3010,7 +2992,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 ;
......@@ -3021,7 +3003,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
])
] .
......@@ -3031,7 +3013,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 ;
......@@ -3042,7 +3024,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
])
] .
......@@ -3052,7 +3034,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 ;
......@@ -3063,7 +3045,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
])
] .
......@@ -3073,7 +3055,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 ;
......@@ -3084,7 +3066,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
])
] .
......@@ -3094,7 +3076,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 ;
......@@ -3126,7 +3108,7 @@ ep-spin-lib:selectWellCementJobType
]
]
] ;
sp:variable _:b84
sp:variable _:b83
])
] .
......@@ -3136,7 +3118,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 ;
......@@ -3168,7 +3150,7 @@ ep-spin-lib:selectWellControlIncidentType
]
]
] ;
sp:variable _:b85
sp:variable _:b84
])
] .
......@@ -3178,7 +3160,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 ;
......@@ -3224,7 +3206,7 @@ ep-spin-lib:selectWellKillingType
]
]
] ;
sp:variable _:b86
sp:variable _:b85
])
] .
......@@ -3234,7 +3216,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 ;
......@@ -3252,7 +3234,7 @@ ep-spin-lib:selectWellTestType
sp:arg3 <http://www.reportinghub.no/ep/schema/activity#WellTest>
]
] ;
sp:variable _:b87
sp:variable _:b86
])
] .
......@@ -3262,7 +3244,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 ;
......@@ -3273,7 +3255,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
])
] .
......@@ -3283,7 +3265,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 ;
......@@ -3308,7 +3290,7 @@ ep-spin-lib:selectYieldPointScale
]
]
] ;
sp:variable _:b89
sp:variable _:b88
])
] .
......@@ -3317,176 +3299,173 @@ ddr:TTUC_Enumeration_1
rdfs:label "Enumeration"^^xsd:string ;
dtype:value ddr:TTUC_degC .
_:b66
sp:varName "specificMassScale"^^xsd:string .
_:b89
_:b88
sp:varName "yieldPointScale"^^xsd:string .
_:b88
_:b87
sp:varName "wirelineFormationTestGoodnessOfSealType"^^xsd:string .
_:b87
_:b86
sp:varName "wellTestType"^^xsd:string .
_:b86
_:b85
sp:varName "wellKillingType"^^xsd:string .
_:b85
_:b84
sp:varName "wellControlIncidentType"^^xsd:string .
_:b84
_:b83
sp:varName "wellCementJobType"^^xsd:string .
_:b83
_:b82
sp:varName "wellCementJobTopPlugType"^^xsd:string .
_:b82
_:b81
sp:varName "wellCementJobPlugBumpingType"^^xsd:string .
_:b81
_:b80
sp:varName "wellCementJobFloatHoldingType"^^xsd:string .
_:b80
_:b79
sp:varName "wellCementJobCasingRotationType"^^xsd:string .
_:b79
_:b78
sp:varName "wellCementJobCasingReciprocationType"^^xsd:string .
_:b78
_:b77
sp:varName "wellCementJobBottomPlugType"^^xsd:string .
_:b77
_:b76
sp:varName "wellBoreTightnessType"^^xsd:string .
_:b76
_:b75
sp:varName "wellBoreHphtType"^^xsd:string .
_:b75
_:b74
sp:varName "wellBoreDrillingType"^^xsd:string .
_:b74
_:b73
sp:varName "volumetricFlowRateScale"^^xsd:string .
_:b73
_:b72
sp:varName "volumeScale"^^xsd:string .
_:b72
_:b71
sp:varName "tubeType"^^xsd:string .
_:b71
_:b70
sp:varName "durationScale"^^xsd:string .
_:b70
_:b69
sp:varName "temperatureScale"^^xsd:string .
_:b69
_:b68
sp:varName "strengthScale"^^xsd:string .
_:b68
_:b67
sp:varName "speedScale"^^xsd:string .
_:b67
_:b66
sp:varName "specificVolumeScale"^^xsd:string .
_:b65
sp:varName "pressureTestType"^^xsd:string .
sp:varName "specificMassScale"^^xsd:string .
_:b64
sp:varName "pressureScale"^^xsd:string .
sp:varName "pressureTestType"^^xsd:string .
_:b63
sp:varName "porePressureDeterminationType"^^xsd:string .
sp:varName "pressureScale"^^xsd:string .
_:b62
sp:varName "plasticViscosityScale"^^xsd:string .
sp:varName "porePressureDeterminationType"^^xsd:string .
_:b61
sp:varName "angleScale"^^xsd:string .
sp:varName "plasticViscosityScale"^^xsd:string .
_:b60
sp:varName "mudClass"^^xsd:string .
sp:varName "angleScale"^^xsd:string .
_:b59
sp:varName "massPerUnitLengthScale"^^xsd:string .
sp:varName "mudClass"^^xsd:string .
_:b58
sp:varName "lengthScale"^^xsd:string .
sp:varName "massPerUnitLengthScale"^^xsd:string .
_:b57
sp:varName "dailyDrillingReportType"^^xsd:string .
sp:varName "lengthScale"^^xsd:string .
_:b56
sp:varName "innerBarrelType"^^xsd:string .
sp:varName "dailyDrillingReportType"^^xsd:string .
_:b55
sp:varName "gasReadingType"^^xsd:string .
sp:varName "innerBarrelType"^^xsd:string .
_:b54
sp:varName "fluidType"^^xsd:string .
sp:varName "gasReadingType"^^xsd:string .
_:b53
sp:varName "fixedOrMoveableRigType"^^xsd:string .
sp:varName "fluidType"^^xsd:string .
_:b52
sp:varName "drillingEquipmentType"^^xsd:string .
sp:varName "fixedOrMoveableRigType"^^xsd:string .
_:b51
sp:varName "drillingActivityTypeAccordingToEquipmentType"^^xsd:string .
sp:varName "drillingEquipmentType"^^xsd:string .
_:b50
sp:varName "drillingActivityPurposeType"^^xsd:string .
sp:varName "drillingActivityTypeAccordingToEquipmentType"^^xsd:string .
_:b49
sp:varName "drillingActivityOutcomeType"^^xsd:string .
sp:varName "drillingActivityPurposeType"^^xsd:string .
_:b48
sp:varName "densityScale"^^xsd:string .
sp:varName "drillingActivityOutcomeType"^^xsd:string .
_:b47
sp:varName "dailyDrillingReportType"^^xsd:string .
sp:varName "densityScale"^^xsd:string .
_:b46
sp:varName "componentType"^^xsd:string .
sp:varName "dailyDrillingReportType"^^xsd:string .
_:b45
sp:varName "cementingFluidReturnType"^^xsd:string .
sp:varName "componentType"^^xsd:string .
_:b44
sp:varName "casingRoleType"^^xsd:string .
sp:varName "cementingFluidReturnType"^^xsd:string .
_:b43
sp:varName "activitySuccessType"^^xsd:string .
sp:varName "casingRoleType"^^xsd:string .
_:b42
sp:varName "t4"^^xsd:string .
sp:varName "activitySuccessType"^^xsd:string .
_:b41
sp:varName "t3"^^xsd:string .
sp:varName "t4"^^xsd:string .
_:b40
sp:varName "t2"^^xsd:string .
sp:varName "t3"^^xsd:string .
_:b39
sp:varName "t1"^^xsd:string .
sp:varName "t2"^^xsd:string .
_:b38
sp:varName "t0b"^^xsd:string .
sp:varName "t1"^^xsd:string .
_:b37
sp:varName "t0a"^^xsd:string .
sp:varName "t0b"^^xsd:string .
_:b36
sp:varName "s2"^^xsd:string .
sp:varName "t0a"^^xsd:string .
_:b35
sp:varName "s1"^^xsd:string .
sp:varName "s2"^^xsd:string .
_:b34
sp:varName "normalizedStr"^^xsd:string .
sp:varName "s1"^^xsd:string .
_:b33
sp:varName "uri"^^xsd:string .
sp:varName "normalizedStr"^^xsd:string .
_:b32
sp:varName "uri"^^xsd:string .
......
# Saved by TopBraid on Sun Sep 25 18:41:25 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport
# imports: http://www.reportinghub.no/ep/schema/1.0/report
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://spinrdf.org/spin
# imports: http://www.energistics.org/schemas/abstract
# imports: http://www.witsml.org/schemas/1series
# imports: http://www.reportinghub.no/ep/schema/1.0/well
# 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/equipment
# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose
# 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/ep/spin/1.1/lib
# imports: http://www.witsml.org/schemas/1series
@prefix NPD_110721144611-valid: <file:///Sandbox/NPD_110721144611-valid.xml#> .
@prefix arg: <http://spinrdf.org/arg#> .
@prefix ddr: <http://www.witsml.org/schemas/1series#> .
@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
......@@ -25,388 +25,431 @@
<http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.witsml.org/schemas/1series> , <http://www.energistics.org/schemas/abstract> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/report> ;
owl:imports <http://spinrdf.org/spin> , <http://www.energistics.org/schemas/abstract> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <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/report> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.witsml.org/schemas/1series> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ddr:Obj_drillReport
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 106 Create Well"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
rdfs:comment """STEP 103 Create DailyDrillingReport, DailyDrillingActivity, TemporalPartOfAWellBore and WellBore
Minimum data - createDate, dTimStart, dTimEnd, nameWellBore
Optional data - extendedReport
replaced for testing - BIND (rhspin:wellBoreByName(?nameWellBore) AS ?wellBore) ."""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object _:b2 ;
sp:subject
[ sp:varName "dailyDrillingReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivity> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object
[ sp:varName "dailyDrillingActivity"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject
[ sp:varName "dailyDrillingReport"^^xsd:string
]
] [ sp:object
[ sp:varName "createDate"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ;
sp:subject
[ sp:varName "dailyDrillingReport"^^xsd:string
]
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
]
] [ sp:object
[ sp:varName "wellBore"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
]
] [ sp:object
[ sp:varName "nameWellBore"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#humanRecognizableName> ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#descriptionOfActivitiesFollowingTheDailyReportingPeriod> ;
sp:subject
[ sp:varName "dailyDrillingActivity"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#Report> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object
[ sp:varName "extendedReportContent"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#hasContent> ;
sp:subject _:b1
] [ sp:object
[ sp:varName "dTimExtendedReport"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ;
sp:subject _:b1
]) ;
sp:where ([ sp:object
[ sp:varName "nameWellBore"^^xsd:string
] ;
sp:predicate ddr:nameWellbore ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
] ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dTimEnd"^^xsd:string
] ;
sp:predicate ddr:dTimEnd ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "createDate"^^xsd:string
] ;
sp:predicate ddr:createDate ;
sp:subject spin:_this
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "extendedReport"^^xsd:string
] ;
sp:predicate ddr:extendedReportRef ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "extendedReportContent"^^xsd:string
] ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject
[ sp:varName "extendedReport"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "dTimExtendedReport"^^xsd:string
] ;
sp:predicate ddr:dTim ;
sp:subject
[ sp:varName "extendedReport"^^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:buildDailyDrillingReportURI ;
sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
sp:arg2 [ sp:varName "createDate"^^xsd:string
]
] ;
sp:variable
[ sp:varName "dailyDrillingReport"^^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:buildTemporalPartOfAWellBoreURI ;
sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
] ;
sp:arg2 [ sp:varName "dTimStart"^^xsd:string
] ;
sp:arg3 [ sp:varName "dTimEnd"^^xsd:string
]
] ;
sp:variable
[ sp:varName "temporalPartOfAWellBore"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:wellBoreByName ;
arg:wellBoreName
[ rdf:type xsd:string ;
sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
]
]
] ;
sp:variable
[ sp:varName "wellBore"^^xsd:string
]
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 106 Create Well"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object _:b3 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#humanRecognizableName> ;
sp:subject _:b2
] [ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ;
sp:subject _:b4
] [ sp:object _:b1 ;
sp:subject _:b5
] [ sp:object _:b2 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b3
sp:subject _:b4
] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWell> ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object _:b5 ;
sp:subject _:b4
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject _:b1
sp:subject _:b2
]) ;
sp:where ([ sp:object _:b6 ;
sp:where ([ sp:object _:b7 ;
sp:predicate ddr:nameWellbore ;
sp:subject spin:_this
] [ sp:object _:b2 ;
] [ sp:object _:b3 ;
sp:predicate ddr:nameWell ;
sp:subject spin:_this
] [ sp:object _:b7 ;
] [ sp:object _:b8 ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ sp:object _:b8 ;
] [ sp:object _:b9 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b4
] [ sp:object _:b5 ;
sp:subject _:b5
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b8
sp:subject _:b9
] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject _:b5
sp:subject _:b6
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b6
sp:arg1 _:b7
] ;
sp:variable _:b9
sp:variable _:b10
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b9 ;
sp:arg2 _:b7
sp:arg1 _:b10 ;
sp:arg2 _:b8
] ;
sp:variable _:b4
sp:variable _:b5
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b2
sp:arg1 _:b3
] ;
sp:variable _:b10
sp:variable _:b11
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:wellByName ;
arg:wellName _:b10
arg:wellName _:b11
] ;
sp:variable _:b1
sp:variable _:b2
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 104 Transfer dTimEnd"^^xsd:string ;
sp:templates ([ sp:object _:b11 ;
sp:templates ([ sp:object _:b12 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject _:b12
sp:subject _:b13
]) ;
sp:where ([ sp:object _:b13 ;
sp:where ([ sp:object _:b14 ;
sp:predicate ddr:nameWellbore ;
sp:subject spin:_this
] [ sp:object _:b14 ;
] [ sp:object _:b15 ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ sp:object _:b11 ;
] [ sp:object _:b12 ;
sp:predicate ddr:dTimEnd ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b13
sp:arg1 _:b14
] ;
sp:variable _:b15
sp:variable _:b16
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b15 ;
sp:arg2 _:b14
sp:arg1 _:b16 ;
sp:arg2 _:b15
] ;
sp:variable _:b12
sp:variable _:b13
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 105
Classify a DailyDrillingReport"""^^xsd:string ;
sp:templates ([ sp:object _:b16 ;
sp:templates ([ sp:object _:b17 ;
sp:predicate rdf:type ;
sp:subject _:b17
sp:subject _:b18
]) ;
sp:where ([ sp:object _:b18 ;
sp:where ([ sp:object _:b19 ;
sp:predicate ddr:nameWellbore ;
sp:subject spin:_this
] [ sp:object _:b19 ;
] [ sp:object _:b20 ;
sp:predicate ddr:createDate ;
sp:subject spin:_this
] [ sp:object _:b20 ;
] [ sp:object _:b21 ;
sp:predicate ddr:versionKindRef ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectDailyDrillingReportType ;
sp:arg1 _:b20
sp:arg1 _:b21
] ;
sp:variable _:b16
sp:variable _:b17
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b18
sp:arg1 _:b19
] ;
sp:variable _:b21
sp:variable _:b22
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 _:b21 ;
sp:arg2 _:b19
sp:arg1 _:b22 ;
sp:arg2 _:b20
] ;
sp:variable _:b17
sp:variable _:b18
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 103a Set name of DailyDrillingReport as label
Minimum data - createDate, dTimStart, nameWellBore"""^^xsd:string ;
sp:templates ([ sp:object _:b22 ;
sp:templates ([ sp:object _:b23 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject _:b23
sp:subject _:b24
]) ;
sp:where ([ sp:object _:b24 ;
sp:where ([ sp:object _:b25 ;
sp:predicate ddr:nameWellbore ;
sp:subject spin:_this
] [ sp:object _:b22 ;
] [ sp:object _:b23 ;
sp:predicate ddr:name ;
sp:subject spin:_this
] [ sp:object _:b25 ;
sp:predicate ddr:createDate ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b24
] ;
sp:variable _:b26
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 _:b26 ;
sp:arg2 _:b25
] ;
sp:variable _:b23
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 103 Create DailyDrillingReport, DailyDrillingActivity, TemporalPartOfAWellBore and WellBore
Minimum data - createDate, dTimStart, dTimEnd, nameWellBore
Optional data - extendedReport
replaced for testing - BIND (rhspin:wellBoreByName(?nameWellBore) AS ?wellBore) ."""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> ;
sp:predicate rdf:type ;
sp:subject _:b27
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivity> ;
sp:predicate rdf:type ;
sp:subject _:b28
] [ sp:object _:b28 ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject _:b27
] [ sp:object _:b29 ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ;
sp:subject _:b27
] [ sp:object _:b30 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject _:b28
] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ;
sp:predicate rdf:type ;
sp:subject _:b31
] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject _:b32
] [ sp:object _:b32 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b31
] [ sp:object _:b33 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#humanRecognizableName> ;
sp:subject _:b32
] [ sp:object _:b31 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b28
] [ sp:object _:b34 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#descriptionOfActivitiesFollowingTheDailyReportingPeriod> ;
sp:subject _:b28
] [ sp:object <http://www.reportinghub.no/ep/schema/report#Report> ;
sp:predicate rdf:type ;
sp:subject _:b34
] [ sp:object _:b35 ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#hasContent> ;
sp:subject _:b34
] [ sp:object _:b36 ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ;
sp:subject _:b34
]) ;
sp:where ([ sp:object _:b33 ;
sp:predicate ddr:nameWellbore ;
sp:subject spin:_this
] [ sp:object _:b30 ;
sp:predicate ddr:dTimStart ;
sp:subject spin:_this
] [ sp:object _:b37 ;
sp:predicate ddr:dTimEnd ;
sp:subject spin:_this
] [ sp:object _:b29 ;
] [ sp:object _:b26 ;
sp:predicate ddr:createDate ;
sp:subject spin:_this
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b38 ;
sp:predicate ddr:extendedReportRef ;
sp:subject spin:_this
] [ sp:object _:b35 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b38
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b36 ;
sp:predicate ddr:dTim ;
sp:subject _:b38
])
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b33
] ;
sp:variable _:b39
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 _:b39 ;
sp:arg2 _:b29
sp:arg1 _:b25
] ;
sp:variable _:b27
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b39 ;
sp:arg2 _:b30
] ;
sp:variable _:b28
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildTemporalPartOfAWellBoreURI ;
sp:arg1 _:b39 ;
sp:arg2 _:b30 ;
sp:arg3 _:b37
] ;
sp:variable _:b31
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildTemporaryWellBoreURI ;
sp:arg1 _:b39
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 _:b27 ;
sp:arg2 _:b26
] ;
sp:variable _:b32
sp:variable _:b24
])
] .
_:b1 sp:varName "well"^^xsd:string .
_:b11
sp:varName "normalizedWellName"^^xsd:string .
_:b10
sp:varName "normalizedWellName"^^xsd:string .
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b9 sp:varName "normalizedWellBoreName"^^xsd:string .
_:b9 sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b5 sp:varName "wellBore"^^xsd:string .
_:b8 sp:varName "dTimStart"^^xsd:string .
_:b8 sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b7 sp:varName "nameWellBore"^^xsd:string .
_:b4 sp:varName "dailyDrillingActivity"^^xsd:string .
_:b6 sp:varName "wellBore"^^xsd:string .
_:b7 sp:varName "dTimStart"^^xsd:string .
_:b5 sp:varName "dailyDrillingActivity"^^xsd:string .
_:b2 sp:varName "nameWell"^^xsd:string .
_:b3 sp:varName "nameWell"^^xsd:string .
_:b6 sp:varName "nameWellBore"^^xsd:string .
_:b2 sp:varName "well"^^xsd:string .
_:b15
_:b16
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b14
_:b15
sp:varName "dTimStart"^^xsd:string .
_:b13
_:b14
sp:varName "nameWellBore"^^xsd:string .
_:b12
_:b13
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b11
_:b12
sp:varName "dTimEnd"^^xsd:string .
_:b21
_:b22
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b20
_:b21
sp:varName "versionKind"^^xsd:string .
_:b19
_:b20
sp:varName "createDate"^^xsd:string .
_:b18
_:b19
sp:varName "nameWellBore"^^xsd:string .
_:b17
_:b18
sp:varName "dailyDrillingReport"^^xsd:string .
_:b16
_:b17
sp:varName "dailyDrillingReportType"^^xsd:string .
_:b26
_:b27
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b25
_:b26
sp:varName "createDate"^^xsd:string .
_:b24
_:b25
sp:varName "nameWellBore"^^xsd:string .
_:b23
_:b24
sp:varName "dailyDrillingReport"^^xsd:string .
_:b22
_:b23
sp:varName "nameDailyDrillingReport"^^xsd:string .
_:b39
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b38
sp:varName "extendedReport"^^xsd:string .
_:b37
sp:varName "dTimEnd"^^xsd:string .
_:b36
sp:varName "dTimExtendedReport"^^xsd:string .
_:b35
sp:varName "extendedReportContent"^^xsd:string .
_:b33
sp:varName "nameWellBore"^^xsd:string .
_:b32
sp:varName "wellBore"^^xsd:string .
_:b31
sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b30
sp:varName "dTimStart"^^xsd:string .
_:b29
sp:varName "createDate"^^xsd:string .
_:b28
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b27
sp:varName "dailyDrillingReport"^^xsd:string .
......
......@@ -415,12 +415,19 @@ rhspin:ddrActivityStartDate
spin:body
[ rdf:type sp:Select ;
sp:resultVariables ([ rdf:type xsd:date ;
sp:arg1 _:b18
sp:arg1 [ rdf:type xsd:dateTime ;
sp:arg1 [ rdf:type xsd:string ;
sp:arg1 [ sp:varName "startedAt"^^xsd:string
]
]
]
]) ;
sp:where ([ rdf:type sp:TriplePath ;
sp:object _:b18 ;
sp:object
[ sp:varName "startedAt"^^xsd:string
] ;
sp:path [ rdf:type sp:SeqPath ;
sp:path1 <http://www.reportinghub.no/ep/schema/activity#reportOn> ;
sp:path1 <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:path2 <http://www.reportinghub.no/ep/schema/activity#startedAt>
] ;
sp:subject
......@@ -443,13 +450,16 @@ rhspin:ddrWellBoreId
rdfs:subClassOf spin:Functions ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b19) ;
sp:resultVariables ([ sp:varName "id"^^xsd:string
]) ;
sp:where ([ rdf:type sp:TriplePath ;
sp:object _:b20 ;
sp:object
[ sp:varName "wellBore"^^xsd:string
] ;
sp:path [ rdf:type sp:SeqPath ;
sp:path1
[ rdf:type sp:SeqPath ;
sp:path1 <http://www.reportinghub.no/ep/schema/activity#reportOn> ;
sp:path1 <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:path2 <http://www.reportinghub.no/ep/schema/activity#onWellBore>
] ;
sp:path2 <http://www.reportinghub.no/ep/schema/core#temporalPartOf>
......@@ -458,9 +468,13 @@ rhspin:ddrWellBoreId
[ sp:varName "ddr"^^xsd:string
]
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object _:b19 ;
sp:elements ([ sp:object
[ sp:varName "id"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ;
sp:subject _:b20
sp:subject
[ sp:varName "wellBore"^^xsd:string
]
]) ;
sp:graphNameNode npdata:npd
])
......@@ -502,13 +516,13 @@ rhspin:dtypeValue
rdfs:subClassOf spl:OntologyFunctions ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b21) ;
sp:where ([ sp:object _:b22 ;
sp:resultVariables (_:b18) ;
sp:where ([ sp:object _:b19 ;
sp:predicate spin:_arg2 ;
sp:subject spin:_arg1
] [ sp:object _:b21 ;
] [ sp:object _:b18 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b22
sp:subject _:b19
])
] ;
spin:constraint
......@@ -576,14 +590,17 @@ rhspin:graphForDDR
spin:body
[ rdf:type sp:Select ;
sp:resultVariables ([ rdf:type sp:iri ;
sp:arg1 _:b23
sp:arg1 [ sp:varName "uri"^^xsd:string
]
]) ;
sp:where ([ rdf:type sp:TriplePath ;
sp:object _:b24 ;
sp:object
[ sp:varName "wellBore"^^xsd:string
] ;
sp:path [ rdf:type sp:SeqPath ;
sp:path1
[ rdf:type sp:SeqPath ;
sp:path1 <http://www.reportinghub.no/ep/schema/activity#reportOn> ;
sp:path1 <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:path2 <http://www.reportinghub.no/ep/schema/activity#onWellBore>
] ;
sp:path2 <http://www.reportinghub.no/ep/schema/core#temporalPartOf>
......@@ -592,21 +609,32 @@ rhspin:graphForDDR
[ sp:varName "ddr"^^xsd:string
]
] [ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object _:b25 ;
sp:elements ([ sp:object
[ sp:varName "licence"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#drilledInProductionLicence> ;
sp:subject _:b24
] [ sp:object _:b26 ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
]
] [ sp:object
[ sp:varName "id"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ;
sp:subject _:b25
sp:subject
[ sp:varName "licence"^^xsd:string
]
]) ;
sp:graphNameNode npdata:npd
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type fn:concat ;
sp:arg1 "https://www.reportinghub.no/ep/graph/licence-" ;
sp:arg2 _:b26
sp:arg2 [ sp:varName "id"^^xsd:string
]
] ;
sp:variable _:b23
sp:variable
[ sp:varName "uri"^^xsd:string
]
])
] ;
spin:constraint
......@@ -702,9 +730,9 @@ rhspin:licenceForWellBore
rdfs:subClassOf spin:Functions ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b27) ;
sp:resultVariables (_:b20) ;
sp:where ([ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object _:b27 ;
sp:elements ([ sp:object _:b20 ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#drilledInProductionLicence> ;
sp:subject
[ sp:varName "wellBore"^^xsd:string
......@@ -728,7 +756,7 @@ rhspin:normalizeString
rdfs:subClassOf spl:StringFunctions ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b28) ;
sp:resultVariables (_:b21) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
......@@ -736,67 +764,67 @@ rhspin:normalizeString
sp:arg2 "\\((.*)\\)" ;
sp:arg3 ""
] ;
sp:variable _:b29
sp:variable _:b22
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:trim ;
sp:arg1 _:b29
sp:arg1 _:b22
] ;
sp:variable _:b30
sp:variable _:b23
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:encodeURL ;
sp:arg1 _:b30
sp:arg1 _:b23
] ;
sp:variable _:b31
sp:variable _:b24
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b31 ;
sp:arg1 _:b24 ;
sp:arg2 "%2F" ;
sp:arg3 "_"
] ;
sp:variable _:b32
sp:variable _:b25
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b32 ;
sp:arg1 _:b25 ;
sp:arg2 "%[0-9A-F][0-9A-F]" ;
sp:arg3 ""
] ;
sp:variable _:b33
sp:variable _:b26
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b33 ;
sp:arg1 _:b26 ;
sp:arg2 "\\+" ;
sp:arg3 "_"
] ;
sp:variable _:b34
sp:variable _:b27
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b34 ;
sp:arg1 _:b27 ;
sp:arg2 "_+" ;
sp:arg3 "_"
] ;
sp:variable _:b35
sp:variable _:b28
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type spif:regex ;
sp:arg1 _:b35 ;
sp:arg1 _:b28 ;
sp:arg2 "\\*" ;
sp:arg3 ""
] ;
sp:variable _:b36
sp:variable _:b29
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:string ;
sp:arg1 [ rdf:type spif:upperCase ;
sp:arg1 _:b36
sp:arg1 _:b29
]
] ;
sp:variable _:b28
sp:variable _:b21
])
] ;
spin:constraint
......@@ -813,9 +841,9 @@ rhspin:npdId
rdfs:subClassOf spl:StringFunctions ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b37) ;
sp:resultVariables (_:b30) ;
sp:where ([ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object _:b37 ;
sp:elements ([ sp:object _:b30 ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ;
sp:subject
[ sp:varName "resource"^^xsd:string
......@@ -838,9 +866,9 @@ rhspin:npdName
rdfs:subClassOf spl:StringFunctions ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b38) ;
sp:resultVariables (_:b31) ;
sp:where ([ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object _:b38 ;
sp:elements ([ sp:object _:b31 ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "resource"^^xsd:string
......@@ -993,16 +1021,16 @@ rhspin:wellBoreByName
rdfs:subClassOf spl:URIFunctions ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b39) ;
sp:resultVariables (_:b32) ;
sp:where ([ rdf:type sp:NamedGraph ;
sp:elements ([ sp:object
[ sp:varName "wellBoreName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject _:b39
sp:subject _:b32
] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject _:b39
sp:subject _:b32
]) ;
sp:graphNameNode npdata:npd
])
......@@ -1041,71 +1069,50 @@ rhspin:wellByName
] ;
spin:returnType <http://www.reportinghub.no/ep/schema/well#Well> .
_:b39
sp:varName "wellBore"^^xsd:string .
_:b38
sp:varName "name"^^xsd:string .
_:b37
sp:varName "id"^^xsd:string .
_:b36
sp:varName "t4"^^xsd:string .
_:b35
sp:varName "t3"^^xsd:string .
_:b34
sp:varName "t2"^^xsd:string .
_:b33
sp:varName "t1"^^xsd:string .
_:b32
sp:varName "t0b"^^xsd:string .
sp:varName "wellBore"^^xsd:string .
_:b31
sp:varName "t0a"^^xsd:string .
sp:varName "name"^^xsd:string .
_:b30
sp:varName "s2"^^xsd:string .
sp:varName "id"^^xsd:string .
_:b29
sp:varName "s1"^^xsd:string .
sp:varName "t4"^^xsd:string .
_:b28
sp:varName "normalizedStr"^^xsd:string .
sp:varName "t3"^^xsd:string .
_:b27
sp:varName "licence"^^xsd:string .
sp:varName "t2"^^xsd:string .
_:b26
sp:varName "id"^^xsd:string .
sp:varName "t1"^^xsd:string .
_:b25
sp:varName "licence"^^xsd:string .
sp:varName "t0b"^^xsd:string .
_:b24
sp:varName "wellBore"^^xsd:string .
sp:varName "t0a"^^xsd:string .
_:b23
sp:varName "uri"^^xsd:string .
sp:varName "s2"^^xsd:string .
_:b22
sp:varName "reif"^^xsd:string .
sp:varName "s1"^^xsd:string .
_:b21
sp:varName "value"^^xsd:string .
sp:varName "normalizedStr"^^xsd:string .
_:b20
sp:varName "wellBore"^^xsd:string .
sp:varName "licence"^^xsd:string .
_:b19
sp:varName "id"^^xsd:string .
sp:varName "reif"^^xsd:string .
_:b18
sp:varName "startedAt"^^xsd:string .
sp:varName "value"^^xsd:string .
_:b17
sp:varName "wellBore"^^xsd:string .
......