David Leal

Use of temporal parts of a WellBore

# Saved by TopBraid on Tue Aug 02 12:39:11 BST 2011
# Saved by TopBraid on Thu Aug 04 09:28:03 BST 2011
# baseURI: http://www.reportinghub.no/ep/schema/1.1/activity
# imports: http://www.linkedmodel.org/1.2/schema/vaem
# imports: http://www.reportinghub.no/ep/schema/1.1/well
......@@ -15,7 +15,7 @@
<http://www.reportinghub.no/ep/schema/1.1/activity>
rdf:type owl:Ontology ;
owl:imports <http://www.linkedmodel.org/1.1/schema/ordered> , <http://www.reportinghub.no/ep/schema/1.1/well> , <http://www.reportinghub.no/ep/schema/1.1/equipment> , <http://www.linkedmodel.org/1.2/schema/vaem> , <http://www.reportinghub.no/ep/schema/1.1/core> ;
owl:imports <http://www.reportinghub.no/ep/schema/1.1/core> , <http://www.linkedmodel.org/1.2/schema/vaem> , <http://www.reportinghub.no/ep/schema/1.1/equipment> , <http://www.reportinghub.no/ep/schema/1.1/well> , <http://www.linkedmodel.org/1.1/schema/ordered> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-activity:Activity
......@@ -24,33 +24,33 @@ ep-activity:Activity
rdfs:subClassOf owl:Thing ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:Activity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#during>
owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-activity:startedAt
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:Activity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#overlaps>
owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-activity:finishedAt
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:Activity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#before>
owl:onProperty <http://www.linkedmodel.org/schema/ordered#after>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:Activity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#after>
owl:onProperty <http://www.linkedmodel.org/schema/ordered#before>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-activity:finishedAt
owl:allValuesFrom ep-activity:Activity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#overlaps>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-activity:startedAt
owl:allValuesFrom ep-activity:Activity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#during>
] .
ep-activity:DailyDrillingActivity
......@@ -59,13 +59,13 @@ ep-activity:DailyDrillingActivity
rdfs:subClassOf ep-activity:OffshoreWellActivity ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:DrillingActivity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#last>
owl:allValuesFrom <http://www.reportinghub.no/ep/schema/well#AllOrPartOfTheLifeOfAWellBore> ;
owl:onProperty ep-activity:onWellBore
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#first>
owl:allValuesFrom ep-activity:DrillingActivity ;
owl:onProperty ep-activity:hasSubActivity
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
......@@ -74,13 +74,13 @@ ep-activity:DailyDrillingActivity
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-activity:DrillingActivity ;
owl:onProperty ep-activity:hasSubActivity
owl:maxCardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#first>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom <http://www.reportinghub.no/ep/schema/well#WellBore> ;
owl:onProperty ep-activity:onWellBore
owl:allValuesFrom ep-activity:DrillingActivity ;
owl:onProperty <http://www.linkedmodel.org/schema/ordered#last>
] .
ep-activity:DailyDrillingReport
......@@ -147,22 +147,22 @@ ep-activity:OffshoreWellActivity
rdfs:subClassOf ep-activity:OffshoreActivity ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:allValuesFrom <http://www.reportinghub.no/ep/schema/well#Well> ;
owl:onProperty ep-activity:onWell
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom <http://www.reportinghub.no/ep/schema/equipment#Rig> ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-activity:onRig
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:allValuesFrom <http://www.reportinghub.no/ep/schema/equipment#Rig> ;
owl:onProperty ep-activity:onRig
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom <http://www.reportinghub.no/ep/schema/well#Well> ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty ep-activity:onWell
] .
......@@ -206,7 +206,7 @@ ep-activity:WeeklyProductionActivity
] .
ep-activity:createdAt
rdf:type owl:DatatypeProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
rdfs:label "created at"^^xsd:string ;
rdfs:range <http://www.linkedmodel.org/schema/vaem#dateUnion> .
......@@ -228,7 +228,7 @@ ep-activity:onWell
rdfs:label "on well"^^xsd:string .
ep-activity:onWellBore
rdf:type owl:ObjectProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
rdfs:label "on WellBore"^^xsd:string .
ep-activity:reportOn
......
# Saved by TopBraid on Mon Aug 01 13:33:39 PDT 2011
# Saved by TopBraid on Thu Aug 04 10:01:25 BST 2011
# baseURI: http://www.reportinghub.no/ep/schema/1.1/well
# imports: http://www.reportinghub.no/ep/schema/1.1/core
......@@ -14,25 +14,34 @@
owl:imports <http://www.reportinghub.no/ep/schema/1.1/core> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
ep-well:AllOrPartOfTheLifeOfAWellBore
rdf:type owl:Class ;
rdfs:label "all or part of the life of a well bore"^^xsd:string .
ep-well:TemporalPartOfAWellBore
rdf:type owl:Class ;
rdfs:label "temporal part of a well bore"^^xsd:string ;
rdfs:subClassOf ep-well:AllOrPartOfTheLifeOfAWellBore .
ep-well:Well
rdf:type owl:Class ;
rdfs:label "Well"^^xsd:string ;
rdfs:subClassOf owl:Thing ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:allValuesFrom ep-well:WellBore ;
owl:onProperty <http://www.reportinghub.no/ep/schema/core#hasPart>
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty <http://www.reportinghub.no/ep/schema/core#name>
] ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
owl:onProperty <http://www.reportinghub.no/ep/schema/core#name>
owl:allValuesFrom ep-well:WellBore ;
owl:onProperty <http://www.reportinghub.no/ep/schema/core#hasPart>
] .
ep-well:WellBore
rdf:type owl:Class ;
rdfs:label "Well bore"^^xsd:string ;
rdfs:subClassOf owl:Thing ;
rdfs:label "well bore"^^xsd:string ;
rdfs:subClassOf ep-well:AllOrPartOfTheLifeOfAWellBore ;
rdfs:subClassOf
[ rdf:type owl:Restriction ;
owl:cardinality "1"^^xsd:nonNegativeInteger ;
......
# Saved by TopBraid on Wed Aug 03 06:33:37 BST 2011
# Saved by TopBraid on Thu Aug 04 09:22:54 BST 2011
# baseURI: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://spinrdf.org/spin
......@@ -66,13 +66,34 @@ ep-spin-lib:buildDailyDrillingReportURI
])
] .
ep-spin-lib:buildTemporalPartOfAWellBoreURI
rdf:type spin:Function ;
rdfs:label "build TemporalPartOfWellBore URI"^^xsd:string ;
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b3) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/WellBore#" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg1 spin:_arg1 ;
sp:arg2 "$" ;
sp:arg3 spin:_arg2
]
] ;
sp:variable _:b3
])
] .
ep-spin-lib:buildURI
rdf:type spin:Function ;
rdfs:label "build URI"^^xsd:string ;
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b3) ;
sp:resultVariables (_:b4) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:resource ;
......@@ -81,17 +102,17 @@ ep-spin-lib:buildURI
sp:arg2 spin:_arg2
]
] ;
sp:variable _:b3
sp:variable _:b4
])
] ;
spin:constraint
[ rdf:type spl:Argument ;
spl:predicate sp:arg1 ;
spl:predicate sp:arg2 ;
spl:valueType xsd:string
] ;
spin:constraint
[ rdf:type spl:Argument ;
spl:predicate sp:arg2 ;
spl:predicate sp:arg1 ;
spl:valueType xsd:string
] .
......@@ -101,14 +122,14 @@ ep-spin-lib:buildWellBoreURI
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b4) ;
sp:resultVariables (_:b5) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/WellBore#" ;
sp:arg2 spin:_arg1
] ;
sp:variable _:b4
sp:variable _:b5
])
] .
......@@ -118,14 +139,14 @@ ep-spin-lib:buildWellURI
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b5) ;
sp:resultVariables (_:b6) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/Well#" ;
sp:arg2 spin:_arg1
] ;
sp:variable _:b5
sp:variable _:b6
])
] .
......@@ -135,7 +156,7 @@ ep-spin-lib:normalizeString
rdfs:subClassOf ep-spin-lib:Function ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables (_:b6) ;
sp:resultVariables (_:b7) ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
......@@ -143,67 +164,67 @@ ep-spin-lib:normalizeString
sp:arg2 "\\((.*)\\)" ;
sp:arg3 ""
] ;
sp:variable _:b7
sp:variable _:b8
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:trim ;
sp:arg1 _:b7
sp:arg1 _:b8
] ;
sp:variable _:b8
sp:variable _:b9
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:encodeURL ;
sp:arg1 _:b8
sp:arg1 _:b9
] ;
sp:variable _:b9
sp:variable _:b10
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b9 ;
sp:arg1 _:b10 ;
sp:arg2 "%2F" ;
sp:arg3 "_"
] ;
sp:variable _:b10
sp:variable _:b11
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b10 ;
sp:arg1 _:b11 ;
sp:arg2 "%[0-9A-F][0-9A-F]" ;
sp:arg3 ""
] ;
sp:variable _:b11
sp:variable _:b12
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b11 ;
sp:arg1 _:b12 ;
sp:arg2 "\\+" ;
sp:arg3 "_"
] ;
sp:variable _:b12
sp:variable _:b13
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b12 ;
sp:arg1 _:b13 ;
sp:arg2 "_+" ;
sp:arg3 "_"
] ;
sp:variable _:b13
sp:variable _:b14
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:regex ;
sp:arg1 _:b13 ;
sp:arg1 _:b14 ;
sp:arg2 "\\*" ;
sp:arg3 ""
] ;
sp:variable _:b14
sp:variable _:b15
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type xsd:string ;
sp:arg1 [ rdf:type smf:upperCase ;
sp:arg1 _:b14
sp:arg1 _:b15
]
] ;
sp:variable _:b6
sp:variable _:b7
])
] ;
spin:constraint
......@@ -212,34 +233,37 @@ ep-spin-lib:normalizeString
spl:valueType xsd:string
] .
_:b4 sp:varName "uri"^^xsd:string .
_:b3 sp:varName "uri"^^xsd:string .
_:b5 sp:varName "uri"^^xsd:string .
_:b15
sp:varName "t4"^^xsd:string .
_:b14
sp:varName "t4"^^xsd:string .
sp:varName "t3"^^xsd:string .
_:b13
sp:varName "t3"^^xsd:string .
sp:varName "t2"^^xsd:string .
_:b12
sp:varName "t2"^^xsd:string .
sp:varName "t1"^^xsd:string .
_:b11
sp:varName "t1"^^xsd:string .
sp:varName "t0b"^^xsd:string .
_:b10
sp:varName "t0b"^^xsd:string .
sp:varName "t0a"^^xsd:string .
_:b9 sp:varName "t0a"^^xsd:string .
_:b9 sp:varName "s2"^^xsd:string .
_:b8 sp:varName "s2"^^xsd:string .
_:b8 sp:varName "s1"^^xsd:string .
_:b7 sp:varName "s1"^^xsd:string .
_:b7 sp:varName "normalizedStr"^^xsd:string .
_:b6 sp:varName "normalizedStr"^^xsd:string .
_:b6 sp:varName "uri"^^xsd:string .
_:b3 sp:varName "uri"^^xsd:string .
_:b5 sp:varName "uri"^^xsd:string .
_:b4 sp:varName "uri"^^xsd:string .
_:b2 sp:varName "uri"^^xsd:string .
......
# Saved by TopBraid on Wed Aug 03 06:33:37 BST 2011
# Saved by TopBraid on Thu Aug 04 09:22:54 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Wed Aug 03 12:31:51 BST 2011
# Saved by TopBraid on Thu Aug 04 10:29:52 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr
# imports: http://www.reportinghub.no/iso15926/bindEP-NativeOWL
# imports: http://spinrdf.org/spin
@prefix NPD_1104121247071: <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml#> .
@prefix bindEP-NativeOWL: <http://www.reportinghub.no/iso15926/bindEP-NativeOWL#> .
@prefix ddr-normalization: <http://www.reportinghub.no/ep/transform/ddr/normalization#> .
@prefix ddr-normalization-1.1: <http://www.reportinghub.no/ep/transform/1.1/ddr/normalization#> .
@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
@prefix iso15926: <http://www.reportinghub.no/iso15926/nativeOWL#> .
@prefix normalization: <http://www.reportinghub.no/ep/transform/normalization#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix p1: <http://example.org/file1#> .
@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#> .
......@@ -51,580 +55,326 @@
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 107 Transfer sum24Hr"^^xsd:string ;
sp:templates ([ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#sum24Hr> ;
sp:subject _:b7
]) ;
sp:where ([ sp:object _:b8 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b9 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b10 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#sum24Hr> ;
sp:subject _:b10
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b8
] ;
sp:variable _:b11
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b11 ;
sp:arg2 _:b9
] ;
sp:variable _:b7
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 106 Transfer distDrill"^^xsd:string ;
sp:templates ([ sp:object _:b12 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasDistDrill> ;
sp:subject _:b13
rdfs:comment """STEP 103a
Classify a DailyDrillingReport as normal"""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#NormalDailyDrillingReport> ;
sp:predicate rdf:type ;
sp:subject _:b6
]) ;
sp:where ([ sp:object _:b14 ;
sp:where ([ sp:object _:b7 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b15 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
] [ sp:object _:b8 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
sp:subject spin:_this
] [ sp:object _:b16 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/ddr#ORV_normal> ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasVersionKind> ;
sp:subject spin:_this
] [ sp:object _:b12 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasDistDrill> ;
sp:subject _:b16
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b14
sp:arg1 _:b7
] ;
sp:variable _:b17
sp:variable _:b9
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b17 ;
sp:arg2 _:b15
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 _:b9 ;
sp:arg2 _:b8
] ;
sp:variable _:b13
sp:variable _:b6
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 104 Create Well"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
rdfs:comment """STEP 103b
Classify a DailyDrillingReport as preliminary"""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#PreliminaryDailyDrillingReport> ;
sp:predicate rdf:type ;
sp:subject _:b18
] [ sp:object _:b19 ;
sp:predicate rdfs:label ;
sp:subject _:b18
] [ sp:object _:b18 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ;
sp:subject _:b20
] [ sp:object _:b21 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject _:b18
sp:subject _:b10
]) ;
sp:where ([ sp:object _:b22 ;
sp:where ([ sp:object _:b11 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b19 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWell> ;
] [ sp:object _:b12 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
sp:subject spin:_this
] [ sp:object _:b23 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/ddr#ORV_preliminary> ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasVersionKind> ;
sp:subject spin:_this
] [ sp:object _:b21 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b20
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b22
sp:arg1 _:b11
] ;
sp:variable _:b24
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b24 ;
sp:arg2 _:b23
] ;
sp:variable _:b20
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b19
] ;
sp:variable _:b25
sp:variable _:b13
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildWellURI ;
sp:arg1 _:b25
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 _:b13 ;
sp:arg2 _:b12
] ;
sp:variable _:b18
sp:variable _:b10
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 103b
Classify a DailyDrillingReport as preliminary"""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#PreliminaryDailyDrillingReport> ;
rdfs:comment """STEP 103c
Classify a DailyDrillingReport as final"""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#FinalDailyDrillingReport> ;
sp:predicate rdf:type ;
sp:subject _:b26
sp:subject _:b14
]) ;
sp:where ([ sp:object _:b27 ;
sp:where ([ sp:object _:b15 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b28 ;
] [ sp:object _:b16 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
sp:subject spin:_this
] [ sp:object <http://www.reportinghub.no/ep/schema/ddr#ORV_preliminary> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/ddr#ORV_final> ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasVersionKind> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b27
sp:arg1 _:b15
] ;
sp:variable _:b29
sp:variable _:b17
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 _:b29 ;
sp:arg2 _:b28
sp:arg1 _:b17 ;
sp:arg2 _:b16
] ;
sp:variable _:b26
sp:variable _:b14
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 101 Create DailyDrillingReport, DailyDrillingActivity and WellBore
Minimum data - createDate, dTimStart, nameWellBore
Add a link from Obj_DrillReport to DailyDrillingReport to support other CONSTRUCT clauses (is this useful?)"""^^xsd:string ;
rdfs:comment """STEP 101 Create DailyDrillingReport, DailyDrillingActivity, TemporalPartOfAWellBore and WellBore
Minimum data - createDate, dTimStart, nameWellBore"""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingReport> ;
sp:predicate rdf:type ;
sp:subject _:b30
sp:subject _:b18
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivity> ;
sp:predicate rdf:type ;
sp:subject _:b31
] [ sp:object _:b31 ;
sp:subject _:b19
] [ sp:object _:b19 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#reportOn> ;
sp:subject _:b30
] [ sp:object _:b32 ;
sp:subject _:b18
] [ sp:object _:b20 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#createdAt> ;
sp:subject _:b30
] [ sp:object _:b33 ;
sp:subject _:b18
] [ sp:object _:b21 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject _:b31
sp:subject _:b19
] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ;
sp:predicate rdf:type ;
sp:subject _:b22
] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject _:b34
] [ sp:object _:b34 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b31
] [ sp:object _:b35 ;
sp:subject _:b23
] [ sp:object _:b23 ;
sp:predicate iso15926:temporalPartOf ;
sp:subject _:b22
] [ sp:object _:b24 ;
sp:predicate rdfs:label ;
sp:subject _:b34
] [ sp:object spin:_this ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#derivedFrom> ;
sp:subject _:b30
sp:subject _:b23
] [ sp:object _:b22 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b19
]) ;
sp:where ([ sp:object _:b35 ;
sp:where ([ sp:object _:b24 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b33 ;
] [ sp:object _:b21 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b32 ;
] [ sp:object _:b20 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b35
sp:arg1 _:b24
] ;
sp:variable _:b36
sp:variable _:b25
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 _:b36 ;
sp:arg2 _:b32
sp:arg1 _:b25 ;
sp:arg2 _:b20
] ;
sp:variable _:b30
sp:variable _:b18
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b36 ;
sp:arg2 _:b33
sp:arg1 _:b25 ;
sp:arg2 _:b21
] ;
sp:variable _:b31
sp:variable _:b19
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildWellBoreURI ;
sp:arg1 _:b36
[ rdf:type ep-spin-lib:buildTemporalPartOfAWellBoreURI ;
sp:arg1 _:b25 ;
sp:arg2 _:b21
] ;
sp:variable _:b34
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 108 Transfer forecast24Hr"^^xsd:string ;
sp:templates ([ sp:object _:b37 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#forecast24Hr> ;
sp:subject _:b38
]) ;
sp:where ([ sp:object _:b39 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b40 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b41 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b37 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#forecast24Hr> ;
sp:subject _:b41
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b39
] ;
sp:variable _:b42
sp:variable _:b22
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b42 ;
sp:arg2 _:b40
[ rdf:type ep-spin-lib:buildWellBoreURI ;
sp:arg1 _:b25
] ;
sp:variable _:b38
sp:variable _:b23
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 109 Transfer md"^^xsd:string ;
sp:templates ([ sp:object _:b43 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMd> ;
sp:subject _:b44
rdfs:comment "STEP 104 Create Well"^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
sp:predicate rdf:type ;
sp:subject _:b26
] [ sp:object _:b27 ;
sp:predicate rdfs:label ;
sp:subject _:b26
] [ sp:object _:b26 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ;
sp:subject _:b28
] [ sp:object _:b29 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject _:b26
]) ;
sp:where ([ sp:object _:b45 ;
sp:where ([ sp:object _:b30 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b46 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
] [ sp:object _:b27 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWell> ;
sp:subject spin:_this
] [ sp:object _:b47 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
] [ sp:object _:b31 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b44 ;
] [ sp:object _:b29 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b48
] [ sp:object _:b43 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMd> ;
sp:subject _:b47
sp:subject _:b28
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b45
sp:arg1 _:b30
] ;
sp:variable _:b49
sp:variable _:b32
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b49 ;
sp:arg2 _:b46
] ;
sp:variable _:b48
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 103c
Classify a DailyDrillingReport as final"""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#FinalDailyDrillingReport> ;
sp:predicate rdf:type ;
sp:subject _:b50
]) ;
sp:where ([ sp:object _:b51 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b52 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
sp:subject spin:_this
] [ sp:object <http://www.reportinghub.no/ep/schema/ddr#ORV_final> ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasVersionKind> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b51
] ;
sp:variable _:b53
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 _:b53 ;
sp:arg2 _:b52
] ;
sp:variable _:b50
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 103a
Classify a DailyDrillingReport as normal"""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#NormalDailyDrillingReport> ;
sp:predicate rdf:type ;
sp:subject _:b54
]) ;
sp:where ([ sp:object _:b55 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b56 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#createDate> ;
sp:subject spin:_this
] [ sp:object <http://www.reportinghub.no/ep/schema/ddr#ORV_normal> ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasVersionKind> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b55
] ;
sp:variable _:b57
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 _:b57 ;
sp:arg2 _:b56
sp:arg1 _:b32 ;
sp:arg2 _:b31
] ;
sp:variable _:b54
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 105 Transfer ropCurrent"^^xsd:string ;
sp:templates ([ sp:object _:b58 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasRopCurrent> ;
sp:subject _:b59
]) ;
sp:where ([ sp:object _:b60 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b61 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b62 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b58 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasRopCurrent> ;
sp:subject _:b62
sp:variable _:b28
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b60
sp:arg1 _:b27
] ;
sp:variable _:b63
sp:variable _:b33
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b63 ;
sp:arg2 _:b61
[ rdf:type ep-spin-lib:buildWellURI ;
sp:arg1 _:b33
] ;
sp:variable _:b59
sp:variable _:b26
])
] .
<http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.1/ddr> , <http://www.reportinghub.no/ep/spin/1.1/lib> ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.1/ddr> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/iso15926/bindEP-NativeOWL> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
_:b50
sp:varName "dailyDrillingReport"^^xsd:string .
_:b33
sp:varName "normalizedWellName"^^xsd:string .
_:b53
_:b32
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b52
sp:varName "createDate"^^xsd:string .
_:b31
sp:varName "dTimStart"^^xsd:string .
_:b51
_:b30
sp:varName "nameWellBore"^^xsd:string .
_:b26
sp:varName "dailyDrillingReport"^^xsd:string .
_:b29
sp:varName "normalizedWellBoreName"^^xsd:string .
sp:varName "wellBore"^^xsd:string .
_:b28
sp:varName "createDate"^^xsd:string .
_:b27
sp:varName "nameWellBore"^^xsd:string .
_:b54
sp:varName "dailyDrillingReport"^^xsd:string .
_:b57
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b56
sp:varName "createDate"^^xsd:string .
_:b55
sp:varName "nameWellBore"^^xsd:string .
_:b5 sp:varName "normalizedWellBoreName"^^xsd:string .
_:b4 sp:varName "dTimStart"^^xsd:string .
_:b3 sp:varName "nameWellBore"^^xsd:string .
_:b2 sp:varName "dailyDrillingActivity"^^xsd:string .
_:b1 sp:varName "dTimEnd"^^xsd:string .
_:b42
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b41
sp:varName "statusInfo"^^xsd:string .
_:b40
sp:varName "dTimStart"^^xsd:string .
_:b39
sp:varName "nameWellBore"^^xsd:string .
_:b38
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b37
sp:varName "forecast24Hr"^^xsd:string .
_:b63
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b62
sp:varName "statusInfo"^^xsd:string .
_:b61
sp:varName "dTimStart"^^xsd:string .
_:b60
sp:varName "nameWellBore"^^xsd:string .
_:b59
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b58
sp:varName "ropCurrentValue"^^xsd:string .
_:b11
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b10
sp:varName "statusInfo"^^xsd:string .
_:b9 sp:varName "dTimStart"^^xsd:string .
_:b8 sp:varName "nameWellBore"^^xsd:string .
_:b7 sp:varName "dailyDrillingActivity"^^xsd:string .
_:b27
sp:varName "nameWell"^^xsd:string .
_:b6 sp:varName "sum24Hr"^^xsd:string .
_:b26
sp:varName "well"^^xsd:string .
_:b25
sp:varName "normalizedWellName"^^xsd:string .
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b24
sp:varName "normalizedWellBoreName"^^xsd:string .
sp:varName "nameWellBore"^^xsd:string .
_:b23
sp:varName "dTimStart"^^xsd:string .
sp:varName "wellBore"^^xsd:string .
_:b22
sp:varName "nameWellBore"^^xsd:string .
sp:varName "temporalPartOfAWellBore"^^xsd:string .
_:b21
sp:varName "wellBore"^^xsd:string .
sp:varName "dTimStart"^^xsd:string .
_:b20
sp:varName "dailyDrillingActivity"^^xsd:string .
sp:varName "createDate"^^xsd:string .
_:b19
sp:varName "nameWell"^^xsd:string .
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b18
sp:varName "well"^^xsd:string .
sp:varName "dailyDrillingReport"^^xsd:string .
_:b49
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b9 sp:varName "normalizedWellBoreName"^^xsd:string .
_:b48
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b8 sp:varName "createDate"^^xsd:string .
_:b47
sp:varName "statusInfo"^^xsd:string .
_:b7 sp:varName "nameWellBore"^^xsd:string .
_:b46
sp:varName "dTimStart"^^xsd:string .
_:b6 sp:varName "dailyDrillingReport"^^xsd:string .
_:b45
sp:varName "nameWellBore"^^xsd:string .
_:b13
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b44
sp:varName "wellBore"^^xsd:string .
_:b12
sp:varName "createDate"^^xsd:string .
_:b43
sp:varName "md"^^xsd:string .
_:b11
sp:varName "nameWellBore"^^xsd:string .
_:b10
sp:varName "dailyDrillingReport"^^xsd:string .
_:b17
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b16
sp:varName "statusInfo"^^xsd:string .
sp:varName "createDate"^^xsd:string .
_:b15
sp:varName "dTimStart"^^xsd:string .
_:b14
sp:varName "nameWellBore"^^xsd:string .
_:b13
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b12
sp:varName "distDrill"^^xsd:string .
_:b36
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b35
sp:varName "nameWellBore"^^xsd:string .
_:b14
sp:varName "dailyDrillingReport"^^xsd:string .
_:b34
sp:varName "wellBore"^^xsd:string .
_:b5 sp:varName "normalizedWellBoreName"^^xsd:string .
_:b33
sp:varName "dTimStart"^^xsd:string .
_:b4 sp:varName "dTimStart"^^xsd:string .
_:b32
sp:varName "createDate"^^xsd:string .
_:b3 sp:varName "nameWellBore"^^xsd:string .
_:b31
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b2 sp:varName "dailyDrillingActivity"^^xsd:string .
_:b30
sp:varName "dailyDrillingReport"^^xsd:string .
_:b1 sp:varName "dTimEnd"^^xsd:string .
......
# Saved by TopBraid on Wed Aug 03 12:31:51 BST 2011
# Saved by TopBraid on Thu Aug 04 10:29:52 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Wed Aug 03 07:44:47 BST 2011
# Saved by TopBraid on Thu Aug 04 10:31:12 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/normalization
# imports: file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo
# imports: http://spinrdf.org/spin
@prefix : <http://www.reportinghub.no/ep/transform/1.1/normalization#> .
......@@ -14,5 +16,5 @@
<http://www.reportinghub.no/ep/transform/1.1/normalization>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> ;
owl:imports <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> , <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.1/ddr/statusInfo> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
# Saved by TopBraid on Wed Aug 03 07:44:47 BST 2011
# Saved by TopBraid on Thu Aug 04 10:31:12 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......@@ -13,5 +13,7 @@
[] rdf:type inference:Configuration ;
composite:child
[ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
<http://spinrdf.org/spin#topSPINOptions>
"singlePass" ;
composite:index "0"^^xsd:int
] .
......