Showing
2 changed files
with
414 additions
and
482 deletions
1 | -# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport | 1 | +# Saved by TopBraid on Fri Oct 21 16:32:54 BST 2011 |
2 | -# imports: http://spinrdf.org/spin | 2 | +# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport |
3 | -# imports: http://www.energistics.org/schemas/abstract | 3 | +# imports: http://www.reportinghub.no/ep/schema/1.0/report |
4 | -# imports: http://www.reportinghub.no/ep/schema/1.0/activity | 4 | +# imports: http://www.reportinghub.no/ep/spin/1.1/lib |
5 | -# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose | 5 | +# imports: http://www.energistics.org/schemas/abstract |
6 | -# imports: http://www.reportinghub.no/ep/schema/1.0/core | 6 | +# imports: http://www.witsml.org/schemas/1series |
7 | -# imports: http://www.reportinghub.no/ep/schema/1.0/equipment | 7 | +# imports: http://www.reportinghub.no/ep/schema/1.0/well |
8 | -# imports: http://www.reportinghub.no/ep/schema/1.0/report | 8 | +# imports: http://www.reportinghub.no/ep/schema/1.0/core |
9 | -# imports: http://www.reportinghub.no/ep/schema/1.0/well | 9 | +# imports: http://www.reportinghub.no/ep/schema/1.0/equipment |
10 | -# imports: http://www.reportinghub.no/ep/spin/1.1/lib | 10 | +# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose |
11 | -# imports: http://www.witsml.org/schemas/1series | 11 | +# imports: http://www.reportinghub.no/ep/schema/1.0/activity |
12 | - | 12 | +# imports: http://spinrdf.org/spin |
13 | -@prefix NPD_110721144611-valid: <file:///Sandbox/NPD_110721144611-valid.xml#> . | 13 | + |
14 | -@prefix arg: <http://spinrdf.org/arg#> . | 14 | +@prefix NPD_110721144611-valid: <file:///Sandbox/NPD_110721144611-valid.xml#> . |
15 | -@prefix ddr: <http://www.witsml.org/schemas/1series#> . | 15 | +@prefix arg: <http://spinrdf.org/arg#> . |
16 | -@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . | 16 | +@prefix ddr: <http://www.witsml.org/schemas/1series#> . |
17 | -@prefix owl: <http://www.w3.org/2002/07/owl#> . | 17 | +@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . |
18 | -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 18 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . |
19 | -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | 19 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
20 | -@prefix rhspin: <http://www.reportinghub.no/spin/rh#> . | 20 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
21 | -@prefix sp: <http://spinrdf.org/sp#> . | 21 | +@prefix rhspin: <http://www.reportinghub.no/spin/rh#> . |
22 | -@prefix spin: <http://spinrdf.org/spin#> . | 22 | +@prefix sp: <http://spinrdf.org/sp#> . |
23 | -@prefix spl: <http://spinrdf.org/spl#> . | 23 | +@prefix spin: <http://spinrdf.org/spin#> . |
24 | -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | 24 | +@prefix spl: <http://spinrdf.org/spl#> . |
25 | - | 25 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
26 | -<http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> | 26 | + |
27 | - rdf:type owl:Ontology ; | 27 | +<http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport> |
28 | - owl:imports <http://spinrdf.org/spin> , <http://www.energistics.org/schemas/abstract> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.witsml.org/schemas/1series> ; | 28 | + rdf:type owl:Ontology ; |
29 | - owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 29 | + 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> ; |
30 | - | 30 | + owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
31 | -ddr:Obj_drillReport | 31 | + |
32 | - spin:rule | 32 | +ddr:Obj_drillReport |
33 | - [ rdf:type sp:Construct ; | 33 | + spin:rule |
34 | - rdfs:comment """STEP 103 Create DailyDrillingReport, DailyDrillingActivity, TemporalPartOfAWellBore and WellBore | 34 | + [ rdf:type sp:Construct ; |
35 | + rdfs:comment """STEP 103 Create DailyDrillingReport, DailyDrillingActivity, and TemporalPartOfAWellBore | ||
35 | Minimum data - createDate, dTimStart, dTimEnd, nameWellBore | 36 | Minimum data - createDate, dTimStart, dTimEnd, nameWellBore |
36 | Optional data - extendedReport | 37 | Optional data - extendedReport |
37 | -replaced for testing - BIND (rhspin:wellBoreByName(?nameWellBore) AS ?wellBore) ."""^^xsd:string ; | 38 | +replaced for testing - BIND (rhspin:wellBoreByName(?nameWellBore) AS ?wellBore) ."""^^xsd:string ; |
38 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> ; | 39 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> ; |
39 | - sp:predicate rdf:type ; | 40 | + sp:predicate rdf:type ; |
40 | - sp:subject | 41 | + sp:subject _:b1 |
41 | - [ sp:varName "dailyDrillingReport"^^xsd:string | 42 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivity> ; |
42 | - ] | 43 | + sp:predicate rdf:type ; |
43 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivity> ; | 44 | + sp:subject _:b2 |
44 | - sp:predicate rdf:type ; | 45 | + ] [ sp:object _:b2 ; |
45 | - sp:subject | 46 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; |
46 | - [ sp:varName "dailyDrillingActivity"^^xsd:string | 47 | + sp:subject _:b1 |
47 | - ] | 48 | + ] [ sp:object _:b3 ; |
48 | - ] [ sp:object | 49 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ; |
49 | - [ sp:varName "dailyDrillingActivity"^^xsd:string | 50 | + sp:subject _:b1 |
50 | - ] ; | 51 | + ] [ sp:object _:b4 ; |
51 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | 52 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
52 | - sp:subject | 53 | + sp:subject _:b2 |
53 | - [ sp:varName "dailyDrillingReport"^^xsd:string | 54 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ; |
54 | - ] | 55 | + sp:predicate rdf:type ; |
55 | - ] [ sp:object | 56 | + sp:subject _:b5 |
56 | - [ sp:varName "createDate"^^xsd:string | 57 | + ] [ sp:object _:b6 ; |
57 | - ] ; | 58 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
58 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ; | 59 | + sp:subject _:b5 |
59 | - sp:subject | 60 | + ] [ sp:object _:b7 ; |
60 | - [ sp:varName "dailyDrillingReport"^^xsd:string | 61 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#humanRecognizableName> ; |
61 | - ] | 62 | + sp:subject _:b6 |
62 | - ] [ sp:object | 63 | + ] [ sp:object _:b5 ; |
63 | - [ sp:varName "dTimStart"^^xsd:string | 64 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; |
64 | - ] ; | 65 | + sp:subject _:b2 |
65 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 66 | + ] [ sp:object _:b8 ; |
66 | - sp:subject | 67 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#descriptionOfActivitiesFollowingTheDailyReportingPeriod> ; |
67 | - [ sp:varName "dailyDrillingActivity"^^xsd:string | 68 | + sp:subject _:b2 |
68 | - ] | 69 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#Report> ; |
69 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ; | 70 | + sp:predicate rdf:type ; |
70 | - sp:predicate rdf:type ; | 71 | + sp:subject _:b8 |
71 | - sp:subject | 72 | + ] [ sp:object _:b9 ; |
72 | - [ sp:varName "temporalPartOfAWellBore"^^xsd:string | 73 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#hasContent> ; |
73 | - ] | 74 | + sp:subject _:b8 |
74 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; | 75 | + ] [ sp:object _:b10 ; |
75 | - sp:predicate rdf:type ; | 76 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ; |
76 | - sp:subject | 77 | + sp:subject _:b8 |
77 | - [ sp:varName "wellBore"^^xsd:string | 78 | + ]) ; |
78 | - ] | 79 | + sp:where ([ sp:object _:b7 ; |
79 | - ] [ sp:object | 80 | + sp:predicate ep-spin-lib:nameWellbore ; |
80 | - [ sp:varName "wellBore"^^xsd:string | 81 | + sp:subject spin:_this |
81 | - ] ; | 82 | + ] [ sp:object _:b4 ; |
82 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 83 | + sp:predicate ddr:dTimStart ; |
83 | - sp:subject | 84 | + sp:subject spin:_this |
84 | - [ sp:varName "temporalPartOfAWellBore"^^xsd:string | 85 | + ] [ sp:object _:b11 ; |
85 | - ] | 86 | + sp:predicate ddr:dTimEnd ; |
86 | - ] [ sp:object | 87 | + sp:subject spin:_this |
87 | - [ sp:varName "nameWellBore"^^xsd:string | 88 | + ] [ sp:object _:b3 ; |
88 | - ] ; | 89 | + sp:predicate ddr:createDate ; |
89 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#humanRecognizableName> ; | 90 | + sp:subject spin:_this |
90 | - sp:subject | 91 | + ] [ rdf:type sp:Optional ; |
91 | - [ sp:varName "wellBore"^^xsd:string | 92 | + sp:elements ([ sp:object _:b12 ; |
92 | - ] | 93 | + sp:predicate ddr:extendedReportRef ; |
93 | - ] [ sp:object | 94 | + sp:subject spin:_this |
94 | - [ sp:varName "temporalPartOfAWellBore"^^xsd:string | 95 | + ] [ sp:object _:b9 ; |
95 | - ] ; | 96 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
96 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; | 97 | + sp:subject _:b12 |
97 | - sp:subject | 98 | + ] [ rdf:type sp:Optional ; |
98 | - [ sp:varName "dailyDrillingActivity"^^xsd:string | 99 | + sp:elements ([ sp:object _:b10 ; |
99 | - ] | 100 | + sp:predicate ddr:dTim ; |
100 | - ] [ sp:object _:b1 ; | 101 | + sp:subject _:b12 |
101 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#descriptionOfActivitiesFollowingTheDailyReportingPeriod> ; | 102 | + ]) |
102 | - sp:subject | 103 | + ]) |
103 | - [ sp:varName "dailyDrillingActivity"^^xsd:string | 104 | + ] [ rdf:type sp:Bind ; |
104 | - ] | 105 | + sp:expression |
105 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#Report> ; | 106 | + [ rdf:type ep-spin-lib:normalizeString ; |
106 | - sp:predicate rdf:type ; | 107 | + sp:arg1 _:b7 |
107 | - sp:subject _:b1 | 108 | + ] ; |
108 | - ] [ sp:object | 109 | + sp:variable _:b13 |
109 | - [ sp:varName "extendedReportContent"^^xsd:string | 110 | + ] [ rdf:type sp:Bind ; |
110 | - ] ; | 111 | + sp:expression |
111 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#hasContent> ; | 112 | + [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ; |
112 | - sp:subject _:b1 | 113 | + sp:arg1 _:b13 ; |
113 | - ] [ sp:object | 114 | + sp:arg2 _:b3 |
114 | - [ sp:varName "dTimExtendedReport"^^xsd:string | 115 | + ] ; |
115 | - ] ; | 116 | + sp:variable _:b1 |
116 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ; | 117 | + ] [ rdf:type sp:Bind ; |
117 | - sp:subject _:b1 | 118 | + sp:expression |
118 | - ]) ; | 119 | + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; |
119 | - sp:where ([ sp:object | 120 | + sp:arg1 _:b13 ; |
120 | - [ sp:varName "nameWellBore"^^xsd:string | 121 | + sp:arg2 _:b4 |
121 | - ] ; | 122 | + ] ; |
122 | - sp:predicate ep-spin-lib:nameWellbore ; | 123 | + sp:variable _:b2 |
123 | - sp:subject spin:_this | 124 | + ] [ rdf:type sp:Bind ; |
124 | - ] [ sp:object | 125 | + sp:expression |
125 | - [ sp:varName "dTimStart"^^xsd:string | 126 | + [ rdf:type ep-spin-lib:buildTemporalPartOfAWellBoreURI ; |
126 | - ] ; | 127 | + sp:arg1 _:b13 ; |
127 | - sp:predicate ddr:dTimStart ; | 128 | + sp:arg2 _:b4 ; |
128 | - sp:subject spin:_this | 129 | + sp:arg3 _:b11 |
129 | - ] [ sp:object | 130 | + ] ; |
130 | - [ sp:varName "dTimEnd"^^xsd:string | 131 | + sp:variable _:b5 |
131 | - ] ; | 132 | + ] [ rdf:type sp:Bind ; |
132 | - sp:predicate ddr:dTimEnd ; | 133 | + sp:expression |
133 | - sp:subject spin:_this | 134 | + [ rdf:type rhspin:wellBoreByName ; |
134 | - ] [ sp:object | 135 | + arg:wellBoreName |
135 | - [ sp:varName "createDate"^^xsd:string | 136 | + [ rdf:type xsd:string ; |
136 | - ] ; | 137 | + sp:arg1 _:b7 |
137 | - sp:predicate ddr:createDate ; | 138 | + ] |
138 | - sp:subject spin:_this | 139 | + ] ; |
139 | - ] [ rdf:type sp:Optional ; | 140 | + sp:variable _:b6 |
140 | - sp:elements ([ sp:object | 141 | + ]) |
141 | - [ sp:varName "extendedReport"^^xsd:string | 142 | + ] ; |
142 | - ] ; | 143 | + spin:rule |
143 | - sp:predicate ddr:extendedReportRef ; | 144 | + [ rdf:type sp:Construct ; |
144 | - sp:subject spin:_this | ||
145 | - ] [ sp:object | ||
146 | - [ sp:varName "extendedReportContent"^^xsd:string | ||
147 | - ] ; | ||
148 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
149 | - sp:subject | ||
150 | - [ sp:varName "extendedReport"^^xsd:string | ||
151 | - ] | ||
152 | - ] [ rdf:type sp:Optional ; | ||
153 | - sp:elements ([ sp:object | ||
154 | - [ sp:varName "dTimExtendedReport"^^xsd:string | ||
155 | - ] ; | ||
156 | - sp:predicate ddr:dTim ; | ||
157 | - sp:subject | ||
158 | - [ sp:varName "extendedReport"^^xsd:string | ||
159 | - ] | ||
160 | - ]) | ||
161 | - ]) | ||
162 | - ] [ rdf:type sp:Bind ; | ||
163 | - sp:expression | ||
164 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
165 | - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string | ||
166 | - ] | ||
167 | - ] ; | ||
168 | - sp:variable | ||
169 | - [ sp:varName "normalizedWellBoreName"^^xsd:string | ||
170 | - ] | ||
171 | - ] [ rdf:type sp:Bind ; | ||
172 | - sp:expression | ||
173 | - [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ; | ||
174 | - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string | ||
175 | - ] ; | ||
176 | - sp:arg2 [ sp:varName "createDate"^^xsd:string | ||
177 | - ] | ||
178 | - ] ; | ||
179 | - sp:variable | ||
180 | - [ sp:varName "dailyDrillingReport"^^xsd:string | ||
181 | - ] | ||
182 | - ] [ rdf:type sp:Bind ; | ||
183 | - sp:expression | ||
184 | - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; | ||
185 | - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string | ||
186 | - ] ; | ||
187 | - sp:arg2 [ sp:varName "dTimStart"^^xsd:string | ||
188 | - ] | ||
189 | - ] ; | ||
190 | - sp:variable | ||
191 | - [ sp:varName "dailyDrillingActivity"^^xsd:string | ||
192 | - ] | ||
193 | - ] [ rdf:type sp:Bind ; | ||
194 | - sp:expression | ||
195 | - [ rdf:type ep-spin-lib:buildTemporalPartOfAWellBoreURI ; | ||
196 | - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string | ||
197 | - ] ; | ||
198 | - sp:arg2 [ sp:varName "dTimStart"^^xsd:string | ||
199 | - ] ; | ||
200 | - sp:arg3 [ sp:varName "dTimEnd"^^xsd:string | ||
201 | - ] | ||
202 | - ] ; | ||
203 | - sp:variable | ||
204 | - [ sp:varName "temporalPartOfAWellBore"^^xsd:string | ||
205 | - ] | ||
206 | - ] [ rdf:type sp:Bind ; | ||
207 | - sp:expression | ||
208 | - [ rdf:type rhspin:wellBoreByName ; | ||
209 | - arg:wellBoreName | ||
210 | - [ rdf:type xsd:string ; | ||
211 | - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string | ||
212 | - ] | ||
213 | - ] | ||
214 | - ] ; | ||
215 | - sp:variable | ||
216 | - [ sp:varName "wellBore"^^xsd:string | ||
217 | - ] | ||
218 | - ]) | ||
219 | - ] ; | ||
220 | - spin:rule | ||
221 | - [ rdf:type sp:Construct ; | ||
222 | - rdfs:comment """STEP 103a Set name of DailyDrillingReport as label | ||
223 | -Minimum data - createDate, dTimStart, nameWellBore"""^^xsd:string ; | ||
224 | - sp:templates ([ sp:object | ||
225 | - [ sp:varName "nameDailyDrillingReport"^^xsd:string | ||
226 | - ] ; | ||
227 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#humanRecognizableName> ; | ||
228 | - sp:subject | ||
229 | - [ sp:varName "dailyDrillingReport"^^xsd:string | ||
230 | - ] | ||
231 | - ]) ; | ||
232 | - sp:where ([ sp:object | ||
233 | - [ sp:varName "nameWellBore"^^xsd:string | ||
234 | - ] ; | ||
235 | - sp:predicate ep-spin-lib:nameWellbore ; | ||
236 | - sp:subject spin:_this | ||
237 | - ] [ sp:object | ||
238 | - [ sp:varName "nameDailyDrillingReport"^^xsd:string | ||
239 | - ] ; | ||
240 | - sp:predicate ddr:name ; | ||
241 | - sp:subject spin:_this | ||
242 | - ] [ sp:object | ||
243 | - [ sp:varName "createDate"^^xsd:string | ||
244 | - ] ; | ||
245 | - sp:predicate ddr:createDate ; | ||
246 | - sp:subject spin:_this | ||
247 | - ] [ rdf:type sp:Bind ; | ||
248 | - sp:expression | ||
249 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
250 | - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string | ||
251 | - ] | ||
252 | - ] ; | ||
253 | - sp:variable | ||
254 | - [ sp:varName "normalizedWellBoreName"^^xsd:string | ||
255 | - ] | ||
256 | - ] [ rdf:type sp:Bind ; | ||
257 | - sp:expression | ||
258 | - [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ; | ||
259 | - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string | ||
260 | - ] ; | ||
261 | - sp:arg2 [ sp:varName "createDate"^^xsd:string | ||
262 | - ] | ||
263 | - ] ; | ||
264 | - sp:variable | ||
265 | - [ sp:varName "dailyDrillingReport"^^xsd:string | ||
266 | - ] | ||
267 | - ]) | ||
268 | - ] ; | ||
269 | - spin:rule | ||
270 | - [ rdf:type sp:Construct ; | ||
271 | - rdfs:comment "STEP 104 Transfer dTimEnd"^^xsd:string ; | ||
272 | - sp:templates ([ sp:object | ||
273 | - [ sp:varName "dTimEnd"^^xsd:string | ||
274 | - ] ; | ||
275 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
276 | - sp:subject | ||
277 | - [ sp:varName "dailyDrillingActivity"^^xsd:string | ||
278 | - ] | ||
279 | - ]) ; | ||
280 | - sp:where ([ sp:object | ||
281 | - [ sp:varName "nameWellBore"^^xsd:string | ||
282 | - ] ; | ||
283 | - sp:predicate ep-spin-lib:nameWellbore ; | ||
284 | - sp:subject spin:_this | ||
285 | - ] [ sp:object | ||
286 | - [ sp:varName "dTimStart"^^xsd:string | ||
287 | - ] ; | ||
288 | - sp:predicate ddr:dTimStart ; | ||
289 | - sp:subject spin:_this | ||
290 | - ] [ sp:object | ||
291 | - [ sp:varName "dTimEnd"^^xsd:string | ||
292 | - ] ; | ||
293 | - sp:predicate ddr:dTimEnd ; | ||
294 | - sp:subject spin:_this | ||
295 | - ] [ rdf:type sp:Bind ; | ||
296 | - sp:expression | ||
297 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
298 | - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string | ||
299 | - ] | ||
300 | - ] ; | ||
301 | - sp:variable | ||
302 | - [ sp:varName "normalizedWellBoreName"^^xsd:string | ||
303 | - ] | ||
304 | - ] [ rdf:type sp:Bind ; | ||
305 | - sp:expression | ||
306 | - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; | ||
307 | - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string | ||
308 | - ] ; | ||
309 | - sp:arg2 [ sp:varName "dTimStart"^^xsd:string | ||
310 | - ] | ||
311 | - ] ; | ||
312 | - sp:variable | ||
313 | - [ sp:varName "dailyDrillingActivity"^^xsd:string | ||
314 | - ] | ||
315 | - ]) | ||
316 | - ] ; | ||
317 | - spin:rule | ||
318 | - [ rdf:type sp:Construct ; | ||
319 | rdfs:comment """STEP 105 | 145 | rdfs:comment """STEP 105 |
320 | -Classify a DailyDrillingReport"""^^xsd:string ; | 146 | +Classify a DailyDrillingReport"""^^xsd:string ; |
321 | - sp:templates ([ sp:object | 147 | + sp:templates ([ sp:object |
322 | - [ sp:varName "dailyDrillingReportType"^^xsd:string | 148 | + [ sp:varName "dailyDrillingReportType"^^xsd:string |
323 | - ] ; | 149 | + ] ; |
324 | - sp:predicate rdf:type ; | 150 | + sp:predicate rdf:type ; |
325 | - sp:subject | 151 | + sp:subject |
326 | - [ sp:varName "dailyDrillingReport"^^xsd:string | 152 | + [ sp:varName "dailyDrillingReport"^^xsd:string |
327 | - ] | 153 | + ] |
328 | - ]) ; | 154 | + ]) ; |
329 | - sp:where ([ sp:object | 155 | + sp:where ([ sp:object |
330 | - [ sp:varName "nameWellBore"^^xsd:string | 156 | + [ sp:varName "nameWellBore"^^xsd:string |
331 | - ] ; | 157 | + ] ; |
332 | - sp:predicate ep-spin-lib:nameWellbore ; | 158 | + sp:predicate ep-spin-lib:nameWellbore ; |
333 | - sp:subject spin:_this | 159 | + sp:subject spin:_this |
334 | - ] [ sp:object | 160 | + ] [ sp:object |
335 | - [ sp:varName "createDate"^^xsd:string | 161 | + [ sp:varName "createDate"^^xsd:string |
336 | - ] ; | 162 | + ] ; |
337 | - sp:predicate ddr:createDate ; | 163 | + sp:predicate ddr:createDate ; |
338 | - sp:subject spin:_this | 164 | + sp:subject spin:_this |
339 | - ] [ sp:object | 165 | + ] [ sp:object |
340 | - [ sp:varName "versionKind"^^xsd:string | 166 | + [ sp:varName "versionKind"^^xsd:string |
341 | - ] ; | 167 | + ] ; |
342 | - sp:predicate ddr:versionKindRef ; | 168 | + sp:predicate ddr:versionKindRef ; |
343 | - sp:subject spin:_this | 169 | + sp:subject spin:_this |
344 | - ] [ rdf:type sp:Bind ; | 170 | + ] [ rdf:type sp:Bind ; |
345 | - sp:expression | 171 | + sp:expression |
346 | - [ rdf:type ep-spin-lib:selectDailyDrillingReportType ; | 172 | + [ rdf:type ep-spin-lib:selectDailyDrillingReportType ; |
347 | - sp:arg1 [ sp:varName "versionKind"^^xsd:string | 173 | + sp:arg1 [ sp:varName "versionKind"^^xsd:string |
348 | - ] | 174 | + ] |
349 | - ] ; | 175 | + ] ; |
350 | - sp:variable | 176 | + sp:variable |
351 | - [ sp:varName "dailyDrillingReportType"^^xsd:string | 177 | + [ sp:varName "dailyDrillingReportType"^^xsd:string |
352 | - ] | 178 | + ] |
353 | - ] [ rdf:type sp:Bind ; | 179 | + ] [ rdf:type sp:Bind ; |
354 | - sp:expression | 180 | + sp:expression |
355 | - [ rdf:type ep-spin-lib:normalizeString ; | 181 | + [ rdf:type ep-spin-lib:normalizeString ; |
356 | - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string | 182 | + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string |
357 | - ] | 183 | + ] |
358 | - ] ; | 184 | + ] ; |
359 | - sp:variable | 185 | + sp:variable |
360 | - [ sp:varName "normalizedWellBoreName"^^xsd:string | 186 | + [ sp:varName "normalizedWellBoreName"^^xsd:string |
361 | - ] | 187 | + ] |
362 | - ] [ rdf:type sp:Bind ; | 188 | + ] [ rdf:type sp:Bind ; |
363 | - sp:expression | 189 | + sp:expression |
364 | - [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ; | 190 | + [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ; |
365 | - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string | 191 | + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string |
366 | - ] ; | 192 | + ] ; |
367 | - sp:arg2 [ sp:varName "createDate"^^xsd:string | 193 | + sp:arg2 [ sp:varName "createDate"^^xsd:string |
368 | - ] | 194 | + ] |
369 | - ] ; | 195 | + ] ; |
370 | - sp:variable | 196 | + sp:variable |
371 | - [ sp:varName "dailyDrillingReport"^^xsd:string | 197 | + [ sp:varName "dailyDrillingReport"^^xsd:string |
372 | - ] | 198 | + ] |
373 | - ]) | 199 | + ]) |
374 | - ] ; | 200 | + ] ; |
375 | - spin:rule | 201 | + spin:rule |
376 | - [ rdf:type sp:Construct ; | 202 | + [ rdf:type sp:Construct ; |
377 | - rdfs:comment "STEP 106 Create Well"^^xsd:string ; | 203 | + rdfs:comment "STEP 104 Transfer dTimEnd"^^xsd:string ; |
378 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ; | 204 | + sp:templates ([ sp:object |
379 | - sp:predicate rdf:type ; | 205 | + [ sp:varName "dTimEnd"^^xsd:string |
380 | - sp:subject | 206 | + ] ; |
381 | - [ sp:varName "well"^^xsd:string | 207 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
382 | - ] | 208 | + sp:subject |
383 | - ] [ sp:object | 209 | + [ sp:varName "dailyDrillingActivity"^^xsd:string |
384 | - [ sp:varName "nameWell"^^xsd:string | 210 | + ] |
385 | - ] ; | 211 | + ]) ; |
386 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#humanRecognizableName> ; | 212 | + sp:where ([ sp:object |
387 | - sp:subject | 213 | + [ sp:varName "nameWellBore"^^xsd:string |
388 | - [ sp:varName "well"^^xsd:string | 214 | + ] ; |
389 | - ] | 215 | + sp:predicate ep-spin-lib:nameWellbore ; |
390 | - ] [ sp:object _:b2 ; | 216 | + sp:subject spin:_this |
391 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ; | 217 | + ] [ sp:object |
392 | - sp:subject | 218 | + [ sp:varName "dTimStart"^^xsd:string |
393 | - [ sp:varName "dailyDrillingActivity"^^xsd:string | 219 | + ] ; |
394 | - ] | 220 | + sp:predicate ddr:dTimStart ; |
395 | - ] [ sp:object | 221 | + sp:subject spin:_this |
396 | - [ sp:varName "well"^^xsd:string | 222 | + ] [ sp:object |
397 | - ] ; | 223 | + [ sp:varName "dTimEnd"^^xsd:string |
398 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 224 | + ] ; |
399 | - sp:subject _:b2 | 225 | + sp:predicate ddr:dTimEnd ; |
400 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWell> ; | 226 | + sp:subject spin:_this |
401 | - sp:predicate rdf:type ; | 227 | + ] [ rdf:type sp:Bind ; |
402 | - sp:subject _:b2 | 228 | + sp:expression |
403 | - ] [ sp:object | 229 | + [ rdf:type ep-spin-lib:normalizeString ; |
404 | - [ sp:varName "wellBore"^^xsd:string | 230 | + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string |
405 | - ] ; | 231 | + ] |
406 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; | 232 | + ] ; |
407 | - sp:subject | 233 | + sp:variable |
408 | - [ sp:varName "well"^^xsd:string | 234 | + [ sp:varName "normalizedWellBoreName"^^xsd:string |
409 | - ] | 235 | + ] |
410 | - ]) ; | 236 | + ] [ rdf:type sp:Bind ; |
411 | - sp:where ([ sp:object | 237 | + sp:expression |
412 | - [ sp:varName "nameWellBore"^^xsd:string | 238 | + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; |
413 | - ] ; | 239 | + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string |
414 | - sp:predicate ep-spin-lib:nameWellbore ; | 240 | + ] ; |
415 | - sp:subject spin:_this | 241 | + sp:arg2 [ sp:varName "dTimStart"^^xsd:string |
416 | - ] [ sp:object | 242 | + ] |
417 | - [ sp:varName "nameWell"^^xsd:string | 243 | + ] ; |
418 | - ] ; | 244 | + sp:variable |
419 | - sp:predicate ep-spin-lib:nameWell ; | 245 | + [ sp:varName "dailyDrillingActivity"^^xsd:string |
420 | - sp:subject spin:_this | 246 | + ] |
421 | - ] [ sp:object | 247 | + ]) |
422 | - [ sp:varName "dTimStart"^^xsd:string | 248 | + ] ; |
423 | - ] ; | 249 | + spin:rule |
424 | - sp:predicate ddr:dTimStart ; | 250 | + [ rdf:type sp:Construct ; |
425 | - sp:subject spin:_this | 251 | + rdfs:comment """STEP 103a Set name of DailyDrillingReport as label |
426 | - ] [ sp:object | 252 | +Minimum data - createDate, dTimStart, nameWellBore"""^^xsd:string ; |
427 | - [ sp:varName "temporalPartOfAWellBore"^^xsd:string | 253 | + sp:templates ([ sp:object |
428 | - ] ; | 254 | + [ sp:varName "nameDailyDrillingReport"^^xsd:string |
429 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; | 255 | + ] ; |
430 | - sp:subject | 256 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#humanRecognizableName> ; |
431 | - [ sp:varName "dailyDrillingActivity"^^xsd:string | 257 | + sp:subject |
432 | - ] | 258 | + [ sp:varName "dailyDrillingReport"^^xsd:string |
433 | - ] [ sp:object | 259 | + ] |
434 | - [ sp:varName "wellBore"^^xsd:string | 260 | + ]) ; |
435 | - ] ; | 261 | + sp:where ([ sp:object |
436 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 262 | + [ sp:varName "nameWellBore"^^xsd:string |
437 | - sp:subject | 263 | + ] ; |
438 | - [ sp:varName "temporalPartOfAWellBore"^^xsd:string | 264 | + sp:predicate ep-spin-lib:nameWellbore ; |
439 | - ] | 265 | + sp:subject spin:_this |
440 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; | 266 | + ] [ sp:object |
441 | - sp:predicate rdf:type ; | 267 | + [ sp:varName "nameDailyDrillingReport"^^xsd:string |
442 | - sp:subject | 268 | + ] ; |
443 | - [ sp:varName "wellBore"^^xsd:string | 269 | + sp:predicate ddr:name ; |
444 | - ] | 270 | + sp:subject spin:_this |
445 | - ] [ rdf:type sp:Bind ; | 271 | + ] [ sp:object |
446 | - sp:expression | 272 | + [ sp:varName "createDate"^^xsd:string |
447 | - [ rdf:type ep-spin-lib:normalizeString ; | 273 | + ] ; |
448 | - sp:arg1 [ sp:varName "nameWellBore"^^xsd:string | 274 | + sp:predicate ddr:createDate ; |
449 | - ] | 275 | + sp:subject spin:_this |
450 | - ] ; | 276 | + ] [ rdf:type sp:Bind ; |
451 | - sp:variable | 277 | + sp:expression |
452 | - [ sp:varName "normalizedWellBoreName"^^xsd:string | 278 | + [ rdf:type ep-spin-lib:normalizeString ; |
453 | - ] | 279 | + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string |
454 | - ] [ rdf:type sp:Bind ; | 280 | + ] |
455 | - sp:expression | 281 | + ] ; |
456 | - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; | 282 | + sp:variable |
457 | - sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string | 283 | + [ sp:varName "normalizedWellBoreName"^^xsd:string |
458 | - ] ; | 284 | + ] |
459 | - sp:arg2 [ sp:varName "dTimStart"^^xsd:string | 285 | + ] [ rdf:type sp:Bind ; |
460 | - ] | 286 | + sp:expression |
461 | - ] ; | 287 | + [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ; |
462 | - sp:variable | 288 | + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string |
463 | - [ sp:varName "dailyDrillingActivity"^^xsd:string | 289 | + ] ; |
464 | - ] | 290 | + sp:arg2 [ sp:varName "createDate"^^xsd:string |
465 | - ] [ rdf:type sp:Bind ; | 291 | + ] |
466 | - sp:expression | 292 | + ] ; |
467 | - [ rdf:type ep-spin-lib:normalizeString ; | 293 | + sp:variable |
468 | - sp:arg1 [ sp:varName "nameWell"^^xsd:string | 294 | + [ sp:varName "dailyDrillingReport"^^xsd:string |
469 | - ] | 295 | + ] |
470 | - ] ; | 296 | + ]) |
471 | - sp:variable | 297 | + ] ; |
472 | - [ sp:varName "normalizedWellName"^^xsd:string | 298 | + spin:rule |
473 | - ] | 299 | + [ rdf:type sp:Construct ; |
474 | - ] [ rdf:type sp:Bind ; | 300 | + rdfs:comment "STEP 106 Create Well Part"^^xsd:string ; |
475 | - sp:expression | 301 | + sp:templates ([ sp:object _:b14 ; |
476 | - [ rdf:type rhspin:wellByName ; | 302 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#humanRecognizableName> ; |
477 | - arg:wellName | 303 | + sp:subject _:b15 |
478 | - [ sp:varName "normalizedWellName"^^xsd:string | 304 | + ] [ sp:object _:b16 ; |
479 | - ] | 305 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ; |
480 | - ] ; | 306 | + sp:subject _:b17 |
481 | - sp:variable | 307 | + ] [ sp:object _:b15 ; |
482 | - [ sp:varName "well"^^xsd:string | 308 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
483 | - ] | 309 | + sp:subject _:b16 |
484 | - ]) | 310 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWell> ; |
485 | - ] . | 311 | + sp:predicate rdf:type ; |
312 | + sp:subject _:b16 | ||
313 | + ] [ sp:object _:b18 ; | ||
314 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; | ||
315 | + sp:subject _:b15 | ||
316 | + ]) ; | ||
317 | + sp:where ([ sp:object _:b19 ; | ||
318 | + sp:predicate ep-spin-lib:nameWellbore ; | ||
319 | + sp:subject spin:_this | ||
320 | + ] [ sp:object _:b14 ; | ||
321 | + sp:predicate ep-spin-lib:nameWell ; | ||
322 | + sp:subject spin:_this | ||
323 | + ] [ sp:object _:b20 ; | ||
324 | + sp:predicate ddr:dTimStart ; | ||
325 | + sp:subject spin:_this | ||
326 | + ] [ sp:object _:b21 ; | ||
327 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; | ||
328 | + sp:subject _:b17 | ||
329 | + ] [ sp:object _:b18 ; | ||
330 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
331 | + sp:subject _:b21 | ||
332 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; | ||
333 | + sp:predicate rdf:type ; | ||
334 | + sp:subject _:b18 | ||
335 | + ] [ rdf:type sp:Bind ; | ||
336 | + sp:expression | ||
337 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
338 | + sp:arg1 _:b19 | ||
339 | + ] ; | ||
340 | + sp:variable _:b22 | ||
341 | + ] [ rdf:type sp:Bind ; | ||
342 | + sp:expression | ||
343 | + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; | ||
344 | + sp:arg1 _:b22 ; | ||
345 | + sp:arg2 _:b20 | ||
346 | + ] ; | ||
347 | + sp:variable _:b17 | ||
348 | + ] [ rdf:type sp:Bind ; | ||
349 | + sp:expression | ||
350 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
351 | + sp:arg1 _:b14 | ||
352 | + ] ; | ||
353 | + sp:variable _:b23 | ||
354 | + ] [ rdf:type sp:Bind ; | ||
355 | + sp:expression | ||
356 | + [ rdf:type rhspin:wellByName ; | ||
357 | + arg:wellName _:b23 | ||
358 | + ] ; | ||
359 | + sp:variable _:b15 | ||
360 | + ]) | ||
361 | + ] . | ||
362 | + | ||
363 | +_:b19 | ||
364 | + sp:varName "nameWellBore"^^xsd:string . | ||
365 | + | ||
366 | +_:b14 | ||
367 | + sp:varName "nameWell"^^xsd:string . | ||
368 | + | ||
369 | +_:b20 | ||
370 | + sp:varName "dTimStart"^^xsd:string . | ||
371 | + | ||
372 | +_:b17 | ||
373 | + sp:varName "dailyDrillingActivity"^^xsd:string . | ||
374 | + | ||
375 | +_:b21 | ||
376 | + sp:varName "temporalPartOfAWellBore"^^xsd:string . | ||
377 | + | ||
378 | +_:b18 | ||
379 | + sp:varName "wellBore"^^xsd:string . | ||
380 | + | ||
381 | +_:b22 | ||
382 | + sp:varName "normalizedWellBoreName"^^xsd:string . | ||
383 | + | ||
384 | +_:b23 | ||
385 | + sp:varName "normalizedWellName"^^xsd:string . | ||
386 | + | ||
387 | +_:b15 | ||
388 | + sp:varName "well"^^xsd:string . | ||
389 | + | ||
390 | +_:b7 sp:varName "nameWellBore"^^xsd:string . | ||
391 | + | ||
392 | +_:b4 sp:varName "dTimStart"^^xsd:string . | ||
393 | + | ||
394 | +_:b11 | ||
395 | + sp:varName "dTimEnd"^^xsd:string . | ||
396 | + | ||
397 | +_:b3 sp:varName "createDate"^^xsd:string . | ||
398 | + | ||
399 | +_:b12 | ||
400 | + sp:varName "extendedReport"^^xsd:string . | ||
401 | + | ||
402 | +_:b9 sp:varName "extendedReportContent"^^xsd:string . | ||
403 | + | ||
404 | +_:b10 | ||
405 | + sp:varName "dTimExtendedReport"^^xsd:string . | ||
406 | + | ||
407 | +_:b13 | ||
408 | + sp:varName "normalizedWellBoreName"^^xsd:string . | ||
409 | + | ||
410 | +_:b1 sp:varName "dailyDrillingReport"^^xsd:string . | ||
411 | + | ||
412 | +_:b2 sp:varName "dailyDrillingActivity"^^xsd:string . | ||
413 | + | ||
414 | +_:b5 sp:varName "temporalPartOfAWellBore"^^xsd:string . | ||
415 | + | ||
416 | +_:b6 sp:varName "wellBore"^^xsd:string . | ... | ... |
-
Please register or login to post a comment