David Leal

The content that was previously in TRANSFORM_ddr-normalization is now in

TRANSFORM_ddr-drillReport.

There has been some cosmetic tidying up of the content.
# Saved by TopBraid on Tue Aug 02 12:26:59 BST 2011
# Saved by TopBraid on Wed Aug 03 06:33:37 BST 2011
# baseURI: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://spinrdf.org/spin
......@@ -86,12 +86,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
] .
......@@ -105,7 +105,7 @@ ep-spin-lib:buildWellBoreURI
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/L_9999/W_9999#" ;
sp:arg1 "https://www.reportinghub.no/ep/data/WellBore#" ;
sp:arg2 spin:_arg1
] ;
sp:variable _:b4
......@@ -122,7 +122,7 @@ ep-spin-lib:buildWellURI
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/L_9999#" ;
sp:arg1 "https://www.reportinghub.no/ep/data/Well#" ;
sp:arg2 spin:_arg1
] ;
sp:variable _:b5
......@@ -212,9 +212,9 @@ ep-spin-lib:normalizeString
spl:valueType xsd:string
] .
_:b2 sp:varName "uri"^^xsd:string .
_:b4 sp:varName "uri"^^xsd:string .
_:b1 sp:varName "uri"^^xsd:string .
_:b5 sp:varName "uri"^^xsd:string .
_:b14
sp:varName "t4"^^xsd:string .
......@@ -239,8 +239,8 @@ _:b7 sp:varName "s1"^^xsd:string .
_:b6 sp:varName "normalizedStr"^^xsd:string .
_:b5 sp:varName "uri"^^xsd:string .
_:b3 sp:varName "uri"^^xsd:string .
_:b4 sp:varName "uri"^^xsd:string .
_:b2 sp:varName "uri"^^xsd:string .
_:b3 sp:varName "uri"^^xsd:string .
_:b1 sp:varName "uri"^^xsd:string .
......
# Saved by TopBraid on Tue Aug 02 12:26:59 BST 2011
# Saved by TopBraid on Wed Aug 03 06:33:37 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Wed Aug 03 07:30:51 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://spinrdf.org/spin
@prefix NPD_1104121247071: <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml#> .
@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 normalization: <http://www.reportinghub.no/ep/transform/normalization#> .
@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/schema/ddr#Obj_drillReport>
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 ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingReport> ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivity> ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object _:b2 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#reportOn> ;
sp:subject _:b1
] [ sp:object _:b3 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#createdAt> ;
sp:subject _:b1
] [ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject _:b2
] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject _:b5
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b2
] [ sp:object _:b6 ;
sp:predicate rdfs:label ;
sp:subject _:b5
] [ sp:object spin:_this ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#derivedFrom> ;
sp:subject _:b1
]) ;
sp:where ([ sp:object _:b6 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b3 ;
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 _:b6
] ;
sp:variable _:b7
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 _:b7 ;
sp:arg2 _:b3
] ;
sp:variable _:b1
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b7 ;
sp:arg2 _:b4
] ;
sp:variable _:b2
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildWellBoreURI ;
sp:arg1 _:b7
] ;
sp:variable _:b5
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 106 Transfer distDrill"^^xsd:string ;
sp:templates ([ sp:object _:b8 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasDistDrill> ;
sp:subject _:b9
]) ;
sp:where ([ sp:object _:b10 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b11 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b12 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b8 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasDistDrill> ;
sp:subject _:b12
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b10
] ;
sp:variable _:b13
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b13 ;
sp:arg2 _:b11
] ;
sp:variable _:b9
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 109 Transfer md"^^xsd:string ;
sp:templates ([ sp:object _:b14 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMd> ;
sp:subject _:b15
]) ;
sp:where ([ sp:object _:b16 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b17 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b18 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b15 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b19
] [ sp:object _:b14 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMd> ;
sp:subject _:b18
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b16
] ;
sp:variable _:b20
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b20 ;
sp:arg2 _:b17
] ;
sp:variable _:b19
])
] ;
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> ;
sp:predicate rdf:type ;
sp:subject _:b21
] [ sp:object _:b22 ;
sp:predicate rdfs:label ;
sp:subject _:b21
] [ sp:object _:b21 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ;
sp:subject _:b23
] [ sp:object _:b24 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject _:b21
]) ;
sp:where ([ sp:object _:b25 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b22 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWell> ;
sp:subject spin:_this
] [ sp:object _:b26 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b24 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b23
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b25
] ;
sp:variable _:b27
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b27 ;
sp:arg2 _:b26
] ;
sp:variable _:b23
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b22
] ;
sp:variable _:b28
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildWellURI ;
sp:arg1 _:b28
] ;
sp:variable _:b21
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 107 Transfer sum24Hr"^^xsd:string ;
sp:templates ([ sp:object _:b29 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#sum24Hr> ;
sp:subject _:b30
]) ;
sp:where ([ sp:object _:b31 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b32 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b33 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b29 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#sum24Hr> ;
sp:subject _:b33
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b31
] ;
sp:variable _:b34
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b34 ;
sp:arg2 _:b32
] ;
sp:variable _:b30
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 105 Transfer ropCurrent"^^xsd:string ;
sp:templates ([ sp:object _:b35 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasRopCurrent> ;
sp:subject _:b36
]) ;
sp:where ([ sp:object _:b37 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b38 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b39 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b35 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasRopCurrent> ;
sp:subject _:b39
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b37
] ;
sp:variable _:b40
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b40 ;
sp:arg2 _:b38
] ;
sp:variable _:b36
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 108 Transfer forecast24Hr"^^xsd:string ;
sp:templates ([ sp:object _:b41 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#forecast24Hr> ;
sp:subject _:b42
]) ;
sp:where ([ sp:object _:b43 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b44 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b45 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b41 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#forecast24Hr> ;
sp:subject _:b45
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b43
] ;
sp:variable _:b46
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b46 ;
sp:arg2 _:b44
] ;
sp:variable _:b42
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 102 Transfer dTimEnd"^^xsd:string ;
sp:templates ([ sp:object _:b47 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject _:b48
]) ;
sp:where ([ sp:object _:b49 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b50 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b47 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b49
] ;
sp:variable _:b51
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b51 ;
sp:arg2 _:b50
] ;
sp:variable _:b48
])
] .
<http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/transform/1.1/ddr> , <http://spinrdf.org/spin> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
_:b47
sp:varName "dTimEnd"^^xsd:string .
_:b48
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b49
sp:varName "nameWellBore"^^xsd:string .
_:b50
sp:varName "dTimStart"^^xsd:string .
_:b51
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b41
sp:varName "forecast24Hr"^^xsd:string .
_:b42
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b43
sp:varName "nameWellBore"^^xsd:string .
_:b44
sp:varName "dTimStart"^^xsd:string .
_:b45
sp:varName "statusInfo"^^xsd:string .
_:b46
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b35
sp:varName "ropCurrentValue"^^xsd:string .
_:b36
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b37
sp:varName "nameWellBore"^^xsd:string .
_:b38
sp:varName "dTimStart"^^xsd:string .
_:b39
sp:varName "statusInfo"^^xsd:string .
_:b40
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b29
sp:varName "sum24Hr"^^xsd:string .
_:b30
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b31
sp:varName "nameWellBore"^^xsd:string .
_:b32
sp:varName "dTimStart"^^xsd:string .
_:b33
sp:varName "statusInfo"^^xsd:string .
_:b34
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b21
sp:varName "well"^^xsd:string .
_:b22
sp:varName "nameWell"^^xsd:string .
_:b23
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b24
sp:varName "wellBore"^^xsd:string .
_:b25
sp:varName "nameWellBore"^^xsd:string .
_:b26
sp:varName "dTimStart"^^xsd:string .
_:b27
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b28
sp:varName "normalizedWellName"^^xsd:string .
_:b14
sp:varName "md"^^xsd:string .
_:b15
sp:varName "wellBore"^^xsd:string .
_:b16
sp:varName "nameWellBore"^^xsd:string .
_:b17
sp:varName "dTimStart"^^xsd:string .
_:b18
sp:varName "statusInfo"^^xsd:string .
_:b19
sp:varName "dailyDrillingActivity"^^xsd:string .
_:b20
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b8 sp:varName "distDrill"^^xsd:string .
_:b9 sp:varName "dailyDrillingActivity"^^xsd:string .
_:b10
sp:varName "nameWellBore"^^xsd:string .
_:b11
sp:varName "dTimStart"^^xsd:string .
_:b12
sp:varName "statusInfo"^^xsd:string .
_:b13
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b1 sp:varName "dailyDrillingReport"^^xsd:string .
_:b2 sp:varName "dailyDrillingActivity"^^xsd:string .
_:b3 sp:varName "createDate"^^xsd:string .
_:b4 sp:varName "dTimStart"^^xsd:string .
_:b5 sp:varName "wellBore"^^xsd:string .
_:b6 sp:varName "nameWellBore"^^xsd:string .
_:b7 sp:varName "normalizedWellBoreName"^^xsd:string .
# Saved by TopBraid on Wed Aug 03 07:30:51 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> ;
<http://spinrdf.org/spin#topSPINOptions>
"singlePass" ;
composite:index "0"^^xsd:int
] .
# Saved by TopBraid on Tue Aug 02 17:04:28 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/normalization
# imports: file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr
# Saved by TopBraid on Wed Aug 03 07:44:47 BST 2011
# baseURI: http://www.reportinghub.no/ep/transform/1.1/normalization
# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport
# imports: http://spinrdf.org/spin
@prefix NPD_1104121247071: <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml#> .
@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 normalization: <http://www.reportinghub.no/ep/transform/normalization#> .
@prefix : <http://www.reportinghub.no/ep/transform/1.1/normalization#> .
@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#> .
......@@ -18,398 +12,7 @@
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/schema/ddr#Obj_drillReport>
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 106 Transfer md"^^xsd:string ;
sp:templates ([ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMd> ;
sp:subject _:b2
]) ;
sp:where ([ sp:object _:b3 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b4 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b5 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b2 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b6
] [ sp:object _:b1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasMd> ;
sp:subject _:b5
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b3
] ;
sp:variable _:b7
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b7 ;
sp:arg2 _:b4
] ;
sp:variable _:b6
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 105 Transfer forecast24Hr"^^xsd:string ;
sp:templates ([ sp:object _:b8 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#forecast24Hr> ;
sp:subject _:b9
]) ;
sp:where ([ sp:object _:b10 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b11 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b12 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b8 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#forecast24Hr> ;
sp:subject _:b12
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b10
] ;
sp:variable _:b13
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b13 ;
sp:arg2 _:b11
] ;
sp:variable _:b9
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment """STEP 101 Make DailyDrillingReport, DailyDrillingActivity, Well and WellBore instances
Add a link from Obj_DrillReport to DailyDrillingReport to support other CONSTRUCT clauses"""^^xsd:string ;
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingReport> ;
sp:predicate rdf:type ;
sp:subject _:b14
] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivity> ;
sp:predicate rdf:type ;
sp:subject _:b15
] [ sp:object _:b15 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#reportOn> ;
sp:subject _:b14
] [ sp:object _:b16 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#createdAt> ;
sp:subject _:b14
] [ sp:object _:b17 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
sp:subject _:b15
] [ sp:object _:b18 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
sp:subject _:b15
] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
sp:predicate rdf:type ;
sp:subject _:b19
] [ sp:object _:b19 ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
sp:subject _:b15
] [ sp:object _:b20 ;
sp:predicate rdfs:label ;
sp:subject _:b19
] [ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
sp:predicate rdf:type ;
sp:subject _:b21
] [ sp:object _:b22 ;
sp:predicate rdfs:label ;
sp:subject _:b21
] [ sp:object _:b19 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
sp:subject _:b21
] [ sp:object spin:_this ;
sp:predicate <http://www.linkedmodel.org/schema/dtype#derivedFrom> ;
sp:subject _:b14
]) ;
sp:where ([ sp:object _:b20 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b22 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWell> ;
sp:subject spin:_this
] [ sp:object _:b17 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b18 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimEnd> ;
sp:subject spin:_this
] [ sp:object _:b16 ;
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 _:b20
] ;
sp:variable _:b23
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
sp:arg1 _:b23 ;
sp:arg2 _:b16
] ;
sp:variable _:b14
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b23 ;
sp:arg2 _:b17
] ;
sp:variable _:b15
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildWellBoreURI ;
sp:arg1 _:b23
] ;
sp:variable _:b19
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b22
] ;
sp:variable _:b24
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildWellURI ;
sp:arg1 _:b24
] ;
sp:variable _:b21
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 103 Transfer distDrill"^^xsd:string ;
sp:templates ([ sp:object _:b25 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasDistDrill> ;
sp:subject _:b26
]) ;
sp:where ([ sp:object _:b27 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b28 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b29 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b25 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasDistDrill> ;
sp:subject _:b29
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b27
] ;
sp:variable _:b30
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b30 ;
sp:arg2 _:b28
] ;
sp:variable _:b26
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 102 Transfer ropCurrent"^^xsd:string ;
sp:templates ([ sp:object _:b31 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasRopCurrent> ;
sp:subject _:b32
]) ;
sp:where ([ sp:object _:b33 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#nameWellbore> ;
sp:subject spin:_this
] [ sp:object _:b34 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#dTimStart> ;
sp:subject spin:_this
] [ sp:object _:b35 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasStatusInfo> ;
sp:subject spin:_this
] [ sp:object _:b31 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#hasRopCurrent> ;
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:buildDailyDrillingActivityURI ;
sp:arg1 _:b36 ;
sp:arg2 _:b34
] ;
sp:variable _:b32
])
] ;
spin:rule
[ rdf:type sp:Construct ;
rdfs:comment "STEP 104 Transfer sum24Hr"^^xsd:string ;
sp:templates ([ sp:object _:b37 ;
sp:predicate <http://www.reportinghub.no/ep/schema/ddr#sum24Hr> ;
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#sum24Hr> ;
sp:subject _:b41
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 _:b39
] ;
sp:variable _:b42
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
sp:arg1 _:b42 ;
sp:arg2 _:b40
] ;
sp:variable _:b38
])
] .
<http://www.reportinghub.no/ep/transform/1.1/ddr/normalization>
<http://www.reportinghub.no/ep/transform/1.1/normalization>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/transform/1.1/ddr> , <http://spinrdf.org/spin> , <file:///www.reportinghub.no/examples/xml/NPD_110412124707.xml> ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
_:b33
sp:varName "nameWellBore"^^xsd:string .
_:b34
sp:varName "dTimStart"^^xsd:string .
_:b35
sp:varName "statusInfo"^^xsd:string .
_:b31
sp:varName "ropCurrentValue"^^xsd:string .
_:b36
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b32
sp:varName "dailyDrillingActivityURI"^^xsd:string .
_:b39
sp:varName "nameWellBore"^^xsd:string .
_:b40
sp:varName "dTimStart"^^xsd:string .
_:b41
sp:varName "statusInfo"^^xsd:string .
_:b37
sp:varName "sum24Hr"^^xsd:string .
_:b42
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b38
sp:varName "dailyDrillingActivityURI"^^xsd:string .
_:b27
sp:varName "nameWellBore"^^xsd:string .
_:b28
sp:varName "dTimStart"^^xsd:string .
_:b29
sp:varName "statusInfo"^^xsd:string .
_:b25
sp:varName "distDrill"^^xsd:string .
_:b30
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b26
sp:varName "dailyDrillingActivityURI"^^xsd:string .
_:b10
sp:varName "nameWellBore"^^xsd:string .
_:b11
sp:varName "dTimStart"^^xsd:string .
_:b12
sp:varName "statusInfo"^^xsd:string .
_:b8 sp:varName "forecast24Hr"^^xsd:string .
_:b13
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b9 sp:varName "dailyDrillingActivityURI"^^xsd:string .
_:b20
sp:varName "nameWellBore"^^xsd:string .
_:b22
sp:varName "nameWell"^^xsd:string .
_:b17
sp:varName "dTimStart"^^xsd:string .
_:b18
sp:varName "dTimEnd"^^xsd:string .
_:b16
sp:varName "createDate"^^xsd:string .
_:b23
sp:varName "normalizedWellBoreName"^^xsd:string .
_:b14
sp:varName "dailyDrillingReportURI"^^xsd:string .
_:b15
sp:varName "dailyDrillingActivityURI"^^xsd:string .
_:b19
sp:varName "normalizedWellBoreNameU"^^xsd:string .
_:b24
sp:varName "normalizedWellName"^^xsd:string .
_:b21
sp:varName "normalizedWellNameU"^^xsd:string .
_:b3 sp:varName "nameWellBore"^^xsd:string .
_:b4 sp:varName "dTimStart"^^xsd:string .
_:b5 sp:varName "statusInfo"^^xsd:string .
_:b6 sp:varName "dailyDrillingActivityURI"^^xsd:string .
_:b2 sp:varName "normalizedWellBoreNameU"^^xsd:string .
_:b1 sp:varName "md"^^xsd:string .
_:b7 sp:varName "normalizedWellBoreName"^^xsd:string .
......
# Saved by TopBraid on Tue Aug 02 17:04:28 BST 2011
# Saved by TopBraid on Wed Aug 03 07:44:47 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......@@ -13,7 +13,5 @@
[] rdf:type inference:Configuration ;
composite:child
[ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
<http://spinrdf.org/spin#topSPINOptions>
"singlePass" ;
composite:index "0"^^xsd:int
] .
......