David Leal

Fixed remaining DDR bugs

......@@ -23,7 +23,7 @@
<http://www.reportinghub.no/ep/spin/ddr-tables>
rdf:type owl:Ontology ;
rdfs:comment "A collection of SELECT templates that can be used to assemble tables in DD reports."^^xsd:string ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/spin/rh> , <http://www.reportinghub.no/ep/spin/1.1/lib> ;
owl:imports <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/spin/rh> , <http://www.reportinghub.no/ep/schema/1.0/ddr> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://spinrdf.org/spin> ;
owl:versionInfo "0.1.0"^^xsd:string .
ddr-tables:BitRecord
......@@ -754,8 +754,7 @@ ddr-tables:CementFluidInformation
rdfs:subClassOf rhspin:DDRTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables ([ sp:varName "startTime"^^xsd:string
] [ sp:varName "fluidType"^^xsd:string
sp:resultVariables ([ sp:varName "fluidType"^^xsd:string
] [ sp:varName "volumePumped"^^xsd:string
] [ sp:varName "fluidDensity"^^xsd:string
] [ sp:varName "yieldPoint"^^xsd:string
......@@ -773,49 +772,35 @@ ddr-tables:CementFluidInformation
[ sp:varName "report"^^xsd:string
]
] [ sp:object
[ sp:varName "wcj"^^xsd:string
[ sp:varName "wellCementJob"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject
[ sp:varName "reportOn"^^xsd:string
]
] [ sp:object
[ sp:varName "wcjclass"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wcj"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementJobPurposeType> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementJob> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wcjclass"^^xsd:string
[ sp:varName "wellCementJob"^^xsd:string
]
] [ sp:object
[ sp:varName "cementPumping"^^xsd:string
[ sp:varName "wellCementPumping"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject
[ sp:varName "wcj"^^xsd:string
[ sp:varName "wellCementJob"^^xsd:string
]
] [ sp:object
[ sp:varName "wcPumpingFluidReturnType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "cementPumping"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementPumpingFluidReturnType> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementPumping> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wcPumpingFluidReturnType"^^xsd:string
[ sp:varName "wellCementPumping"^^xsd:string
]
] [ sp:object
[ sp:varName "pumpedFluid"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#pumpedFluid> ;
sp:subject
[ sp:varName "cementPumping"^^xsd:string
[ sp:varName "wellCementPumping"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/well#CementingFluid> ;
sp:predicate rdf:type ;
......@@ -850,24 +835,6 @@ ddr-tables:CementFluidInformation
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "startedAt"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "cementPumping"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeTimeFromDateTime ;
sp:arg1 [ sp:varName "startedAt"^^xsd:string
]
] ;
sp:variable
[ sp:varName "startTime"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "userDescribedCementingFluidType"^^xsd:string
] ;
sp:predicate rdf:type ;
......@@ -1024,8 +991,7 @@ ddr-tables:CementFluidInformation
])
])
] ;
rhspin:tableHeaders ("""Start
time"""^^xsd:string "Fluid type"^^xsd:string """Volume pumped
rhspin:tableHeaders ("Fluid type"^^xsd:string """Volume pumped
m3"""^^xsd:string "Fluid density"^^xsd:string """Yield point
ft3/sack"""^^xsd:string """Mix water ratio
gal/sack"""^^xsd:string """Free water
......@@ -1063,39 +1029,69 @@ ddr-tables:CementInformation
[ sp:varName "report"^^xsd:string
]
] [ sp:object
[ sp:varName "wcj"^^xsd:string
[ sp:varName "wellCementJob"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject
[ sp:varName "reportOn"^^xsd:string
]
] [ sp:object
[ sp:varName "wcjclass"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wcj"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementJobPurposeType> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementJob> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wcjclass"^^xsd:string
]
] [ sp:object
[ sp:varName "jobType"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "wcjclass"^^xsd:string
[ sp:varName "wellCementJob"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "wellCementJobPurposeType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellCementJob"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementJobPurposeType> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellCementJobPurposeType"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:selectWellCementJobFlag ;
sp:arg1 [ sp:varName "wellCementJobPurposeType"^^xsd:string
]
] ;
sp:variable
[ sp:varName "jobType"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ rdf:type sp:NotExists ;
sp:elements ([ sp:object
[ sp:varName "wellCementJobPurposeType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellCementJob"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementJobPurposeType> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellCementJobPurposeType"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression "unknown" ;
sp:variable
[ sp:varName "jobType"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithTopPlug> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wcj"^^xsd:string
[ sp:varName "wellCementJob"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression "Yes" ;
sp:expression "yes" ;
sp:variable
[ sp:varName "topPlug"^^xsd:string
]
......@@ -1104,10 +1100,10 @@ ddr-tables:CementInformation
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithoutTopPlug> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wcj"^^xsd:string
[ sp:varName "wellCementJob"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression "No" ;
sp:expression "no" ;
sp:variable
[ sp:varName "topPlug"^^xsd:string
]
......@@ -1118,7 +1114,7 @@ ddr-tables:CementInformation
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#pressureAtWhichPlugBumped> ;
sp:subject
[ sp:varName "wcj"^^xsd:string
[ sp:varName "wellCementJob"^^xsd:string
]
] [ sp:object
[ sp:varName "plugBumpPressure"^^xsd:string
......@@ -1129,349 +1125,316 @@ ddr-tables:CementInformation
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "jobpartstart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject
[ sp:varName "wcj"^^xsd:string
]
] [ sp:object
[ sp:varName "startedAt"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithCasingRotation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "jobpartstart"^^xsd:string
[ sp:varName "wellCementJob"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeTimeFromDateTime ;
sp:arg1 [ sp:varName "startedAt"^^xsd:string
]
] ;
sp:expression "yes" ;
sp:variable
[ sp:varName "startTime"^^xsd:string
[ sp:varName "rotated"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "jobpartend"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject
[ sp:varName "wcj"^^xsd:string
]
] [ sp:object
[ sp:varName "finishedAt"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithoutCasingRotation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "jobpartend"^^xsd:string
[ sp:varName "wellCementJob"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeTimeFromDateTime ;
sp:arg1 [ sp:varName "finishedAt"^^xsd:string
]
] ;
sp:expression "no" ;
sp:variable
[ sp:varName "endTime"^^xsd:string
[ sp:varName "rotated"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "prel"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject
[ sp:varName "wcj"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementJobPressureRelease> ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithoutCasingReciprocation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "prel"^^xsd:string
]
] [ sp:object
[ sp:varName "nominallyAt"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
sp:subject
[ sp:varName "prel"^^xsd:string
[ sp:varName "wellCementJob"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeTimeFromDateTime ;
sp:arg1 [ sp:varName "nominallyAt"^^xsd:string
]
] ;
sp:expression "no" ;
sp:variable
[ sp:varName "pressureReleaseTime"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "temporalPartOfWellBoreSection"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject
[ sp:varName "wcj"^^xsd:string
]
] [ sp:object
[ sp:varName "wellBoreSection"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "temporalPartOfWellBoreSection"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBoreSection> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellBoreSection"^^xsd:string
]
] [ sp:object
[ sp:varName "casing"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ;
sp:subject
[ sp:varName "wellBoreSection"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/equipment#CasingString> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "casing"^^xsd:string
]
] [ sp:object
[ sp:varName "pipeOutsideDiameterAPI_5CTClass"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "casing"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/equipment#PipeOutsideDiameterAPI_5CTClass> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "pipeOutsideDiameterAPI_5CTClass"^^xsd:string
]
] [ sp:object
[ sp:varName "casingStringDiameter"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "pipeOutsideDiameterAPI_5CTClass"^^xsd:string
[ sp:varName "reciprocated"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "jobreturnno"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject
[ sp:varName "wcj"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementPumpingWithoutFluidReturn> ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithCasingReciprocation> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "jobreturnno"^^xsd:string
[ sp:varName "wellCementJob"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression "No" ;
sp:expression "yes" ;
sp:variable
[ sp:varName "fullReturns"^^xsd:string
[ sp:varName "reciprocated"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "jobreturnno"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject
[ sp:varName "wcj"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementPumpingWithFluidReturn> ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithBottomPlug> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "jobreturnno"^^xsd:string
[ sp:varName "wellCementJob"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression "Yes" ;
sp:expression "yes" ;
sp:variable
[ sp:varName "fullReturns"^^xsd:string
[ sp:varName "bottomPlug"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithCasingRotation> ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithoutBottomPlug> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wcj"^^xsd:string
[ sp:varName "wellCementJob"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression "Yes" ;
sp:expression "no" ;
sp:variable
[ sp:varName "rotated"^^xsd:string
[ sp:varName "bottomPlug"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithoutCasingRotation> ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithFloatHolding> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wcj"^^xsd:string
[ sp:varName "wellCementJob"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression "No" ;
sp:expression "yes" ;
sp:variable
[ sp:varName "rotated"^^xsd:string
[ sp:varName "floatHeld"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithoutCasingReciprocation> ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithoutFloatHolding> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wcj"^^xsd:string
[ sp:varName "wellCementJob"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression "No" ;
sp:expression "no" ;
sp:variable
[ sp:varName "reciprocated"^^xsd:string
[ sp:varName "floatHeld"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithCasingReciprocation> ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithPlugBumping> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wcj"^^xsd:string
[ sp:varName "wellCementJob"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression "Yes" ;
sp:expression "yes" ;
sp:variable
[ sp:varName "reciprocated"^^xsd:string
[ sp:varName "plugBumped"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithBottomPlug> ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithoutPlugBumping> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wcj"^^xsd:string
[ sp:varName "wellCementJob"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression "Yes" ;
sp:expression "no" ;
sp:variable
[ sp:varName "bottomPlug"^^xsd:string
[ sp:varName "plugBumped"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "wcPumping"^^xsd:string
[ sp:varName "comments"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:predicate rdfs:comment ;
sp:subject
[ sp:varName "wcj"^^xsd:string
[ sp:varName "wellCementJob"^^xsd:string
]
] [ sp:object
[ sp:varName "wcPumpingFluidReturnType"^^xsd:string
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "wellCementPumping"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject
[ sp:varName "wcPumping"^^xsd:string
[ sp:varName "wellCementJob"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementPumpingFluidReturnType> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementPumping> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wcPumpingFluidReturnType"^^xsd:string
]
] [ sp:object
[ sp:varName "returnedFluid"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#returnedCementingFluid> ;
sp:subject
[ sp:varName "wcPumping"^^xsd:string
[ sp:varName "wellCementPumping"^^xsd:string
]
] [ sp:object
[ sp:varName "returnedFluidVolume"^^xsd:string
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "startedAt"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject
[ sp:varName "wellCementPumping"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeTimeFromDateTime ;
sp:arg1 [ sp:varName "startedAt"^^xsd:string
]
] ;
sp:variable
[ sp:varName "startTime"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "finishedAt"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject
[ sp:varName "wellCementPumping"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeTimeFromDateTime ;
sp:arg1 [ sp:varName "finishedAt"^^xsd:string
]
] ;
sp:variable
[ sp:varName "endTime"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "returnedFluid"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#returnedCementingFluid> ;
sp:subject
[ sp:varName "wellCementPumping"^^xsd:string
]
] [ sp:object
[ sp:varName "returnedFluidVolume"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "returnedFluid"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "returnedFluidVolume"^^xsd:string
]
] [ sp:object
[ sp:varName "cementVolumeReturns"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#metre3> ;
sp:subject
[ sp:varName "returnedFluidVolume"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementPumpingWithoutFluidReturn> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellCementPumping"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression "no" ;
sp:variable
[ sp:varName "fullReturns"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementPumpingWithFluidReturn> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wellCementPumping"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression "yes" ;
sp:variable
[ sp:varName "fullReturns"^^xsd:string
]
])
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "wellCementJobPressureRelease"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject
[ sp:varName "returnedFluid"^^xsd:string
[ sp:varName "wellCementJob"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementJobPressureRelease> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "returnedFluidVolume"^^xsd:string
[ sp:varName "wellCementJobPressureRelease"^^xsd:string
]
] [ sp:object
[ sp:varName "cementVolumeReturns"^^xsd:string
[ sp:varName "nominallyAt"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#metre3> ;
sp:subject
[ sp:varName "returnedFluidVolume"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithoutBottomPlug> ;
sp:predicate rdf:type ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
sp:subject
[ sp:varName "wcj"^^xsd:string
[ sp:varName "wellCementJobPressureRelease"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression "No" ;
sp:expression
[ rdf:type ep-spin-lib:normalizeTimeFromDateTime ;
sp:arg1 [ sp:varName "nominallyAt"^^xsd:string
]
] ;
sp:variable
[ sp:varName "bottomPlug"^^xsd:string
[ sp:varName "pressureReleaseTime"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithFloatHolding> ;
sp:predicate rdf:type ;
sp:elements ([ sp:object
[ sp:varName "temporalPartOfWellBoreSection"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject
[ sp:varName "wcj"^^xsd:string
[ sp:varName "wellCementJob"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression "Yes" ;
sp:variable
[ sp:varName "floatHeld"^^xsd:string
] [ sp:object
[ sp:varName "wellBoreSection"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "temporalPartOfWellBoreSection"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithoutFloatHolding> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBoreSection> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wcj"^^xsd:string
[ sp:varName "wellBoreSection"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression "No" ;
sp:variable
[ sp:varName "floatHeld"^^xsd:string
] [ sp:object
[ sp:varName "casing"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ;
sp:subject
[ sp:varName "wellBoreSection"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithPlugBumping> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/equipment#CasingString> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wcj"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression "Yes" ;
sp:variable
[ sp:varName "plugBumped"^^xsd:string
[ sp:varName "casing"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellCementJobWithoutPlugBumping> ;
] [ sp:object
[ sp:varName "pipeOutsideDiameterAPI_5CTClass"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "wcj"^^xsd:string
[ sp:varName "casing"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression "No" ;
sp:variable
[ sp:varName "plugBumped"^^xsd:string
] [ sp:object <http://www.reportinghub.no/ep/schema/equipment#PipeOutsideDiameterAPI_5CTClass> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "pipeOutsideDiameterAPI_5CTClass"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "comments"^^xsd:string
] [ sp:object
[ sp:varName "casingStringDiameter"^^xsd:string
] ;
sp:predicate rdfs:comment ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "wcj"^^xsd:string
[ sp:varName "pipeOutsideDiameterAPI_5CTClass"^^xsd:string
]
])
])
......@@ -2837,6 +2800,7 @@ ddr-tables:LogInformation
] [ sp:varName "tool"^^xsd:string
] [ sp:varName "bHCTdegC"^^xsd:string
] [ sp:varName "bHSTdegC"^^xsd:string
] [ sp:varName "serviceCompanyName"^^xsd:string
]) ;
sp:where ([ sp:object
[ sp:varName "dailyDrillingActivity"^^xsd:string
......@@ -3005,13 +2969,29 @@ ddr-tables:LogInformation
[ sp:varName "loggingTool"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "serviceCompany"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#serviceCompany> ;
sp:subject
[ sp:varName "logRun"^^xsd:string
]
] [ sp:object
[ sp:varName "serviceCompanyName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "serviceCompany"^^xsd:string
]
])
])
] ;
rhspin:tableHeaders ("Run no"^^xsd:string """Depth Top
mMD"""^^xsd:string """Depth Bottom
mMD"""^^xsd:string "Tool"^^xsd:string """BHCT
degC"""^^xsd:string """BHST
degC"""^^xsd:string) .
degC"""^^xsd:string "Service Company"^^xsd:string) .
ddr-tables:Operations
rdf:type rhspin:TableTemplate ;
......@@ -3860,6 +3840,7 @@ ddr-tables:WellControlIncident
] [ sp:varName "killingProcd"^^xsd:string
] [ sp:varName "formation"^^xsd:string
] [ sp:varName "bHT"^^xsd:string
] [ sp:varName "comment"^^xsd:string
]) ;
sp:where ([ sp:object
[ sp:varName "reportOn"^^xsd:string
......@@ -4201,6 +4182,15 @@ ddr-tables:WellControlIncident
[ sp:varName "timeForWellControlRegain"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "comment"^^xsd:string
] ;
sp:predicate rdfs:comment ;
sp:subject
[ sp:varName "wci"^^xsd:string
]
])
])
] ;
rhspin:tableHeaders ("Date"^^xsd:string """Depth of
......@@ -4225,7 +4215,7 @@ bar"""^^xsd:string """Shut in drill
pipe pressure
bar"""^^xsd:string """Incident
class"""^^xsd:string """Killing
procd"""^^xsd:string "Formation"^^xsd:string "BHT"^^xsd:string) .
procd"""^^xsd:string "Formation"^^xsd:string "BHT"^^xsd:string "Comment"^^xsd:string) .
ddr-tables:WellTestInformation
rdf:type rhspin:TableTemplate ;
......
......@@ -31,7 +31,7 @@
<http://www.reportinghub.no/ep/spin/1.1/lib>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/spin/rh> , <http://www.reportinghub.no/ep/schema/1.0/drilling-equipment-type> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://spinrdf.org/spin> , <http://www.witsml.org/schemas/1series> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> ;
owl:imports <http://www.reportinghub.no/spin/rh> , <http://www.reportinghub.no/ep/schema/1.0/drilling-equipment-type> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://spinrdf.org/spin> , <http://www.witsml.org/schemas/1series> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/facility> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-spin-lib:Function
......@@ -640,12 +640,12 @@ ep-spin-lib:buildURI
] ;
spin:constraint
[ rdf:type spl:Argument ;
spl:predicate sp:arg2 ;
spl:predicate sp:arg1 ;
spl:valueType xsd:string
] ;
spin:constraint
[ rdf:type spl:Argument ;
spl:predicate sp:arg1 ;
spl:predicate sp:arg2 ;
spl:valueType xsd:string
] .
......@@ -4073,6 +4073,51 @@ ep-spin-lib:selectWellCementJobCasingRotationType
])
] .
ep-spin-lib:selectWellCementJobFlag
rdf:type spin:Function ;
rdfs:label "select WellCementJobFlag"^^xsd:string ;
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables ([ sp:varName "wellCementJobFlag"^^xsd:string
]) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/activity#WellCementJob-primary>
] ;
sp:arg2 "primary" ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/activity#WellCementJob-plug>
] ;
sp:arg2 "plug" ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/activity#WellCementJob-squeeze>
] ;
sp:arg2 "squeeze" ;
sp:arg3 [ rdf:type sp:if ;
sp:arg1 [ rdf:type sp:eq ;
sp:arg1 spin:_arg1 ;
sp:arg2 <http://www.reportinghub.no/ep/schema/activity#WellCementJob-other>
] ;
sp:arg2 "other" ;
sp:arg3 "n/a"
]
]
]
] ;
sp:variable
[ sp:varName "wellCementJobFlag"^^xsd:string
]
])
] .
ep-spin-lib:selectWellCementJobFloatHoldingType
rdf:type spin:Function ;
rdfs:label "select WellCementJobFloatHoldingType"^^xsd:string ;
......@@ -4469,230 +4514,230 @@ ddr:TTUC_Enumeration_1
rdfs:label "Enumeration"^^xsd:string ;
dtype:value ddr:TTUC_degC .
_:b79
sp:varName "yieldPointScale"^^xsd:string .
_:b1 sp:varName "uri"^^xsd:string .
_:b78
sp:varName "wirelineFormationTestGoodnessOfSealType"^^xsd:string .
_:b2 sp:varName "uri"^^xsd:string .
_:b77
sp:varName "wellTestType"^^xsd:string .
_:b3 sp:varName "uri"^^xsd:string .
_:b76
sp:varName "wellKillingType"^^xsd:string .
_:b4 sp:varName "uri"^^xsd:string .
_:b75
sp:varName "wellControlIncidentType"^^xsd:string .
_:b5 sp:varName "uri"^^xsd:string .
_:b74
sp:varName "wellCementJobType"^^xsd:string .
_:b6 sp:varName "uri"^^xsd:string .
_:b73
sp:varName "wellCementJobTopPlugType"^^xsd:string .
_:b7 sp:varName "uri"^^xsd:string .
_:b72
sp:varName "wellCementJobPlugBumpingType"^^xsd:string .
_:b8 sp:varName "uri"^^xsd:string .
_:b71
sp:varName "wellCementJobFloatHoldingType"^^xsd:string .
_:b9 sp:varName "uri"^^xsd:string .
_:b70
sp:varName "wellCementJobCasingRotationType"^^xsd:string .
_:b10
sp:varName "uri"^^xsd:string .
_:b69
sp:varName "wellCementJobCasingReciprocationType"^^xsd:string .
_:b11
sp:varName "uri"^^xsd:string .
_:b68
sp:varName "wellCementJobBottomPlugType"^^xsd:string .
_:b12
sp:varName "uri"^^xsd:string .
_:b67
sp:varName "wellBoreTightnessType"^^xsd:string .
_:b13
sp:varName "uri"^^xsd:string .
_:b66
sp:varName "wellBoreHphtType"^^xsd:string .
_:b14
sp:varName "uri"^^xsd:string .
_:b65
sp:varName "wellBoreDrillingType"^^xsd:string .
_:b15
sp:varName "uri"^^xsd:string .
_:b64
sp:varName "volumetricFlowRateScale"^^xsd:string .
_:b16
sp:varName "uri"^^xsd:string .
_:b63
sp:varName "volumeScale"^^xsd:string .
_:b17
sp:varName "uri"^^xsd:string .
_:b62
sp:varName "durationScale"^^xsd:string .
_:b18
sp:varName "uri"^^xsd:string .
_:b61
sp:varName "temperatureScale"^^xsd:string .
_:b19
sp:varName "uri"^^xsd:string .
_:b60
sp:varName "strengthScale"^^xsd:string .
_:b20
sp:varName "uri"^^xsd:string .
_:b59
sp:varName "speedScale"^^xsd:string .
_:b21
sp:varName "uri"^^xsd:string .
_:b58
sp:varName "pressureTestType"^^xsd:string .
_:b22
sp:varName "uri"^^xsd:string .
_:b57
sp:varName "pressureScale"^^xsd:string .
_:b23
sp:varName "uri"^^xsd:string .
_:b56
sp:varName "porePressureDeterminationType"^^xsd:string .
_:b24
sp:varName "uri"^^xsd:string .
_:b55
sp:varName "plasticViscosityScale"^^xsd:string .
_:b25
sp:varName "uri"^^xsd:string .
_:b54
sp:varName "angleScale"^^xsd:string .
_:b26
sp:varName "normalizedStr"^^xsd:string .
_:b53
sp:varName "mudClass"^^xsd:string .
_:b27
sp:varName "s1"^^xsd:string .
_:b52
sp:varName "massPerUnitLengthScale"^^xsd:string .
_:b28
sp:varName "s2"^^xsd:string .
_:b51
sp:varName "lengthScale"^^xsd:string .
_:b29
sp:varName "t0a"^^xsd:string .
_:b50
sp:varName "dailyDrillingReportType"^^xsd:string .
_:b30
sp:varName "t0b"^^xsd:string .
_:b49
sp:varName "innerBarrelType"^^xsd:string .
_:b31
sp:varName "t1"^^xsd:string .
_:b48
sp:varName "gasReadingType"^^xsd:string .
_:b32
sp:varName "t2"^^xsd:string .
_:b47
sp:varName "fluidType"^^xsd:string .
_:b33
sp:varName "t3"^^xsd:string .
_:b46
sp:varName "fixedOrMoveableRigType"^^xsd:string .
_:b34
sp:varName "t4"^^xsd:string .
_:b45
sp:varName "drillingEquipmentType"^^xsd:string .
_:b35
sp:varName "activitySuccessType"^^xsd:string .
_:b44
sp:varName "drillingActivityTypeAccordingToEquipmentType"^^xsd:string .
_:b36
sp:varName "casingRoleType"^^xsd:string .
_:b43
sp:varName "drillingActivityPurposeType"^^xsd:string .
_:b37
sp:varName "cementingFluidReturnType"^^xsd:string .
_:b42
sp:varName "drillingActivityOutcomeType"^^xsd:string .
_:b38
sp:varName "classOfWellDatumObject"^^xsd:string .
_:b41
sp:varName "densityScale"^^xsd:string .
_:b39
sp:varName "componentType"^^xsd:string .
_:b40
sp:varName "dailyDrillingReportType"^^xsd:string .
_:b39
sp:varName "componentType"^^xsd:string .
_:b41
sp:varName "densityScale"^^xsd:string .
_:b38
sp:varName "classOfWellDatumObject"^^xsd:string .
_:b42
sp:varName "drillingActivityOutcomeType"^^xsd:string .
_:b37
sp:varName "cementingFluidReturnType"^^xsd:string .
_:b43
sp:varName "drillingActivityPurposeType"^^xsd:string .
_:b36
sp:varName "casingRoleType"^^xsd:string .
_:b44
sp:varName "drillingActivityTypeAccordingToEquipmentType"^^xsd:string .
_:b35
sp:varName "activitySuccessType"^^xsd:string .
_:b45
sp:varName "drillingEquipmentType"^^xsd:string .
_:b34
sp:varName "t4"^^xsd:string .
_:b46
sp:varName "fixedOrMoveableRigType"^^xsd:string .
_:b33
sp:varName "t3"^^xsd:string .
_:b47
sp:varName "fluidType"^^xsd:string .
_:b32
sp:varName "t2"^^xsd:string .
_:b48
sp:varName "gasReadingType"^^xsd:string .
_:b31
sp:varName "t1"^^xsd:string .
_:b49
sp:varName "innerBarrelType"^^xsd:string .
_:b30
sp:varName "t0b"^^xsd:string .
_:b50
sp:varName "dailyDrillingReportType"^^xsd:string .
_:b29
sp:varName "t0a"^^xsd:string .
_:b51
sp:varName "lengthScale"^^xsd:string .
_:b28
sp:varName "s2"^^xsd:string .
_:b52
sp:varName "massPerUnitLengthScale"^^xsd:string .
_:b27
sp:varName "s1"^^xsd:string .
_:b53
sp:varName "mudClass"^^xsd:string .
_:b26
sp:varName "normalizedStr"^^xsd:string .
_:b54
sp:varName "angleScale"^^xsd:string .
_:b25
sp:varName "uri"^^xsd:string .
_:b55
sp:varName "plasticViscosityScale"^^xsd:string .
_:b24
sp:varName "uri"^^xsd:string .
_:b56
sp:varName "porePressureDeterminationType"^^xsd:string .
_:b23
sp:varName "uri"^^xsd:string .
_:b57
sp:varName "pressureScale"^^xsd:string .
_:b22
sp:varName "uri"^^xsd:string .
_:b58
sp:varName "pressureTestType"^^xsd:string .
_:b21
sp:varName "uri"^^xsd:string .
_:b59
sp:varName "speedScale"^^xsd:string .
_:b20
sp:varName "uri"^^xsd:string .
_:b60
sp:varName "strengthScale"^^xsd:string .
_:b19
sp:varName "uri"^^xsd:string .
_:b61
sp:varName "temperatureScale"^^xsd:string .
_:b18
sp:varName "uri"^^xsd:string .
_:b62
sp:varName "durationScale"^^xsd:string .
_:b17
sp:varName "uri"^^xsd:string .
_:b63
sp:varName "volumeScale"^^xsd:string .
_:b16
sp:varName "uri"^^xsd:string .
_:b64
sp:varName "volumetricFlowRateScale"^^xsd:string .
_:b15
sp:varName "uri"^^xsd:string .
_:b65
sp:varName "wellBoreDrillingType"^^xsd:string .
_:b14
sp:varName "uri"^^xsd:string .
_:b66
sp:varName "wellBoreHphtType"^^xsd:string .
_:b13
sp:varName "uri"^^xsd:string .
_:b67
sp:varName "wellBoreTightnessType"^^xsd:string .
_:b12
sp:varName "uri"^^xsd:string .
_:b68
sp:varName "wellCementJobBottomPlugType"^^xsd:string .
_:b11
sp:varName "uri"^^xsd:string .
_:b69
sp:varName "wellCementJobCasingReciprocationType"^^xsd:string .
_:b10
sp:varName "uri"^^xsd:string .
_:b70
sp:varName "wellCementJobCasingRotationType"^^xsd:string .
_:b9 sp:varName "uri"^^xsd:string .
_:b71
sp:varName "wellCementJobFloatHoldingType"^^xsd:string .
_:b8 sp:varName "uri"^^xsd:string .
_:b72
sp:varName "wellCementJobPlugBumpingType"^^xsd:string .
_:b7 sp:varName "uri"^^xsd:string .
_:b73
sp:varName "wellCementJobTopPlugType"^^xsd:string .
_:b6 sp:varName "uri"^^xsd:string .
_:b74
sp:varName "wellCementJobType"^^xsd:string .
_:b5 sp:varName "uri"^^xsd:string .
_:b75
sp:varName "wellControlIncidentType"^^xsd:string .
_:b4 sp:varName "uri"^^xsd:string .
_:b76
sp:varName "wellKillingType"^^xsd:string .
_:b3 sp:varName "uri"^^xsd:string .
_:b77
sp:varName "wellTestType"^^xsd:string .
_:b2 sp:varName "uri"^^xsd:string .
_:b78
sp:varName "wirelineFormationTestGoodnessOfSealType"^^xsd:string .
_:b1 sp:varName "uri"^^xsd:string .
_:b79
sp:varName "yieldPointScale"^^xsd:string .
......