David Leal

added transform for wellBore data in scope and a check (partial) for out of scope data

# Saved by TopBraid on Fri Sep 16 17:29:24 BST 2011
# Saved by TopBraid on Tue Sep 27 11:16:52 BST 2011
# baseURI: http://www.reportinghub.no/ep/schema/1.0/facility
# imports: http://www.reportinghub.no/ep/schema/1.0/core
......@@ -32,18 +32,18 @@ ep-fac:FixedOrMoveableRigType
rdfs:subClassOf owl:Class .
ep-fac:FixedRig
rdf:type owl:Class , ep-fac:FixedOrMoveableRigType ;
rdf:type ep-fac:FixedOrMoveableRigType , owl:Class ;
rdfs:label "fixed rig"^^xsd:string ;
rdfs:subClassOf ep-fac:Rig , ep-fac:FixedFacility .
rdfs:subClassOf ep-fac:FixedFacility , ep-fac:Rig .
ep-fac:MoveableFacility
rdf:type owl:Class ;
rdfs:subClassOf ep-fac:Facility .
ep-fac:MoveableRig
rdf:type owl:Class , ep-fac:FixedOrMoveableRigType ;
rdf:type ep-fac:FixedOrMoveableRigType , owl:Class ;
rdfs:label "moveable rig"^^xsd:string ;
rdfs:subClassOf ep-fac:Rig , ep-fac:MoveableFacility .
rdfs:subClassOf ep-fac:MoveableFacility , ep-fac:Rig .
ep-fac:Rig
rdf:type owl:Class ;
......@@ -63,13 +63,18 @@ ep-fac:SurroundingWater
rdfs:label "surrounding water"^^xsd:string ;
rdfs:subClassOf ep-core:PhysicalObject .
ep-fac:SurroundingWater-meanSeaLevel
rdf:type owl:Class ;
rdfs:label "surrounding water at mean sea level"^^xsd:string ;
rdfs:subClassOf ep-fac:SurroundingWater .
ep-fac:TemporalPartOfARig
rdf:type owl:Class ;
rdfs:label "(temporal part of a) rig"^^xsd:string ;
rdfs:subClassOf ep-fac:Facility .
ep-fac:depthOfSurroundingWater
rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ;
rdfs:domain ep-fac:SurroundingWater ;
rdfs:label "depth of surrounding water"^^xsd:string ;
rdfs:range ep-core:Length .
......
# Saved by TopBraid on Mon Sep 26 14:59:40 BST 2011
# Saved by TopBraid on Tue Sep 27 13:03:12 BST 2011
# baseURI: 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/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/well
# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
......@@ -14,7 +14,7 @@
<http://www.reportinghub.no/ep/schema/1.0/report>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/activity> , <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/well> ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/activity> ;
owl:versionInfo "0.1.0"^^xsd:string .
ep-report:DailyDrillingReport
......@@ -26,7 +26,7 @@ ep-report:DailyDrillingReportFinalisationType
rdfs:subClassOf owl:Class .
ep-report:FinalDailyDrillingReport
rdf:type ep-report:DailyDrillingReportFinalisationType , owl:Class ;
rdf:type owl:Class , ep-report:DailyDrillingReportFinalisationType ;
rdfs:subClassOf ep-report:DailyDrillingReport .
ep-report:NonProductivetimeReport
......@@ -34,13 +34,8 @@ ep-report:NonProductivetimeReport
rdfs:subClassOf ep-report:Report ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom xsd:dateTime ;
owl:onProperty ep-report:createdAt
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-report:createdAt
owl:onProperty ep-report:reportOn
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
......@@ -50,15 +45,20 @@ ep-report:NonProductivetimeReport
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-report:reportOn
owl:onProperty ep-report:createdAt
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom xsd:dateTime ;
owl:onProperty ep-report:createdAt
] .
ep-report:NormalDailyDrillingReport
rdf:type ep-report:DailyDrillingReportFinalisationType , owl:Class ;
rdf:type owl:Class , ep-report:DailyDrillingReportFinalisationType ;
rdfs:subClassOf ep-report:DailyDrillingReport .
ep-report:PreliminaryDailyDrillingReport
rdf:type ep-report:DailyDrillingReportFinalisationType , owl:Class ;
rdf:type owl:Class , ep-report:DailyDrillingReportFinalisationType ;
rdfs:subClassOf ep-report:DailyDrillingReport .
ep-report:Report
......@@ -70,40 +70,51 @@ ep-report:WeeklyDrillingReport
rdfs:subClassOf ep-report:Report ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-report:DailyDrillingReport ;
owl:onProperty ep-report:reportOn
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-report:createdAt
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "7"^^xsd:nonNegativeInteger ;
owl:onProperty ep-report:reportOn
owl:allValuesFrom xsd:dateTime ;
owl:onProperty ep-report:createdAt
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom xsd:dateTime ;
owl:onProperty ep-report:createdAt
owl:cardinality "7"^^xsd:nonNegativeInteger ;
owl:onProperty ep-report:reportOn
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-report:createdAt
owl:allValuesFrom ep-report:DailyDrillingReport ;
owl:onProperty ep-report:reportOn
] .
ep-report:createdAt
rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:domain ep-report:Report ;
rdfs:label "created at"^^xsd:string .
ep-report:dailyDrillingReportNumber
rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:domain ep-report:DailyDrillingReport ;
rdfs:label "daily drilling report number"^^xsd:string .
ep-report:datumObjectForDailyDrillingReport
rdf:type owl:ObjectProperty ;
rdfs:domain ep-report:DailyDrillingReport ;
rdfs:label "datum object for daily drilling report"^^xsd:string ;
rdfs:range ep-core:PhysicalObject .
ep-report:hasContent
rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:domain ep-report:Report ;
rdfs:label "has content"^^xsd:string .
ep-report:nameAsDatumObject
rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:domain ep-core:PhysicalObject ;
rdfs:label "name as datum object"^^xsd:string .
ep-report:reportOn
rdf:type owl:ObjectProperty ;
rdfs:domain ep-report:Report ;
......
# Saved by TopBraid on Tue Sep 27 10:05:18 BST 2011
# Saved by TopBraid on Tue Sep 27 13:59:39 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
......@@ -6,6 +6,7 @@
# imports: http://www.reportinghub.no/ep/schema/1.0/well
# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose
# 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://www.reportinghub.no/ep/schema/drilling-equipment-type
# imports: http://spinrdf.org/spin
......@@ -29,7 +30,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://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> , <http://www.reportinghub.no/ep/schema/1.0/facility> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-spin-lib:Function
......@@ -887,13 +888,41 @@ ep-spin-lib:selectCementingFluidReturnType
])
] .
ep-spin-lib:selectClassOfWellDatumObject
rdf:type spin:Function ;
rdfs:label "select class of well datum object"^^xsd:string ;
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b45) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 ddr:ECE_KB
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/equipment#KellyBushing> ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 ddr:ECE_SL
] ;
sp:arg2 <http://www.reportinghub.no/ep/schema/facility#SurroundingWater-meanSeaLevel> ;
sp:arg3 owl:Nothing
]
] ;
sp:variable _:b45
])
] .
ep-spin-lib:selectComponentType
rdf:type spin:Function ;
rdfs:label "select ComponentType"^^xsd:string ;
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b45) ;
sp:resultVariables (_:b46) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -932,7 +961,7 @@ ep-spin-lib:selectComponentType
]
]
] ;
sp:variable _:b45
sp:variable _:b46
])
] .
......@@ -942,7 +971,7 @@ ep-spin-lib:selectDailyDrillingReportType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b46) ;
sp:resultVariables (_:b47) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -960,7 +989,7 @@ ep-spin-lib:selectDailyDrillingReportType
sp:arg3 <http://www.reportinghub.no/ep/schema/report#FinalDailyDrillingReport>
]
] ;
sp:variable _:b46
sp:variable _:b47
])
] .
......@@ -970,7 +999,7 @@ ep-spin-lib:selectDensityScale
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b47) ;
sp:resultVariables (_:b48) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -988,7 +1017,7 @@ ep-spin-lib:selectDensityScale
sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
]
] ;
sp:variable _:b47
sp:variable _:b48
])
] .
......@@ -998,7 +1027,7 @@ ep-spin-lib:selectDrillingActivityOutcomeType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b48) ;
sp:resultVariables (_:b49) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -1065,7 +1094,7 @@ ep-spin-lib:selectDrillingActivityOutcomeType
]
]
] ;
sp:variable _:b48
sp:variable _:b49
])
] .
......@@ -1075,7 +1104,7 @@ ep-spin-lib:selectDrillingActivityPurposeType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b49) ;
sp:resultVariables (_:b50) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -1660,7 +1689,7 @@ ep-spin-lib:selectDrillingActivityPurposeType
]
]
] ;
sp:variable _:b49
sp:variable _:b50
])
] .
......@@ -1670,7 +1699,7 @@ ep-spin-lib:selectDrillingActivityTypeAccordingToEquipmentType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b50) ;
sp:resultVariables (_:b51) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -1709,7 +1738,7 @@ ep-spin-lib:selectDrillingActivityTypeAccordingToEquipmentType
]
]
] ;
sp:variable _:b50
sp:variable _:b51
])
] .
......@@ -1719,7 +1748,7 @@ ep-spin-lib:selectDrillingEquipmentType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b51) ;
sp:resultVariables (_:b52) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -1940,7 +1969,7 @@ ep-spin-lib:selectDrillingEquipmentType
]
]
] ;
sp:variable _:b51
sp:variable _:b52
])
] .
......@@ -1950,7 +1979,7 @@ ep-spin-lib:selectFixedOrMoveableRigType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b52) ;
sp:resultVariables (_:b53) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -1961,7 +1990,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 _:b52
sp:variable _:b53
])
] .
......@@ -1971,7 +2000,7 @@ ep-spin-lib:selectFluidType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b53) ;
sp:resultVariables (_:b54) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2003,7 +2032,7 @@ ep-spin-lib:selectFluidType
]
]
] ;
sp:variable _:b53
sp:variable _:b54
])
] .
......@@ -2013,7 +2042,7 @@ ep-spin-lib:selectGasReadingType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b54) ;
sp:resultVariables (_:b55) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2080,7 +2109,7 @@ ep-spin-lib:selectGasReadingType
]
]
] ;
sp:variable _:b54
sp:variable _:b55
])
] .
......@@ -2090,7 +2119,7 @@ ep-spin-lib:selectInnerBarrelType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b55) ;
sp:resultVariables (_:b56) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2122,7 +2151,7 @@ ep-spin-lib:selectInnerBarrelType
]
]
] ;
sp:variable _:b55
sp:variable _:b56
])
] .
......@@ -2132,7 +2161,7 @@ ep-spin-lib:selectLabelOfSystem
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b56) ;
sp:resultVariables (_:b57) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2178,7 +2207,7 @@ ep-spin-lib:selectLabelOfSystem
]
]
] ;
sp:variable _:b56
sp:variable _:b57
])
] .
......@@ -2188,7 +2217,7 @@ ep-spin-lib:selectLengthScale
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b57) ;
sp:resultVariables (_:b58) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2269,7 +2298,7 @@ ep-spin-lib:selectLengthScale
]
]
] ;
sp:variable _:b57
sp:variable _:b58
])
] .
......@@ -2279,7 +2308,7 @@ ep-spin-lib:selectMassPerUnitLengthScale
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b58) ;
sp:resultVariables (_:b59) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2290,7 +2319,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 _:b58
sp:variable _:b59
])
] .
......@@ -2300,7 +2329,7 @@ ep-spin-lib:selectMudClass
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b59) ;
sp:resultVariables (_:b60) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2325,7 +2354,7 @@ ep-spin-lib:selectMudClass
]
]
] ;
sp:variable _:b59
sp:variable _:b60
])
] .
......@@ -2335,7 +2364,7 @@ ep-spin-lib:selectPlaneAngleScale
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b60) ;
sp:resultVariables (_:b61) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2346,7 +2375,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 _:b60
sp:variable _:b61
])
] .
......@@ -2356,7 +2385,7 @@ ep-spin-lib:selectPlasticViscosityScale
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b61) ;
sp:resultVariables (_:b62) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2430,7 +2459,7 @@ ep-spin-lib:selectPlasticViscosityScale
]
]
] ;
sp:variable _:b61
sp:variable _:b62
])
] .
......@@ -2440,7 +2469,7 @@ ep-spin-lib:selectPorePressureDeterminationType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b62) ;
sp:resultVariables (_:b63) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2458,7 +2487,7 @@ ep-spin-lib:selectPorePressureDeterminationType
sp:arg3 <http://www.reportinghub.no/ep/schema/activity#PorePressureDetermination>
]
] ;
sp:variable _:b62
sp:variable _:b63
])
] .
......@@ -2468,7 +2497,7 @@ ep-spin-lib:selectPressureScale
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b63) ;
sp:resultVariables (_:b64) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2507,7 +2536,7 @@ ep-spin-lib:selectPressureScale
]
]
] ;
sp:variable _:b63
sp:variable _:b64
])
] .
......@@ -2517,7 +2546,7 @@ ep-spin-lib:selectPressureTestType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b64) ;
sp:resultVariables (_:b65) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2535,7 +2564,7 @@ ep-spin-lib:selectPressureTestType
sp:arg3 <http://www.reportinghub.no/ep/schema/activity#WellBorePressureTest>
]
] ;
sp:variable _:b64
sp:variable _:b65
])
] .
......@@ -2545,7 +2574,7 @@ ep-spin-lib:selectSpecificMassScale
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b65) ;
sp:resultVariables (_:b66) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2556,7 +2585,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 _:b65
sp:variable _:b66
])
] .
......@@ -2566,7 +2595,7 @@ ep-spin-lib:selectSpecificVolumeScale
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b66) ;
sp:resultVariables (_:b67) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2626,7 +2655,7 @@ ep-spin-lib:selectSpecificVolumeScale
]
]
] ;
sp:variable _:b66
sp:variable _:b67
])
] .
......@@ -2636,7 +2665,7 @@ ep-spin-lib:selectSpeedScale
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b67) ;
sp:resultVariables (_:b68) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2647,7 +2676,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 _:b67
sp:variable _:b68
])
] .
......@@ -2657,7 +2686,7 @@ ep-spin-lib:selectStrengthOfRockFormationScale
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b68) ;
sp:resultVariables (_:b69) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2675,7 +2704,7 @@ ep-spin-lib:selectStrengthOfRockFormationScale
sp:arg3 <http://www.reportinghub.no/ep/schema/core#undefinedScale>
]
] ;
sp:variable _:b68
sp:variable _:b69
])
] .
......@@ -2685,7 +2714,7 @@ ep-spin-lib:selectTemperatureScale
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b69) ;
sp:resultVariables (_:b70) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2696,7 +2725,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 _:b69
sp:variable _:b70
])
] .
......@@ -2706,7 +2735,7 @@ ep-spin-lib:selectTimeDurationScale
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b70) ;
sp:resultVariables (_:b71) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2752,7 +2781,7 @@ ep-spin-lib:selectTimeDurationScale
]
]
] ;
sp:variable _:b70
sp:variable _:b71
])
] .
......@@ -2762,7 +2791,7 @@ ep-spin-lib:selectTubeType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b71) ;
sp:resultVariables (_:b72) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2787,7 +2816,7 @@ ep-spin-lib:selectTubeType
]
]
] ;
sp:variable _:b71
sp:variable _:b72
])
] .
......@@ -2797,7 +2826,7 @@ ep-spin-lib:selectVolumeScale
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b72) ;
sp:resultVariables (_:b73) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2822,7 +2851,7 @@ ep-spin-lib:selectVolumeScale
]
]
] ;
sp:variable _:b72
sp:variable _:b73
])
] .
......@@ -2832,7 +2861,7 @@ ep-spin-lib:selectVolumetricFlowRateScale
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b73) ;
sp:resultVariables (_:b74) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2857,7 +2886,7 @@ ep-spin-lib:selectVolumetricFlowRateScale
]
]
] ;
sp:variable _:b73
sp:variable _:b74
])
] .
......@@ -2867,7 +2896,7 @@ ep-spin-lib:selectWellBoreDrillingType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b74) ;
sp:resultVariables (_:b75) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2913,7 +2942,7 @@ ep-spin-lib:selectWellBoreDrillingType
]
]
] ;
sp:variable _:b74
sp:variable _:b75
])
] .
......@@ -2923,7 +2952,7 @@ ep-spin-lib:selectWellBoreHphtType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b75) ;
sp:resultVariables (_:b76) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2934,7 +2963,7 @@ ep-spin-lib:selectWellBoreHphtType
sp:arg2 <http://www.reportinghub.no/ep/schema/well#HphtWellBore> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/well#NotHphtWellBore>
] ;
sp:variable _:b75
sp:variable _:b76
])
] .
......@@ -2944,7 +2973,7 @@ ep-spin-lib:selectWellBoreTightnessType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b76) ;
sp:resultVariables (_:b77) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2955,7 +2984,7 @@ ep-spin-lib:selectWellBoreTightnessType
sp:arg2 <http://www.reportinghub.no/ep/schema/well#TightWellBore> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/well#LeakyWellBore>
] ;
sp:variable _:b76
sp:variable _:b77
])
] .
......@@ -2965,7 +2994,7 @@ ep-spin-lib:selectWellCementJobBottomPlugType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b77) ;
sp:resultVariables (_:b78) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2976,7 +3005,7 @@ ep-spin-lib:selectWellCementJobBottomPlugType
sp:arg2 <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithBottomPlug> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithoutBottomPlug>
] ;
sp:variable _:b77
sp:variable _:b78
])
] .
......@@ -2986,7 +3015,7 @@ ep-spin-lib:selectWellCementJobCasingReciprocationType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b78) ;
sp:resultVariables (_:b79) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -2997,7 +3026,7 @@ ep-spin-lib:selectWellCementJobCasingReciprocationType
sp:arg2 <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithCasingReciprocation> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithoutCasingReciprocation>
] ;
sp:variable _:b78
sp:variable _:b79
])
] .
......@@ -3007,7 +3036,7 @@ ep-spin-lib:selectWellCementJobCasingRotationType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b79) ;
sp:resultVariables (_:b80) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -3018,7 +3047,7 @@ ep-spin-lib:selectWellCementJobCasingRotationType
sp:arg2 <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithCasingRotation> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithoutCasingRotation>
] ;
sp:variable _:b79
sp:variable _:b80
])
] .
......@@ -3028,7 +3057,7 @@ ep-spin-lib:selectWellCementJobFloatHoldingType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b80) ;
sp:resultVariables (_:b81) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -3039,7 +3068,7 @@ ep-spin-lib:selectWellCementJobFloatHoldingType
sp:arg2 <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithFloatHolding> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithoutFloatHolding>
] ;
sp:variable _:b80
sp:variable _:b81
])
] .
......@@ -3049,7 +3078,7 @@ ep-spin-lib:selectWellCementJobPlugBumpingType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b81) ;
sp:resultVariables (_:b82) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -3060,7 +3089,7 @@ ep-spin-lib:selectWellCementJobPlugBumpingType
sp:arg2 <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithPlugBumping> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithoutPlugBumping>
] ;
sp:variable _:b81
sp:variable _:b82
])
] .
......@@ -3070,7 +3099,7 @@ ep-spin-lib:selectWellCementJobTopPlugType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b82) ;
sp:resultVariables (_:b83) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -3081,7 +3110,7 @@ ep-spin-lib:selectWellCementJobTopPlugType
sp:arg2 <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithTopPlug> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithoutTopPlug>
] ;
sp:variable _:b82
sp:variable _:b83
])
] .
......@@ -3091,7 +3120,7 @@ ep-spin-lib:selectWellCementJobType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b83) ;
sp:resultVariables (_:b84) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -3123,7 +3152,7 @@ ep-spin-lib:selectWellCementJobType
]
]
] ;
sp:variable _:b83
sp:variable _:b84
])
] .
......@@ -3133,7 +3162,7 @@ ep-spin-lib:selectWellControlIncidentType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b84) ;
sp:resultVariables (_:b85) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -3165,7 +3194,7 @@ ep-spin-lib:selectWellControlIncidentType
]
]
] ;
sp:variable _:b84
sp:variable _:b85
])
] .
......@@ -3175,7 +3204,7 @@ ep-spin-lib:selectWellKillingType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b85) ;
sp:resultVariables (_:b86) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -3221,7 +3250,7 @@ ep-spin-lib:selectWellKillingType
]
]
] ;
sp:variable _:b85
sp:variable _:b86
])
] .
......@@ -3231,7 +3260,7 @@ ep-spin-lib:selectWellTestType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b86) ;
sp:resultVariables (_:b87) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -3249,7 +3278,7 @@ ep-spin-lib:selectWellTestType
sp:arg3 <http://www.reportinghub.no/ep/schema/activity#WellTest>
]
] ;
sp:variable _:b86
sp:variable _:b87
])
] .
......@@ -3259,7 +3288,7 @@ ep-spin-lib:selectWirelineFormationTestGoodnessOfSealType
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b87) ;
sp:resultVariables (_:b88) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -3270,7 +3299,7 @@ ep-spin-lib:selectWirelineFormationTestGoodnessOfSealType
sp:arg2 <http://www.reportinghub.no/ep/schema/activity#WirelineFormationTestWithGoodSeal> ;
sp:arg3 <http://www.reportinghub.no/ep/schema/activity#WirelineFormationTestWithoutGoodSeal>
] ;
sp:variable _:b87
sp:variable _:b88
])
] .
......@@ -3280,7 +3309,7 @@ ep-spin-lib:selectYieldPointScale
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b88) ;
sp:resultVariables (_:b89) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
......@@ -3305,7 +3334,7 @@ ep-spin-lib:selectYieldPointScale
]
]
] ;
sp:variable _:b88
sp:variable _:b89
])
] .
......@@ -3314,138 +3343,141 @@ ddr:TTUC_Enumeration_1
rdfs:label "Enumeration"^^xsd:string ;
dtype:value ddr:TTUC_degC .
_:b73
sp:varName "volumetricFlowRateScale"^^xsd:string .
_:b89
sp:varName "yieldPointScale"^^xsd:string .
_:b88
sp:varName "yieldPointScale"^^xsd:string .
sp:varName "wirelineFormationTestGoodnessOfSealType"^^xsd:string .
_:b87
sp:varName "wirelineFormationTestGoodnessOfSealType"^^xsd:string .
sp:varName "wellTestType"^^xsd:string .
_:b86
sp:varName "wellTestType"^^xsd:string .
sp:varName "wellKillingType"^^xsd:string .
_:b85
sp:varName "wellKillingType"^^xsd:string .
sp:varName "wellControlIncidentType"^^xsd:string .
_:b84
sp:varName "wellControlIncidentType"^^xsd:string .
sp:varName "wellCementJobType"^^xsd:string .
_:b83
sp:varName "wellCementJobType"^^xsd:string .
sp:varName "wellCementJobTopPlugType"^^xsd:string .
_:b82
sp:varName "wellCementJobTopPlugType"^^xsd:string .
sp:varName "wellCementJobPlugBumpingType"^^xsd:string .
_:b81
sp:varName "wellCementJobPlugBumpingType"^^xsd:string .
sp:varName "wellCementJobFloatHoldingType"^^xsd:string .
_:b80
sp:varName "wellCementJobFloatHoldingType"^^xsd:string .
sp:varName "wellCementJobCasingRotationType"^^xsd:string .
_:b79
sp:varName "wellCementJobCasingRotationType"^^xsd:string .
sp:varName "wellCementJobCasingReciprocationType"^^xsd:string .
_:b78
sp:varName "wellCementJobCasingReciprocationType"^^xsd:string .
sp:varName "wellCementJobBottomPlugType"^^xsd:string .
_:b77
sp:varName "wellCementJobBottomPlugType"^^xsd:string .
sp:varName "wellBoreTightnessType"^^xsd:string .
_:b76
sp:varName "wellBoreTightnessType"^^xsd:string .
sp:varName "wellBoreHphtType"^^xsd:string .
_:b75
sp:varName "wellBoreHphtType"^^xsd:string .
sp:varName "wellBoreDrillingType"^^xsd:string .
_:b74
sp:varName "wellBoreDrillingType"^^xsd:string .
sp:varName "volumetricFlowRateScale"^^xsd:string .
_:b72
_:b73
sp:varName "volumeScale"^^xsd:string .
_:b71
_:b72
sp:varName "tubeType"^^xsd:string .
_:b70
_:b71
sp:varName "durationScale"^^xsd:string .
_:b69
_:b70
sp:varName "temperatureScale"^^xsd:string .
_:b68
_:b69
sp:varName "strengthScale"^^xsd:string .
_:b67
_:b68
sp:varName "speedScale"^^xsd:string .
_:b66
_:b67
sp:varName "specificVolumeScale"^^xsd:string .
_:b65
_:b66
sp:varName "specificMassScale"^^xsd:string .
_:b64
_:b65
sp:varName "pressureTestType"^^xsd:string .
_:b63
_:b64
sp:varName "pressureScale"^^xsd:string .
_:b62
_:b63
sp:varName "porePressureDeterminationType"^^xsd:string .
_:b61
_:b62
sp:varName "plasticViscosityScale"^^xsd:string .
_:b60
_:b61
sp:varName "angleScale"^^xsd:string .
_:b59
_:b60
sp:varName "mudClass"^^xsd:string .
_:b58
_:b59
sp:varName "massPerUnitLengthScale"^^xsd:string .
_:b57
_:b58
sp:varName "lengthScale"^^xsd:string .
_:b56
_:b57
sp:varName "dailyDrillingReportType"^^xsd:string .
_:b55
_:b56
sp:varName "innerBarrelType"^^xsd:string .
_:b54
_:b55
sp:varName "gasReadingType"^^xsd:string .
_:b53
_:b54
sp:varName "fluidType"^^xsd:string .
_:b52
_:b53
sp:varName "fixedOrMoveableRigType"^^xsd:string .
_:b51
_:b52
sp:varName "drillingEquipmentType"^^xsd:string .
_:b50
_:b51
sp:varName "drillingActivityTypeAccordingToEquipmentType"^^xsd:string .
_:b49
_:b50
sp:varName "drillingActivityPurposeType"^^xsd:string .
_:b48
_:b49
sp:varName "drillingActivityOutcomeType"^^xsd:string .
_:b47
_:b48
sp:varName "densityScale"^^xsd:string .
_:b46
_:b47
sp:varName "dailyDrillingReportType"^^xsd:string .
_:b45
_:b46
sp:varName "componentType"^^xsd:string .
_:b45
sp:varName "classOfWellDatumObject"^^xsd:string .
_:b44
sp:varName "cementingFluidReturnType"^^xsd:string .
......
# Saved by TopBraid on Tue Sep 27 10:05:18 BST 2011
# Saved by TopBraid on Tue Sep 27 13:59:39 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Mon Sep 19 13:37:46 BST 2011
# Saved by TopBraid on Tue Sep 27 14:07:07 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/check
# imports: http://www.witsml.org/schemas/1series
# imports: http://www.reportinghub.no/ep/schema/1.0/core
......@@ -15,14 +15,14 @@
<http://www.reportinghub.no/ep/transform/check>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.witsml.org/schemas/1series> , <http://www.reportinghub.no/ep/schema/1.0/core> ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.witsml.org/schemas/1series> , <http://spinrdf.org/spin> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
<http://www.witsml.org/schemas/1series#Obj_drillReport>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 999a Check that all uom attributes have been processed correctly"^^xsd:string ;
sp:templates ([ sp:object "At least one uom attribute has not been processed correctly" ;
rdfs:comment "STEP 994 Check that a datum has not been specified for a measured depth"^^xsd:string ;
sp:templates ([ sp:object "All measured depths are with respect to the Kelly Bushing, and so a datum specification is not processed." ;
sp:predicate rdfs:comment ;
sp:subject _:b1
]) ;
......@@ -33,6 +33,289 @@
sp:predicate <http://www.witsml.org/schemas/1series#createDate> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "wellDatum"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/1series#wellDatumRef> ;
sp:subject spin:_this
] [ rdf:type sp:Union ;
sp:elements (([ sp:object _:b4 ;
sp:predicate <http://www.witsml.org/schemas/1series#mdRef> ;
sp:subject _:b5
] [ sp:object _:b6 ;
sp:predicate <http://www.witsml.org/schemas/1series#datum> ;
sp:subject _:b4
]) ([ sp:object _:b4 ;
sp:predicate <http://www.witsml.org/schemas/1series#mdBottomRef> ;
sp:subject _:b5
] [ sp:object _:b6 ;
sp:predicate <http://www.witsml.org/schemas/1series#datum> ;
sp:subject _:b4
]) ([ sp:object _:b4 ;
sp:predicate <http://www.witsml.org/schemas/1series#mdTopRef> ;
sp:subject _:b5
] [ sp:object _:b6 ;
sp:predicate <http://www.witsml.org/schemas/1series#datum> ;
sp:subject _:b4
]))
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b2
] ;
sp:variable _:b7
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 _:b7 ;
sp:arg2 _:b3
] ;
sp:variable _:b1
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 994 Check that kelly bushing has not been specified as the datum for an elevation"^^xsd:string ;
sp:templates ([ sp:object "Kelly bushing as the datum for an elevation is not supported." ;
sp:predicate rdfs:comment ;
sp:subject _:b8
]) ;
sp:where ([ sp:object _:b9 ;
sp:predicate <http://www.witsml.org/schemas/1series#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b10 ;
sp:predicate <http://www.witsml.org/schemas/1series#createDate> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "wellDatum"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/1series#wellDatumRef> ;
sp:subject spin:_this
] [ sp:object _:b11 ;
sp:predicate <http://www.witsml.org/schemas/1series#elevationRef> ;
sp:subject
[ sp:varName "x"^^xsd:string
]
] [ sp:object "KB" ;
sp:predicate <http://www.witsml.org/schemas/1series#datum> ;
sp:subject _:b11
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b9
] ;
sp:variable _:b12
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 _:b12 ;
sp:arg2 _:b10
] ;
sp:variable _:b8
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 995 Check only Kelly Bushing and Sea Level are specified as datums"^^xsd:string ;
sp:templates ([ sp:object "Only Kelly Bushing and and Sea Level are supported as a well datum." ;
sp:predicate rdfs:comment ;
sp:subject _:b13
]) ;
sp:where ([ sp:object _:b14 ;
sp:predicate <http://www.witsml.org/schemas/1series#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b15 ;
sp:predicate <http://www.witsml.org/schemas/1series#createDate> ;
sp:subject spin:_this
] [ sp:object _:b16 ;
sp:predicate <http://www.witsml.org/schemas/1series#wellDatumRef> ;
sp:subject spin:_this
] [ rdf:type sp:Union ;
sp:elements (([ sp:object <http://www.witsml.org/schemas/1series#ECE_MLLW> ;
sp:predicate <http://www.witsml.org/schemas/1series#codeRef> ;
sp:subject _:b16
]) ([ sp:object <http://www.witsml.org/schemas/1series#ECE_MLW> ;
sp:predicate <http://www.witsml.org/schemas/1series#codeRef> ;
sp:subject _:b16
]) ([ sp:object <http://www.witsml.org/schemas/1series#ECE_GL> ;
sp:predicate <http://www.witsml.org/schemas/1series#codeRef> ;
sp:subject _:b16
]) ([ sp:object <http://www.witsml.org/schemas/1series#ECE_MHHW> ;
sp:predicate <http://www.witsml.org/schemas/1series#codeRef> ;
sp:subject _:b16
]) ([ sp:object <http://www.witsml.org/schemas/1series#ECE_CF> ;
sp:predicate <http://www.witsml.org/schemas/1series#codeRef> ;
sp:subject _:b16
]) ([ sp:object <http://www.witsml.org/schemas/1series#ECE_DF> ;
sp:predicate <http://www.witsml.org/schemas/1series#codeRef> ;
sp:subject _:b16
]) ([ sp:object <http://www.witsml.org/schemas/1series#ECE_SF> ;
sp:predicate <http://www.witsml.org/schemas/1series#codeRef> ;
sp:subject _:b16
]) ([ sp:object <http://www.witsml.org/schemas/1series#ECE_MTL> ;
sp:predicate <http://www.witsml.org/schemas/1series#codeRef> ;
sp:subject _:b16
]) ([ sp:object <http://www.witsml.org/schemas/1series#ECE_RB> ;
sp:predicate <http://www.witsml.org/schemas/1series#codeRef> ;
sp:subject _:b16
]) ([ sp:object <http://www.witsml.org/schemas/1series#ECE_LAT> ;
sp:predicate <http://www.witsml.org/schemas/1series#codeRef> ;
sp:subject _:b16
]) ([ sp:object <http://www.witsml.org/schemas/1series#ECE_KO> ;
sp:predicate <http://www.witsml.org/schemas/1series#codeRef> ;
sp:subject _:b16
]) ([ sp:object <http://www.witsml.org/schemas/1series#ECE_CV> ;
sp:predicate <http://www.witsml.org/schemas/1series#codeRef> ;
sp:subject _:b16
]) ([ sp:object <http://www.witsml.org/schemas/1series#ECE_MHW> ;
sp:predicate <http://www.witsml.org/schemas/1series#codeRef> ;
sp:subject _:b16
]) ([ sp:object <http://www.witsml.org/schemas/1series#ECE_RT> ;
sp:predicate <http://www.witsml.org/schemas/1series#codeRef> ;
sp:subject _:b16
]))
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b14
] ;
sp:variable _:b17
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 _:b17 ;
sp:arg2 _:b15
] ;
sp:variable _:b13
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 997 Check that sea level has not been specified as the default datum for measured or vertical depth"^^xsd:string ;
sp:templates ([ sp:object "Sea level as the default datum for measured depth or vertical depth is not supported." ;
sp:predicate rdfs:comment ;
sp:subject _:b18
]) ;
sp:where ([ sp:object _:b19 ;
sp:predicate <http://www.witsml.org/schemas/1series#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b20 ;
sp:predicate <http://www.witsml.org/schemas/1series#createDate> ;
sp:subject spin:_this
] [ sp:object _:b21 ;
sp:predicate <http://www.witsml.org/schemas/1series#wellDatumRef> ;
sp:subject spin:_this
] [ sp:object <http://www.witsml.org/schemas/1series#ECE_SL> ;
sp:predicate <http://www.witsml.org/schemas/1series#codeRef> ;
sp:subject _:b21
] [ rdf:type sp:Union ;
sp:elements (([ sp:object
[ sp:varName "defaultMeasuredDepth"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/1series#defaultMeasuredDepth> ;
sp:subject _:b21
]) ([ sp:object
[ sp:varName "defaultVerticalDepth"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/1series#defaultVerticalDepth> ;
sp:subject _:b21
]))
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b19
] ;
sp:variable _:b22
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 _:b22 ;
sp:arg2 _:b20
] ;
sp:variable _:b18
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 998 Check for unprocessed wellDatum elements"^^xsd:string ;
sp:templates ([ sp:object "Some wellDatum information has not been processed." ;
sp:predicate rdfs:comment ;
sp:subject _:b23
]) ;
sp:where ([ sp:object _:b24 ;
sp:predicate <http://www.witsml.org/schemas/1series#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b25 ;
sp:predicate <http://www.witsml.org/schemas/1series#createDate> ;
sp:subject spin:_this
] [ sp:object _:b26 ;
sp:predicate <http://www.witsml.org/schemas/1series#wellDatumRef> ;
sp:subject spin:_this
] [ rdf:type sp:Union ;
sp:elements (([ sp:object
[ sp:varName "datumName"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/1series#datumNameRef> ;
sp:subject _:b26
]) ([ sp:object
[ sp:varName "datumCRS"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/1series#datumNameRef> ;
sp:subject _:b26
]) ([ sp:object
[ sp:varName "kind"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/1series#kind> ;
sp:subject _:b26
]) ([ sp:object
[ sp:varName "wellBore"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/1series#wellboreRef> ;
sp:subject _:b26
]) ([ sp:object
[ sp:varName "rig"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/1series#rigRef> ;
sp:subject _:b26
]) ([ sp:object
[ sp:varName "measuredDepth"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/1series#measuredDepthRef> ;
sp:subject _:b26
]) ([ sp:object
[ sp:varName "horizontalLocation"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/1series#horizontalLocationRef> ;
sp:subject _:b26
]))
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b24
] ;
sp:variable _:b27
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 _:b27 ;
sp:arg2 _:b25
] ;
sp:variable _:b23
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 999 Check that all uom attributes have been processed correctly"^^xsd:string ;
sp:templates ([ sp:object "At least one uom attribute has not been processed correctly." ;
sp:predicate rdfs:comment ;
sp:subject _:b28
]) ;
sp:where ([ sp:object _:b29 ;
sp:predicate <http://www.witsml.org/schemas/1series#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b30 ;
sp:predicate <http://www.witsml.org/schemas/1series#createDate> ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "y"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#undefinedScale> ;
......@@ -42,23 +325,153 @@
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b2
sp:arg1 _:b29
] ;
sp:variable _:b4
sp:variable _:b31
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 _:b4 ;
sp:arg2 _:b3
sp:arg1 _:b31 ;
sp:arg2 _:b30
] ;
sp:variable _:b1
sp:variable _:b28
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 996 Check that kelly bushing has not been specified as the default datum for elevation"^^xsd:string ;
sp:templates ([ sp:object "Kelly bushing as the default datum for elevation is not supported." ;
sp:predicate rdfs:comment ;
sp:subject _:b32
]) ;
sp:where ([ sp:object _:b33 ;
sp:predicate <http://www.witsml.org/schemas/1series#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b34 ;
sp:predicate <http://www.witsml.org/schemas/1series#createDate> ;
sp:subject spin:_this
] [ sp:object _:b35 ;
sp:predicate <http://www.witsml.org/schemas/1series#wellDatumRef> ;
sp:subject spin:_this
] [ sp:object <http://www.witsml.org/schemas/1series#ECE_SL> ;
sp:predicate <http://www.witsml.org/schemas/1series#codeRef> ;
sp:subject _:b35
] [ sp:object
[ sp:varName "defaultElevation"^^xsd:string
] ;
sp:predicate <http://www.witsml.org/schemas/1series#defaultElevation> ;
sp:subject _:b35
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b33
] ;
sp:variable _:b36
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 _:b36 ;
sp:arg2 _:b34
] ;
sp:variable _:b32
])
] .
_:b1 sp:varName "dailyDrillingReport"^^xsd:string .
_:b29
sp:varName "nameWellBore"^^xsd:string .
_:b4 sp:varName "normalizedWellBoreName"^^xsd:string .
_:b30
sp:varName "createDate"^^xsd:string .
_:b3 sp:varName "createDate"^^xsd:string .
_:b31
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b28
sp:varName "dailyDrillingReport"^^xsd:string .
_:b24
sp:varName "nameWellBore"^^xsd:string .
_:b25
sp:varName "createDate"^^xsd:string .
_:b26
sp:varName "wellDatum"^^xsd:string .
_:b27
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b23
sp:varName "dailyDrillingReport"^^xsd:string .
_:b19
sp:varName "nameWellBore"^^xsd:string .
_:b20
sp:varName "createDate"^^xsd:string .
_:b21
sp:varName "wellDatum"^^xsd:string .
_:b22
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b18
sp:varName "dailyDrillingReport"^^xsd:string .
_:b33
sp:varName "nameWellBore"^^xsd:string .
_:b34
sp:varName "createDate"^^xsd:string .
_:b35
sp:varName "wellDatum"^^xsd:string .
_:b36
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b32
sp:varName "dailyDrillingReport"^^xsd:string .
_:b14
sp:varName "nameWellBore"^^xsd:string .
_:b15
sp:varName "createDate"^^xsd:string .
_:b16
sp:varName "wellDatum"^^xsd:string .
_:b17
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b13
sp:varName "dailyDrillingReport"^^xsd:string .
_:b9 sp:varName "nameWellBore"^^xsd:string .
_:b10
sp:varName "createDate"^^xsd:string .
_:b11
sp:varName "elevation"^^xsd:string .
_:b12
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b8 sp:varName "dailyDrillingReport"^^xsd:string .
_:b2 sp:varName "nameWellBore"^^xsd:string .
_:b3 sp:varName "createDate"^^xsd:string .
_:b5 sp:varName "x"^^xsd:string .
_:b4 sp:varName "md"^^xsd:string .
_:b6 sp:varName "datum"^^xsd:string .
_:b7 sp:varName "normalizedWellBoreName"^^xsd:string .
_:b1 sp:varName "dailyDrillingReport"^^xsd:string .
......
# Saved by TopBraid on Sat Sep 24 18:55:00 BST 2011
# Saved by TopBraid on Tue Sep 27 11:47:13 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/collector
# imports: http://www.reportinghub.no/ep/transform/1.1/wellboreInfo
# imports: http://www.reportinghub.no/ep/transform/1.1/wellDatum
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/equipFailureInfo
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/surveyStation
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/formTestInfo
......@@ -49,12 +50,14 @@
@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/wellAndWellBoreAlias> , <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> ;
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/wellAndWellBoreAlias> , <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 Sat Sep 24 18:55:00 BST 2011
# Saved by TopBraid on Tue Sep 27 11:47:13 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Tue Sep 27 14:13:13 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/wellDatum
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.witsml.org/schemas/1series
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://spinrdf.org/spin
@prefix : <http://www.reportinghub.no/ep/transform/1.1/wellDatum#> .
@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@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 xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/transform/1.1/wellDatum>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.witsml.org/schemas/1series> , <http://spinrdf.org/spin> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
<http://www.witsml.org/schemas/1series#Obj_drillReport>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 169d Transfer wellDatum (step number chosen to ensure that it comes after the rig definition)"^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#datumObjectForDailyDrillingReport> ;
sp:subject _:b2
] [ sp:object _:b3 ;
sp:predicate rdfs:comment ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#SurroundingWater-meanSeaLevel> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#nameAsDatumObject> ;
sp:subject _:b1
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject _:b5
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfARig> ;
sp:predicate rdf:type ;
sp:subject _:b5
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b5
] [ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/ep/schema/facility#depthOfSurroundingWater> ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
sp:predicate rdf:type ;
sp:subject _:b7
] [ sp:object _:b8 ;
sp:predicate _:b9 ;
sp:subject _:b7
]) ;
sp:where ([ sp:object _:b10 ;
sp:predicate <http://www.witsml.org/schemas/1series#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b11 ;
sp:predicate <http://www.witsml.org/schemas/1series#createDate> ;
sp:subject spin:_this
] [ sp:object _:b12 ;
sp:predicate <http://www.witsml.org/schemas/1series#wellDatumRef> ;
sp:subject spin:_this
] [ sp:object <http://www.witsml.org/schemas/1series#ECE_SL> ;
sp:predicate <http://www.witsml.org/schemas/1series#codeRef> ;
sp:subject _:b12
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b4 ;
sp:predicate <http://www.witsml.org/schemas/1series#name> ;
sp:subject _:b12
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b13 ;
sp:predicate <http://www.witsml.org/schemas/1series#elevationRef> ;
sp:subject _:b12
] [ sp:object _:b14 ;
sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
sp:subject _:b13
] [ sp:object _:b8 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b13
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b3 ;
sp:predicate <http://www.witsml.org/schemas/1series#comment> ;
sp:subject _:b12
])
] [ sp:object _:b15 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onRig> ;
sp:subject _:b16
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b15
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Rig> ;
sp:predicate rdf:type ;
sp:subject _:b6
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b10
] ;
sp:variable _:b17
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 _:b17 ;
sp:arg2 _:b11
] ;
sp:variable _:b2
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b17 ;
sp:arg2 [ sp:varName "dTimStart"^^xsd:string
]
] ;
sp:variable _:b16
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectClassOfWellDatumObject ;
sp:arg1 [ sp:varName "code"^^xsd:string
]
] ;
sp:variable
[ sp:varName "classOfWellDatumObject"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectLengthScale ;
sp:arg1 _:b14
] ;
sp:variable _:b9
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 169c Transfer wellDatum (step number chosen to ensure that it comes after the rig definition)"^^xsd:string ;
sp:templates ([ sp:object _:b18 ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#datumObjectForDailyDrillingReport> ;
sp:subject _:b19
] [ sp:object _:b20 ;
sp:predicate rdfs:comment ;
sp:subject _:b18
] [ sp:object <http://www.reportinghub.no/ep/schema/equipment#KellyBushing> ;
sp:predicate rdf:type ;
sp:subject _:b18
] [ sp:object _:b21 ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#nameAsDatumObject> ;
sp:subject _:b18
] [ sp:object _:b18 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject _:b22
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfARig> ;
sp:predicate rdf:type ;
sp:subject _:b22
] [ sp:object _:b23 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b22
] [ sp:object _:b24 ;
sp:predicate <http://www.reportinghub.no/ep/schema/equipment#elevationOfKellyBushing> ;
sp:subject _:b18
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
sp:predicate rdf:type ;
sp:subject _:b24
] [ sp:object _:b25 ;
sp:predicate _:b26 ;
sp:subject _:b24
]) ;
sp:where ([ sp:object _:b27 ;
sp:predicate <http://www.witsml.org/schemas/1series#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b28 ;
sp:predicate <http://www.witsml.org/schemas/1series#createDate> ;
sp:subject spin:_this
] [ sp:object _:b29 ;
sp:predicate <http://www.witsml.org/schemas/1series#wellDatumRef> ;
sp:subject spin:_this
] [ sp:object <http://www.witsml.org/schemas/1series#ECE_KB> ;
sp:predicate <http://www.witsml.org/schemas/1series#codeRef> ;
sp:subject _:b29
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b21 ;
sp:predicate <http://www.witsml.org/schemas/1series#name> ;
sp:subject _:b29
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b30 ;
sp:predicate <http://www.witsml.org/schemas/1series#elevationRef> ;
sp:subject _:b29
] [ sp:object _:b31 ;
sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
sp:subject _:b30
] [ sp:object _:b25 ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
sp:subject _:b30
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object _:b20 ;
sp:predicate <http://www.witsml.org/schemas/1series#comment> ;
sp:subject _:b29
])
] [ sp:object _:b32 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onRig> ;
sp:subject _:b33
] [ sp:object _:b23 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b32
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#Rig> ;
sp:predicate rdf:type ;
sp:subject _:b23
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b27
] ;
sp:variable _:b34
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 _:b34 ;
sp:arg2 _:b28
] ;
sp:variable _:b19
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b34 ;
sp:arg2 [ sp:varName "dTimStart"^^xsd:string
]
] ;
sp:variable _:b33
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectClassOfWellDatumObject ;
sp:arg1 [ sp:varName "code"^^xsd:string
]
] ;
sp:variable
[ sp:varName "classOfWellDatumObject"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectLengthScale ;
sp:arg1 _:b31
] ;
sp:variable _:b26
])
] .
_:b10
sp:varName "nameWellBore"^^xsd:string .
_:b11
sp:varName "createDate"^^xsd:string .
_:b12
sp:varName "wellDatum"^^xsd:string .
_:b4 sp:varName "name"^^xsd:string .
_:b13
sp:varName "elevation"^^xsd:string .
_:b14
sp:varName "uomLength"^^xsd:string .
_:b8 sp:varName "realLength"^^xsd:string .
_:b3 sp:varName "comment"^^xsd:string .
_:b16
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b15
sp:varName "temporalPartOfARig"^^xsd:string .
_:b6 sp:varName "rig"^^xsd:string .
_:b17
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b2 sp:varName "dailyDrillingReport"^^xsd:string .
_:b9 sp:varName "lengthScale"^^xsd:string .
_:b27
sp:varName "nameWellBore"^^xsd:string .
_:b28
sp:varName "createDate"^^xsd:string .
_:b29
sp:varName "wellDatum"^^xsd:string .
_:b21
sp:varName "name"^^xsd:string .
_:b30
sp:varName "elevation"^^xsd:string .
_:b31
sp:varName "uomLength"^^xsd:string .
_:b25
sp:varName "realLength"^^xsd:string .
_:b20
sp:varName "comment"^^xsd:string .
_:b33
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b32
sp:varName "temporalPartOfARig"^^xsd:string .
_:b23
sp:varName "rig"^^xsd:string .
_:b34
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b19
sp:varName "dailyDrillingReport"^^xsd:string .
_:b26
sp:varName "lengthScale"^^xsd:string .
# Saved by TopBraid on Tue Sep 27 14:13:13 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix visual: <http://topbraid.org/visual#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
[] rdf:type inference:Configuration ;
composite:child
[ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
composite:index "0"^^xsd:int
] .