David Price

Fixed NPD graph access in transforms - GRAPH keyword

This diff could not be displayed because it is too large.
...@@ -22,13 +22,13 @@ ...@@ -22,13 +22,13 @@
22 22
23 <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias> 23 <http://www.reportinghub.no/ep/transform/1.1/wellAndWellBoreAlias>
24 rdf:type owl:Ontology ; 24 rdf:type owl:Ontology ;
25 - owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.witsml.org/schemas/1series> ; 25 + owl:imports <http://www.witsml.org/schemas/1series> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://spinrdf.org/spin> ;
26 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 26 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
27 27
28 ddr:Obj_drillReport 28 ddr:Obj_drillReport
29 spin:rule 29 spin:rule
30 [ rdf:type sp:Construct ; 30 [ rdf:type sp:Construct ;
31 - rdfs:comment "STEP 150 Transfer Well aliases"^^xsd:string ; 31 + rdfs:comment "STEP 151 Transfer WellBore aliases"^^xsd:string ;
32 sp:templates ([ sp:object 32 sp:templates ([ sp:object
33 [ sp:varName "name"^^xsd:string 33 [ sp:varName "name"^^xsd:string
34 ] ; 34 ] ;
...@@ -36,7 +36,7 @@ ddr:Obj_drillReport ...@@ -36,7 +36,7 @@ ddr:Obj_drillReport
36 [ sp:varName "labelOfSystem"^^xsd:string 36 [ sp:varName "labelOfSystem"^^xsd:string
37 ] ; 37 ] ;
38 sp:subject 38 sp:subject
39 - [ sp:varName "well"^^xsd:string 39 + [ sp:varName "wellBore"^^xsd:string
40 ] 40 ]
41 ]) ; 41 ]) ;
42 sp:where ([ sp:object 42 sp:where ([ sp:object
...@@ -50,43 +50,46 @@ ddr:Obj_drillReport ...@@ -50,43 +50,46 @@ ddr:Obj_drillReport
50 sp:predicate ddr:dTimStart ; 50 sp:predicate ddr:dTimStart ;
51 sp:subject spin:_this 51 sp:subject spin:_this
52 ] [ sp:object 52 ] [ sp:object
53 - [ sp:varName "wellAlias"^^xsd:string 53 + [ sp:varName "wellBoreAlias"^^xsd:string
54 ] ; 54 ] ;
55 - sp:predicate ddr:wellAliasRef ; 55 + sp:predicate ddr:wellboreAliasRef ;
56 sp:subject spin:_this 56 sp:subject spin:_this
57 ] [ sp:object 57 ] [ sp:object
58 [ sp:varName "name"^^xsd:string 58 [ sp:varName "name"^^xsd:string
59 ] ; 59 ] ;
60 sp:predicate ddr:name ; 60 sp:predicate ddr:name ;
61 sp:subject 61 sp:subject
62 - [ sp:varName "wellAlias"^^xsd:string 62 + [ sp:varName "wellBoreAlias"^^xsd:string
63 ] 63 ]
64 ] [ sp:object 64 ] [ sp:object
65 [ sp:varName "namingSystem"^^xsd:string 65 [ sp:varName "namingSystem"^^xsd:string
66 ] ; 66 ] ;
67 sp:predicate ddr:namingSystemRef ; 67 sp:predicate ddr:namingSystemRef ;
68 sp:subject 68 sp:subject
69 - [ sp:varName "wellAlias"^^xsd:string 69 + [ sp:varName "wellBoreAlias"^^xsd:string
70 ] 70 ]
71 ] [ sp:object 71 ] [ sp:object
72 - [ sp:varName "temporalPartOfAWell"^^xsd:string 72 + [ sp:varName "temporalPartOfAWellBore"^^xsd:string
73 ] ; 73 ] ;
74 - sp:predicate ep-activity:onWell ; 74 + sp:predicate ep-activity:onWellBore ;
75 sp:subject 75 sp:subject
76 [ sp:varName "dailyDrillingActivity"^^xsd:string 76 [ sp:varName "dailyDrillingActivity"^^xsd:string
77 ] 77 ]
78 ] [ sp:object 78 ] [ sp:object
79 - [ sp:varName "well"^^xsd:string 79 + [ sp:varName "wellBore"^^xsd:string
80 ] ; 80 ] ;
81 sp:predicate ep-core:temporalPartOf ; 81 sp:predicate ep-core:temporalPartOf ;
82 sp:subject 82 sp:subject
83 - [ sp:varName "temporalPartOfAWell"^^xsd:string 83 + [ sp:varName "temporalPartOfAWellBore"^^xsd:string
84 - ]
85 - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
86 - sp:predicate rdf:type ;
87 - sp:subject
88 - [ sp:varName "well"^^xsd:string
89 ] 84 ]
85 + ] [ rdf:type sp:NamedGraph ;
86 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
87 + sp:predicate rdf:type ;
88 + sp:subject
89 + [ sp:varName "wellBore"^^xsd:string
90 + ]
91 + ]) ;
92 + sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
90 ] [ rdf:type sp:Bind ; 93 ] [ rdf:type sp:Bind ;
91 sp:expression 94 sp:expression
92 [ rdf:type ep-spin-lib:normalizeString ; 95 [ rdf:type ep-spin-lib:normalizeString ;
...@@ -120,7 +123,7 @@ ddr:Obj_drillReport ...@@ -120,7 +123,7 @@ ddr:Obj_drillReport
120 ] ; 123 ] ;
121 spin:rule 124 spin:rule
122 [ rdf:type sp:Construct ; 125 [ rdf:type sp:Construct ;
123 - rdfs:comment "STEP 151 Transfer WellBore aliases"^^xsd:string ; 126 + rdfs:comment "STEP 150 Transfer Well aliases"^^xsd:string ;
124 sp:templates ([ sp:object 127 sp:templates ([ sp:object
125 [ sp:varName "name"^^xsd:string 128 [ sp:varName "name"^^xsd:string
126 ] ; 129 ] ;
...@@ -128,7 +131,7 @@ ddr:Obj_drillReport ...@@ -128,7 +131,7 @@ ddr:Obj_drillReport
128 [ sp:varName "labelOfSystem"^^xsd:string 131 [ sp:varName "labelOfSystem"^^xsd:string
129 ] ; 132 ] ;
130 sp:subject 133 sp:subject
131 - [ sp:varName "wellBore"^^xsd:string 134 + [ sp:varName "well"^^xsd:string
132 ] 135 ]
133 ]) ; 136 ]) ;
134 sp:where ([ sp:object 137 sp:where ([ sp:object
...@@ -142,43 +145,46 @@ ddr:Obj_drillReport ...@@ -142,43 +145,46 @@ ddr:Obj_drillReport
142 sp:predicate ddr:dTimStart ; 145 sp:predicate ddr:dTimStart ;
143 sp:subject spin:_this 146 sp:subject spin:_this
144 ] [ sp:object 147 ] [ sp:object
145 - [ sp:varName "wellBoreAlias"^^xsd:string 148 + [ sp:varName "wellAlias"^^xsd:string
146 ] ; 149 ] ;
147 - sp:predicate ddr:wellboreAliasRef ; 150 + sp:predicate ddr:wellAliasRef ;
148 sp:subject spin:_this 151 sp:subject spin:_this
149 ] [ sp:object 152 ] [ sp:object
150 [ sp:varName "name"^^xsd:string 153 [ sp:varName "name"^^xsd:string
151 ] ; 154 ] ;
152 sp:predicate ddr:name ; 155 sp:predicate ddr:name ;
153 sp:subject 156 sp:subject
154 - [ sp:varName "wellBoreAlias"^^xsd:string 157 + [ sp:varName "wellAlias"^^xsd:string
155 ] 158 ]
156 ] [ sp:object 159 ] [ sp:object
157 [ sp:varName "namingSystem"^^xsd:string 160 [ sp:varName "namingSystem"^^xsd:string
158 ] ; 161 ] ;
159 sp:predicate ddr:namingSystemRef ; 162 sp:predicate ddr:namingSystemRef ;
160 sp:subject 163 sp:subject
161 - [ sp:varName "wellBoreAlias"^^xsd:string 164 + [ sp:varName "wellAlias"^^xsd:string
162 ] 165 ]
163 ] [ sp:object 166 ] [ sp:object
164 - [ sp:varName "temporalPartOfAWellBore"^^xsd:string 167 + [ sp:varName "temporalPartOfAWell"^^xsd:string
165 ] ; 168 ] ;
166 - sp:predicate ep-activity:onWellBore ; 169 + sp:predicate ep-activity:onWell ;
167 sp:subject 170 sp:subject
168 [ sp:varName "dailyDrillingActivity"^^xsd:string 171 [ sp:varName "dailyDrillingActivity"^^xsd:string
169 ] 172 ]
170 ] [ sp:object 173 ] [ sp:object
171 - [ sp:varName "wellBore"^^xsd:string 174 + [ sp:varName "well"^^xsd:string
172 ] ; 175 ] ;
173 sp:predicate ep-core:temporalPartOf ; 176 sp:predicate ep-core:temporalPartOf ;
174 sp:subject 177 sp:subject
175 - [ sp:varName "temporalPartOfAWellBore"^^xsd:string 178 + [ sp:varName "temporalPartOfAWell"^^xsd:string
176 - ]
177 - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
178 - sp:predicate rdf:type ;
179 - sp:subject
180 - [ sp:varName "wellBore"^^xsd:string
181 ] 179 ]
180 + ] [ rdf:type sp:NamedGraph ;
181 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ;
182 + sp:predicate rdf:type ;
183 + sp:subject
184 + [ sp:varName "well"^^xsd:string
185 + ]
186 + ]) ;
187 + sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
182 ] [ rdf:type sp:Bind ; 188 ] [ rdf:type sp:Bind ;
183 sp:expression 189 sp:expression
184 [ rdf:type ep-spin-lib:normalizeString ; 190 [ rdf:type ep-spin-lib:normalizeString ;
......
1 -# Saved by TopBraid on Sat Oct 15 12:48:13 BST 2011 1 +# baseURI: http://www.reportinghub.no/test/ddr/TEST_ddr-xml-ingest
2 -# baseURI: http://www.reportinghub.no/test/ddr/TEST_ddr-xml-ingest 2 +# imports: http://spinrdf.org/spin
3 -# imports: http://www.reportinghub.no/np/data/npd 3 +# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/collector
4 -# imports: http://spinrdf.org/spin 4 +
5 -# imports: http://www.reportinghub.no/ep/transform/1.1/ddr/collector 5 +@prefix : <http://www.reportinghub.no/test/ddr/TEST_ddr-xml-ingest#> .
6 - 6 +@prefix collector: <http://www.reportinghub.no/ep/transform/1.1/ddr/collector#> .
7 -@prefix : <http://www.reportinghub.no/test/ddr/TEST_ddr-xml-ingest#> . 7 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
8 -@prefix collector: <http://www.reportinghub.no/ep/transform/1.1/ddr/collector#> . 8 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
9 -@prefix owl: <http://www.w3.org/2002/07/owl#> . 9 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
10 -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 10 +@prefix sp: <http://spinrdf.org/sp#> .
11 -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 11 +@prefix spin: <http://spinrdf.org/spin#> .
12 -@prefix sp: <http://spinrdf.org/sp#> . 12 +@prefix spl: <http://spinrdf.org/spl#> .
13 -@prefix spin: <http://spinrdf.org/spin#> . 13 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
14 -@prefix spl: <http://spinrdf.org/spl#> . 14 +
15 -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 15 +<http://www.reportinghub.no/test/ddr/TEST_ddr-xml-ingest>
16 - 16 + rdf:type owl:Ontology ;
17 -<http://www.reportinghub.no/test/ddr/TEST_ddr-xml-ingest> 17 + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.1/ddr/collector> ;
18 - rdf:type owl:Ontology ; 18 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
19 - owl:imports <http://www.reportinghub.no/np/data/npd> , <http://www.reportinghub.no/ep/transform/1.1/ddr/collector> , <http://spinrdf.org/spin> ;
20 - owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
1 -# Saved by TopBraid on Sat Oct 15 12:48:13 BST 2011
2 # baseURI: null 1 # baseURI: null
3 2
4 @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . 3 @prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......