David Price

Fixed NPD graph access in transforms - GRAPH keyword

1 -# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport 1 +# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport
2 -# imports: http://spinrdf.org/spin 2 +# imports: http://spinrdf.org/spin
3 -# imports: http://www.energistics.org/schemas/abstract 3 +# imports: http://www.energistics.org/schemas/abstract
4 -# imports: http://www.reportinghub.no/ep/schema/1.0/activity 4 +# imports: http://www.reportinghub.no/ep/schema/1.0/activity
5 -# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose 5 +# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose
6 -# imports: http://www.reportinghub.no/ep/schema/1.0/core 6 +# imports: http://www.reportinghub.no/ep/schema/1.0/core
7 -# imports: http://www.reportinghub.no/ep/schema/1.0/equipment 7 +# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
8 -# imports: http://www.reportinghub.no/ep/schema/1.0/report 8 +# imports: http://www.reportinghub.no/ep/schema/1.0/report
9 -# imports: http://www.reportinghub.no/ep/schema/1.0/well 9 +# imports: http://www.reportinghub.no/ep/schema/1.0/well
10 -# imports: http://www.reportinghub.no/ep/spin/1.1/lib 10 +# imports: http://www.reportinghub.no/ep/spin/1.1/lib
11 -# imports: http://www.witsml.org/schemas/1series 11 +# imports: http://www.witsml.org/schemas/1series
12 - 12 +
13 -@prefix NPD_110721144611-valid: <file:///Sandbox/NPD_110721144611-valid.xml#> . 13 +@prefix NPD_110721144611-valid: <file:///Sandbox/NPD_110721144611-valid.xml#> .
14 -@prefix arg: <http://spinrdf.org/arg#> . 14 +@prefix arg: <http://spinrdf.org/arg#> .
15 -@prefix ddr: <http://www.witsml.org/schemas/1series#> . 15 +@prefix ddr: <http://www.witsml.org/schemas/1series#> .
16 -@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . 16 +@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
17 -@prefix owl: <http://www.w3.org/2002/07/owl#> . 17 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
18 -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 18 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
19 -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 19 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
20 -@prefix rhspin: <http://www.reportinghub.no/spin/rh#> . 20 +@prefix rhspin: <http://www.reportinghub.no/spin/rh#> .
21 -@prefix sp: <http://spinrdf.org/sp#> . 21 +@prefix sp: <http://spinrdf.org/sp#> .
22 -@prefix spin: <http://spinrdf.org/spin#> . 22 +@prefix spin: <http://spinrdf.org/spin#> .
23 -@prefix spl: <http://spinrdf.org/spl#> . 23 +@prefix spl: <http://spinrdf.org/spl#> .
24 -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 24 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
25 - 25 +
26 -<http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> 26 +<http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport>
27 - rdf:type owl:Ontology ; 27 + rdf:type owl:Ontology ;
28 - owl:imports <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.witsml.org/schemas/1series> , <http://www.energistics.org/schemas/abstract> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/report> ; 28 + owl:imports <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.witsml.org/schemas/1series> , <http://www.energistics.org/schemas/abstract> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/report> ;
29 - owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 29 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
30 - 30 +
31 -ddr:Obj_drillReport 31 +ddr:Obj_drillReport
32 - spin:rule 32 + spin:rule
33 - [ rdf:type sp:Construct ; 33 + [ rdf:type sp:Construct ;
34 - rdfs:comment """STEP 105 34 + rdfs:comment "STEP 106 Create Well Part"^^xsd:string ;
35 -Classify a DailyDrillingReport"""^^xsd:string ; 35 + sp:templates ([ sp:object _:b1 ;
36 - sp:templates ([ sp:object 36 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ;
37 - [ sp:varName "dailyDrillingReportType"^^xsd:string 37 + sp:subject
38 - ] ; 38 + [ sp:varName "dailyDrillingActivity"^^xsd:string
39 - sp:predicate rdf:type ; 39 + ]
40 - sp:subject 40 + ] [ sp:object
41 - [ sp:varName "dailyDrillingReport"^^xsd:string 41 + [ sp:varName "well"^^xsd:string
42 - ] 42 + ] ;
43 - ]) ; 43 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
44 - sp:where ([ sp:object 44 + sp:subject _:b1
45 - [ sp:varName "nameWellBore"^^xsd:string 45 + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWell> ;
46 - ] ; 46 + sp:predicate rdf:type ;
47 - sp:predicate ep-spin-lib:nameWellbore ; 47 + sp:subject _:b1
48 - sp:subject spin:_this 48 + ] [ sp:object
49 - ] [ sp:object 49 + [ sp:varName "wellBore"^^xsd:string
50 - [ sp:varName "createDate"^^xsd:string 50 + ] ;
51 - ] ; 51 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
52 - sp:predicate ddr:createDate ; 52 + sp:subject
53 - sp:subject spin:_this 53 + [ sp:varName "well"^^xsd:string
54 - ] [ sp:object 54 + ]
55 - [ sp:varName "versionKind"^^xsd:string 55 + ]) ;
56 - ] ; 56 + sp:where ([ sp:object
57 - sp:predicate ddr:versionKindRef ; 57 + [ sp:varName "nameWellBore"^^xsd:string
58 - sp:subject spin:_this 58 + ] ;
59 - ] [ rdf:type sp:Bind ; 59 + sp:predicate ep-spin-lib:nameWellbore ;
60 - sp:expression 60 + sp:subject spin:_this
61 - [ rdf:type ep-spin-lib:selectDailyDrillingReportType ; 61 + ] [ sp:object
62 - sp:arg1 [ sp:varName "versionKind"^^xsd:string 62 + [ sp:varName "nameWell"^^xsd:string
63 - ] 63 + ] ;
64 - ] ; 64 + sp:predicate ep-spin-lib:nameWell ;
65 - sp:variable 65 + sp:subject spin:_this
66 - [ sp:varName "dailyDrillingReportType"^^xsd:string 66 + ] [ sp:object
67 - ] 67 + [ sp:varName "dTimStart"^^xsd:string
68 - ] [ rdf:type sp:Bind ; 68 + ] ;
69 - sp:expression 69 + sp:predicate ddr:dTimStart ;
70 - [ rdf:type ep-spin-lib:normalizeString ; 70 + sp:subject spin:_this
71 - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string 71 + ] [ sp:object
72 - ] 72 + [ sp:varName "temporalPartOfAWellBore"^^xsd:string
73 - ] ; 73 + ] ;
74 - sp:variable 74 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
75 - [ sp:varName "normalizedWellBoreName"^^xsd:string 75 + sp:subject
76 - ] 76 + [ sp:varName "dailyDrillingActivity"^^xsd:string
77 - ] [ rdf:type sp:Bind ; 77 + ]
78 - sp:expression 78 + ] [ sp:object
79 - [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ; 79 + [ sp:varName "wellBore"^^xsd:string
80 - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string 80 + ] ;
81 - ] ; 81 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
82 - sp:arg2 [ sp:varName "createDate"^^xsd:string 82 + sp:subject
83 - ] 83 + [ sp:varName "temporalPartOfAWellBore"^^xsd:string
84 - ] ; 84 + ]
85 - sp:variable 85 + ] [ rdf:type sp:NamedGraph ;
86 - [ sp:varName "dailyDrillingReport"^^xsd:string 86 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
87 - ] 87 + sp:predicate rdf:type ;
88 - ]) 88 + sp:subject
89 - ] ; 89 + [ sp:varName "wellBore"^^xsd:string
90 - spin:rule 90 + ]
91 - [ rdf:type sp:Construct ; 91 + ] [ sp:object
92 + [ sp:varName "well"^^xsd:string
93 + ] ;
94 + sp:predicate <http://www.reportinghub.no/np/schema/npd#partOfWell> ;
95 + sp:subject
96 + [ sp:varName "wellBore"^^xsd:string
97 + ]
98 + ]) ;
99 + sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
100 + ] [ rdf:type sp:Bind ;
101 + sp:expression
102 + [ rdf:type ep-spin-lib:normalizeString ;
103 + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
104 + ]
105 + ] ;
106 + sp:variable
107 + [ sp:varName "normalizedWellBoreName"^^xsd:string
108 + ]
109 + ] [ rdf:type sp:Bind ;
110 + sp:expression
111 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
112 + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
113 + ] ;
114 + sp:arg2 [ sp:varName "dTimStart"^^xsd:string
115 + ]
116 + ] ;
117 + sp:variable
118 + [ sp:varName "dailyDrillingActivity"^^xsd:string
119 + ]
120 + ])
121 + ] ;
122 + spin:rule
123 + [ rdf:type sp:Construct ;
92 rdfs:comment """STEP 103 Create DailyDrillingReport, DailyDrillingActivity, and TemporalPartOfAWellBore 124 rdfs:comment """STEP 103 Create DailyDrillingReport, DailyDrillingActivity, and TemporalPartOfAWellBore
93 Minimum data - createDate, dTimStart, dTimEnd, nameWellBore 125 Minimum data - createDate, dTimStart, dTimEnd, nameWellBore
94 Optional data - extendedReport 126 Optional data - extendedReport
95 -replaced for testing - BIND (rhspin:wellBoreByName(?nameWellBore) AS ?wellBore) ."""^^xsd:string ; 127 +replaced for testing - BIND (rhspin:wellBoreByName(?nameWellBore) AS ?wellBore) ."""^^xsd:string ;
96 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> ; 128 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> ;
97 - sp:predicate rdf:type ; 129 + sp:predicate rdf:type ;
98 - sp:subject 130 + sp:subject
99 - [ sp:varName "dailyDrillingReport"^^xsd:string 131 + [ sp:varName "dailyDrillingReport"^^xsd:string
100 - ] 132 + ]
101 - ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivity> ; 133 + ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivity> ;
102 - sp:predicate rdf:type ; 134 + sp:predicate rdf:type ;
103 - sp:subject 135 + sp:subject
104 - [ sp:varName "dailyDrillingActivity"^^xsd:string 136 + [ sp:varName "dailyDrillingActivity"^^xsd:string
105 - ] 137 + ]
106 - ] [ sp:object 138 + ] [ sp:object
107 - [ sp:varName "dailyDrillingActivity"^^xsd:string 139 + [ sp:varName "dailyDrillingActivity"^^xsd:string
108 - ] ; 140 + ] ;
109 - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; 141 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
110 - sp:subject 142 + sp:subject
111 - [ sp:varName "dailyDrillingReport"^^xsd:string 143 + [ sp:varName "dailyDrillingReport"^^xsd:string
112 - ] 144 + ]
113 - ] [ sp:object 145 + ] [ sp:object
114 - [ sp:varName "createDate"^^xsd:string 146 + [ sp:varName "createDate"^^xsd:string
115 - ] ; 147 + ] ;
116 - sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ; 148 + sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ;
117 - sp:subject 149 + sp:subject
118 - [ sp:varName "dailyDrillingReport"^^xsd:string 150 + [ sp:varName "dailyDrillingReport"^^xsd:string
119 - ] 151 + ]
120 - ] [ sp:object 152 + ] [ sp:object
121 - [ sp:varName "dTimStart"^^xsd:string 153 + [ sp:varName "dTimStart"^^xsd:string
122 - ] ; 154 + ] ;
123 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 155 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
124 - sp:subject 156 + sp:subject
125 - [ sp:varName "dailyDrillingActivity"^^xsd:string 157 + [ sp:varName "dailyDrillingActivity"^^xsd:string
126 - ] 158 + ]
127 - ] [ sp:object 159 + ] [ sp:object
128 - [ sp:varName "dTimEnd"^^xsd:string 160 + [ sp:varName "dTimEnd"^^xsd:string
129 - ] ; 161 + ] ;
130 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 162 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
131 - sp:subject 163 + sp:subject
132 - [ sp:varName "dailyDrillingActivity"^^xsd:string 164 + [ sp:varName "dailyDrillingActivity"^^xsd:string
133 - ] 165 + ]
134 - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ; 166 + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ;
135 - sp:predicate rdf:type ; 167 + sp:predicate rdf:type ;
136 - sp:subject 168 + sp:subject
137 - [ sp:varName "temporalPartOfAWellBore"^^xsd:string 169 + [ sp:varName "temporalPartOfAWellBore"^^xsd:string
138 - ] 170 + ]
139 - ] [ sp:object 171 + ] [ sp:object
140 - [ sp:varName "wellBore"^^xsd:string 172 + [ sp:varName "wellBore"^^xsd:string
141 - ] ; 173 + ] ;
142 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 174 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
143 - sp:subject 175 + sp:subject
144 - [ sp:varName "temporalPartOfAWellBore"^^xsd:string 176 + [ sp:varName "temporalPartOfAWellBore"^^xsd:string
145 - ] 177 + ]
146 - ] [ sp:object 178 + ] [ sp:object
147 - [ sp:varName "temporalPartOfAWellBore"^^xsd:string 179 + [ sp:varName "temporalPartOfAWellBore"^^xsd:string
148 - ] ; 180 + ] ;
149 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; 181 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
150 - sp:subject 182 + sp:subject
151 - [ sp:varName "dailyDrillingActivity"^^xsd:string 183 + [ sp:varName "dailyDrillingActivity"^^xsd:string
152 - ] 184 + ]
153 - ] [ sp:object _:b1 ; 185 + ] [ sp:object _:b2 ;
154 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#descriptionOfActivitiesFollowingTheDailyReportingPeriod> ; 186 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#descriptionOfActivitiesFollowingTheDailyReportingPeriod> ;
155 - sp:subject 187 + sp:subject
156 - [ sp:varName "dailyDrillingActivity"^^xsd:string 188 + [ sp:varName "dailyDrillingActivity"^^xsd:string
157 - ] 189 + ]
158 - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#Report> ; 190 + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#Report> ;
159 - sp:predicate rdf:type ; 191 + sp:predicate rdf:type ;
160 - sp:subject _:b1 192 + sp:subject _:b2
161 - ] [ sp:object 193 + ] [ sp:object
162 - [ sp:varName "extendedReportContent"^^xsd:string 194 + [ sp:varName "extendedReportContent"^^xsd:string
163 - ] ; 195 + ] ;
164 - sp:predicate <http://www.reportinghub.no/ep/schema/report#hasContent> ; 196 + sp:predicate <http://www.reportinghub.no/ep/schema/report#hasContent> ;
165 - sp:subject _:b1 197 + sp:subject _:b2
166 - ] [ sp:object 198 + ] [ sp:object
167 - [ sp:varName "dTimExtendedReport"^^xsd:string 199 + [ sp:varName "dTimExtendedReport"^^xsd:string
168 - ] ; 200 + ] ;
169 - sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ; 201 + sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ;
170 - sp:subject _:b1 202 + sp:subject _:b2
171 - ]) ; 203 + ]) ;
172 - sp:where ([ sp:object 204 + sp:where ([ sp:object
173 - [ sp:varName "nameWellBore"^^xsd:string 205 + [ sp:varName "nameWellBore"^^xsd:string
174 - ] ; 206 + ] ;
175 - sp:predicate ep-spin-lib:nameWellbore ; 207 + sp:predicate ep-spin-lib:nameWellbore ;
176 - sp:subject spin:_this 208 + sp:subject spin:_this
177 - ] [ sp:object 209 + ] [ sp:object
178 - [ sp:varName "dTimStart"^^xsd:string 210 + [ sp:varName "dTimStart"^^xsd:string
179 - ] ; 211 + ] ;
180 - sp:predicate ddr:dTimStart ; 212 + sp:predicate ddr:dTimStart ;
181 - sp:subject spin:_this 213 + sp:subject spin:_this
182 - ] [ sp:object 214 + ] [ sp:object
183 - [ sp:varName "dTimEnd"^^xsd:string 215 + [ sp:varName "dTimEnd"^^xsd:string
184 - ] ; 216 + ] ;
185 - sp:predicate ddr:dTimEnd ; 217 + sp:predicate ddr:dTimEnd ;
186 - sp:subject spin:_this 218 + sp:subject spin:_this
187 - ] [ sp:object 219 + ] [ sp:object
188 - [ sp:varName "createDate"^^xsd:string 220 + [ sp:varName "createDate"^^xsd:string
189 - ] ; 221 + ] ;
190 - sp:predicate ddr:createDate ; 222 + sp:predicate ddr:createDate ;
191 - sp:subject spin:_this 223 + sp:subject spin:_this
192 - ] [ rdf:type sp:Optional ; 224 + ] [ rdf:type sp:Optional ;
193 - sp:elements ([ sp:object 225 + sp:elements ([ sp:object
194 - [ sp:varName "extendedReport"^^xsd:string 226 + [ sp:varName "extendedReport"^^xsd:string
195 - ] ; 227 + ] ;
196 - sp:predicate ddr:extendedReportRef ; 228 + sp:predicate ddr:extendedReportRef ;
197 - sp:subject spin:_this 229 + sp:subject spin:_this
198 - ] [ sp:object 230 + ] [ sp:object
199 - [ sp:varName "extendedReportContent"^^xsd:string 231 + [ sp:varName "extendedReportContent"^^xsd:string
200 - ] ; 232 + ] ;
201 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 233 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
202 - sp:subject 234 + sp:subject
203 - [ sp:varName "extendedReport"^^xsd:string 235 + [ sp:varName "extendedReport"^^xsd:string
204 - ] 236 + ]
205 - ] [ rdf:type sp:Optional ; 237 + ] [ rdf:type sp:Optional ;
206 - sp:elements ([ sp:object 238 + sp:elements ([ sp:object
207 - [ sp:varName "dTimExtendedReport"^^xsd:string 239 + [ sp:varName "dTimExtendedReport"^^xsd:string
208 - ] ; 240 + ] ;
209 - sp:predicate ddr:dTim ; 241 + sp:predicate ddr:dTim ;
210 - sp:subject 242 + sp:subject
211 - [ sp:varName "extendedReport"^^xsd:string 243 + [ sp:varName "extendedReport"^^xsd:string
212 - ] 244 + ]
213 - ]) 245 + ])
214 - ]) 246 + ])
215 - ] [ rdf:type sp:Bind ; 247 + ] [ rdf:type sp:Bind ;
216 - sp:expression 248 + sp:expression
217 - [ rdf:type ep-spin-lib:normalizeString ; 249 + [ rdf:type ep-spin-lib:normalizeString ;
218 - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string 250 + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
219 - ] 251 + ]
220 - ] ; 252 + ] ;
221 - sp:variable 253 + sp:variable
222 - [ sp:varName "normalizedWellBoreName"^^xsd:string 254 + [ sp:varName "normalizedWellBoreName"^^xsd:string
223 - ] 255 + ]
224 - ] [ rdf:type sp:Bind ; 256 + ] [ rdf:type sp:Bind ;
225 - sp:expression 257 + sp:expression
226 - [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ; 258 + [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
227 - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string 259 + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
228 - ] ; 260 + ] ;
229 - sp:arg2 [ sp:varName "createDate"^^xsd:string 261 + sp:arg2 [ sp:varName "createDate"^^xsd:string
230 - ] 262 + ]
231 - ] ; 263 + ] ;
232 - sp:variable 264 + sp:variable
233 - [ sp:varName "dailyDrillingReport"^^xsd:string 265 + [ sp:varName "dailyDrillingReport"^^xsd:string
234 - ] 266 + ]
235 - ] [ rdf:type sp:Bind ; 267 + ] [ rdf:type sp:Bind ;
236 - sp:expression 268 + sp:expression
237 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 269 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
238 - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string 270 + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
239 - ] ; 271 + ] ;
240 - sp:arg2 [ sp:varName "dTimStart"^^xsd:string 272 + sp:arg2 [ sp:varName "dTimStart"^^xsd:string
241 - ] 273 + ]
242 - ] ; 274 + ] ;
243 - sp:variable 275 + sp:variable
244 - [ sp:varName "dailyDrillingActivity"^^xsd:string 276 + [ sp:varName "dailyDrillingActivity"^^xsd:string
245 - ] 277 + ]
246 - ] [ rdf:type sp:Bind ; 278 + ] [ rdf:type sp:Bind ;
247 - sp:expression 279 + sp:expression
248 - [ rdf:type ep-spin-lib:buildTemporalPartOfAWellBoreURI ; 280 + [ rdf:type ep-spin-lib:buildTemporalPartOfAWellBoreURI ;
249 - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string 281 + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
250 - ] ; 282 + ] ;
251 - sp:arg2 [ sp:varName "dTimStart"^^xsd:string 283 + sp:arg2 [ sp:varName "dTimStart"^^xsd:string
252 - ] ; 284 + ] ;
253 - sp:arg3 [ sp:varName "dTimEnd"^^xsd:string 285 + sp:arg3 [ sp:varName "dTimEnd"^^xsd:string
254 - ] 286 + ]
255 - ] ; 287 + ] ;
256 - sp:variable 288 + sp:variable
257 - [ sp:varName "temporalPartOfAWellBore"^^xsd:string 289 + [ sp:varName "temporalPartOfAWellBore"^^xsd:string
258 - ] 290 + ]
259 - ] [ rdf:type sp:Bind ; 291 + ] [ rdf:type sp:Bind ;
260 - sp:expression 292 + sp:expression
261 - [ rdf:type rhspin:wellBoreByName ; 293 + [ rdf:type rhspin:wellBoreByName ;
262 - arg:wellBoreName 294 + arg:wellBoreName
263 - [ rdf:type xsd:string ; 295 + [ rdf:type xsd:string ;
264 - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string 296 + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
265 - ] 297 + ]
266 - ] 298 + ]
267 - ] ; 299 + ] ;
268 - sp:variable 300 + sp:variable
269 - [ sp:varName "wellBore"^^xsd:string 301 + [ sp:varName "wellBore"^^xsd:string
270 - ] 302 + ]
271 - ]) 303 + ])
272 - ] ; 304 + ] ;
273 - spin:rule 305 + spin:rule
274 - [ rdf:type sp:Construct ; 306 + [ rdf:type sp:Construct ;
275 - rdfs:comment "STEP 106 Create Well Part"^^xsd:string ; 307 + rdfs:comment """STEP 105
276 - sp:templates ([ sp:object _:b2 ; 308 +Classify a DailyDrillingReport"""^^xsd:string ;
277 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ; 309 + sp:templates ([ sp:object
278 - sp:subject 310 + [ sp:varName "dailyDrillingReportType"^^xsd:string
279 - [ sp:varName "dailyDrillingActivity"^^xsd:string 311 + ] ;
280 - ] 312 + sp:predicate rdf:type ;
281 - ] [ sp:object 313 + sp:subject
282 - [ sp:varName "well"^^xsd:string 314 + [ sp:varName "dailyDrillingReport"^^xsd:string
283 - ] ; 315 + ]
284 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 316 + ]) ;
285 - sp:subject _:b2 317 + sp:where ([ sp:object
286 - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWell> ; 318 + [ sp:varName "nameWellBore"^^xsd:string
287 - sp:predicate rdf:type ; 319 + ] ;
288 - sp:subject _:b2 320 + sp:predicate ep-spin-lib:nameWellbore ;
289 - ] [ sp:object 321 + sp:subject spin:_this
290 - [ sp:varName "wellBore"^^xsd:string 322 + ] [ sp:object
291 - ] ; 323 + [ sp:varName "createDate"^^xsd:string
292 - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; 324 + ] ;
293 - sp:subject 325 + sp:predicate ddr:createDate ;
294 - [ sp:varName "well"^^xsd:string 326 + sp:subject spin:_this
295 - ] 327 + ] [ sp:object
296 - ]) ; 328 + [ sp:varName "versionKind"^^xsd:string
297 - sp:where ([ sp:object 329 + ] ;
298 - [ sp:varName "nameWellBore"^^xsd:string 330 + sp:predicate ddr:versionKindRef ;
299 - ] ; 331 + sp:subject spin:_this
300 - sp:predicate ep-spin-lib:nameWellbore ; 332 + ] [ rdf:type sp:Bind ;
301 - sp:subject spin:_this 333 + sp:expression
302 - ] [ sp:object 334 + [ rdf:type ep-spin-lib:selectDailyDrillingReportType ;
303 - [ sp:varName "nameWell"^^xsd:string 335 + sp:arg1 [ sp:varName "versionKind"^^xsd:string
304 - ] ; 336 + ]
305 - sp:predicate ep-spin-lib:nameWell ; 337 + ] ;
306 - sp:subject spin:_this 338 + sp:variable
307 - ] [ sp:object 339 + [ sp:varName "dailyDrillingReportType"^^xsd:string
308 - [ sp:varName "dTimStart"^^xsd:string 340 + ]
309 - ] ; 341 + ] [ rdf:type sp:Bind ;
310 - sp:predicate ddr:dTimStart ; 342 + sp:expression
311 - sp:subject spin:_this 343 + [ rdf:type ep-spin-lib:normalizeString ;
312 - ] [ sp:object 344 + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
313 - [ sp:varName "temporalPartOfAWellBore"^^xsd:string 345 + ]
314 - ] ; 346 + ] ;
315 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; 347 + sp:variable
316 - sp:subject 348 + [ sp:varName "normalizedWellBoreName"^^xsd:string
317 - [ sp:varName "dailyDrillingActivity"^^xsd:string 349 + ]
318 - ] 350 + ] [ rdf:type sp:Bind ;
319 - ] [ sp:object 351 + sp:expression
320 - [ sp:varName "wellBore"^^xsd:string 352 + [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ;
321 - ] ; 353 + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
322 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 354 + ] ;
323 - sp:subject 355 + sp:arg2 [ sp:varName "createDate"^^xsd:string
324 - [ sp:varName "temporalPartOfAWellBore"^^xsd:string 356 + ]
325 - ] 357 + ] ;
326 - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; 358 + sp:variable
327 - sp:predicate rdf:type ; 359 + [ sp:varName "dailyDrillingReport"^^xsd:string
328 - sp:subject 360 + ]
329 - [ sp:varName "wellBore"^^xsd:string 361 + ])
330 - ] 362 + ] .
331 - ] [ sp:object
332 - [ sp:varName "well"^^xsd:string
333 - ] ;
334 - sp:predicate <http://www.reportinghub.no/np/schema/npd#partOfWell> ;
335 - sp:subject
336 - [ sp:varName "wellBore"^^xsd:string
337 - ]
338 - ] [ rdf:type sp:Bind ;
339 - sp:expression
340 - [ rdf:type ep-spin-lib:normalizeString ;
341 - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
342 - ]
343 - ] ;
344 - sp:variable
345 - [ sp:varName "normalizedWellBoreName"^^xsd:string
346 - ]
347 - ] [ rdf:type sp:Bind ;
348 - sp:expression
349 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
350 - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
351 - ] ;
352 - sp:arg2 [ sp:varName "dTimStart"^^xsd:string
353 - ]
354 - ] ;
355 - sp:variable
356 - [ sp:varName "dailyDrillingActivity"^^xsd:string
357 - ]
358 - ])
359 - ] .
......
1 -# Saved by TopBraid on Fri Oct 28 14:50:19 BST 2011 1 +# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/lithShowInfo
2 -# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/lithShowInfo 2 +# imports: http://spinrdf.org/spin
3 -# imports: http://www.witsml.org/schemas/1series 3 +# imports: http://www.reportinghub.no/ep/schema/1.0/activity
4 -# imports: http://www.reportinghub.no/ep/schema/1.0/core 4 +# imports: http://www.reportinghub.no/ep/schema/1.0/core
5 -# imports: http://www.reportinghub.no/ep/schema/1.0/activity 5 +# imports: http://www.reportinghub.no/ep/spin/1.1/lib
6 -# imports: http://spinrdf.org/spin 6 +
7 - 7 +@prefix : <http://www.reportinghub.no/ep/transform/1.1/ddr/lithShowInfo#> .
8 -@prefix : <http://www.reportinghub.no/ep/transform/1.1/ddr/lithShowInfo#> . 8 +@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
9 -@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . 9 +@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
10 -@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . 10 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
11 -@prefix owl: <http://www.w3.org/2002/07/owl#> . 11 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
12 -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 12 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
13 -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 13 +@prefix rhspin: <http://www.reportinghub.no/spin/rh#> .
14 -@prefix rhspin: <http://www.reportinghub.no/spin/rh#> . 14 +@prefix sp: <http://spinrdf.org/sp#> .
15 -@prefix sp: <http://spinrdf.org/sp#> . 15 +@prefix spin: <http://spinrdf.org/spin#> .
16 -@prefix spin: <http://spinrdf.org/spin#> . 16 +@prefix spl: <http://spinrdf.org/spl#> .
17 -@prefix spl: <http://spinrdf.org/spl#> . 17 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
18 -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 18 +
19 - 19 +<http://www.reportinghub.no/ep/transform/1.1/ddr/lithShowInfo>
20 -<http://www.reportinghub.no/ep/transform/1.1/ddr/lithShowInfo> 20 + rdf:type owl:Ontology ;
21 - rdf:type owl:Ontology ; 21 + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/spin/1.1/lib> ;
22 - owl:imports <http://www.witsml.org/schemas/1series> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://spinrdf.org/spin> ; 22 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
23 - owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 23 +
24 - 24 +<http://www.witsml.org/schemas/1series#Obj_drillReport>
25 -<http://www.witsml.org/schemas/1series#Obj_drillReport> 25 + spin:rule
26 - spin:rule 26 + [ rdf:type sp:Construct ;
27 - [ rdf:type sp:Construct ; 27 + rdfs:comment "STEP 200 Create a Lithology and shows observation activity"^^xsd:string ;
28 - rdfs:comment "STEP 200 Create a Lithology and shows observation activity"^^xsd:string ; 28 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#LithologyAndShowsObservation> ;
29 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#LithologyAndShowsObservation> ; 29 + sp:predicate rdf:type ;
30 - sp:predicate rdf:type ; 30 + sp:subject _:b1
31 - sp:subject _:b1 31 + ] [ sp:object _:b1 ;
32 - ] [ sp:object _:b1 ; 32 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
33 - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; 33 + sp:subject _:b2
34 - sp:subject _:b2 34 + ] [ sp:object _:b3 ;
35 - ] [ sp:object _:b3 ; 35 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
36 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; 36 + sp:subject _:b1
37 - sp:subject _:b1 37 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#PhysicalObject> ;
38 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#PhysicalObject> ; 38 + sp:predicate rdf:type ;
39 - sp:predicate rdf:type ; 39 + sp:subject _:b3
40 - sp:subject _:b3 40 + ] [ sp:object _:b4 ;
41 - ] [ sp:object _:b4 ; 41 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
42 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 42 + sp:subject _:b3
43 - sp:subject _:b3 43 + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBoreSection> ;
44 - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBoreSection> ; 44 + sp:predicate rdf:type ;
45 - sp:predicate rdf:type ; 45 + sp:subject _:b4
46 - sp:subject _:b4 46 + ] [ sp:object _:b5 ;
47 - ] [ sp:object _:b5 ; 47 + sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
48 - sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; 48 + sp:subject _:b4
49 - sp:subject _:b4 49 + ] [ sp:object _:b6 ;
50 - ] [ sp:object _:b6 ; 50 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
51 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 51 + sp:subject _:b1
52 - sp:subject _:b1 52 + ] [ sp:object _:b4 ;
53 - ] [ sp:object _:b4 ; 53 + sp:predicate <http://www.reportinghub.no/ep/schema/well#measuredDepthToTheTopOfAPartOfAWellBore> ;
54 - sp:predicate <http://www.reportinghub.no/ep/schema/well#measuredDepthToTheTopOfAPartOfAWellBore> ; 54 + sp:subject _:b4
55 - sp:subject _:b4 55 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
56 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ; 56 + sp:predicate rdf:type ;
57 - sp:predicate rdf:type ; 57 + sp:subject _:b4
58 - sp:subject _:b4 58 + ] [ sp:object _:b7 ;
59 - ] [ sp:object _:b7 ; 59 + sp:predicate _:b8 ;
60 - sp:predicate _:b8 ; 60 + sp:subject _:b4
61 - sp:subject _:b4 61 + ] [ sp:object _:b9 ;
62 - ] [ sp:object _:b9 ; 62 + sp:predicate <http://www.reportinghub.no/ep/schema/well#measuredDepthToTheBottomOfAPartOfAWellBore> ;
63 - sp:predicate <http://www.reportinghub.no/ep/schema/well#measuredDepthToTheBottomOfAPartOfAWellBore> ; 63 + sp:subject _:b4
64 - sp:subject _:b4 64 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
65 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ; 65 + sp:predicate rdf:type ;
66 - sp:predicate rdf:type ; 66 + sp:subject _:b9
67 - sp:subject _:b9 67 + ] [ sp:object _:b10 ;
68 - ] [ sp:object _:b10 ; 68 + sp:predicate _:b11 ;
69 - sp:predicate _:b11 ; 69 + sp:subject _:b9
70 - sp:subject _:b9 70 + ] [ sp:object _:b12 ;
71 - ] [ sp:object _:b12 ; 71 + sp:predicate <http://www.reportinghub.no/ep/schema/well#trueVerticalDepthToTheTopOfAPartOfAWellBore> ;
72 - sp:predicate <http://www.reportinghub.no/ep/schema/well#trueVerticalDepthToTheTopOfAPartOfAWellBore> ; 72 + sp:subject _:b4
73 - sp:subject _:b4 73 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
74 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ; 74 + sp:predicate rdf:type ;
75 - sp:predicate rdf:type ; 75 + sp:subject _:b12
76 - sp:subject _:b12 76 + ] [ sp:object _:b13 ;
77 - ] [ sp:object _:b13 ; 77 + sp:predicate _:b14 ;
78 - sp:predicate _:b14 ; 78 + sp:subject _:b12
79 - sp:subject _:b12 79 + ] [ sp:object _:b15 ;
80 - ] [ sp:object _:b15 ; 80 + sp:predicate <http://www.reportinghub.no/ep/schema/well#trueVerticalDepthToTheBottomOfAPartOfAWellBore> ;
81 - sp:predicate <http://www.reportinghub.no/ep/schema/well#trueVerticalDepthToTheBottomOfAPartOfAWellBore> ; 81 + sp:subject _:b4
82 - sp:subject _:b4 82 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
83 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ; 83 + sp:predicate rdf:type ;
84 - sp:predicate rdf:type ; 84 + sp:subject _:b15
85 - sp:subject _:b15 85 + ] [ sp:object _:b16 ;
86 - ] [ sp:object _:b16 ; 86 + sp:predicate _:b17 ;
87 - sp:predicate _:b17 ; 87 + sp:subject _:b15
88 - sp:subject _:b15 88 + ] [ sp:object _:b18 ;
89 - ] [ sp:object _:b18 ; 89 + sp:predicate <http://www.reportinghub.no/ep/schema/well#showDescription> ;
90 - sp:predicate <http://www.reportinghub.no/ep/schema/well#showDescription> ; 90 + sp:subject _:b3
91 - sp:subject _:b3 91 + ] [ sp:object _:b19 ;
92 - ] [ sp:object _:b19 ; 92 + sp:predicate <http://www.reportinghub.no/ep/schema/well#lithologyDescription> ;
93 - sp:predicate <http://www.reportinghub.no/ep/schema/well#lithologyDescription> ; 93 + sp:subject _:b3
94 - sp:subject _:b3 94 + ]) ;
95 - ]) ; 95 + sp:where ([ sp:object _:b20 ;
96 - sp:where ([ sp:object _:b20 ; 96 + sp:predicate ep-spin-lib:nameWellbore ;
97 - sp:predicate ep-spin-lib:nameWellbore ; 97 + sp:subject spin:_this
98 - sp:subject spin:_this 98 + ] [ sp:object _:b21 ;
99 - ] [ sp:object _:b21 ; 99 + sp:predicate <http://www.witsml.org/schemas/1series#dTimStart> ;
100 - sp:predicate <http://www.witsml.org/schemas/1series#dTimStart> ; 100 + sp:subject spin:_this
101 - sp:subject spin:_this 101 + ] [ sp:object _:b22 ;
102 - ] [ sp:object _:b22 ; 102 + sp:predicate <http://www.witsml.org/schemas/1series#lithShowInfoRef> ;
103 - sp:predicate <http://www.witsml.org/schemas/1series#lithShowInfoRef> ; 103 + sp:subject spin:_this
104 - sp:subject spin:_this 104 + ] [ sp:object _:b6 ;
105 - ] [ sp:object _:b6 ; 105 + sp:predicate <http://www.witsml.org/schemas/1series#dTim> ;
106 - sp:predicate <http://www.witsml.org/schemas/1series#dTim> ; 106 + sp:subject _:b22
107 - sp:subject _:b22 107 + ] [ sp:object _:b23 ;
108 - ] [ sp:object _:b23 ; 108 + sp:predicate <http://www.witsml.org/schemas/1series#mdTopRef> ;
109 - sp:predicate <http://www.witsml.org/schemas/1series#mdTopRef> ; 109 + sp:subject _:b22
110 - sp:subject _:b22 110 + ] [ sp:object _:b24 ;
111 - ] [ sp:object _:b24 ; 111 + sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
112 - sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ; 112 + sp:subject _:b23
113 - sp:subject _:b23 113 + ] [ sp:object _:b7 ;
114 - ] [ sp:object _:b7 ; 114 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
115 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 115 + sp:subject _:b23
116 - sp:subject _:b23 116 + ] [ sp:object _:b25 ;
117 - ] [ sp:object _:b25 ; 117 + sp:predicate <http://www.witsml.org/schemas/1series#mdBottomRef> ;
118 - sp:predicate <http://www.witsml.org/schemas/1series#mdBottomRef> ; 118 + sp:subject _:b22
119 - sp:subject _:b22 119 + ] [ sp:object _:b26 ;
120 - ] [ sp:object _:b26 ; 120 + sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
121 - sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ; 121 + sp:subject _:b25
122 - sp:subject _:b25 122 + ] [ sp:object _:b10 ;
123 - ] [ sp:object _:b10 ; 123 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
124 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 124 + sp:subject _:b25
125 - sp:subject _:b25 125 + ] [ rdf:type sp:Optional ;
126 - ] [ rdf:type sp:Optional ; 126 + sp:elements ([ sp:object _:b27 ;
127 - sp:elements ([ sp:object _:b27 ; 127 + sp:predicate <http://www.witsml.org/schemas/1series#tvdTopRef> ;
128 - sp:predicate <http://www.witsml.org/schemas/1series#tvdTopRef> ; 128 + sp:subject _:b22
129 - sp:subject _:b22 129 + ] [ sp:object _:b28 ;
130 - ] [ sp:object _:b28 ; 130 + sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
131 - sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ; 131 + sp:subject _:b27
132 - sp:subject _:b27 132 + ] [ sp:object _:b13 ;
133 - ] [ sp:object _:b13 ; 133 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
134 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 134 + sp:subject _:b27
135 - sp:subject _:b27 135 + ])
136 - ]) 136 + ] [ rdf:type sp:Optional ;
137 - ] [ rdf:type sp:Optional ; 137 + sp:elements ([ sp:object _:b29 ;
138 - sp:elements ([ sp:object _:b29 ; 138 + sp:predicate <http://www.witsml.org/schemas/1series#tvdBottomRef> ;
139 - sp:predicate <http://www.witsml.org/schemas/1series#tvdBottomRef> ; 139 + sp:subject _:b22
140 - sp:subject _:b22 140 + ] [ sp:object _:b30 ;
141 - ] [ sp:object _:b30 ; 141 + sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
142 - sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ; 142 + sp:subject _:b29
143 - sp:subject _:b29 143 + ] [ sp:object _:b16 ;
144 - ] [ sp:object _:b16 ; 144 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
145 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 145 + sp:subject _:b29
146 - sp:subject _:b29 146 + ])
147 - ]) 147 + ] [ rdf:type sp:Optional ;
148 - ] [ rdf:type sp:Optional ; 148 + sp:elements ([ sp:object _:b18 ;
149 - sp:elements ([ sp:object _:b18 ; 149 + sp:predicate <http://www.witsml.org/schemas/1series#show> ;
150 - sp:predicate <http://www.witsml.org/schemas/1series#show> ; 150 + sp:subject _:b22
151 - sp:subject _:b22 151 + ])
152 - ]) 152 + ] [ rdf:type sp:Optional ;
153 - ] [ rdf:type sp:Optional ; 153 + sp:elements ([ sp:object _:b19 ;
154 - sp:elements ([ sp:object _:b19 ; 154 + sp:predicate <http://www.witsml.org/schemas/1series#lithology> ;
155 - sp:predicate <http://www.witsml.org/schemas/1series#lithology> ; 155 + sp:subject _:b22
156 - sp:subject _:b22 156 + ])
157 - ]) 157 + ] [ rdf:type sp:Bind ;
158 - ] [ rdf:type sp:Bind ; 158 + sp:expression
159 - sp:expression 159 + [ rdf:type ep-spin-lib:normalizeString ;
160 - [ rdf:type ep-spin-lib:normalizeString ; 160 + sp:arg1 _:b20
161 - sp:arg1 _:b20 161 + ] ;
162 - ] ; 162 + sp:variable _:b31
163 - sp:variable _:b31 163 + ] [ rdf:type sp:Bind ;
164 - ] [ rdf:type sp:Bind ; 164 + sp:expression
165 - sp:expression 165 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
166 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 166 + sp:arg1 _:b31 ;
167 - sp:arg1 _:b31 ; 167 + sp:arg2 _:b21
168 - sp:arg2 _:b21 168 + ] ;
169 - ] ; 169 + sp:variable _:b2
170 - sp:variable _:b2 170 + ] [ rdf:type sp:Bind ;
171 - ] [ rdf:type sp:Bind ; 171 + sp:expression
172 - sp:expression 172 + [ rdf:type afn:localname ;
173 - [ rdf:type afn:localname ; 173 + sp:arg1 _:b22
174 - sp:arg1 _:b22 174 + ] ;
175 - ] ; 175 + sp:variable _:b32
176 - sp:variable _:b32 176 + ] [ rdf:type sp:Bind ;
177 - ] [ rdf:type sp:Bind ; 177 + sp:expression
178 - sp:expression 178 + [ rdf:type ep-spin-lib:buildLithShowObservationURI ;
179 - [ rdf:type ep-spin-lib:buildLithShowObservationURI ; 179 + sp:arg1 _:b31 ;
180 - sp:arg1 _:b31 ; 180 + sp:arg2 _:b21 ;
181 - sp:arg2 _:b21 ; 181 + sp:arg3 _:b32
182 - sp:arg3 _:b32 182 + ] ;
183 - ] ; 183 + sp:variable _:b1
184 - sp:variable _:b1 184 + ] [ rdf:type sp:Bind ;
185 - ] [ rdf:type sp:Bind ; 185 + sp:expression
186 - sp:expression 186 + [ rdf:type ep-spin-lib:selectLengthScale ;
187 - [ rdf:type ep-spin-lib:selectLengthScale ; 187 + sp:arg1 _:b24
188 - sp:arg1 _:b24 188 + ] ;
189 - ] ; 189 + sp:variable _:b8
190 - sp:variable _:b8 190 + ] [ rdf:type sp:Bind ;
191 - ] [ rdf:type sp:Bind ; 191 + sp:expression
192 - sp:expression 192 + [ rdf:type ep-spin-lib:selectLengthScale ;
193 - [ rdf:type ep-spin-lib:selectLengthScale ; 193 + sp:arg1 _:b28
194 - sp:arg1 _:b28 194 + ] ;
195 - ] ; 195 + sp:variable _:b14
196 - sp:variable _:b14 196 + ] [ rdf:type sp:Bind ;
197 - ] [ rdf:type sp:Bind ; 197 + sp:expression
198 - sp:expression 198 + [ rdf:type ep-spin-lib:selectLengthScale ;
199 - [ rdf:type ep-spin-lib:selectLengthScale ; 199 + sp:arg1 _:b26
200 - sp:arg1 _:b26 200 + ] ;
201 - ] ; 201 + sp:variable _:b11
202 - sp:variable _:b11 202 + ] [ rdf:type sp:Bind ;
203 - ] [ rdf:type sp:Bind ; 203 + sp:expression
204 - sp:expression 204 + [ rdf:type ep-spin-lib:selectLengthScale ;
205 - [ rdf:type ep-spin-lib:selectLengthScale ; 205 + sp:arg1 _:b30
206 - sp:arg1 _:b30 206 + ] ;
207 - ] ; 207 + sp:variable _:b17
208 - sp:variable _:b17 208 + ] [ rdf:type sp:Bind ;
209 - ] [ rdf:type sp:Bind ; 209 + sp:expression
210 - sp:expression 210 + [ rdf:type rhspin:wellBoreByName ;
211 - [ rdf:type rhspin:wellBoreByName ; 211 + sp:arg1 [ rdf:type xsd:string ;
212 - sp:arg1 [ rdf:type xsd:string ; 212 + sp:arg1 _:b20
213 - sp:arg1 _:b20 213 + ]
214 - ] 214 + ] ;
215 - ] ; 215 + sp:variable _:b5
216 - sp:variable _:b5 216 + ])
217 - ]) 217 + ] .
218 - ] . 218 +
219 - 219 +_:b32
220 -_:b20 220 + sp:varName "localname"^^xsd:string .
221 - sp:varName "nameWellBore"^^xsd:string . 221 +
222 - 222 +_:b31
223 -_:b21 223 + sp:varName "normalizedWellBoreName"^^xsd:string .
224 - sp:varName "dTimStart"^^xsd:string . 224 +
225 - 225 +_:b30
226 -_:b22 226 + sp:varName "uomTvdBottom"^^xsd:string .
227 - sp:varName "lithShowInfo"^^xsd:string . 227 +
228 - 228 +_:b29
229 -_:b6 sp:varName "dTimEnd"^^xsd:string . 229 + sp:varName "tvdBottom"^^xsd:string .
230 - 230 +
231 -_:b23 231 +_:b28
232 - sp:varName "mdTop"^^xsd:string . 232 + sp:varName "uomTvdTop"^^xsd:string .
233 - 233 +
234 -_:b24 234 +_:b27
235 - sp:varName "uomMdTop"^^xsd:string . 235 + sp:varName "tvdTop"^^xsd:string .
236 - 236 +
237 -_:b7 sp:varName "realMdTop"^^xsd:string . 237 +_:b26
238 - 238 + sp:varName "uomMdBottom"^^xsd:string .
239 -_:b25 239 +
240 - sp:varName "mdBottom"^^xsd:string . 240 +_:b25
241 - 241 + sp:varName "mdBottom"^^xsd:string .
242 -_:b26 242 +
243 - sp:varName "uomMdBottom"^^xsd:string . 243 +_:b24
244 - 244 + sp:varName "uomMdTop"^^xsd:string .
245 -_:b10 245 +
246 - sp:varName "realMdBottom"^^xsd:string . 246 +_:b23
247 - 247 + sp:varName "mdTop"^^xsd:string .
248 -_:b27 248 +
249 - sp:varName "tvdTop"^^xsd:string . 249 +_:b22
250 - 250 + sp:varName "lithShowInfo"^^xsd:string .
251 -_:b28 251 +
252 - sp:varName "uomTvdTop"^^xsd:string . 252 +_:b21
253 - 253 + sp:varName "dTimStart"^^xsd:string .
254 -_:b13 254 +
255 - sp:varName "realTvdTop"^^xsd:string . 255 +_:b20
256 - 256 + sp:varName "nameWellBore"^^xsd:string .
257 -_:b29 257 +
258 - sp:varName "tvdBottom"^^xsd:string . 258 +_:b19
259 - 259 + sp:varName "lithology"^^xsd:string .
260 -_:b30 260 +
261 - sp:varName "uomTvdBottom"^^xsd:string . 261 +_:b18
262 - 262 + sp:varName "show"^^xsd:string .
263 -_:b16 263 +
264 - sp:varName "realTvdBottom"^^xsd:string . 264 +_:b17
265 - 265 + sp:varName "lengthScaleTvdBottom"^^xsd:string .
266 -_:b18 266 +
267 - sp:varName "show"^^xsd:string . 267 +_:b16
268 - 268 + sp:varName "realTvdBottom"^^xsd:string .
269 -_:b19 269 +
270 - sp:varName "lithology"^^xsd:string . 270 +_:b14
271 - 271 + sp:varName "lengthScaleTvdTop"^^xsd:string .
272 -_:b31 272 +
273 - sp:varName "normalizedWellBoreName"^^xsd:string . 273 +_:b13
274 - 274 + sp:varName "realTvdTop"^^xsd:string .
275 -_:b2 sp:varName "dailyDrillingActivity"^^xsd:string . 275 +
276 - 276 +_:b11
277 -_:b32 277 + sp:varName "lengthScaleMdBottom"^^xsd:string .
278 - sp:varName "localname"^^xsd:string . 278 +
279 - 279 +_:b10
280 -_:b1 sp:varName "lithShowObservation"^^xsd:string . 280 + sp:varName "realMdBottom"^^xsd:string .
281 - 281 +
282 -_:b8 sp:varName "lengthScaleMdTop"^^xsd:string . 282 +_:b8 sp:varName "lengthScaleMdTop"^^xsd:string .
283 - 283 +
284 -_:b14 284 +_:b7 sp:varName "realMdTop"^^xsd:string .
285 - sp:varName "lengthScaleTvdTop"^^xsd:string . 285 +
286 - 286 +_:b6 sp:varName "dTimEnd"^^xsd:string .
287 -_:b11 287 +
288 - sp:varName "lengthScaleMdBottom"^^xsd:string . 288 +_:b5 sp:varName "wellBore"^^xsd:string .
289 - 289 +
290 -_:b17 290 +_:b2 sp:varName "dailyDrillingActivity"^^xsd:string .
291 - sp:varName "lengthScaleTvdBottom"^^xsd:string . 291 +
292 - 292 +_:b1 sp:varName "lithShowObservation"^^xsd:string .
293 -_:b5 sp:varName "wellBore"^^xsd:string .
......
1 -# Saved by TopBraid on Fri Oct 28 15:51:07 BST 2011 1 +# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/porePressure
2 -# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/porePressure 2 +# imports: http://spinrdf.org/spin
3 -# imports: http://www.witsml.org/schemas/1series 3 +# imports: http://www.reportinghub.no/ep/schema/1.0/activity
4 -# imports: http://www.reportinghub.no/ep/schema/1.0/core 4 +# imports: http://www.reportinghub.no/ep/schema/1.0/core
5 -# imports: http://www.reportinghub.no/ep/schema/1.0/activity 5 +# imports: http://www.reportinghub.no/ep/spin/1.1/lib
6 -# imports: http://spinrdf.org/spin 6 +
7 - 7 +@prefix : <http://www.reportinghub.no/ep/transform/1.1/ddr/porePressure#> .
8 -@prefix : <http://www.reportinghub.no/ep/transform/1.1/ddr/porePressure#> . 8 +@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> .
9 -@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . 9 +@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
10 -@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . 10 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
11 -@prefix owl: <http://www.w3.org/2002/07/owl#> . 11 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
12 -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 12 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
13 -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 13 +@prefix rhspin: <http://www.reportinghub.no/spin/rh#> .
14 -@prefix rhspin: <http://www.reportinghub.no/spin/rh#> . 14 +@prefix sp: <http://spinrdf.org/sp#> .
15 -@prefix sp: <http://spinrdf.org/sp#> . 15 +@prefix spin: <http://spinrdf.org/spin#> .
16 -@prefix spin: <http://spinrdf.org/spin#> . 16 +@prefix spl: <http://spinrdf.org/spl#> .
17 -@prefix spl: <http://spinrdf.org/spl#> . 17 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
18 -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 18 +
19 - 19 +<http://www.reportinghub.no/ep/transform/1.1/ddr/porePressure>
20 -<http://www.reportinghub.no/ep/transform/1.1/ddr/porePressure> 20 + rdf:type owl:Ontology ;
21 - rdf:type owl:Ontology ; 21 + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/spin/1.1/lib> ;
22 - owl:imports <http://www.witsml.org/schemas/1series> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://spinrdf.org/spin> ; 22 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
23 - owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 23 +
24 - 24 +<http://www.witsml.org/schemas/1series#Obj_drillReport>
25 -<http://www.witsml.org/schemas/1series#Obj_drillReport> 25 + spin:rule
26 - spin:rule 26 + [ rdf:type sp:Construct ;
27 - [ rdf:type sp:Construct ; 27 + rdfs:comment "STEP 180 Create a PorePressureDetermination activity"^^xsd:string ;
28 - rdfs:comment "STEP 180 Create a PorePressureDetermination activity"^^xsd:string ; 28 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#PorePressureDetermination> ;
29 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#PorePressureDetermination> ; 29 + sp:predicate rdf:type ;
30 - sp:predicate rdf:type ; 30 + sp:subject _:b1
31 - sp:subject _:b1 31 + ] [ sp:object _:b1 ;
32 - ] [ sp:object _:b1 ; 32 + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ;
33 - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; 33 + sp:subject _:b2
34 - sp:subject _:b2 34 + ] [ sp:object _:b3 ;
35 - ] [ sp:object _:b3 ; 35 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ;
36 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; 36 + sp:subject _:b1
37 - sp:subject _:b1 37 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#PhysicalObject> ;
38 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#PhysicalObject> ; 38 + sp:predicate rdf:type ;
39 - sp:predicate rdf:type ; 39 + sp:subject _:b3
40 - sp:subject _:b3 40 + ] [ sp:object _:b4 ;
41 - ] [ sp:object _:b4 ; 41 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
42 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 42 + sp:subject _:b3
43 - sp:subject _:b3 43 + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#PositionWithinWellBore> ;
44 - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#PositionWithinWellBore> ; 44 + sp:predicate rdf:type ;
45 - sp:predicate rdf:type ; 45 + sp:subject _:b4
46 - sp:subject _:b4 46 + ] [ sp:object _:b5 ;
47 - ] [ sp:object _:b5 ; 47 + sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
48 - sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; 48 + sp:subject _:b4
49 - sp:subject _:b4 49 + ] [ sp:object _:b6 ;
50 - ] [ sp:object _:b6 ; 50 + sp:predicate <http://www.reportinghub.no/ep/schema/well#measuredDepth> ;
51 - sp:predicate <http://www.reportinghub.no/ep/schema/well#measuredDepth> ; 51 + sp:subject _:b4
52 - sp:subject _:b4 52 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
53 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ; 53 + sp:predicate rdf:type ;
54 - sp:predicate rdf:type ; 54 + sp:subject _:b6
55 - sp:subject _:b6 55 + ] [ sp:object _:b7 ;
56 - ] [ sp:object _:b7 ; 56 + sp:predicate _:b8 ;
57 - sp:predicate _:b8 ; 57 + sp:subject _:b6
58 - sp:subject _:b6 58 + ] [ sp:object _:b9 ;
59 - ] [ sp:object _:b9 ; 59 + sp:predicate <http://www.reportinghub.no/ep/schema/well#trueVerticalDepth> ;
60 - sp:predicate <http://www.reportinghub.no/ep/schema/well#trueVerticalDepth> ; 60 + sp:subject _:b4
61 - sp:subject _:b4 61 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ;
62 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Length> ; 62 + sp:predicate rdf:type ;
63 - sp:predicate rdf:type ; 63 + sp:subject _:b9
64 - sp:subject _:b9 64 + ] [ sp:object _:b10 ;
65 - ] [ sp:object _:b10 ; 65 + sp:predicate _:b11 ;
66 - sp:predicate _:b11 ; 66 + sp:subject _:b9
67 - sp:subject _:b9 67 + ] [ sp:object _:b12 ;
68 - ] [ sp:object _:b12 ; 68 + sp:predicate <http://www.reportinghub.no/ep/schema/well#porePressureEquivalentMudDensity> ;
69 - sp:predicate <http://www.reportinghub.no/ep/schema/well#porePressureEquivalentMudDensity> ; 69 + sp:subject _:b3
70 - sp:subject _:b3 70 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Density> ;
71 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Density> ; 71 + sp:predicate rdf:type ;
72 - sp:predicate rdf:type ; 72 + sp:subject _:b12
73 - sp:subject _:b12 73 + ] [ sp:object _:b13 ;
74 - ] [ sp:object _:b13 ; 74 + sp:predicate _:b14 ;
75 - sp:predicate _:b14 ; 75 + sp:subject _:b12
76 - sp:subject _:b12 76 + ] [ sp:object _:b15 ;
77 - ] [ sp:object _:b15 ; 77 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
78 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; 78 + sp:subject _:b1
79 - sp:subject _:b1 79 + ] [ sp:object _:b16 ;
80 - ] [ sp:object _:b16 ; 80 + sp:predicate rdf:type ;
81 - sp:predicate rdf:type ; 81 + sp:subject _:b1
82 - sp:subject _:b1 82 + ]) ;
83 - ]) ; 83 + sp:where ([ sp:object _:b17 ;
84 - sp:where ([ sp:object _:b17 ; 84 + sp:predicate ep-spin-lib:nameWellbore ;
85 - sp:predicate ep-spin-lib:nameWellbore ; 85 + sp:subject spin:_this
86 - sp:subject spin:_this 86 + ] [ sp:object _:b18 ;
87 - ] [ sp:object _:b18 ; 87 + sp:predicate <http://www.witsml.org/schemas/1series#dTimStart> ;
88 - sp:predicate <http://www.witsml.org/schemas/1series#dTimStart> ; 88 + sp:subject spin:_this
89 - sp:subject spin:_this 89 + ] [ sp:object _:b19 ;
90 - ] [ sp:object _:b19 ; 90 + sp:predicate <http://www.witsml.org/schemas/1series#porePressureRef> ;
91 - sp:predicate <http://www.witsml.org/schemas/1series#porePressureRef> ; 91 + sp:subject spin:_this
92 - sp:subject spin:_this 92 + ] [ sp:object _:b15 ;
93 - ] [ sp:object _:b15 ; 93 + sp:predicate <http://www.witsml.org/schemas/1series#dTim> ;
94 - sp:predicate <http://www.witsml.org/schemas/1series#dTim> ; 94 + sp:subject _:b19
95 - sp:subject _:b19 95 + ] [ sp:object _:b20 ;
96 - ] [ sp:object _:b20 ; 96 + sp:predicate <http://www.witsml.org/schemas/1series#mdRef> ;
97 - sp:predicate <http://www.witsml.org/schemas/1series#mdRef> ; 97 + sp:subject _:b19
98 - sp:subject _:b19 98 + ] [ sp:object _:b21 ;
99 - ] [ sp:object _:b21 ; 99 + sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
100 - sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ; 100 + sp:subject _:b20
101 - sp:subject _:b20 101 + ] [ sp:object _:b7 ;
102 - ] [ sp:object _:b7 ; 102 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
103 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 103 + sp:subject _:b20
104 - sp:subject _:b20 104 + ] [ sp:object _:b22 ;
105 - ] [ sp:object _:b22 ; 105 + sp:predicate <http://www.witsml.org/schemas/1series#readingKindRef> ;
106 - sp:predicate <http://www.witsml.org/schemas/1series#readingKindRef> ; 106 + sp:subject _:b19
107 - sp:subject _:b19 107 + ] [ sp:object _:b23 ;
108 - ] [ sp:object _:b23 ; 108 + sp:predicate <http://www.witsml.org/schemas/1series#equivalentMudWeightRef> ;
109 - sp:predicate <http://www.witsml.org/schemas/1series#equivalentMudWeightRef> ; 109 + sp:subject _:b19
110 - sp:subject _:b19 110 + ] [ sp:object _:b24 ;
111 - ] [ sp:object _:b24 ; 111 + sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
112 - sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ; 112 + sp:subject _:b23
113 - sp:subject _:b23 113 + ] [ sp:object _:b13 ;
114 - ] [ sp:object _:b13 ; 114 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
115 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 115 + sp:subject _:b23
116 - sp:subject _:b23 116 + ] [ rdf:type sp:Optional ;
117 - ] [ rdf:type sp:Optional ; 117 + sp:elements ([ sp:object _:b25 ;
118 - sp:elements ([ sp:object _:b25 ; 118 + sp:predicate <http://www.witsml.org/schemas/1series#tvdRef> ;
119 - sp:predicate <http://www.witsml.org/schemas/1series#tvdRef> ; 119 + sp:subject _:b19
120 - sp:subject _:b19 120 + ] [ sp:object _:b26 ;
121 - ] [ sp:object _:b26 ; 121 + sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ;
122 - sp:predicate <http://www.witsml.org/schemas/1series#uomRef> ; 122 + sp:subject _:b25
123 - sp:subject _:b25 123 + ] [ sp:object _:b10 ;
124 - ] [ sp:object _:b10 ; 124 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
125 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 125 + sp:subject _:b25
126 - sp:subject _:b25 126 + ])
127 - ]) 127 + ] [ rdf:type sp:Bind ;
128 - ] [ rdf:type sp:Bind ; 128 + sp:expression
129 - sp:expression 129 + [ rdf:type ep-spin-lib:normalizeString ;
130 - [ rdf:type ep-spin-lib:normalizeString ; 130 + sp:arg1 _:b17
131 - sp:arg1 _:b17 131 + ] ;
132 - ] ; 132 + sp:variable _:b27
133 - sp:variable _:b27 133 + ] [ rdf:type sp:Bind ;
134 - ] [ rdf:type sp:Bind ; 134 + sp:expression
135 - sp:expression 135 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
136 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 136 + sp:arg1 _:b27 ;
137 - sp:arg1 _:b27 ; 137 + sp:arg2 _:b18
138 - sp:arg2 _:b18 138 + ] ;
139 - ] ; 139 + sp:variable _:b2
140 - sp:variable _:b2 140 + ] [ rdf:type sp:Bind ;
141 - ] [ rdf:type sp:Bind ; 141 + sp:expression
142 - sp:expression 142 + [ rdf:type afn:localname ;
143 - [ rdf:type afn:localname ; 143 + sp:arg1 _:b19
144 - sp:arg1 _:b19 144 + ] ;
145 - ] ; 145 + sp:variable _:b28
146 - sp:variable _:b28 146 + ] [ rdf:type sp:Bind ;
147 - ] [ rdf:type sp:Bind ; 147 + sp:expression
148 - sp:expression 148 + [ rdf:type ep-spin-lib:buildPorePressureDeterminationURI ;
149 - [ rdf:type ep-spin-lib:buildPorePressureDeterminationURI ; 149 + sp:arg1 _:b27 ;
150 - sp:arg1 _:b27 ; 150 + sp:arg2 _:b18 ;
151 - sp:arg2 _:b18 ; 151 + sp:arg3 _:b28
152 - sp:arg3 _:b28 152 + ] ;
153 - ] ; 153 + sp:variable _:b1
154 - sp:variable _:b1 154 + ] [ rdf:type sp:Bind ;
155 - ] [ rdf:type sp:Bind ; 155 + sp:expression
156 - sp:expression 156 + [ rdf:type ep-spin-lib:selectLengthScale ;
157 - [ rdf:type ep-spin-lib:selectLengthScale ; 157 + sp:arg1 _:b21
158 - sp:arg1 _:b21 158 + ] ;
159 - ] ; 159 + sp:variable _:b8
160 - sp:variable _:b8 160 + ] [ rdf:type sp:Bind ;
161 - ] [ rdf:type sp:Bind ; 161 + sp:expression
162 - sp:expression 162 + [ rdf:type ep-spin-lib:selectLengthScale ;
163 - [ rdf:type ep-spin-lib:selectLengthScale ; 163 + sp:arg1 _:b26
164 - sp:arg1 _:b26 164 + ] ;
165 - ] ; 165 + sp:variable _:b11
166 - sp:variable _:b11 166 + ] [ rdf:type sp:Bind ;
167 - ] [ rdf:type sp:Bind ; 167 + sp:expression
168 - sp:expression 168 + [ rdf:type ep-spin-lib:selectDensityScale ;
169 - [ rdf:type ep-spin-lib:selectDensityScale ; 169 + sp:arg1 _:b24
170 - sp:arg1 _:b24 170 + ] ;
171 - ] ; 171 + sp:variable _:b14
172 - sp:variable _:b14 172 + ] [ rdf:type sp:Bind ;
173 - ] [ rdf:type sp:Bind ; 173 + sp:expression
174 - sp:expression 174 + [ rdf:type ep-spin-lib:selectPorePressureDeterminationType ;
175 - [ rdf:type ep-spin-lib:selectPorePressureDeterminationType ; 175 + sp:arg1 _:b22
176 - sp:arg1 _:b22 176 + ] ;
177 - ] ; 177 + sp:variable _:b16
178 - sp:variable _:b16 178 + ] [ rdf:type sp:Bind ;
179 - ] [ rdf:type sp:Bind ; 179 + sp:expression
180 - sp:expression 180 + [ rdf:type rhspin:wellBoreByName ;
181 - [ rdf:type rhspin:wellBoreByName ; 181 + sp:arg1 [ rdf:type xsd:string ;
182 - sp:arg1 [ rdf:type xsd:string ; 182 + sp:arg1 _:b17
183 - sp:arg1 _:b17 183 + ]
184 - ] 184 + ] ;
185 - ] ; 185 + sp:variable _:b5
186 - sp:variable _:b5 186 + ])
187 - ]) 187 + ] .
188 - ] . 188 +
189 - 189 +_:b28
190 -_:b17 190 + sp:varName "localname"^^xsd:string .
191 - sp:varName "nameWellBore"^^xsd:string . 191 +
192 - 192 +_:b27
193 -_:b18 193 + sp:varName "normalizedWellBoreName"^^xsd:string .
194 - sp:varName "dTimStart"^^xsd:string . 194 +
195 - 195 +_:b26
196 -_:b19 196 + sp:varName "uomTvd"^^xsd:string .
197 - sp:varName "porePressure"^^xsd:string . 197 +
198 - 198 +_:b25
199 -_:b15 199 + sp:varName "tvd"^^xsd:string .
200 - sp:varName "timeOfDetermination"^^xsd:string . 200 +
201 - 201 +_:b24
202 -_:b20 202 + sp:varName "uomWt"^^xsd:string .
203 - sp:varName "md"^^xsd:string . 203 +
204 - 204 +_:b23
205 -_:b21 205 + sp:varName "equivalentMudWeight"^^xsd:string .
206 - sp:varName "uomMd"^^xsd:string . 206 +
207 - 207 +_:b22
208 -_:b7 sp:varName "realMd"^^xsd:string . 208 + sp:varName "enumReadingKind"^^xsd:string .
209 - 209 +
210 -_:b22 210 +_:b21
211 - sp:varName "enumReadingKind"^^xsd:string . 211 + sp:varName "uomMd"^^xsd:string .
212 - 212 +
213 -_:b23 213 +_:b20
214 - sp:varName "equivalentMudWeight"^^xsd:string . 214 + sp:varName "md"^^xsd:string .
215 - 215 +
216 -_:b24 216 +_:b19
217 - sp:varName "uomWt"^^xsd:string . 217 + sp:varName "porePressure"^^xsd:string .
218 - 218 +
219 -_:b13 219 +_:b18
220 - sp:varName "realWt"^^xsd:string . 220 + sp:varName "dTimStart"^^xsd:string .
221 - 221 +
222 -_:b25 222 +_:b17
223 - sp:varName "tvd"^^xsd:string . 223 + sp:varName "nameWellBore"^^xsd:string .
224 - 224 +
225 -_:b26 225 +_:b16
226 - sp:varName "uomTvd"^^xsd:string . 226 + sp:varName "porePressureDeterminationType"^^xsd:string .
227 - 227 +
228 -_:b10 228 +_:b15
229 - sp:varName "realTvd"^^xsd:string . 229 + sp:varName "timeOfDetermination"^^xsd:string .
230 - 230 +
231 -_:b27 231 +_:b14
232 - sp:varName "normalizedWellBoreName"^^xsd:string . 232 + sp:varName "densityScale"^^xsd:string .
233 - 233 +
234 -_:b2 sp:varName "dailyDrillingActivity"^^xsd:string . 234 +_:b13
235 - 235 + sp:varName "realWt"^^xsd:string .
236 -_:b28 236 +
237 - sp:varName "localname"^^xsd:string . 237 +_:b11
238 - 238 + sp:varName "lengthScaleTvd"^^xsd:string .
239 -_:b1 sp:varName "porePressureDetermination"^^xsd:string . 239 +
240 - 240 +_:b10
241 -_:b8 sp:varName "lengthScaleMd"^^xsd:string . 241 + sp:varName "realTvd"^^xsd:string .
242 - 242 +
243 -_:b11 243 +_:b8 sp:varName "lengthScaleMd"^^xsd:string .
244 - sp:varName "lengthScaleTvd"^^xsd:string . 244 +
245 - 245 +_:b7 sp:varName "realMd"^^xsd:string .
246 -_:b14 246 +
247 - sp:varName "densityScale"^^xsd:string . 247 +_:b5 sp:varName "wellBore"^^xsd:string .
248 - 248 +
249 -_:b16 249 +_:b2 sp:varName "dailyDrillingActivity"^^xsd:string .
250 - sp:varName "porePressureDeterminationType"^^xsd:string . 250 +
251 - 251 +_:b1 sp:varName "porePressureDetermination"^^xsd:string .
252 -_:b5 sp:varName "wellBore"^^xsd:string .
......
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 -# baseURI: http://www.reportinghub.no/ep/transform/1.1/wellboreInfo 1 +# baseURI: http://www.reportinghub.no/ep/transform/1.1/wellboreInfo
2 -# imports: http://spinrdf.org/spin 2 +# imports: http://spinrdf.org/spin
3 -# imports: http://www.reportinghub.no/ep/schema/1.0/organization 3 +# imports: http://www.reportinghub.no/ep/schema/1.0/organization
4 -# imports: http://www.reportinghub.no/ep/spin/1.1/lib 4 +# imports: http://www.reportinghub.no/ep/spin/1.1/lib
5 -# imports: http://www.witsml.org/schemas/1series 5 +# imports: http://www.witsml.org/schemas/1series
6 - 6 +
7 -@prefix : <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo#> . 7 +@prefix : <http://www.reportinghub.no/ep/transform/1.1/wellboreInfo#> .
8 -@prefix arg: <http://spinrdf.org/arg#> . 8 +@prefix arg: <http://spinrdf.org/arg#> .
9 -@prefix ddr: <http://www.witsml.org/schemas/1series#> . 9 +@prefix ddr: <http://www.witsml.org/schemas/1series#> .
10 -@prefix ep-activity: <http://www.reportinghub.no/ep/schema/activity#> . 10 +@prefix ep-activity: <http://www.reportinghub.no/ep/schema/activity#> .
11 -@prefix ep-core: <http://www.reportinghub.no/ep/schema/core#> . 11 +@prefix ep-core: <http://www.reportinghub.no/ep/schema/core#> .
12 -@prefix ep-facility: <http://www.reportinghub.no/ep/schema/facility#> . 12 +@prefix ep-facility: <http://www.reportinghub.no/ep/schema/facility#> .
13 -@prefix ep-org: <http://www.reportinghub.no/ep/schema/organization#> . 13 +@prefix ep-org: <http://www.reportinghub.no/ep/schema/organization#> .
14 -@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . 14 +@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> .
15 -@prefix fn: <http://www.w3.org/2005/xpath-functions#> . 15 +@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
16 -@prefix owl: <http://www.w3.org/2002/07/owl#> . 16 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
17 -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . 17 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
18 -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . 18 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
19 -@prefix rhspin: <http://www.reportinghub.no/spin/rh#> . 19 +@prefix rhspin: <http://www.reportinghub.no/spin/rh#> .
20 -@prefix smf: <http://topbraid.org/sparqlmotionfunctions#> . 20 +@prefix smf: <http://topbraid.org/sparqlmotionfunctions#> .
21 -@prefix sp: <http://spinrdf.org/sp#> . 21 +@prefix sp: <http://spinrdf.org/sp#> .
22 -@prefix spin: <http://spinrdf.org/spin#> . 22 +@prefix spin: <http://spinrdf.org/spin#> .
23 -@prefix spl: <http://spinrdf.org/spl#> . 23 +@prefix spl: <http://spinrdf.org/spl#> .
24 -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . 24 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
25 - 25 +
26 -<http://www.reportinghub.no/ep/transform/1.1/wellboreInfo> 26 +<http://www.reportinghub.no/ep/transform/1.1/wellboreInfo>
27 - rdf:type owl:Ontology ; 27 + rdf:type owl:Ontology ;
28 - owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.witsml.org/schemas/1series> ; 28 + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.witsml.org/schemas/1series> ;
29 - owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 29 + owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
30 - 30 +
31 -ddr:Obj_drillReport 31 +ddr:Obj_drillReport
32 - spin:rule 32 + spin:rule
33 - [ rdf:type sp:Construct ; 33 + [ rdf:type sp:Construct ;
34 + rdfs:comment "STEP 166 Set SPUD date"^^xsd:string ;
35 + sp:templates ([ sp:object
36 + [ sp:varName "spudDate"^^xsd:string
37 + ] ;
38 + sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBoreSpudAt> ;
39 + sp:subject
40 + [ sp:varName "wellBore"^^xsd:string
41 + ]
42 + ]) ;
43 + sp:where ([ sp:object
44 + [ sp:varName "nameWellBore"^^xsd:string
45 + ] ;
46 + sp:predicate ep-spin-lib:nameWellbore ;
47 + sp:subject spin:_this
48 + ] [ sp:object
49 + [ sp:varName "dTimStart"^^xsd:string
50 + ] ;
51 + sp:predicate ddr:dTimStart ;
52 + sp:subject spin:_this
53 + ] [ sp:object
54 + [ sp:varName "wellboreInfo"^^xsd:string
55 + ] ;
56 + sp:predicate ddr:wellboreInfoRef ;
57 + sp:subject spin:_this
58 + ] [ sp:object
59 + [ sp:varName "spudDate"^^xsd:string
60 + ] ;
61 + sp:predicate ddr:dTimSpud ;
62 + sp:subject
63 + [ sp:varName "wellboreInfo"^^xsd:string
64 + ]
65 + ] [ sp:object
66 + [ sp:varName "temporalPartOfAWellBore"^^xsd:string
67 + ] ;
68 + sp:predicate ep-activity:onWellBore ;
69 + sp:subject
70 + [ sp:varName "dailyDrillingActivity"^^xsd:string
71 + ]
72 + ] [ sp:object
73 + [ sp:varName "wellBore"^^xsd:string
74 + ] ;
75 + sp:predicate ep-core:temporalPartOf ;
76 + sp:subject
77 + [ sp:varName "temporalPartOfAWellBore"^^xsd:string
78 + ]
79 + ] [ rdf:type sp:NamedGraph ;
80 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
81 + sp:predicate rdf:type ;
82 + sp:subject
83 + [ sp:varName "wellBore"^^xsd:string
84 + ]
85 + ]) ;
86 + sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
87 + ] [ rdf:type sp:Bind ;
88 + sp:expression
89 + [ rdf:type ep-spin-lib:normalizeString ;
90 + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
91 + ]
92 + ] ;
93 + sp:variable
94 + [ sp:varName "normalizedWellBoreName"^^xsd:string
95 + ]
96 + ] [ rdf:type sp:Bind ;
97 + sp:expression
98 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
99 + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
100 + ] ;
101 + sp:arg2 [ sp:varName "dTimStart"^^xsd:string
102 + ]
103 + ] ;
104 + sp:variable
105 + [ sp:varName "dailyDrillingActivity"^^xsd:string
106 + ]
107 + ])
108 + ] ;
109 + spin:rule
110 + [ rdf:type sp:Construct ;
111 + rdfs:comment "STEP 163 Set drilling contractor for drilling activity"^^xsd:string ;
112 + sp:templates ([ sp:object _:b1 ;
113 + sp:predicate ep-activity:drillingContractor ;
114 + sp:subject
115 + [ sp:varName "dailyDrillingActivity"^^xsd:string
116 + ]
117 + ] [ sp:object ep-org:Company ;
118 + sp:predicate rdf:type ;
119 + sp:subject _:b1
120 + ] [ sp:object
121 + [ sp:varName "nameContractor"^^xsd:string
122 + ] ;
123 + sp:predicate ep-core:name ;
124 + sp:subject _:b1
125 + ]) ;
126 + sp:where ([ sp:object
127 + [ sp:varName "nameWellBore"^^xsd:string
128 + ] ;
129 + sp:predicate ep-spin-lib:nameWellbore ;
130 + sp:subject spin:_this
131 + ] [ sp:object
132 + [ sp:varName "dTimStart"^^xsd:string
133 + ] ;
134 + sp:predicate ddr:dTimStart ;
135 + sp:subject spin:_this
136 + ] [ sp:object
137 + [ sp:varName "wellboreInfo"^^xsd:string
138 + ] ;
139 + sp:predicate ddr:wellboreInfoRef ;
140 + sp:subject spin:_this
141 + ] [ sp:object
142 + [ sp:varName "nameContractor"^^xsd:string
143 + ] ;
144 + sp:predicate ddr:drillContractor ;
145 + sp:subject
146 + [ sp:varName "wellboreInfo"^^xsd:string
147 + ]
148 + ] [ rdf:type sp:Bind ;
149 + sp:expression
150 + [ rdf:type ep-spin-lib:normalizeString ;
151 + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
152 + ]
153 + ] ;
154 + sp:variable
155 + [ sp:varName "normalizedWellBoreName"^^xsd:string
156 + ]
157 + ] [ rdf:type sp:Bind ;
158 + sp:expression
159 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
160 + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
161 + ] ;
162 + sp:arg2 [ sp:varName "dTimStart"^^xsd:string
163 + ]
164 + ] ;
165 + sp:variable
166 + [ sp:varName "dailyDrillingActivity"^^xsd:string
167 + ]
168 + ] [ rdf:type sp:Bind ;
169 + sp:expression
170 + [ rdf:type ep-spin-lib:normalizeString ;
171 + sp:arg1 [ sp:varName "nameContractor"^^xsd:string
172 + ]
173 + ] ;
174 + sp:variable
175 + [ sp:varName "normalizedContractorName"^^xsd:string
176 + ]
177 + ] [ rdf:type sp:Bind ;
178 + sp:expression
179 + [ rdf:type rhspin:companyById ;
180 + arg:id [ sp:varName "normalizedContractorName"^^xsd:string
181 + ]
182 + ] ;
183 + sp:variable
184 + [ sp:varName "contractor"^^xsd:string
185 + ]
186 + ])
187 + ] ;
188 + spin:rule
189 + [ rdf:type sp:Construct ;
190 + rdfs:comment "STEP 160a Set rig for drilling activity - NPD Code supplied"^^xsd:string ;
191 + sp:templates ([ sp:object _:b2 ;
192 + sp:predicate ep-activity:onRig ;
193 + sp:subject
194 + [ sp:varName "dailyDrillingActivity"^^xsd:string
195 + ]
196 + ] [ sp:object ep-facility:TemporalPartOfARig ;
197 + sp:predicate rdf:type ;
198 + sp:subject _:b2
199 + ] [ sp:object
200 + [ sp:varName "rig"^^xsd:string
201 + ] ;
202 + sp:predicate ep-core:temporalPartOf ;
203 + sp:subject _:b2
204 + ] [ sp:object ep-facility:Rig ;
205 + sp:predicate rdf:type ;
206 + sp:subject
207 + [ sp:varName "rig"^^xsd:string
208 + ]
209 + ]) ;
210 + sp:where ([ sp:object
211 + [ sp:varName "nameWellBore"^^xsd:string
212 + ] ;
213 + sp:predicate ep-spin-lib:nameWellbore ;
214 + sp:subject spin:_this
215 + ] [ sp:object
216 + [ sp:varName "dTimStart"^^xsd:string
217 + ] ;
218 + sp:predicate ddr:dTimStart ;
219 + sp:subject spin:_this
220 + ] [ sp:object
221 + [ sp:varName "wellboreInfo"^^xsd:string
222 + ] ;
223 + sp:predicate ddr:wellboreInfoRef ;
224 + sp:subject spin:_this
225 + ] [ sp:object
226 + [ sp:varName "rigAlias"^^xsd:string
227 + ] ;
228 + sp:predicate ddr:rigAliasRef ;
229 + sp:subject
230 + [ sp:varName "wellboreInfo"^^xsd:string
231 + ]
232 + ] [ sp:object
233 + [ sp:varName "code"^^xsd:string
234 + ] ;
235 + sp:predicate ddr:name ;
236 + sp:subject
237 + [ sp:varName "rigAlias"^^xsd:string
238 + ]
239 + ] [ rdf:type sp:Union ;
240 + sp:elements (([ sp:object "NPD Code"^^xsd:string ;
241 + sp:predicate ddr:namingSystem ;
242 + sp:subject
243 + [ sp:varName "rigAlias"^^xsd:string
244 + ]
245 + ]) ([ sp:object "NPD code"^^xsd:string ;
246 + sp:predicate ddr:namingSystem ;
247 + sp:subject
248 + [ sp:varName "rigAlias"^^xsd:string
249 + ]
250 + ]))
251 + ] [ rdf:type sp:Bind ;
252 + sp:expression
253 + [ rdf:type ep-spin-lib:normalizeString ;
254 + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
255 + ]
256 + ] ;
257 + sp:variable
258 + [ sp:varName "normalizedWellBoreName"^^xsd:string
259 + ]
260 + ] [ rdf:type sp:Bind ;
261 + sp:expression
262 + [ rdf:type ep-spin-lib:normalizeString ;
263 + sp:arg1 [ sp:varName "code"^^xsd:string
264 + ]
265 + ] ;
266 + sp:variable
267 + [ sp:varName "normalizedCode"^^xsd:string
268 + ]
269 + ] [ rdf:type sp:Bind ;
270 + sp:expression
271 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
272 + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
273 + ] ;
274 + sp:arg2 [ sp:varName "dTimStart"^^xsd:string
275 + ]
276 + ] ;
277 + sp:variable
278 + [ sp:varName "dailyDrillingActivity"^^xsd:string
279 + ]
280 + ] [ rdf:type sp:Bind ;
281 + sp:expression
282 + [ rdf:type ep-spin-lib:buildRigURI ;
283 + sp:arg1 [ sp:varName "normalizedCode"^^xsd:string
284 + ]
285 + ] ;
286 + sp:variable
287 + [ sp:varName "rig"^^xsd:string
288 + ]
289 + ])
290 + ] ;
291 + spin:rule
292 + [ rdf:type sp:Construct ;
293 + rdfs:comment "STEP 167 Set drill completion date"^^xsd:string ;
294 + sp:templates ([ sp:object
295 + [ sp:varName "dateDrillComplete"^^xsd:string
296 + ] ;
297 + sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBoreCompletedAt> ;
298 + sp:subject
299 + [ sp:varName "wellBore"^^xsd:string
300 + ]
301 + ]) ;
302 + sp:where ([ sp:object
303 + [ sp:varName "nameWellBore"^^xsd:string
304 + ] ;
305 + sp:predicate ep-spin-lib:nameWellbore ;
306 + sp:subject spin:_this
307 + ] [ sp:object
308 + [ sp:varName "dTimStart"^^xsd:string
309 + ] ;
310 + sp:predicate ddr:dTimStart ;
311 + sp:subject spin:_this
312 + ] [ sp:object
313 + [ sp:varName "wellboreInfo"^^xsd:string
314 + ] ;
315 + sp:predicate ddr:wellboreInfoRef ;
316 + sp:subject spin:_this
317 + ] [ sp:object
318 + [ sp:varName "dateDrillComplete"^^xsd:string
319 + ] ;
320 + sp:predicate ddr:dateDrillComplete ;
321 + sp:subject
322 + [ sp:varName "wellboreInfo"^^xsd:string
323 + ]
324 + ] [ sp:object
325 + [ sp:varName "temporalPartOfAWellBore"^^xsd:string
326 + ] ;
327 + sp:predicate ep-activity:onWellBore ;
328 + sp:subject
329 + [ sp:varName "dailyDrillingActivity"^^xsd:string
330 + ]
331 + ] [ sp:object
332 + [ sp:varName "wellBore"^^xsd:string
333 + ] ;
334 + sp:predicate ep-core:temporalPartOf ;
335 + sp:subject
336 + [ sp:varName "temporalPartOfAWellBore"^^xsd:string
337 + ]
338 + ] [ rdf:type sp:NamedGraph ;
339 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
340 + sp:predicate rdf:type ;
341 + sp:subject
342 + [ sp:varName "wellBore"^^xsd:string
343 + ]
344 + ]) ;
345 + sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
346 + ] [ rdf:type sp:Bind ;
347 + sp:expression
348 + [ rdf:type ep-spin-lib:normalizeString ;
349 + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
350 + ]
351 + ] ;
352 + sp:variable
353 + [ sp:varName "normalizedWellBoreName"^^xsd:string
354 + ]
355 + ] [ rdf:type sp:Bind ;
356 + sp:expression
357 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
358 + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
359 + ] ;
360 + sp:arg2 [ sp:varName "dTimStart"^^xsd:string
361 + ]
362 + ] ;
363 + sp:variable
364 + [ sp:varName "dailyDrillingActivity"^^xsd:string
365 + ]
366 + ])
367 + ] ;
368 + spin:rule
369 + [ rdf:type sp:Construct ;
34 rdfs:comment """STEP 168 Transfer fixedRig 370 rdfs:comment """STEP 168 Transfer fixedRig
35 -This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ; 371 +This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ;
36 - sp:templates ([ sp:object 372 + sp:templates ([ sp:object
37 - [ sp:varName "fixedOrMoveableRigType"^^xsd:string 373 + [ sp:varName "fixedOrMoveableRigType"^^xsd:string
38 - ] ; 374 + ] ;
39 - sp:predicate rdf:type ; 375 + sp:predicate rdf:type ;
40 - sp:subject 376 + sp:subject
41 - [ sp:varName "rig"^^xsd:string 377 + [ sp:varName "rig"^^xsd:string
42 - ] 378 + ]
43 - ]) ; 379 + ]) ;
44 - sp:where ([ sp:object 380 + sp:where ([ sp:object
45 - [ sp:varName "nameWellBore"^^xsd:string 381 + [ sp:varName "nameWellBore"^^xsd:string
46 - ] ; 382 + ] ;
47 - sp:predicate ep-spin-lib:nameWellbore ; 383 + sp:predicate ep-spin-lib:nameWellbore ;
48 - sp:subject spin:_this 384 + sp:subject spin:_this
49 - ] [ sp:object 385 + ] [ sp:object
50 - [ sp:varName "dTimStart"^^xsd:string 386 + [ sp:varName "dTimStart"^^xsd:string
51 - ] ; 387 + ] ;
52 - sp:predicate ddr:dTimStart ; 388 + sp:predicate ddr:dTimStart ;
53 - sp:subject spin:_this 389 + sp:subject spin:_this
54 - ] [ sp:object 390 + ] [ sp:object
55 - [ sp:varName "temporalPartOfARig"^^xsd:string 391 + [ sp:varName "temporalPartOfARig"^^xsd:string
56 - ] ; 392 + ] ;
57 - sp:predicate ep-activity:onRig ; 393 + sp:predicate ep-activity:onRig ;
58 - sp:subject 394 + sp:subject
59 - [ sp:varName "dailyDrillingActivity"^^xsd:string 395 + [ sp:varName "dailyDrillingActivity"^^xsd:string
60 - ] 396 + ]
61 - ] [ sp:object 397 + ] [ sp:object
62 - [ sp:varName "rig"^^xsd:string 398 + [ sp:varName "rig"^^xsd:string
63 - ] ; 399 + ] ;
64 - sp:predicate ep-core:temporalPartOf ; 400 + sp:predicate ep-core:temporalPartOf ;
65 - sp:subject 401 + sp:subject
66 - [ sp:varName "temporalPartOfARig"^^xsd:string 402 + [ sp:varName "temporalPartOfARig"^^xsd:string
67 - ] 403 + ]
68 - ] [ sp:object ep-facility:Rig ; 404 + ] [ sp:object ep-facility:Rig ;
69 - sp:predicate rdf:type ; 405 + sp:predicate rdf:type ;
70 - sp:subject 406 + sp:subject
71 - [ sp:varName "rig"^^xsd:string 407 + [ sp:varName "rig"^^xsd:string
72 - ] 408 + ]
73 - ] [ sp:object 409 + ] [ sp:object
74 - [ sp:varName "statusInfo"^^xsd:string 410 + [ sp:varName "statusInfo"^^xsd:string
75 - ] ; 411 + ] ;
76 - sp:predicate ddr:statusInfoRef ; 412 + sp:predicate ddr:statusInfoRef ;
77 - sp:subject spin:_this 413 + sp:subject spin:_this
78 - ] [ sp:object 414 + ] [ sp:object
79 - [ sp:varName "fixedRig"^^xsd:string 415 + [ sp:varName "fixedRig"^^xsd:string
80 - ] ; 416 + ] ;
81 - sp:predicate ddr:fixedRig ; 417 + sp:predicate ddr:fixedRig ;
82 - sp:subject 418 + sp:subject
83 - [ sp:varName "statusInfo"^^xsd:string 419 + [ sp:varName "statusInfo"^^xsd:string
84 - ] 420 + ]
85 - ] [ rdf:type sp:Bind ; 421 + ] [ rdf:type sp:Bind ;
86 - sp:expression 422 + sp:expression
87 - [ rdf:type ep-spin-lib:normalizeString ; 423 + [ rdf:type ep-spin-lib:normalizeString ;
88 - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string 424 + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
89 - ] 425 + ]
90 - ] ; 426 + ] ;
91 - sp:variable 427 + sp:variable
92 - [ sp:varName "normalizedWellBoreName"^^xsd:string 428 + [ sp:varName "normalizedWellBoreName"^^xsd:string
93 - ] 429 + ]
94 - ] [ rdf:type sp:Bind ; 430 + ] [ rdf:type sp:Bind ;
95 - sp:expression 431 + sp:expression
96 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 432 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
97 - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string 433 + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
98 - ] ; 434 + ] ;
99 - sp:arg2 [ sp:varName "dTimStart"^^xsd:string 435 + sp:arg2 [ sp:varName "dTimStart"^^xsd:string
100 - ] 436 + ]
101 - ] ; 437 + ] ;
102 - sp:variable 438 + sp:variable
103 - [ sp:varName "dailyDrillingActivity"^^xsd:string 439 + [ sp:varName "dailyDrillingActivity"^^xsd:string
104 - ] 440 + ]
105 - ] [ rdf:type sp:Bind ; 441 + ] [ rdf:type sp:Bind ;
106 - sp:expression 442 + sp:expression
107 - [ rdf:type ep-spin-lib:selectFixedOrMoveableRigType ; 443 + [ rdf:type ep-spin-lib:selectFixedOrMoveableRigType ;
108 - sp:arg1 [ sp:varName "fixedRig"^^xsd:string 444 + sp:arg1 [ sp:varName "fixedRig"^^xsd:string
109 - ] 445 + ]
110 - ] ; 446 + ] ;
111 - sp:variable 447 + sp:variable
112 - [ sp:varName "fixedOrMoveableRigType"^^xsd:string 448 + [ sp:varName "fixedOrMoveableRigType"^^xsd:string
113 - ] 449 + ]
114 - ]) 450 + ])
115 - ] ; 451 + ] ;
116 - spin:rule 452 + spin:rule
117 - [ rdf:type sp:Construct ; 453 + [ rdf:type sp:Construct ;
118 - rdfs:comment "STEP 160a Set rig for drilling activity - NPD Code supplied"^^xsd:string ; 454 + rdfs:comment "STEP 160b Set rig for drilling activity - NPD Code not supplied"^^xsd:string ;
119 - sp:templates ([ sp:object _:b1 ; 455 + sp:templates ([ sp:object _:b3 ;
120 - sp:predicate ep-activity:onRig ; 456 + sp:predicate ep-activity:onRig ;
121 - sp:subject 457 + sp:subject _:b4
122 - [ sp:varName "dailyDrillingActivity"^^xsd:string 458 + ] [ sp:object ep-facility:TemporalPartOfARig ;
123 - ] 459 + sp:predicate rdf:type ;
124 - ] [ sp:object ep-facility:TemporalPartOfARig ; 460 + sp:subject _:b3
125 - sp:predicate rdf:type ; 461 + ] [ sp:object _:b5 ;
126 - sp:subject _:b1 462 + sp:predicate ep-core:temporalPartOf ;
127 - ] [ sp:object 463 + sp:subject _:b3
128 - [ sp:varName "rig"^^xsd:string 464 + ] [ sp:object ep-facility:Rig ;
129 - ] ; 465 + sp:predicate rdf:type ;
130 - sp:predicate ep-core:temporalPartOf ; 466 + sp:subject _:b5
131 - sp:subject _:b1 467 + ]) ;
132 - ] [ sp:object ep-facility:Rig ; 468 + sp:where ([ sp:object _:b6 ;
133 - sp:predicate rdf:type ; 469 + sp:predicate ep-spin-lib:nameWellbore ;
134 - sp:subject 470 + sp:subject spin:_this
135 - [ sp:varName "rig"^^xsd:string 471 + ] [ sp:object _:b7 ;
136 - ] 472 + sp:predicate ddr:dTimStart ;
137 - ]) ; 473 + sp:subject spin:_this
138 - sp:where ([ sp:object 474 + ] [ rdf:type sp:NotExists ;
139 - [ sp:varName "nameWellBore"^^xsd:string 475 + sp:elements ([ sp:object _:b8 ;
140 - ] ; 476 + sp:predicate ddr:wellboreInfoRef ;
141 - sp:predicate ep-spin-lib:nameWellbore ; 477 + sp:subject spin:_this
142 - sp:subject spin:_this 478 + ] [ sp:object _:b9 ;
143 - ] [ sp:object 479 + sp:predicate ddr:rigAliasRef ;
144 - [ sp:varName "dTimStart"^^xsd:string 480 + sp:subject _:b8
145 - ] ; 481 + ] [ sp:object
146 - sp:predicate ddr:dTimStart ; 482 + [ sp:varName "code"^^xsd:string
147 - sp:subject spin:_this 483 + ] ;
148 - ] [ sp:object 484 + sp:predicate ddr:name ;
149 - [ sp:varName "wellboreInfo"^^xsd:string 485 + sp:subject _:b9
150 - ] ; 486 + ] [ rdf:type sp:Union ;
151 - sp:predicate ddr:wellboreInfoRef ; 487 + sp:elements (([ sp:object "NPD Code"^^xsd:string ;
152 - sp:subject spin:_this 488 + sp:predicate ddr:namingSystem ;
153 - ] [ sp:object 489 + sp:subject _:b9
154 - [ sp:varName "rigAlias"^^xsd:string 490 + ]) ([ sp:object "NPD code"^^xsd:string ;
155 - ] ; 491 + sp:predicate ddr:namingSystem ;
156 - sp:predicate ddr:rigAliasRef ; 492 + sp:subject _:b9
157 - sp:subject 493 + ]))
158 - [ sp:varName "wellboreInfo"^^xsd:string 494 + ])
159 - ] 495 + ] [ rdf:type sp:Bind ;
160 - ] [ sp:object 496 + sp:expression
161 - [ sp:varName "code"^^xsd:string 497 + [ rdf:type ep-spin-lib:normalizeString ;
162 - ] ; 498 + sp:arg1 _:b6
163 - sp:predicate ddr:name ; 499 + ] ;
164 - sp:subject 500 + sp:variable _:b10
165 - [ sp:varName "rigAlias"^^xsd:string 501 + ] [ rdf:type sp:Bind ;
166 - ] 502 + sp:expression
167 - ] [ rdf:type sp:Union ; 503 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
168 - sp:elements (([ sp:object "NPD Code"^^xsd:string ; 504 + sp:arg1 _:b10 ;
169 - sp:predicate ddr:namingSystem ; 505 + sp:arg2 _:b7
170 - sp:subject 506 + ] ;
171 - [ sp:varName "rigAlias"^^xsd:string 507 + sp:variable _:b4
172 - ] 508 + ])
173 - ]) ([ sp:object "NPD code"^^xsd:string ; 509 + ] ;
174 - sp:predicate ddr:namingSystem ; 510 + spin:rule
175 - sp:subject 511 + [ rdf:type sp:Construct ;
176 - [ sp:varName "rigAlias"^^xsd:string 512 + rdfs:comment "STEP 162 Set drilling operator for drilling activity"^^xsd:string ;
177 - ] 513 + sp:templates ([ sp:object _:b11 ;
178 - ])) 514 + sp:predicate ep-activity:drillingOperator ;
179 - ] [ rdf:type sp:Bind ; 515 + sp:subject
180 - sp:expression 516 + [ sp:varName "dailyDrillingActivity"^^xsd:string
181 - [ rdf:type ep-spin-lib:normalizeString ; 517 + ]
182 - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string 518 + ] [ sp:object ep-org:Company ;
183 - ] 519 + sp:predicate rdf:type ;
184 - ] ; 520 + sp:subject _:b11
185 - sp:variable 521 + ] [ sp:object
186 - [ sp:varName "normalizedWellBoreName"^^xsd:string 522 + [ sp:varName "nameOperator"^^xsd:string
187 - ] 523 + ] ;
188 - ] [ rdf:type sp:Bind ; 524 + sp:predicate ep-core:name ;
189 - sp:expression 525 + sp:subject _:b11
190 - [ rdf:type ep-spin-lib:normalizeString ; 526 + ]) ;
191 - sp:arg1 [ sp:varName "code"^^xsd:string 527 + sp:where ([ sp:object
192 - ] 528 + [ sp:varName "nameWellBore"^^xsd:string
193 - ] ; 529 + ] ;
194 - sp:variable 530 + sp:predicate ep-spin-lib:nameWellbore ;
195 - [ sp:varName "normalizedCode"^^xsd:string 531 + sp:subject spin:_this
196 - ] 532 + ] [ sp:object
197 - ] [ rdf:type sp:Bind ; 533 + [ sp:varName "dTimStart"^^xsd:string
198 - sp:expression 534 + ] ;
199 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 535 + sp:predicate ddr:dTimStart ;
200 - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string 536 + sp:subject spin:_this
201 - ] ; 537 + ] [ sp:object
202 - sp:arg2 [ sp:varName "dTimStart"^^xsd:string 538 + [ sp:varName "wellboreInfo"^^xsd:string
203 - ] 539 + ] ;
204 - ] ; 540 + sp:predicate ddr:wellboreInfoRef ;
205 - sp:variable 541 + sp:subject spin:_this
206 - [ sp:varName "dailyDrillingActivity"^^xsd:string 542 + ] [ sp:object
207 - ] 543 + [ sp:varName "nameOperator"^^xsd:string
208 - ] [ rdf:type sp:Bind ; 544 + ] ;
209 - sp:expression 545 + sp:predicate ddr:operator ;
210 - [ rdf:type ep-spin-lib:buildRigURI ; 546 + sp:subject
211 - sp:arg1 [ sp:varName "normalizedCode"^^xsd:string 547 + [ sp:varName "wellboreInfo"^^xsd:string
212 - ] 548 + ]
213 - ] ; 549 + ] [ rdf:type sp:Bind ;
214 - sp:variable 550 + sp:expression
215 - [ sp:varName "rig"^^xsd:string 551 + [ rdf:type ep-spin-lib:normalizeString ;
216 - ] 552 + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
217 - ]) 553 + ]
218 - ] ; 554 + ] ;
219 - spin:rule 555 + sp:variable
220 - [ rdf:type sp:Construct ; 556 + [ sp:varName "normalizedWellBoreName"^^xsd:string
221 - rdfs:comment "STEP 167 Set drill completion date"^^xsd:string ; 557 + ]
222 - sp:templates ([ sp:object 558 + ] [ rdf:type sp:Bind ;
223 - [ sp:varName "dateDrillComplete"^^xsd:string 559 + sp:expression
224 - ] ; 560 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
225 - sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBoreCompletedAt> ; 561 + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
226 - sp:subject 562 + ] ;
227 - [ sp:varName "wellBore"^^xsd:string 563 + sp:arg2 [ sp:varName "dTimStart"^^xsd:string
228 - ] 564 + ]
229 - ]) ; 565 + ] ;
230 - sp:where ([ sp:object 566 + sp:variable
231 - [ sp:varName "nameWellBore"^^xsd:string 567 + [ sp:varName "dailyDrillingActivity"^^xsd:string
232 - ] ; 568 + ]
233 - sp:predicate ep-spin-lib:nameWellbore ; 569 + ])
234 - sp:subject spin:_this 570 + ] ;
235 - ] [ sp:object 571 + spin:rule
236 - [ sp:varName "dTimStart"^^xsd:string 572 + [ rdf:type sp:Construct ;
237 - ] ;
238 - sp:predicate ddr:dTimStart ;
239 - sp:subject spin:_this
240 - ] [ sp:object
241 - [ sp:varName "wellboreInfo"^^xsd:string
242 - ] ;
243 - sp:predicate ddr:wellboreInfoRef ;
244 - sp:subject spin:_this
245 - ] [ sp:object
246 - [ sp:varName "dateDrillComplete"^^xsd:string
247 - ] ;
248 - sp:predicate ddr:dateDrillComplete ;
249 - sp:subject
250 - [ sp:varName "wellboreInfo"^^xsd:string
251 - ]
252 - ] [ sp:object
253 - [ sp:varName "temporalPartOfAWellBore"^^xsd:string
254 - ] ;
255 - sp:predicate ep-activity:onWellBore ;
256 - sp:subject
257 - [ sp:varName "dailyDrillingActivity"^^xsd:string
258 - ]
259 - ] [ sp:object
260 - [ sp:varName "wellBore"^^xsd:string
261 - ] ;
262 - sp:predicate ep-core:temporalPartOf ;
263 - sp:subject
264 - [ sp:varName "temporalPartOfAWellBore"^^xsd:string
265 - ]
266 - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
267 - sp:predicate rdf:type ;
268 - sp:subject
269 - [ sp:varName "wellBore"^^xsd:string
270 - ]
271 - ] [ rdf:type sp:Bind ;
272 - sp:expression
273 - [ rdf:type ep-spin-lib:normalizeString ;
274 - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
275 - ]
276 - ] ;
277 - sp:variable
278 - [ sp:varName "normalizedWellBoreName"^^xsd:string
279 - ]
280 - ] [ rdf:type sp:Bind ;
281 - sp:expression
282 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
283 - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
284 - ] ;
285 - sp:arg2 [ sp:varName "dTimStart"^^xsd:string
286 - ]
287 - ] ;
288 - sp:variable
289 - [ sp:varName "dailyDrillingActivity"^^xsd:string
290 - ]
291 - ])
292 - ] ;
293 - spin:rule
294 - [ rdf:type sp:Construct ;
295 - rdfs:comment """STEP 169a Transfer waterDepth
296 -This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ;
297 - sp:templates ([ sp:object _:b2 ;
298 - sp:predicate ep-core:hasPart ;
299 - sp:subject
300 - [ sp:varName "temporalPartOfARig"^^xsd:string
301 - ]
302 - ] [ sp:object ep-facility:SurroundingWater ;
303 - sp:predicate rdf:type ;
304 - sp:subject _:b2
305 - ] [ sp:object _:b3 ;
306 - sp:predicate ep-facility:depthOfSurroundingWater ;
307 - sp:subject _:b2
308 - ] [ sp:object ep-core:Length ;
309 - sp:predicate rdf:type ;
310 - sp:subject _:b3
311 - ] [ sp:object
312 - [ sp:varName "real"^^xsd:string
313 - ] ;
314 - sp:predicate
315 - [ sp:varName "lengthScale"^^xsd:string
316 - ] ;
317 - sp:subject _:b3
318 - ]) ;
319 - sp:where ([ sp:object
320 - [ sp:varName "nameWellBore"^^xsd:string
321 - ] ;
322 - sp:predicate ep-spin-lib:nameWellbore ;
323 - sp:subject spin:_this
324 - ] [ sp:object
325 - [ sp:varName "dTimStart"^^xsd:string
326 - ] ;
327 - sp:predicate ddr:dTimStart ;
328 - sp:subject spin:_this
329 - ] [ sp:object
330 - [ sp:varName "statusInfo"^^xsd:string
331 - ] ;
332 - sp:predicate ddr:statusInfoRef ;
333 - sp:subject spin:_this
334 - ] [ sp:object
335 - [ sp:varName "temporalPartOfARig"^^xsd:string
336 - ] ;
337 - sp:predicate ep-activity:onRig ;
338 - sp:subject
339 - [ sp:varName "dailyDrillingActivity"^^xsd:string
340 - ]
341 - ] [ sp:object
342 - [ sp:varName "waterDepth"^^xsd:string
343 - ] ;
344 - sp:predicate ddr:waterDepthRef ;
345 - sp:subject
346 - [ sp:varName "statusInfo"^^xsd:string
347 - ]
348 - ] [ sp:object
349 - [ sp:varName "real"^^xsd:string
350 - ] ;
351 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
352 - sp:subject
353 - [ sp:varName "waterDepth"^^xsd:string
354 - ]
355 - ] [ sp:object
356 - [ sp:varName "uom"^^xsd:string
357 - ] ;
358 - sp:predicate ddr:uomRef ;
359 - sp:subject
360 - [ sp:varName "waterDepth"^^xsd:string
361 - ]
362 - ] [ rdf:type sp:Bind ;
363 - sp:expression
364 - [ rdf:type ep-spin-lib:normalizeString ;
365 - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
366 - ]
367 - ] ;
368 - sp:variable
369 - [ sp:varName "normalizedWellBoreName"^^xsd:string
370 - ]
371 - ] [ rdf:type sp:Bind ;
372 - sp:expression
373 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
374 - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
375 - ] ;
376 - sp:arg2 [ sp:varName "dTimStart"^^xsd:string
377 - ]
378 - ] ;
379 - sp:variable
380 - [ sp:varName "dailyDrillingActivity"^^xsd:string
381 - ]
382 - ] [ rdf:type sp:Bind ;
383 - sp:expression
384 - [ rdf:type ep-spin-lib:selectLengthScale ;
385 - sp:arg1 [ sp:varName "uom"^^xsd:string
386 - ]
387 - ] ;
388 - sp:variable
389 - [ sp:varName "lengthScale"^^xsd:string
390 - ]
391 - ])
392 - ] ;
393 - spin:rule
394 - [ rdf:type sp:Construct ;
395 rdfs:comment """STEP 169 Transfer elevKelly 573 rdfs:comment """STEP 169 Transfer elevKelly
396 -This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ; 574 +This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ;
397 - sp:templates ([ sp:object _:b4 ; 575 + sp:templates ([ sp:object _:b12 ;
398 - sp:predicate ep-core:hasPart ; 576 + sp:predicate ep-core:hasPart ;
399 - sp:subject 577 + sp:subject
400 - [ sp:varName "temporalPartOfARig"^^xsd:string 578 + [ sp:varName "temporalPartOfARig"^^xsd:string
401 - ] 579 + ]
402 - ] [ sp:object <http://www.reportinghub.no/ep/schema/equipment#KellyBushing> ; 580 + ] [ sp:object <http://www.reportinghub.no/ep/schema/equipment#KellyBushing> ;
403 - sp:predicate rdf:type ; 581 + sp:predicate rdf:type ;
404 - sp:subject _:b4 582 + sp:subject _:b12
405 - ] [ sp:object _:b5 ; 583 + ] [ sp:object _:b13 ;
406 - sp:predicate <http://www.reportinghub.no/ep/schema/equipment#elevationOfKellyBushing> ; 584 + sp:predicate <http://www.reportinghub.no/ep/schema/equipment#elevationOfKellyBushing> ;
407 - sp:subject _:b4 585 + sp:subject _:b12
408 - ] [ sp:object ep-core:Length ; 586 + ] [ sp:object ep-core:Length ;
409 - sp:predicate rdf:type ; 587 + sp:predicate rdf:type ;
410 - sp:subject _:b5 588 + sp:subject _:b13
411 - ] [ sp:object 589 + ] [ sp:object
412 - [ sp:varName "real"^^xsd:string 590 + [ sp:varName "real"^^xsd:string
413 - ] ; 591 + ] ;
414 - sp:predicate 592 + sp:predicate
415 - [ sp:varName "lengthScale"^^xsd:string 593 + [ sp:varName "lengthScale"^^xsd:string
416 - ] ; 594 + ] ;
417 - sp:subject _:b5 595 + sp:subject _:b13
418 - ]) ; 596 + ]) ;
419 - sp:where ([ sp:object 597 + sp:where ([ sp:object
420 - [ sp:varName "nameWellBore"^^xsd:string 598 + [ sp:varName "nameWellBore"^^xsd:string
421 - ] ; 599 + ] ;
422 - sp:predicate ep-spin-lib:nameWellbore ; 600 + sp:predicate ep-spin-lib:nameWellbore ;
423 - sp:subject spin:_this 601 + sp:subject spin:_this
424 - ] [ sp:object 602 + ] [ sp:object
425 - [ sp:varName "dTimStart"^^xsd:string 603 + [ sp:varName "dTimStart"^^xsd:string
426 - ] ; 604 + ] ;
427 - sp:predicate ddr:dTimStart ; 605 + sp:predicate ddr:dTimStart ;
428 - sp:subject spin:_this 606 + sp:subject spin:_this
429 - ] [ sp:object 607 + ] [ sp:object
430 - [ sp:varName "statusInfo"^^xsd:string 608 + [ sp:varName "statusInfo"^^xsd:string
431 - ] ; 609 + ] ;
432 - sp:predicate ddr:statusInfoRef ; 610 + sp:predicate ddr:statusInfoRef ;
433 - sp:subject spin:_this 611 + sp:subject spin:_this
434 - ] [ sp:object 612 + ] [ sp:object
435 - [ sp:varName "temporalPartOfARig"^^xsd:string 613 + [ sp:varName "temporalPartOfARig"^^xsd:string
436 - ] ; 614 + ] ;
437 - sp:predicate ep-activity:onRig ; 615 + sp:predicate ep-activity:onRig ;
438 - sp:subject 616 + sp:subject
439 - [ sp:varName "dailyDrillingActivity"^^xsd:string 617 + [ sp:varName "dailyDrillingActivity"^^xsd:string
440 - ] 618 + ]
441 - ] [ sp:object 619 + ] [ sp:object
442 - [ sp:varName "elevKelly"^^xsd:string 620 + [ sp:varName "elevKelly"^^xsd:string
443 - ] ; 621 + ] ;
444 - sp:predicate ddr:elevKellyRef ; 622 + sp:predicate ddr:elevKellyRef ;
445 - sp:subject 623 + sp:subject
446 - [ sp:varName "statusInfo"^^xsd:string 624 + [ sp:varName "statusInfo"^^xsd:string
447 - ] 625 + ]
448 - ] [ sp:object 626 + ] [ sp:object
449 - [ sp:varName "real"^^xsd:string 627 + [ sp:varName "real"^^xsd:string
450 - ] ; 628 + ] ;
451 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; 629 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
452 - sp:subject 630 + sp:subject
453 - [ sp:varName "elevKelly"^^xsd:string 631 + [ sp:varName "elevKelly"^^xsd:string
454 - ] 632 + ]
455 - ] [ sp:object 633 + ] [ sp:object
456 - [ sp:varName "uom"^^xsd:string 634 + [ sp:varName "uom"^^xsd:string
457 - ] ; 635 + ] ;
458 - sp:predicate ddr:uomRef ; 636 + sp:predicate ddr:uomRef ;
459 - sp:subject 637 + sp:subject
460 - [ sp:varName "elevKelly"^^xsd:string 638 + [ sp:varName "elevKelly"^^xsd:string
461 - ] 639 + ]
462 - ] [ rdf:type sp:Bind ; 640 + ] [ rdf:type sp:Bind ;
463 - sp:expression 641 + sp:expression
464 - [ rdf:type ep-spin-lib:normalizeString ; 642 + [ rdf:type ep-spin-lib:normalizeString ;
465 - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string 643 + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
466 - ] 644 + ]
467 - ] ; 645 + ] ;
468 - sp:variable 646 + sp:variable
469 - [ sp:varName "normalizedWellBoreName"^^xsd:string 647 + [ sp:varName "normalizedWellBoreName"^^xsd:string
470 - ] 648 + ]
471 - ] [ rdf:type sp:Bind ; 649 + ] [ rdf:type sp:Bind ;
472 - sp:expression 650 + sp:expression
473 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 651 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
474 - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string 652 + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
475 - ] ; 653 + ] ;
476 - sp:arg2 [ sp:varName "dTimStart"^^xsd:string 654 + sp:arg2 [ sp:varName "dTimStart"^^xsd:string
477 - ] 655 + ]
478 - ] ; 656 + ] ;
479 - sp:variable 657 + sp:variable
480 - [ sp:varName "dailyDrillingActivity"^^xsd:string 658 + [ sp:varName "dailyDrillingActivity"^^xsd:string
481 - ] 659 + ]
482 - ] [ rdf:type sp:Bind ; 660 + ] [ rdf:type sp:Bind ;
483 - sp:expression 661 + sp:expression
484 - [ rdf:type ep-spin-lib:selectLengthScale ; 662 + [ rdf:type ep-spin-lib:selectLengthScale ;
485 - sp:arg1 [ sp:varName "uom"^^xsd:string 663 + sp:arg1 [ sp:varName "uom"^^xsd:string
486 - ] 664 + ]
487 - ] ; 665 + ] ;
488 - sp:variable 666 + sp:variable
489 - [ sp:varName "lengthScale"^^xsd:string 667 + [ sp:varName "lengthScale"^^xsd:string
490 - ] 668 + ]
491 - ]) 669 + ])
492 - ] ; 670 + ] ;
493 - spin:rule 671 + spin:rule
494 - [ rdf:type sp:Construct ; 672 + [ rdf:type sp:Construct ;
495 - rdfs:comment "STEP 164 Set preSPUD date"^^xsd:string ; 673 + rdfs:comment """STEP 169a Transfer waterDepth
496 - sp:templates ([ sp:object 674 +This rule processes data from statusInfo, but is here because it must be executed after a rig has been defined."""^^xsd:string ;
497 - [ sp:varName "preSpudDate"^^xsd:string 675 + sp:templates ([ sp:object _:b14 ;
498 - ] ; 676 + sp:predicate ep-core:hasPart ;
499 - sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBorePreSpudAt> ; 677 + sp:subject
500 - sp:subject 678 + [ sp:varName "temporalPartOfARig"^^xsd:string
501 - [ sp:varName "wellBore"^^xsd:string 679 + ]
502 - ] 680 + ] [ sp:object ep-facility:SurroundingWater ;
503 - ]) ; 681 + sp:predicate rdf:type ;
504 - sp:where ([ sp:object 682 + sp:subject _:b14
505 - [ sp:varName "nameWellBore"^^xsd:string 683 + ] [ sp:object _:b15 ;
506 - ] ; 684 + sp:predicate ep-facility:depthOfSurroundingWater ;
507 - sp:predicate ep-spin-lib:nameWellbore ; 685 + sp:subject _:b14
508 - sp:subject spin:_this 686 + ] [ sp:object ep-core:Length ;
509 - ] [ sp:object 687 + sp:predicate rdf:type ;
510 - [ sp:varName "dTimStart"^^xsd:string 688 + sp:subject _:b15
511 - ] ; 689 + ] [ sp:object
512 - sp:predicate ddr:dTimStart ; 690 + [ sp:varName "real"^^xsd:string
513 - sp:subject spin:_this 691 + ] ;
514 - ] [ sp:object 692 + sp:predicate
515 - [ sp:varName "wellboreInfo"^^xsd:string 693 + [ sp:varName "lengthScale"^^xsd:string
516 - ] ; 694 + ] ;
517 - sp:predicate ddr:wellboreInfoRef ; 695 + sp:subject _:b15
518 - sp:subject spin:_this 696 + ]) ;
519 - ] [ sp:object 697 + sp:where ([ sp:object
520 - [ sp:varName "preSpudDate"^^xsd:string 698 + [ sp:varName "nameWellBore"^^xsd:string
521 - ] ; 699 + ] ;
522 - sp:predicate ddr:dTimPreSpud ; 700 + sp:predicate ep-spin-lib:nameWellbore ;
523 - sp:subject 701 + sp:subject spin:_this
524 - [ sp:varName "wellboreInfo"^^xsd:string 702 + ] [ sp:object
525 - ] 703 + [ sp:varName "dTimStart"^^xsd:string
526 - ] [ sp:object 704 + ] ;
527 - [ sp:varName "temporalPartOfAWellBore"^^xsd:string 705 + sp:predicate ddr:dTimStart ;
528 - ] ; 706 + sp:subject spin:_this
529 - sp:predicate ep-activity:onWellBore ; 707 + ] [ sp:object
530 - sp:subject 708 + [ sp:varName "statusInfo"^^xsd:string
531 - [ sp:varName "dailyDrillingActivity"^^xsd:string 709 + ] ;
532 - ] 710 + sp:predicate ddr:statusInfoRef ;
533 - ] [ sp:object 711 + sp:subject spin:_this
534 - [ sp:varName "wellBore"^^xsd:string 712 + ] [ sp:object
535 - ] ; 713 + [ sp:varName "temporalPartOfARig"^^xsd:string
536 - sp:predicate ep-core:temporalPartOf ; 714 + ] ;
537 - sp:subject 715 + sp:predicate ep-activity:onRig ;
538 - [ sp:varName "temporalPartOfAWellBore"^^xsd:string 716 + sp:subject
539 - ] 717 + [ sp:varName "dailyDrillingActivity"^^xsd:string
540 - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; 718 + ]
541 - sp:predicate rdf:type ; 719 + ] [ sp:object
542 - sp:subject 720 + [ sp:varName "waterDepth"^^xsd:string
543 - [ sp:varName "wellBore"^^xsd:string 721 + ] ;
544 - ] 722 + sp:predicate ddr:waterDepthRef ;
545 - ] [ rdf:type sp:Bind ; 723 + sp:subject
546 - sp:expression 724 + [ sp:varName "statusInfo"^^xsd:string
547 - [ rdf:type ep-spin-lib:normalizeString ; 725 + ]
548 - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string 726 + ] [ sp:object
549 - ] 727 + [ sp:varName "real"^^xsd:string
550 - ] ; 728 + ] ;
551 - sp:variable 729 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
552 - [ sp:varName "normalizedWellBoreName"^^xsd:string 730 + sp:subject
553 - ] 731 + [ sp:varName "waterDepth"^^xsd:string
554 - ] [ rdf:type sp:Bind ; 732 + ]
555 - sp:expression 733 + ] [ sp:object
556 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 734 + [ sp:varName "uom"^^xsd:string
557 - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string 735 + ] ;
558 - ] ; 736 + sp:predicate ddr:uomRef ;
559 - sp:arg2 [ sp:varName "dTimStart"^^xsd:string 737 + sp:subject
560 - ] 738 + [ sp:varName "waterDepth"^^xsd:string
561 - ] ; 739 + ]
562 - sp:variable 740 + ] [ rdf:type sp:Bind ;
563 - [ sp:varName "dailyDrillingActivity"^^xsd:string 741 + sp:expression
564 - ] 742 + [ rdf:type ep-spin-lib:normalizeString ;
565 - ]) 743 + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
566 - ] ; 744 + ]
567 - spin:rule 745 + ] ;
568 - [ rdf:type sp:Construct ; 746 + sp:variable
569 - rdfs:comment "STEP 166 Set SPUD date"^^xsd:string ; 747 + [ sp:varName "normalizedWellBoreName"^^xsd:string
570 - sp:templates ([ sp:object 748 + ]
571 - [ sp:varName "spudDate"^^xsd:string 749 + ] [ rdf:type sp:Bind ;
572 - ] ; 750 + sp:expression
573 - sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBoreSpudAt> ; 751 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
574 - sp:subject 752 + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
575 - [ sp:varName "wellBore"^^xsd:string 753 + ] ;
576 - ] 754 + sp:arg2 [ sp:varName "dTimStart"^^xsd:string
577 - ]) ; 755 + ]
578 - sp:where ([ sp:object 756 + ] ;
579 - [ sp:varName "nameWellBore"^^xsd:string 757 + sp:variable
580 - ] ; 758 + [ sp:varName "dailyDrillingActivity"^^xsd:string
581 - sp:predicate ep-spin-lib:nameWellbore ; 759 + ]
582 - sp:subject spin:_this 760 + ] [ rdf:type sp:Bind ;
583 - ] [ sp:object 761 + sp:expression
584 - [ sp:varName "dTimStart"^^xsd:string 762 + [ rdf:type ep-spin-lib:selectLengthScale ;
585 - ] ; 763 + sp:arg1 [ sp:varName "uom"^^xsd:string
586 - sp:predicate ddr:dTimStart ; 764 + ]
587 - sp:subject spin:_this 765 + ] ;
588 - ] [ sp:object 766 + sp:variable
589 - [ sp:varName "wellboreInfo"^^xsd:string 767 + [ sp:varName "lengthScale"^^xsd:string
590 - ] ; 768 + ]
591 - sp:predicate ddr:wellboreInfoRef ; 769 + ])
592 - sp:subject spin:_this 770 + ] ;
593 - ] [ sp:object 771 + spin:rule
594 - [ sp:varName "spudDate"^^xsd:string 772 + [ rdf:type sp:Construct ;
595 - ] ; 773 + rdfs:comment "STEP 164 Set preSPUD date"^^xsd:string ;
596 - sp:predicate ddr:dTimSpud ; 774 + sp:templates ([ sp:object
597 - sp:subject 775 + [ sp:varName "preSpudDate"^^xsd:string
598 - [ sp:varName "wellboreInfo"^^xsd:string 776 + ] ;
599 - ] 777 + sp:predicate <http://www.reportinghub.no/ep/schema/well#wellBorePreSpudAt> ;
600 - ] [ sp:object 778 + sp:subject
601 - [ sp:varName "temporalPartOfAWellBore"^^xsd:string 779 + [ sp:varName "wellBore"^^xsd:string
602 - ] ; 780 + ]
603 - sp:predicate ep-activity:onWellBore ; 781 + ]) ;
604 - sp:subject 782 + sp:where ([ sp:object
605 - [ sp:varName "dailyDrillingActivity"^^xsd:string 783 + [ sp:varName "nameWellBore"^^xsd:string
606 - ] 784 + ] ;
607 - ] [ sp:object 785 + sp:predicate ep-spin-lib:nameWellbore ;
608 - [ sp:varName "wellBore"^^xsd:string 786 + sp:subject spin:_this
609 - ] ; 787 + ] [ sp:object
610 - sp:predicate ep-core:temporalPartOf ; 788 + [ sp:varName "dTimStart"^^xsd:string
611 - sp:subject 789 + ] ;
612 - [ sp:varName "temporalPartOfAWellBore"^^xsd:string 790 + sp:predicate ddr:dTimStart ;
613 - ] 791 + sp:subject spin:_this
614 - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; 792 + ] [ sp:object
615 - sp:predicate rdf:type ; 793 + [ sp:varName "wellboreInfo"^^xsd:string
616 - sp:subject 794 + ] ;
617 - [ sp:varName "wellBore"^^xsd:string 795 + sp:predicate ddr:wellboreInfoRef ;
618 - ] 796 + sp:subject spin:_this
619 - ] [ rdf:type sp:Bind ; 797 + ] [ sp:object
620 - sp:expression 798 + [ sp:varName "preSpudDate"^^xsd:string
621 - [ rdf:type ep-spin-lib:normalizeString ; 799 + ] ;
622 - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string 800 + sp:predicate ddr:dTimPreSpud ;
623 - ] 801 + sp:subject
624 - ] ; 802 + [ sp:varName "wellboreInfo"^^xsd:string
625 - sp:variable 803 + ]
626 - [ sp:varName "normalizedWellBoreName"^^xsd:string 804 + ] [ sp:object
627 - ] 805 + [ sp:varName "temporalPartOfAWellBore"^^xsd:string
628 - ] [ rdf:type sp:Bind ; 806 + ] ;
629 - sp:expression 807 + sp:predicate ep-activity:onWellBore ;
630 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 808 + sp:subject
631 - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string 809 + [ sp:varName "dailyDrillingActivity"^^xsd:string
632 - ] ; 810 + ]
633 - sp:arg2 [ sp:varName "dTimStart"^^xsd:string 811 + ] [ sp:object
634 - ] 812 + [ sp:varName "wellBore"^^xsd:string
635 - ] ; 813 + ] ;
636 - sp:variable 814 + sp:predicate ep-core:temporalPartOf ;
637 - [ sp:varName "dailyDrillingActivity"^^xsd:string 815 + sp:subject
638 - ] 816 + [ sp:varName "temporalPartOfAWellBore"^^xsd:string
639 - ]) 817 + ]
640 - ] ; 818 + ] [ rdf:type sp:NamedGraph ;
641 - spin:rule 819 + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ;
642 - [ rdf:type sp:Construct ; 820 + sp:predicate rdf:type ;
643 - rdfs:comment "STEP 160b Set rig for drilling activity - NPD Code not supplied"^^xsd:string ; 821 + sp:subject
644 - sp:templates ([ sp:object _:b6 ; 822 + [ sp:varName "wellBore"^^xsd:string
645 - sp:predicate ep-activity:onRig ; 823 + ]
646 - sp:subject _:b7 824 + ]) ;
647 - ] [ sp:object ep-facility:TemporalPartOfARig ; 825 + sp:graphNameNode <http://www.reportinghub.no/np/data/npd>
648 - sp:predicate rdf:type ; 826 + ] [ rdf:type sp:Bind ;
649 - sp:subject _:b6 827 + sp:expression
650 - ] [ sp:object _:b8 ; 828 + [ rdf:type ep-spin-lib:normalizeString ;
651 - sp:predicate ep-core:temporalPartOf ; 829 + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
652 - sp:subject _:b6 830 + ]
653 - ] [ sp:object ep-facility:Rig ; 831 + ] ;
654 - sp:predicate rdf:type ; 832 + sp:variable
655 - sp:subject _:b8 833 + [ sp:varName "normalizedWellBoreName"^^xsd:string
656 - ]) ; 834 + ]
657 - sp:where ([ sp:object _:b9 ; 835 + ] [ rdf:type sp:Bind ;
658 - sp:predicate ep-spin-lib:nameWellbore ; 836 + sp:expression
659 - sp:subject spin:_this 837 + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
660 - ] [ sp:object _:b10 ; 838 + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
661 - sp:predicate ddr:dTimStart ; 839 + ] ;
662 - sp:subject spin:_this 840 + sp:arg2 [ sp:varName "dTimStart"^^xsd:string
663 - ] [ rdf:type sp:NotExists ; 841 + ]
664 - sp:elements ([ sp:object _:b11 ; 842 + ] ;
665 - sp:predicate ddr:wellboreInfoRef ; 843 + sp:variable
666 - sp:subject spin:_this 844 + [ sp:varName "dailyDrillingActivity"^^xsd:string
667 - ] [ sp:object _:b12 ; 845 + ]
668 - sp:predicate ddr:rigAliasRef ; 846 + ])
669 - sp:subject _:b11 847 + ] .
670 - ] [ sp:object 848 +
671 - [ sp:varName "code"^^xsd:string 849 +[] rdf:type sp:Modify .
672 - ] ; 850 +
673 - sp:predicate ddr:name ; 851 +[] rdf:type fn:starts-with .
674 - sp:subject _:b12 852 +
675 - ] [ rdf:type sp:Union ; 853 +[] rdf:type smf:trim .
676 - sp:elements (([ sp:object "NPD Code"^^xsd:string ; 854 +
677 - sp:predicate ddr:namingSystem ; 855 +[] rdf:type smf:regex .
678 - sp:subject _:b12 856 +
679 - ]) ([ sp:object "NPD code"^^xsd:string ; 857 +_:b10
680 - sp:predicate ddr:namingSystem ; 858 + sp:varName "normalizedWellBoreName"^^xsd:string .
681 - sp:subject _:b12 859 +
682 - ])) 860 +_:b9 sp:varName "rigAlias"^^xsd:string .
683 - ]) 861 +
684 - ] [ rdf:type sp:Bind ; 862 +_:b8 sp:varName "wellboreInfo"^^xsd:string .
685 - sp:expression 863 +
686 - [ rdf:type ep-spin-lib:normalizeString ; 864 +_:b7 sp:varName "dTimStart"^^xsd:string .
687 - sp:arg1 _:b9 865 +
688 - ] ; 866 +_:b6 sp:varName "nameWellBore"^^xsd:string .
689 - sp:variable _:b13 867 +
690 - ] [ rdf:type sp:Bind ; 868 +_:b4 sp:varName "dailyDrillingActivity"^^xsd:string .
691 - sp:expression 869 +
692 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; 870 +([]) .
693 - sp:arg1 _:b13 ; 871 +
694 - sp:arg2 _:b10 872 +([]) .
695 - ] ; 873 +
696 - sp:variable _:b7 874 +([] [] [ rdf:type sp:Filter
697 - ]) 875 + ] [ rdf:type sp:Bind
698 - ] ; 876 + ]) .
699 - spin:rule
700 - [ rdf:type sp:Construct ;
701 - rdfs:comment "STEP 163 Set drilling contractor for drilling activity"^^xsd:string ;
702 - sp:templates ([ sp:object _:b14 ;
703 - sp:predicate ep-activity:drillingContractor ;
704 - sp:subject
705 - [ sp:varName "dailyDrillingActivity"^^xsd:string
706 - ]
707 - ] [ sp:object ep-org:Company ;
708 - sp:predicate rdf:type ;
709 - sp:subject _:b14
710 - ] [ sp:object
711 - [ sp:varName "nameContractor"^^xsd:string
712 - ] ;
713 - sp:predicate ep-core:name ;
714 - sp:subject _:b14
715 - ]) ;
716 - sp:where ([ sp:object
717 - [ sp:varName "nameWellBore"^^xsd:string
718 - ] ;
719 - sp:predicate ep-spin-lib:nameWellbore ;
720 - sp:subject spin:_this
721 - ] [ sp:object
722 - [ sp:varName "dTimStart"^^xsd:string
723 - ] ;
724 - sp:predicate ddr:dTimStart ;
725 - sp:subject spin:_this
726 - ] [ sp:object
727 - [ sp:varName "wellboreInfo"^^xsd:string
728 - ] ;
729 - sp:predicate ddr:wellboreInfoRef ;
730 - sp:subject spin:_this
731 - ] [ sp:object
732 - [ sp:varName "nameContractor"^^xsd:string
733 - ] ;
734 - sp:predicate ddr:drillContractor ;
735 - sp:subject
736 - [ sp:varName "wellboreInfo"^^xsd:string
737 - ]
738 - ] [ rdf:type sp:Bind ;
739 - sp:expression
740 - [ rdf:type ep-spin-lib:normalizeString ;
741 - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
742 - ]
743 - ] ;
744 - sp:variable
745 - [ sp:varName "normalizedWellBoreName"^^xsd:string
746 - ]
747 - ] [ rdf:type sp:Bind ;
748 - sp:expression
749 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
750 - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
751 - ] ;
752 - sp:arg2 [ sp:varName "dTimStart"^^xsd:string
753 - ]
754 - ] ;
755 - sp:variable
756 - [ sp:varName "dailyDrillingActivity"^^xsd:string
757 - ]
758 - ] [ rdf:type sp:Bind ;
759 - sp:expression
760 - [ rdf:type ep-spin-lib:normalizeString ;
761 - sp:arg1 [ sp:varName "nameContractor"^^xsd:string
762 - ]
763 - ] ;
764 - sp:variable
765 - [ sp:varName "normalizedContractorName"^^xsd:string
766 - ]
767 - ] [ rdf:type sp:Bind ;
768 - sp:expression
769 - [ rdf:type rhspin:companyById ;
770 - arg:id [ sp:varName "normalizedContractorName"^^xsd:string
771 - ]
772 - ] ;
773 - sp:variable
774 - [ sp:varName "contractor"^^xsd:string
775 - ]
776 - ])
777 - ] ;
778 - spin:rule
779 - [ rdf:type sp:Construct ;
780 - rdfs:comment "STEP 162 Set drilling operator for drilling activity"^^xsd:string ;
781 - sp:templates ([ sp:object _:b15 ;
782 - sp:predicate ep-activity:drillingOperator ;
783 - sp:subject
784 - [ sp:varName "dailyDrillingActivity"^^xsd:string
785 - ]
786 - ] [ sp:object ep-org:Company ;
787 - sp:predicate rdf:type ;
788 - sp:subject _:b15
789 - ] [ sp:object
790 - [ sp:varName "nameOperator"^^xsd:string
791 - ] ;
792 - sp:predicate ep-core:name ;
793 - sp:subject _:b15
794 - ]) ;
795 - sp:where ([ sp:object
796 - [ sp:varName "nameWellBore"^^xsd:string
797 - ] ;
798 - sp:predicate ep-spin-lib:nameWellbore ;
799 - sp:subject spin:_this
800 - ] [ sp:object
801 - [ sp:varName "dTimStart"^^xsd:string
802 - ] ;
803 - sp:predicate ddr:dTimStart ;
804 - sp:subject spin:_this
805 - ] [ sp:object
806 - [ sp:varName "wellboreInfo"^^xsd:string
807 - ] ;
808 - sp:predicate ddr:wellboreInfoRef ;
809 - sp:subject spin:_this
810 - ] [ sp:object
811 - [ sp:varName "nameOperator"^^xsd:string
812 - ] ;
813 - sp:predicate ddr:operator ;
814 - sp:subject
815 - [ sp:varName "wellboreInfo"^^xsd:string
816 - ]
817 - ] [ rdf:type sp:Bind ;
818 - sp:expression
819 - [ rdf:type ep-spin-lib:normalizeString ;
820 - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string
821 - ]
822 - ] ;
823 - sp:variable
824 - [ sp:varName "normalizedWellBoreName"^^xsd:string
825 - ]
826 - ] [ rdf:type sp:Bind ;
827 - sp:expression
828 - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ;
829 - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string
830 - ] ;
831 - sp:arg2 [ sp:varName "dTimStart"^^xsd:string
832 - ]
833 - ] ;
834 - sp:variable
835 - [ sp:varName "dailyDrillingActivity"^^xsd:string
836 - ]
837 - ])
838 - ] .
839 -
840 -_:b7 sp:varName "dailyDrillingActivity"^^xsd:string .
841 -
842 -_:b9 sp:varName "nameWellBore"^^xsd:string .
843 -
844 -_:b10
845 - sp:varName "dTimStart"^^xsd:string .
846 -
847 -_:b11
848 - sp:varName "wellboreInfo"^^xsd:string .
849 -
850 -_:b12
851 - sp:varName "rigAlias"^^xsd:string .
852 -
853 -_:b13
854 - sp:varName "normalizedWellBoreName"^^xsd:string .
855 -
856 -[] rdf:type sp:Modify .
857 -
858 -[] rdf:type fn:starts-with .
859 -
860 -[] rdf:type smf:trim .
861 -
862 -[] rdf:type smf:regex .
863 -
864 -([] [] [ rdf:type sp:Filter
865 - ] [ rdf:type sp:Bind
866 - ]) .
867 -
868 -([]) .
869 -
870 -([]) .
......
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#> .
......