Made DDR import and SPIN functions tolerate new user-defined datatypes
Deleted -temporaryForTesting, now uses correct NPD resources
Showing
3 changed files
with
543 additions
and
493 deletions
This diff could not be displayed because it is too large.
1 | -# Saved by TopBraid on Sun Sep 25 18:41:25 BST 2011 | 1 | +# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport |
2 | -# baseURI: http://www.reportinghub.no/ep/transform/1.1/ddr/drillReport | 2 | +# imports: http://spinrdf.org/spin |
3 | -# imports: http://www.reportinghub.no/ep/schema/1.0/report | 3 | +# imports: http://www.energistics.org/schemas/abstract |
4 | -# imports: http://www.reportinghub.no/ep/spin/1.1/lib | 4 | +# imports: http://www.reportinghub.no/ep/schema/1.0/activity |
5 | -# imports: http://www.energistics.org/schemas/abstract | 5 | +# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose |
6 | -# imports: http://www.witsml.org/schemas/1series | 6 | +# imports: http://www.reportinghub.no/ep/schema/1.0/core |
7 | -# imports: http://www.reportinghub.no/ep/schema/1.0/well | 7 | +# imports: http://www.reportinghub.no/ep/schema/1.0/equipment |
8 | -# imports: http://www.reportinghub.no/ep/schema/1.0/core | 8 | +# imports: http://www.reportinghub.no/ep/schema/1.0/report |
9 | -# imports: http://www.reportinghub.no/ep/schema/1.0/equipment | 9 | +# imports: http://www.reportinghub.no/ep/schema/1.0/well |
10 | -# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose | 10 | +# imports: http://www.reportinghub.no/ep/spin/1.1/lib |
11 | -# imports: http://www.reportinghub.no/ep/schema/1.0/activity | 11 | +# imports: http://www.witsml.org/schemas/1series |
12 | -# imports: http://spinrdf.org/spin | 12 | + |
13 | - | 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://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> ; |
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 106 Create Well"^^xsd:string ; | ||
35 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ; | ||
36 | - sp:predicate rdf:type ; | ||
37 | - sp:subject _:b1 | ||
38 | - ] [ sp:object _:b2 ; | ||
39 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#humanRecognizableName> ; | ||
40 | - sp:subject _:b1 | ||
41 | - ] [ sp:object _:b3 ; | ||
42 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ; | ||
43 | - sp:subject _:b4 | ||
44 | - ] [ sp:object _:b1 ; | ||
45 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
46 | - sp:subject _:b3 | ||
47 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWell> ; | ||
48 | - sp:predicate rdf:type ; | ||
49 | - sp:subject _:b3 | ||
50 | - ] [ sp:object _:b5 ; | ||
51 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; | ||
52 | - sp:subject _:b1 | ||
53 | - ]) ; | ||
54 | - sp:where ([ sp:object _:b6 ; | ||
55 | - sp:predicate ddr:nameWellbore ; | ||
56 | - sp:subject spin:_this | ||
57 | - ] [ sp:object _:b2 ; | ||
58 | - sp:predicate ddr:nameWell ; | ||
59 | - sp:subject spin:_this | ||
60 | - ] [ sp:object _:b7 ; | ||
61 | - sp:predicate ddr:dTimStart ; | ||
62 | - sp:subject spin:_this | ||
63 | - ] [ sp:object _:b8 ; | ||
64 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; | ||
65 | - sp:subject _:b4 | ||
66 | - ] [ sp:object _:b5 ; | ||
67 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
68 | - sp:subject _:b8 | ||
69 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; | ||
70 | - sp:predicate rdf:type ; | ||
71 | - sp:subject _:b5 | ||
72 | - ] [ rdf:type sp:Bind ; | ||
73 | - sp:expression | ||
74 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
75 | - sp:arg1 _:b6 | ||
76 | - ] ; | ||
77 | - sp:variable _:b9 | ||
78 | - ] [ rdf:type sp:Bind ; | ||
79 | - sp:expression | ||
80 | - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; | ||
81 | - sp:arg1 _:b9 ; | ||
82 | - sp:arg2 _:b7 | ||
83 | - ] ; | ||
84 | - sp:variable _:b4 | ||
85 | - ] [ rdf:type sp:Bind ; | ||
86 | - sp:expression | ||
87 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
88 | - sp:arg1 _:b2 | ||
89 | - ] ; | ||
90 | - sp:variable _:b10 | ||
91 | - ] [ rdf:type sp:Bind ; | ||
92 | - sp:expression | ||
93 | - [ rdf:type rhspin:wellByName ; | ||
94 | - arg:wellName _:b10 | ||
95 | - ] ; | ||
96 | - sp:variable _:b1 | ||
97 | - ]) | ||
98 | - ] ; | ||
99 | - spin:rule | ||
100 | - [ rdf:type sp:Construct ; | ||
101 | - rdfs:comment "STEP 104 Transfer dTimEnd"^^xsd:string ; | ||
102 | - sp:templates ([ sp:object _:b11 ; | ||
103 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
104 | - sp:subject _:b12 | ||
105 | - ]) ; | ||
106 | - sp:where ([ sp:object _:b13 ; | ||
107 | - sp:predicate ddr:nameWellbore ; | ||
108 | - sp:subject spin:_this | ||
109 | - ] [ sp:object _:b14 ; | ||
110 | - sp:predicate ddr:dTimStart ; | ||
111 | - sp:subject spin:_this | ||
112 | - ] [ sp:object _:b11 ; | ||
113 | - sp:predicate ddr:dTimEnd ; | ||
114 | - sp:subject spin:_this | ||
115 | - ] [ rdf:type sp:Bind ; | ||
116 | - sp:expression | ||
117 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
118 | - sp:arg1 _:b13 | ||
119 | - ] ; | ||
120 | - sp:variable _:b15 | ||
121 | - ] [ rdf:type sp:Bind ; | ||
122 | - sp:expression | ||
123 | - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; | ||
124 | - sp:arg1 _:b15 ; | ||
125 | - sp:arg2 _:b14 | ||
126 | - ] ; | ||
127 | - sp:variable _:b12 | ||
128 | - ]) | ||
129 | - ] ; | ||
130 | - spin:rule | ||
131 | - [ rdf:type sp:Construct ; | ||
132 | - rdfs:comment """STEP 105 | ||
133 | -Classify a DailyDrillingReport"""^^xsd:string ; | ||
134 | - sp:templates ([ sp:object _:b16 ; | ||
135 | - sp:predicate rdf:type ; | ||
136 | - sp:subject _:b17 | ||
137 | - ]) ; | ||
138 | - sp:where ([ sp:object _:b18 ; | ||
139 | - sp:predicate ddr:nameWellbore ; | ||
140 | - sp:subject spin:_this | ||
141 | - ] [ sp:object _:b19 ; | ||
142 | - sp:predicate ddr:createDate ; | ||
143 | - sp:subject spin:_this | ||
144 | - ] [ sp:object _:b20 ; | ||
145 | - sp:predicate ddr:versionKindRef ; | ||
146 | - sp:subject spin:_this | ||
147 | - ] [ rdf:type sp:Bind ; | ||
148 | - sp:expression | ||
149 | - [ rdf:type ep-spin-lib:selectDailyDrillingReportType ; | ||
150 | - sp:arg1 _:b20 | ||
151 | - ] ; | ||
152 | - sp:variable _:b16 | ||
153 | - ] [ rdf:type sp:Bind ; | ||
154 | - sp:expression | ||
155 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
156 | - sp:arg1 _:b18 | ||
157 | - ] ; | ||
158 | - sp:variable _:b21 | ||
159 | - ] [ rdf:type sp:Bind ; | ||
160 | - sp:expression | ||
161 | - [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ; | ||
162 | - sp:arg1 _:b21 ; | ||
163 | - sp:arg2 _:b19 | ||
164 | - ] ; | ||
165 | - sp:variable _:b17 | ||
166 | - ]) | ||
167 | - ] ; | ||
168 | - spin:rule | ||
169 | - [ rdf:type sp:Construct ; | ||
170 | - rdfs:comment """STEP 103a Set name of DailyDrillingReport as label | ||
171 | -Minimum data - createDate, dTimStart, nameWellBore"""^^xsd:string ; | ||
172 | - sp:templates ([ sp:object _:b22 ; | ||
173 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
174 | - sp:subject _:b23 | ||
175 | - ]) ; | ||
176 | - sp:where ([ sp:object _:b24 ; | ||
177 | - sp:predicate ddr:nameWellbore ; | ||
178 | - sp:subject spin:_this | ||
179 | - ] [ sp:object _:b22 ; | ||
180 | - sp:predicate ddr:name ; | ||
181 | - sp:subject spin:_this | ||
182 | - ] [ sp:object _:b25 ; | ||
183 | - sp:predicate ddr:createDate ; | ||
184 | - sp:subject spin:_this | ||
185 | - ] [ rdf:type sp:Bind ; | ||
186 | - sp:expression | ||
187 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
188 | - sp:arg1 _:b24 | ||
189 | - ] ; | ||
190 | - sp:variable _:b26 | ||
191 | - ] [ rdf:type sp:Bind ; | ||
192 | - sp:expression | ||
193 | - [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ; | ||
194 | - sp:arg1 _:b26 ; | ||
195 | - sp:arg2 _:b25 | ||
196 | - ] ; | ||
197 | - sp:variable _:b23 | ||
198 | - ]) | ||
199 | - ] ; | ||
200 | - spin:rule | ||
201 | - [ rdf:type sp:Construct ; | ||
202 | rdfs:comment """STEP 103 Create DailyDrillingReport, DailyDrillingActivity, TemporalPartOfAWellBore and WellBore | 34 | rdfs:comment """STEP 103 Create DailyDrillingReport, DailyDrillingActivity, TemporalPartOfAWellBore and WellBore |
203 | Minimum data - createDate, dTimStart, dTimEnd, nameWellBore | 35 | Minimum data - createDate, dTimStart, dTimEnd, nameWellBore |
204 | Optional data - extendedReport | 36 | Optional data - extendedReport |
205 | -replaced for testing - BIND (rhspin:wellBoreByName(?nameWellBore) AS ?wellBore) ."""^^xsd:string ; | 37 | +replaced for testing - BIND (rhspin:wellBoreByName(?nameWellBore) AS ?wellBore) ."""^^xsd:string ; |
206 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> ; | 38 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#DailyDrillingReport> ; |
207 | - sp:predicate rdf:type ; | 39 | + sp:predicate rdf:type ; |
208 | - sp:subject _:b27 | 40 | + sp:subject |
209 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivity> ; | 41 | + [ sp:varName "dailyDrillingReport"^^xsd:string |
210 | - sp:predicate rdf:type ; | 42 | + ] |
211 | - sp:subject _:b28 | 43 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#DailyDrillingActivity> ; |
212 | - ] [ sp:object _:b28 ; | 44 | + sp:predicate rdf:type ; |
213 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | 45 | + sp:subject |
214 | - sp:subject _:b27 | 46 | + [ sp:varName "dailyDrillingActivity"^^xsd:string |
215 | - ] [ sp:object _:b29 ; | 47 | + ] |
216 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ; | 48 | + ] [ sp:object |
217 | - sp:subject _:b27 | 49 | + [ sp:varName "dailyDrillingActivity"^^xsd:string |
218 | - ] [ sp:object _:b30 ; | 50 | + ] ; |
219 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 51 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; |
220 | - sp:subject _:b28 | 52 | + sp:subject |
221 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ; | 53 | + [ sp:varName "dailyDrillingReport"^^xsd:string |
222 | - sp:predicate rdf:type ; | 54 | + ] |
223 | - sp:subject _:b31 | 55 | + ] [ sp:object |
224 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; | 56 | + [ sp:varName "createDate"^^xsd:string |
225 | - sp:predicate rdf:type ; | 57 | + ] ; |
226 | - sp:subject _:b32 | 58 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ; |
227 | - ] [ sp:object _:b32 ; | 59 | + sp:subject |
228 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 60 | + [ sp:varName "dailyDrillingReport"^^xsd:string |
229 | - sp:subject _:b31 | 61 | + ] |
230 | - ] [ sp:object _:b33 ; | 62 | + ] [ sp:object |
231 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#humanRecognizableName> ; | 63 | + [ sp:varName "dTimStart"^^xsd:string |
232 | - sp:subject _:b32 | 64 | + ] ; |
233 | - ] [ sp:object _:b31 ; | 65 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
234 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; | 66 | + sp:subject |
235 | - sp:subject _:b28 | 67 | + [ sp:varName "dailyDrillingActivity"^^xsd:string |
236 | - ] [ sp:object _:b34 ; | 68 | + ] |
237 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#descriptionOfActivitiesFollowingTheDailyReportingPeriod> ; | 69 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWellBore> ; |
238 | - sp:subject _:b28 | 70 | + sp:predicate rdf:type ; |
239 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#Report> ; | 71 | + sp:subject |
240 | - sp:predicate rdf:type ; | 72 | + [ sp:varName "temporalPartOfAWellBore"^^xsd:string |
241 | - sp:subject _:b34 | 73 | + ] |
242 | - ] [ sp:object _:b35 ; | 74 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; |
243 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#hasContent> ; | 75 | + sp:predicate rdf:type ; |
244 | - sp:subject _:b34 | 76 | + sp:subject |
245 | - ] [ sp:object _:b36 ; | 77 | + [ sp:varName "wellBore"^^xsd:string |
246 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ; | 78 | + ] |
247 | - sp:subject _:b34 | 79 | + ] [ sp:object |
248 | - ]) ; | 80 | + [ sp:varName "wellBore"^^xsd:string |
249 | - sp:where ([ sp:object _:b33 ; | 81 | + ] ; |
250 | - sp:predicate ddr:nameWellbore ; | 82 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
251 | - sp:subject spin:_this | 83 | + sp:subject |
252 | - ] [ sp:object _:b30 ; | 84 | + [ sp:varName "temporalPartOfAWellBore"^^xsd:string |
253 | - sp:predicate ddr:dTimStart ; | 85 | + ] |
254 | - sp:subject spin:_this | 86 | + ] [ sp:object |
255 | - ] [ sp:object _:b37 ; | 87 | + [ sp:varName "nameWellBore"^^xsd:string |
256 | - sp:predicate ddr:dTimEnd ; | 88 | + ] ; |
257 | - sp:subject spin:_this | 89 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#humanRecognizableName> ; |
258 | - ] [ sp:object _:b29 ; | 90 | + sp:subject |
259 | - sp:predicate ddr:createDate ; | 91 | + [ sp:varName "wellBore"^^xsd:string |
260 | - sp:subject spin:_this | 92 | + ] |
261 | - ] [ rdf:type sp:Optional ; | 93 | + ] [ sp:object |
262 | - sp:elements ([ sp:object _:b38 ; | 94 | + [ sp:varName "temporalPartOfAWellBore"^^xsd:string |
263 | - sp:predicate ddr:extendedReportRef ; | 95 | + ] ; |
264 | - sp:subject spin:_this | 96 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; |
265 | - ] [ sp:object _:b35 ; | 97 | + sp:subject |
266 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 98 | + [ sp:varName "dailyDrillingActivity"^^xsd:string |
267 | - sp:subject _:b38 | 99 | + ] |
268 | - ] [ rdf:type sp:Optional ; | 100 | + ] [ sp:object _:b1 ; |
269 | - sp:elements ([ sp:object _:b36 ; | 101 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#descriptionOfActivitiesFollowingTheDailyReportingPeriod> ; |
270 | - sp:predicate ddr:dTim ; | 102 | + sp:subject |
271 | - sp:subject _:b38 | 103 | + [ sp:varName "dailyDrillingActivity"^^xsd:string |
272 | - ]) | 104 | + ] |
273 | - ]) | 105 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#Report> ; |
274 | - ] [ rdf:type sp:Bind ; | 106 | + sp:predicate rdf:type ; |
275 | - sp:expression | 107 | + sp:subject _:b1 |
276 | - [ rdf:type ep-spin-lib:normalizeString ; | 108 | + ] [ sp:object |
277 | - sp:arg1 _:b33 | 109 | + [ sp:varName "extendedReportContent"^^xsd:string |
278 | - ] ; | 110 | + ] ; |
279 | - sp:variable _:b39 | 111 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#hasContent> ; |
280 | - ] [ rdf:type sp:Bind ; | 112 | + sp:subject _:b1 |
281 | - sp:expression | 113 | + ] [ sp:object |
282 | - [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ; | 114 | + [ sp:varName "dTimExtendedReport"^^xsd:string |
283 | - sp:arg1 _:b39 ; | 115 | + ] ; |
284 | - sp:arg2 _:b29 | 116 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#createdAt> ; |
285 | - ] ; | 117 | + sp:subject _:b1 |
286 | - sp:variable _:b27 | 118 | + ]) ; |
287 | - ] [ rdf:type sp:Bind ; | 119 | + sp:where ([ sp:object |
288 | - sp:expression | 120 | + [ sp:varName "nameWellBore"^^xsd:string |
289 | - [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; | 121 | + ] ; |
290 | - sp:arg1 _:b39 ; | 122 | + sp:predicate ddr:nameWellbore ; |
291 | - sp:arg2 _:b30 | 123 | + sp:subject spin:_this |
292 | - ] ; | 124 | + ] [ sp:object |
293 | - sp:variable _:b28 | 125 | + [ sp:varName "dTimStart"^^xsd:string |
294 | - ] [ rdf:type sp:Bind ; | 126 | + ] ; |
295 | - sp:expression | 127 | + sp:predicate ddr:dTimStart ; |
296 | - [ rdf:type ep-spin-lib:buildTemporalPartOfAWellBoreURI ; | 128 | + sp:subject spin:_this |
297 | - sp:arg1 _:b39 ; | 129 | + ] [ sp:object |
298 | - sp:arg2 _:b30 ; | 130 | + [ sp:varName "dTimEnd"^^xsd:string |
299 | - sp:arg3 _:b37 | 131 | + ] ; |
300 | - ] ; | 132 | + sp:predicate ddr:dTimEnd ; |
301 | - sp:variable _:b31 | 133 | + sp:subject spin:_this |
302 | - ] [ rdf:type sp:Bind ; | 134 | + ] [ sp:object |
303 | - sp:expression | 135 | + [ sp:varName "createDate"^^xsd:string |
304 | - [ rdf:type ep-spin-lib:buildTemporaryWellBoreURI ; | 136 | + ] ; |
305 | - sp:arg1 _:b39 | 137 | + sp:predicate ddr:createDate ; |
306 | - ] ; | 138 | + sp:subject spin:_this |
307 | - sp:variable _:b32 | 139 | + ] [ rdf:type sp:Optional ; |
308 | - ]) | 140 | + sp:elements ([ sp:object |
309 | - ] . | 141 | + [ sp:varName "extendedReport"^^xsd:string |
310 | - | 142 | + ] ; |
311 | -_:b1 sp:varName "well"^^xsd:string . | 143 | + sp:predicate ddr:extendedReportRef ; |
312 | - | 144 | + sp:subject spin:_this |
313 | -_:b10 | 145 | + ] [ sp:object |
314 | - sp:varName "normalizedWellName"^^xsd:string . | 146 | + [ sp:varName "extendedReportContent"^^xsd:string |
315 | - | 147 | + ] ; |
316 | -_:b9 sp:varName "normalizedWellBoreName"^^xsd:string . | 148 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
317 | - | 149 | + sp:subject |
318 | -_:b5 sp:varName "wellBore"^^xsd:string . | 150 | + [ sp:varName "extendedReport"^^xsd:string |
319 | - | 151 | + ] |
320 | -_:b8 sp:varName "temporalPartOfAWellBore"^^xsd:string . | 152 | + ] [ rdf:type sp:Optional ; |
321 | - | 153 | + sp:elements ([ sp:object |
322 | -_:b4 sp:varName "dailyDrillingActivity"^^xsd:string . | 154 | + [ sp:varName "dTimExtendedReport"^^xsd:string |
323 | - | 155 | + ] ; |
324 | -_:b7 sp:varName "dTimStart"^^xsd:string . | 156 | + sp:predicate ddr:dTim ; |
325 | - | 157 | + sp:subject |
326 | -_:b2 sp:varName "nameWell"^^xsd:string . | 158 | + [ sp:varName "extendedReport"^^xsd:string |
327 | - | 159 | + ] |
328 | -_:b6 sp:varName "nameWellBore"^^xsd:string . | 160 | + ]) |
329 | - | 161 | + ]) |
330 | -_:b15 | 162 | + ] [ rdf:type sp:Bind ; |
331 | - sp:varName "normalizedWellBoreName"^^xsd:string . | 163 | + sp:expression |
332 | - | 164 | + [ rdf:type ep-spin-lib:normalizeString ; |
333 | -_:b14 | 165 | + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string |
334 | - sp:varName "dTimStart"^^xsd:string . | 166 | + ] |
335 | - | 167 | + ] ; |
336 | -_:b13 | 168 | + sp:variable |
337 | - sp:varName "nameWellBore"^^xsd:string . | 169 | + [ sp:varName "normalizedWellBoreName"^^xsd:string |
338 | - | 170 | + ] |
339 | -_:b12 | 171 | + ] [ rdf:type sp:Bind ; |
340 | - sp:varName "dailyDrillingActivity"^^xsd:string . | 172 | + sp:expression |
341 | - | 173 | + [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ; |
342 | -_:b11 | 174 | + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string |
343 | - sp:varName "dTimEnd"^^xsd:string . | 175 | + ] ; |
344 | - | 176 | + sp:arg2 [ sp:varName "createDate"^^xsd:string |
345 | -_:b21 | 177 | + ] |
346 | - sp:varName "normalizedWellBoreName"^^xsd:string . | 178 | + ] ; |
347 | - | 179 | + sp:variable |
348 | -_:b20 | 180 | + [ sp:varName "dailyDrillingReport"^^xsd:string |
349 | - sp:varName "versionKind"^^xsd:string . | 181 | + ] |
350 | - | 182 | + ] [ rdf:type sp:Bind ; |
351 | -_:b19 | 183 | + sp:expression |
352 | - sp:varName "createDate"^^xsd:string . | 184 | + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; |
353 | - | 185 | + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string |
354 | -_:b18 | 186 | + ] ; |
355 | - sp:varName "nameWellBore"^^xsd:string . | 187 | + sp:arg2 [ sp:varName "dTimStart"^^xsd:string |
356 | - | 188 | + ] |
357 | -_:b17 | 189 | + ] ; |
358 | - sp:varName "dailyDrillingReport"^^xsd:string . | 190 | + sp:variable |
359 | - | 191 | + [ sp:varName "dailyDrillingActivity"^^xsd:string |
360 | -_:b16 | 192 | + ] |
361 | - sp:varName "dailyDrillingReportType"^^xsd:string . | 193 | + ] [ rdf:type sp:Bind ; |
362 | - | 194 | + sp:expression |
363 | -_:b26 | 195 | + [ rdf:type ep-spin-lib:buildTemporalPartOfAWellBoreURI ; |
364 | - sp:varName "normalizedWellBoreName"^^xsd:string . | 196 | + sp:arg1 [ sp:varName "normalizedWellBoreName"^^xsd:string |
365 | - | 197 | + ] ; |
366 | -_:b25 | 198 | + sp:arg2 [ sp:varName "dTimStart"^^xsd:string |
367 | - sp:varName "createDate"^^xsd:string . | 199 | + ] ; |
368 | - | 200 | + sp:arg3 [ sp:varName "dTimEnd"^^xsd:string |
369 | -_:b24 | 201 | + ] |
370 | - sp:varName "nameWellBore"^^xsd:string . | 202 | + ] ; |
371 | - | 203 | + sp:variable |
372 | -_:b23 | 204 | + [ sp:varName "temporalPartOfAWellBore"^^xsd:string |
373 | - sp:varName "dailyDrillingReport"^^xsd:string . | 205 | + ] |
374 | - | 206 | + ] [ rdf:type sp:Bind ; |
375 | -_:b22 | 207 | + sp:expression |
376 | - sp:varName "nameDailyDrillingReport"^^xsd:string . | 208 | + [ rdf:type rhspin:wellBoreByName ; |
377 | - | 209 | + arg:wellBoreName |
378 | -_:b39 | 210 | + [ rdf:type xsd:string ; |
379 | - sp:varName "normalizedWellBoreName"^^xsd:string . | 211 | + sp:arg1 [ sp:varName "nameWellBore"^^xsd:string |
380 | - | 212 | + ] |
381 | -_:b38 | 213 | + ] |
382 | - sp:varName "extendedReport"^^xsd:string . | 214 | + ] ; |
383 | - | 215 | + sp:variable |
384 | -_:b37 | 216 | + [ sp:varName "wellBore"^^xsd:string |
385 | - sp:varName "dTimEnd"^^xsd:string . | 217 | + ] |
386 | - | 218 | + ]) |
387 | -_:b36 | 219 | + ] ; |
388 | - sp:varName "dTimExtendedReport"^^xsd:string . | 220 | + spin:rule |
389 | - | 221 | + [ rdf:type sp:Construct ; |
390 | -_:b35 | 222 | + rdfs:comment "STEP 106 Create Well"^^xsd:string ; |
391 | - sp:varName "extendedReportContent"^^xsd:string . | 223 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ; |
392 | - | 224 | + sp:predicate rdf:type ; |
393 | -_:b33 | 225 | + sp:subject _:b2 |
394 | - sp:varName "nameWellBore"^^xsd:string . | 226 | + ] [ sp:object _:b3 ; |
395 | - | 227 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#humanRecognizableName> ; |
396 | -_:b32 | 228 | + sp:subject _:b2 |
397 | - sp:varName "wellBore"^^xsd:string . | 229 | + ] [ sp:object _:b4 ; |
398 | - | 230 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ; |
399 | -_:b31 | 231 | + sp:subject _:b5 |
400 | - sp:varName "temporalPartOfAWellBore"^^xsd:string . | 232 | + ] [ sp:object _:b2 ; |
401 | - | 233 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
402 | -_:b30 | 234 | + sp:subject _:b4 |
403 | - sp:varName "dTimStart"^^xsd:string . | 235 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWell> ; |
404 | - | 236 | + sp:predicate rdf:type ; |
405 | -_:b29 | 237 | + sp:subject _:b4 |
406 | - sp:varName "createDate"^^xsd:string . | 238 | + ] [ sp:object _:b6 ; |
407 | - | 239 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; |
408 | -_:b28 | 240 | + sp:subject _:b2 |
409 | - sp:varName "dailyDrillingActivity"^^xsd:string . | 241 | + ]) ; |
410 | - | 242 | + sp:where ([ sp:object _:b7 ; |
411 | -_:b27 | 243 | + sp:predicate ddr:nameWellbore ; |
412 | - sp:varName "dailyDrillingReport"^^xsd:string . | 244 | + sp:subject spin:_this |
245 | + ] [ sp:object _:b3 ; | ||
246 | + sp:predicate ddr:nameWell ; | ||
247 | + sp:subject spin:_this | ||
248 | + ] [ sp:object _:b8 ; | ||
249 | + sp:predicate ddr:dTimStart ; | ||
250 | + sp:subject spin:_this | ||
251 | + ] [ sp:object _:b9 ; | ||
252 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWellBore> ; | ||
253 | + sp:subject _:b5 | ||
254 | + ] [ sp:object _:b6 ; | ||
255 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
256 | + sp:subject _:b9 | ||
257 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; | ||
258 | + sp:predicate rdf:type ; | ||
259 | + sp:subject _:b6 | ||
260 | + ] [ rdf:type sp:Bind ; | ||
261 | + sp:expression | ||
262 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
263 | + sp:arg1 _:b7 | ||
264 | + ] ; | ||
265 | + sp:variable _:b10 | ||
266 | + ] [ rdf:type sp:Bind ; | ||
267 | + sp:expression | ||
268 | + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; | ||
269 | + sp:arg1 _:b10 ; | ||
270 | + sp:arg2 _:b8 | ||
271 | + ] ; | ||
272 | + sp:variable _:b5 | ||
273 | + ] [ rdf:type sp:Bind ; | ||
274 | + sp:expression | ||
275 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
276 | + sp:arg1 _:b3 | ||
277 | + ] ; | ||
278 | + sp:variable _:b11 | ||
279 | + ] [ rdf:type sp:Bind ; | ||
280 | + sp:expression | ||
281 | + [ rdf:type rhspin:wellByName ; | ||
282 | + arg:wellName _:b11 | ||
283 | + ] ; | ||
284 | + sp:variable _:b2 | ||
285 | + ]) | ||
286 | + ] ; | ||
287 | + spin:rule | ||
288 | + [ rdf:type sp:Construct ; | ||
289 | + rdfs:comment "STEP 104 Transfer dTimEnd"^^xsd:string ; | ||
290 | + sp:templates ([ sp:object _:b12 ; | ||
291 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
292 | + sp:subject _:b13 | ||
293 | + ]) ; | ||
294 | + sp:where ([ sp:object _:b14 ; | ||
295 | + sp:predicate ddr:nameWellbore ; | ||
296 | + sp:subject spin:_this | ||
297 | + ] [ sp:object _:b15 ; | ||
298 | + sp:predicate ddr:dTimStart ; | ||
299 | + sp:subject spin:_this | ||
300 | + ] [ sp:object _:b12 ; | ||
301 | + sp:predicate ddr:dTimEnd ; | ||
302 | + sp:subject spin:_this | ||
303 | + ] [ rdf:type sp:Bind ; | ||
304 | + sp:expression | ||
305 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
306 | + sp:arg1 _:b14 | ||
307 | + ] ; | ||
308 | + sp:variable _:b16 | ||
309 | + ] [ rdf:type sp:Bind ; | ||
310 | + sp:expression | ||
311 | + [ rdf:type ep-spin-lib:buildDailyDrillingActivityURI ; | ||
312 | + sp:arg1 _:b16 ; | ||
313 | + sp:arg2 _:b15 | ||
314 | + ] ; | ||
315 | + sp:variable _:b13 | ||
316 | + ]) | ||
317 | + ] ; | ||
318 | + spin:rule | ||
319 | + [ rdf:type sp:Construct ; | ||
320 | + rdfs:comment """STEP 105 | ||
321 | +Classify a DailyDrillingReport"""^^xsd:string ; | ||
322 | + sp:templates ([ sp:object _:b17 ; | ||
323 | + sp:predicate rdf:type ; | ||
324 | + sp:subject _:b18 | ||
325 | + ]) ; | ||
326 | + sp:where ([ sp:object _:b19 ; | ||
327 | + sp:predicate ddr:nameWellbore ; | ||
328 | + sp:subject spin:_this | ||
329 | + ] [ sp:object _:b20 ; | ||
330 | + sp:predicate ddr:createDate ; | ||
331 | + sp:subject spin:_this | ||
332 | + ] [ sp:object _:b21 ; | ||
333 | + sp:predicate ddr:versionKindRef ; | ||
334 | + sp:subject spin:_this | ||
335 | + ] [ rdf:type sp:Bind ; | ||
336 | + sp:expression | ||
337 | + [ rdf:type ep-spin-lib:selectDailyDrillingReportType ; | ||
338 | + sp:arg1 _:b21 | ||
339 | + ] ; | ||
340 | + sp:variable _:b17 | ||
341 | + ] [ rdf:type sp:Bind ; | ||
342 | + sp:expression | ||
343 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
344 | + sp:arg1 _:b19 | ||
345 | + ] ; | ||
346 | + sp:variable _:b22 | ||
347 | + ] [ rdf:type sp:Bind ; | ||
348 | + sp:expression | ||
349 | + [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ; | ||
350 | + sp:arg1 _:b22 ; | ||
351 | + sp:arg2 _:b20 | ||
352 | + ] ; | ||
353 | + sp:variable _:b18 | ||
354 | + ]) | ||
355 | + ] ; | ||
356 | + spin:rule | ||
357 | + [ rdf:type sp:Construct ; | ||
358 | + rdfs:comment """STEP 103a Set name of DailyDrillingReport as label | ||
359 | +Minimum data - createDate, dTimStart, nameWellBore"""^^xsd:string ; | ||
360 | + sp:templates ([ sp:object _:b23 ; | ||
361 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
362 | + sp:subject _:b24 | ||
363 | + ]) ; | ||
364 | + sp:where ([ sp:object _:b25 ; | ||
365 | + sp:predicate ddr:nameWellbore ; | ||
366 | + sp:subject spin:_this | ||
367 | + ] [ sp:object _:b23 ; | ||
368 | + sp:predicate ddr:name ; | ||
369 | + sp:subject spin:_this | ||
370 | + ] [ sp:object _:b26 ; | ||
371 | + sp:predicate ddr:createDate ; | ||
372 | + sp:subject spin:_this | ||
373 | + ] [ rdf:type sp:Bind ; | ||
374 | + sp:expression | ||
375 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
376 | + sp:arg1 _:b25 | ||
377 | + ] ; | ||
378 | + sp:variable _:b27 | ||
379 | + ] [ rdf:type sp:Bind ; | ||
380 | + sp:expression | ||
381 | + [ rdf:type ep-spin-lib:buildDailyDrillingReportURI ; | ||
382 | + sp:arg1 _:b27 ; | ||
383 | + sp:arg2 _:b26 | ||
384 | + ] ; | ||
385 | + sp:variable _:b24 | ||
386 | + ]) | ||
387 | + ] . | ||
388 | + | ||
389 | +_:b11 | ||
390 | + sp:varName "normalizedWellName"^^xsd:string . | ||
391 | + | ||
392 | +_:b10 | ||
393 | + sp:varName "normalizedWellBoreName"^^xsd:string . | ||
394 | + | ||
395 | +_:b9 sp:varName "temporalPartOfAWellBore"^^xsd:string . | ||
396 | + | ||
397 | +_:b8 sp:varName "dTimStart"^^xsd:string . | ||
398 | + | ||
399 | +_:b7 sp:varName "nameWellBore"^^xsd:string . | ||
400 | + | ||
401 | +_:b6 sp:varName "wellBore"^^xsd:string . | ||
402 | + | ||
403 | +_:b5 sp:varName "dailyDrillingActivity"^^xsd:string . | ||
404 | + | ||
405 | +_:b3 sp:varName "nameWell"^^xsd:string . | ||
406 | + | ||
407 | +_:b2 sp:varName "well"^^xsd:string . | ||
408 | + | ||
409 | +_:b16 | ||
410 | + sp:varName "normalizedWellBoreName"^^xsd:string . | ||
411 | + | ||
412 | +_:b15 | ||
413 | + sp:varName "dTimStart"^^xsd:string . | ||
414 | + | ||
415 | +_:b14 | ||
416 | + sp:varName "nameWellBore"^^xsd:string . | ||
417 | + | ||
418 | +_:b13 | ||
419 | + sp:varName "dailyDrillingActivity"^^xsd:string . | ||
420 | + | ||
421 | +_:b12 | ||
422 | + sp:varName "dTimEnd"^^xsd:string . | ||
423 | + | ||
424 | +_:b22 | ||
425 | + sp:varName "normalizedWellBoreName"^^xsd:string . | ||
426 | + | ||
427 | +_:b21 | ||
428 | + sp:varName "versionKind"^^xsd:string . | ||
429 | + | ||
430 | +_:b20 | ||
431 | + sp:varName "createDate"^^xsd:string . | ||
432 | + | ||
433 | +_:b19 | ||
434 | + sp:varName "nameWellBore"^^xsd:string . | ||
435 | + | ||
436 | +_:b18 | ||
437 | + sp:varName "dailyDrillingReport"^^xsd:string . | ||
438 | + | ||
439 | +_:b17 | ||
440 | + sp:varName "dailyDrillingReportType"^^xsd:string . | ||
441 | + | ||
442 | +_:b27 | ||
443 | + sp:varName "normalizedWellBoreName"^^xsd:string . | ||
444 | + | ||
445 | +_:b26 | ||
446 | + sp:varName "createDate"^^xsd:string . | ||
447 | + | ||
448 | +_:b25 | ||
449 | + sp:varName "nameWellBore"^^xsd:string . | ||
450 | + | ||
451 | +_:b24 | ||
452 | + sp:varName "dailyDrillingReport"^^xsd:string . | ||
453 | + | ||
454 | +_:b23 | ||
455 | + sp:varName "nameDailyDrillingReport"^^xsd:string . | ... | ... |
... | @@ -415,12 +415,19 @@ rhspin:ddrActivityStartDate | ... | @@ -415,12 +415,19 @@ rhspin:ddrActivityStartDate |
415 | spin:body | 415 | spin:body |
416 | [ rdf:type sp:Select ; | 416 | [ rdf:type sp:Select ; |
417 | sp:resultVariables ([ rdf:type xsd:date ; | 417 | sp:resultVariables ([ rdf:type xsd:date ; |
418 | - sp:arg1 _:b18 | 418 | + sp:arg1 [ rdf:type xsd:dateTime ; |
419 | + sp:arg1 [ rdf:type xsd:string ; | ||
420 | + sp:arg1 [ sp:varName "startedAt"^^xsd:string | ||
421 | + ] | ||
422 | + ] | ||
423 | + ] | ||
419 | ]) ; | 424 | ]) ; |
420 | sp:where ([ rdf:type sp:TriplePath ; | 425 | sp:where ([ rdf:type sp:TriplePath ; |
421 | - sp:object _:b18 ; | 426 | + sp:object |
427 | + [ sp:varName "startedAt"^^xsd:string | ||
428 | + ] ; | ||
422 | sp:path [ rdf:type sp:SeqPath ; | 429 | sp:path [ rdf:type sp:SeqPath ; |
423 | - sp:path1 <http://www.reportinghub.no/ep/schema/activity#reportOn> ; | 430 | + sp:path1 <http://www.reportinghub.no/ep/schema/report#reportOn> ; |
424 | sp:path2 <http://www.reportinghub.no/ep/schema/activity#startedAt> | 431 | sp:path2 <http://www.reportinghub.no/ep/schema/activity#startedAt> |
425 | ] ; | 432 | ] ; |
426 | sp:subject | 433 | sp:subject |
... | @@ -443,13 +450,16 @@ rhspin:ddrWellBoreId | ... | @@ -443,13 +450,16 @@ rhspin:ddrWellBoreId |
443 | rdfs:subClassOf spin:Functions ; | 450 | rdfs:subClassOf spin:Functions ; |
444 | spin:body | 451 | spin:body |
445 | [ rdf:type sp:Select ; | 452 | [ rdf:type sp:Select ; |
446 | - sp:resultVariables (_:b19) ; | 453 | + sp:resultVariables ([ sp:varName "id"^^xsd:string |
454 | + ]) ; | ||
447 | sp:where ([ rdf:type sp:TriplePath ; | 455 | sp:where ([ rdf:type sp:TriplePath ; |
448 | - sp:object _:b20 ; | 456 | + sp:object |
457 | + [ sp:varName "wellBore"^^xsd:string | ||
458 | + ] ; | ||
449 | sp:path [ rdf:type sp:SeqPath ; | 459 | sp:path [ rdf:type sp:SeqPath ; |
450 | sp:path1 | 460 | sp:path1 |
451 | [ rdf:type sp:SeqPath ; | 461 | [ rdf:type sp:SeqPath ; |
452 | - sp:path1 <http://www.reportinghub.no/ep/schema/activity#reportOn> ; | 462 | + sp:path1 <http://www.reportinghub.no/ep/schema/report#reportOn> ; |
453 | sp:path2 <http://www.reportinghub.no/ep/schema/activity#onWellBore> | 463 | sp:path2 <http://www.reportinghub.no/ep/schema/activity#onWellBore> |
454 | ] ; | 464 | ] ; |
455 | sp:path2 <http://www.reportinghub.no/ep/schema/core#temporalPartOf> | 465 | sp:path2 <http://www.reportinghub.no/ep/schema/core#temporalPartOf> |
... | @@ -458,9 +468,13 @@ rhspin:ddrWellBoreId | ... | @@ -458,9 +468,13 @@ rhspin:ddrWellBoreId |
458 | [ sp:varName "ddr"^^xsd:string | 468 | [ sp:varName "ddr"^^xsd:string |
459 | ] | 469 | ] |
460 | ] [ rdf:type sp:NamedGraph ; | 470 | ] [ rdf:type sp:NamedGraph ; |
461 | - sp:elements ([ sp:object _:b19 ; | 471 | + sp:elements ([ sp:object |
472 | + [ sp:varName "id"^^xsd:string | ||
473 | + ] ; | ||
462 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | 474 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; |
463 | - sp:subject _:b20 | 475 | + sp:subject |
476 | + [ sp:varName "wellBore"^^xsd:string | ||
477 | + ] | ||
464 | ]) ; | 478 | ]) ; |
465 | sp:graphNameNode npdata:npd | 479 | sp:graphNameNode npdata:npd |
466 | ]) | 480 | ]) |
... | @@ -502,13 +516,13 @@ rhspin:dtypeValue | ... | @@ -502,13 +516,13 @@ rhspin:dtypeValue |
502 | rdfs:subClassOf spl:OntologyFunctions ; | 516 | rdfs:subClassOf spl:OntologyFunctions ; |
503 | spin:body | 517 | spin:body |
504 | [ rdf:type sp:Select ; | 518 | [ rdf:type sp:Select ; |
505 | - sp:resultVariables (_:b21) ; | 519 | + sp:resultVariables (_:b18) ; |
506 | - sp:where ([ sp:object _:b22 ; | 520 | + sp:where ([ sp:object _:b19 ; |
507 | sp:predicate spin:_arg2 ; | 521 | sp:predicate spin:_arg2 ; |
508 | sp:subject spin:_arg1 | 522 | sp:subject spin:_arg1 |
509 | - ] [ sp:object _:b21 ; | 523 | + ] [ sp:object _:b18 ; |
510 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 524 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
511 | - sp:subject _:b22 | 525 | + sp:subject _:b19 |
512 | ]) | 526 | ]) |
513 | ] ; | 527 | ] ; |
514 | spin:constraint | 528 | spin:constraint |
... | @@ -576,14 +590,17 @@ rhspin:graphForDDR | ... | @@ -576,14 +590,17 @@ rhspin:graphForDDR |
576 | spin:body | 590 | spin:body |
577 | [ rdf:type sp:Select ; | 591 | [ rdf:type sp:Select ; |
578 | sp:resultVariables ([ rdf:type sp:iri ; | 592 | sp:resultVariables ([ rdf:type sp:iri ; |
579 | - sp:arg1 _:b23 | 593 | + sp:arg1 [ sp:varName "uri"^^xsd:string |
594 | + ] | ||
580 | ]) ; | 595 | ]) ; |
581 | sp:where ([ rdf:type sp:TriplePath ; | 596 | sp:where ([ rdf:type sp:TriplePath ; |
582 | - sp:object _:b24 ; | 597 | + sp:object |
598 | + [ sp:varName "wellBore"^^xsd:string | ||
599 | + ] ; | ||
583 | sp:path [ rdf:type sp:SeqPath ; | 600 | sp:path [ rdf:type sp:SeqPath ; |
584 | sp:path1 | 601 | sp:path1 |
585 | [ rdf:type sp:SeqPath ; | 602 | [ rdf:type sp:SeqPath ; |
586 | - sp:path1 <http://www.reportinghub.no/ep/schema/activity#reportOn> ; | 603 | + sp:path1 <http://www.reportinghub.no/ep/schema/report#reportOn> ; |
587 | sp:path2 <http://www.reportinghub.no/ep/schema/activity#onWellBore> | 604 | sp:path2 <http://www.reportinghub.no/ep/schema/activity#onWellBore> |
588 | ] ; | 605 | ] ; |
589 | sp:path2 <http://www.reportinghub.no/ep/schema/core#temporalPartOf> | 606 | sp:path2 <http://www.reportinghub.no/ep/schema/core#temporalPartOf> |
... | @@ -592,21 +609,32 @@ rhspin:graphForDDR | ... | @@ -592,21 +609,32 @@ rhspin:graphForDDR |
592 | [ sp:varName "ddr"^^xsd:string | 609 | [ sp:varName "ddr"^^xsd:string |
593 | ] | 610 | ] |
594 | ] [ rdf:type sp:NamedGraph ; | 611 | ] [ rdf:type sp:NamedGraph ; |
595 | - sp:elements ([ sp:object _:b25 ; | 612 | + sp:elements ([ sp:object |
613 | + [ sp:varName "licence"^^xsd:string | ||
614 | + ] ; | ||
596 | sp:predicate <http://www.reportinghub.no/np/schema/npd#drilledInProductionLicence> ; | 615 | sp:predicate <http://www.reportinghub.no/np/schema/npd#drilledInProductionLicence> ; |
597 | - sp:subject _:b24 | 616 | + sp:subject |
598 | - ] [ sp:object _:b26 ; | 617 | + [ sp:varName "wellBore"^^xsd:string |
618 | + ] | ||
619 | + ] [ sp:object | ||
620 | + [ sp:varName "id"^^xsd:string | ||
621 | + ] ; | ||
599 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | 622 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; |
600 | - sp:subject _:b25 | 623 | + sp:subject |
624 | + [ sp:varName "licence"^^xsd:string | ||
625 | + ] | ||
601 | ]) ; | 626 | ]) ; |
602 | sp:graphNameNode npdata:npd | 627 | sp:graphNameNode npdata:npd |
603 | ] [ rdf:type sp:Bind ; | 628 | ] [ rdf:type sp:Bind ; |
604 | sp:expression | 629 | sp:expression |
605 | [ rdf:type fn:concat ; | 630 | [ rdf:type fn:concat ; |
606 | sp:arg1 "https://www.reportinghub.no/ep/graph/licence-" ; | 631 | sp:arg1 "https://www.reportinghub.no/ep/graph/licence-" ; |
607 | - sp:arg2 _:b26 | 632 | + sp:arg2 [ sp:varName "id"^^xsd:string |
633 | + ] | ||
608 | ] ; | 634 | ] ; |
609 | - sp:variable _:b23 | 635 | + sp:variable |
636 | + [ sp:varName "uri"^^xsd:string | ||
637 | + ] | ||
610 | ]) | 638 | ]) |
611 | ] ; | 639 | ] ; |
612 | spin:constraint | 640 | spin:constraint |
... | @@ -702,9 +730,9 @@ rhspin:licenceForWellBore | ... | @@ -702,9 +730,9 @@ rhspin:licenceForWellBore |
702 | rdfs:subClassOf spin:Functions ; | 730 | rdfs:subClassOf spin:Functions ; |
703 | spin:body | 731 | spin:body |
704 | [ rdf:type sp:Select ; | 732 | [ rdf:type sp:Select ; |
705 | - sp:resultVariables (_:b27) ; | 733 | + sp:resultVariables (_:b20) ; |
706 | sp:where ([ rdf:type sp:NamedGraph ; | 734 | sp:where ([ rdf:type sp:NamedGraph ; |
707 | - sp:elements ([ sp:object _:b27 ; | 735 | + sp:elements ([ sp:object _:b20 ; |
708 | sp:predicate <http://www.reportinghub.no/np/schema/npd#drilledInProductionLicence> ; | 736 | sp:predicate <http://www.reportinghub.no/np/schema/npd#drilledInProductionLicence> ; |
709 | sp:subject | 737 | sp:subject |
710 | [ sp:varName "wellBore"^^xsd:string | 738 | [ sp:varName "wellBore"^^xsd:string |
... | @@ -728,7 +756,7 @@ rhspin:normalizeString | ... | @@ -728,7 +756,7 @@ rhspin:normalizeString |
728 | rdfs:subClassOf spl:StringFunctions ; | 756 | rdfs:subClassOf spl:StringFunctions ; |
729 | spin:body | 757 | spin:body |
730 | [ rdf:type sp:Select ; | 758 | [ rdf:type sp:Select ; |
731 | - sp:resultVariables (_:b28) ; | 759 | + sp:resultVariables (_:b21) ; |
732 | sp:where ([ rdf:type sp:Bind ; | 760 | sp:where ([ rdf:type sp:Bind ; |
733 | sp:expression | 761 | sp:expression |
734 | [ rdf:type spif:regex ; | 762 | [ rdf:type spif:regex ; |
... | @@ -736,67 +764,67 @@ rhspin:normalizeString | ... | @@ -736,67 +764,67 @@ rhspin:normalizeString |
736 | sp:arg2 "\\((.*)\\)" ; | 764 | sp:arg2 "\\((.*)\\)" ; |
737 | sp:arg3 "" | 765 | sp:arg3 "" |
738 | ] ; | 766 | ] ; |
739 | - sp:variable _:b29 | 767 | + sp:variable _:b22 |
740 | ] [ rdf:type sp:Bind ; | 768 | ] [ rdf:type sp:Bind ; |
741 | sp:expression | 769 | sp:expression |
742 | [ rdf:type spif:trim ; | 770 | [ rdf:type spif:trim ; |
743 | - sp:arg1 _:b29 | 771 | + sp:arg1 _:b22 |
744 | ] ; | 772 | ] ; |
745 | - sp:variable _:b30 | 773 | + sp:variable _:b23 |
746 | ] [ rdf:type sp:Bind ; | 774 | ] [ rdf:type sp:Bind ; |
747 | sp:expression | 775 | sp:expression |
748 | [ rdf:type spif:encodeURL ; | 776 | [ rdf:type spif:encodeURL ; |
749 | - sp:arg1 _:b30 | 777 | + sp:arg1 _:b23 |
750 | ] ; | 778 | ] ; |
751 | - sp:variable _:b31 | 779 | + sp:variable _:b24 |
752 | ] [ rdf:type sp:Bind ; | 780 | ] [ rdf:type sp:Bind ; |
753 | sp:expression | 781 | sp:expression |
754 | [ rdf:type spif:regex ; | 782 | [ rdf:type spif:regex ; |
755 | - sp:arg1 _:b31 ; | 783 | + sp:arg1 _:b24 ; |
756 | sp:arg2 "%2F" ; | 784 | sp:arg2 "%2F" ; |
757 | sp:arg3 "_" | 785 | sp:arg3 "_" |
758 | ] ; | 786 | ] ; |
759 | - sp:variable _:b32 | 787 | + sp:variable _:b25 |
760 | ] [ rdf:type sp:Bind ; | 788 | ] [ rdf:type sp:Bind ; |
761 | sp:expression | 789 | sp:expression |
762 | [ rdf:type spif:regex ; | 790 | [ rdf:type spif:regex ; |
763 | - sp:arg1 _:b32 ; | 791 | + sp:arg1 _:b25 ; |
764 | sp:arg2 "%[0-9A-F][0-9A-F]" ; | 792 | sp:arg2 "%[0-9A-F][0-9A-F]" ; |
765 | sp:arg3 "" | 793 | sp:arg3 "" |
766 | ] ; | 794 | ] ; |
767 | - sp:variable _:b33 | 795 | + sp:variable _:b26 |
768 | ] [ rdf:type sp:Bind ; | 796 | ] [ rdf:type sp:Bind ; |
769 | sp:expression | 797 | sp:expression |
770 | [ rdf:type spif:regex ; | 798 | [ rdf:type spif:regex ; |
771 | - sp:arg1 _:b33 ; | 799 | + sp:arg1 _:b26 ; |
772 | sp:arg2 "\\+" ; | 800 | sp:arg2 "\\+" ; |
773 | sp:arg3 "_" | 801 | sp:arg3 "_" |
774 | ] ; | 802 | ] ; |
775 | - sp:variable _:b34 | 803 | + sp:variable _:b27 |
776 | ] [ rdf:type sp:Bind ; | 804 | ] [ rdf:type sp:Bind ; |
777 | sp:expression | 805 | sp:expression |
778 | [ rdf:type spif:regex ; | 806 | [ rdf:type spif:regex ; |
779 | - sp:arg1 _:b34 ; | 807 | + sp:arg1 _:b27 ; |
780 | sp:arg2 "_+" ; | 808 | sp:arg2 "_+" ; |
781 | sp:arg3 "_" | 809 | sp:arg3 "_" |
782 | ] ; | 810 | ] ; |
783 | - sp:variable _:b35 | 811 | + sp:variable _:b28 |
784 | ] [ rdf:type sp:Bind ; | 812 | ] [ rdf:type sp:Bind ; |
785 | sp:expression | 813 | sp:expression |
786 | [ rdf:type spif:regex ; | 814 | [ rdf:type spif:regex ; |
787 | - sp:arg1 _:b35 ; | 815 | + sp:arg1 _:b28 ; |
788 | sp:arg2 "\\*" ; | 816 | sp:arg2 "\\*" ; |
789 | sp:arg3 "" | 817 | sp:arg3 "" |
790 | ] ; | 818 | ] ; |
791 | - sp:variable _:b36 | 819 | + sp:variable _:b29 |
792 | ] [ rdf:type sp:Bind ; | 820 | ] [ rdf:type sp:Bind ; |
793 | sp:expression | 821 | sp:expression |
794 | [ rdf:type xsd:string ; | 822 | [ rdf:type xsd:string ; |
795 | sp:arg1 [ rdf:type spif:upperCase ; | 823 | sp:arg1 [ rdf:type spif:upperCase ; |
796 | - sp:arg1 _:b36 | 824 | + sp:arg1 _:b29 |
797 | ] | 825 | ] |
798 | ] ; | 826 | ] ; |
799 | - sp:variable _:b28 | 827 | + sp:variable _:b21 |
800 | ]) | 828 | ]) |
801 | ] ; | 829 | ] ; |
802 | spin:constraint | 830 | spin:constraint |
... | @@ -813,9 +841,9 @@ rhspin:npdId | ... | @@ -813,9 +841,9 @@ rhspin:npdId |
813 | rdfs:subClassOf spl:StringFunctions ; | 841 | rdfs:subClassOf spl:StringFunctions ; |
814 | spin:body | 842 | spin:body |
815 | [ rdf:type sp:Select ; | 843 | [ rdf:type sp:Select ; |
816 | - sp:resultVariables (_:b37) ; | 844 | + sp:resultVariables (_:b30) ; |
817 | sp:where ([ rdf:type sp:NamedGraph ; | 845 | sp:where ([ rdf:type sp:NamedGraph ; |
818 | - sp:elements ([ sp:object _:b37 ; | 846 | + sp:elements ([ sp:object _:b30 ; |
819 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; | 847 | sp:predicate <http://www.reportinghub.no/np/schema/npd#id> ; |
820 | sp:subject | 848 | sp:subject |
821 | [ sp:varName "resource"^^xsd:string | 849 | [ sp:varName "resource"^^xsd:string |
... | @@ -838,9 +866,9 @@ rhspin:npdName | ... | @@ -838,9 +866,9 @@ rhspin:npdName |
838 | rdfs:subClassOf spl:StringFunctions ; | 866 | rdfs:subClassOf spl:StringFunctions ; |
839 | spin:body | 867 | spin:body |
840 | [ rdf:type sp:Select ; | 868 | [ rdf:type sp:Select ; |
841 | - sp:resultVariables (_:b38) ; | 869 | + sp:resultVariables (_:b31) ; |
842 | sp:where ([ rdf:type sp:NamedGraph ; | 870 | sp:where ([ rdf:type sp:NamedGraph ; |
843 | - sp:elements ([ sp:object _:b38 ; | 871 | + sp:elements ([ sp:object _:b31 ; |
844 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 872 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
845 | sp:subject | 873 | sp:subject |
846 | [ sp:varName "resource"^^xsd:string | 874 | [ sp:varName "resource"^^xsd:string |
... | @@ -993,16 +1021,16 @@ rhspin:wellBoreByName | ... | @@ -993,16 +1021,16 @@ rhspin:wellBoreByName |
993 | rdfs:subClassOf spl:URIFunctions ; | 1021 | rdfs:subClassOf spl:URIFunctions ; |
994 | spin:body | 1022 | spin:body |
995 | [ rdf:type sp:Select ; | 1023 | [ rdf:type sp:Select ; |
996 | - sp:resultVariables (_:b39) ; | 1024 | + sp:resultVariables (_:b32) ; |
997 | sp:where ([ rdf:type sp:NamedGraph ; | 1025 | sp:where ([ rdf:type sp:NamedGraph ; |
998 | sp:elements ([ sp:object | 1026 | sp:elements ([ sp:object |
999 | [ sp:varName "wellBoreName"^^xsd:string | 1027 | [ sp:varName "wellBoreName"^^xsd:string |
1000 | ] ; | 1028 | ] ; |
1001 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | 1029 | sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; |
1002 | - sp:subject _:b39 | 1030 | + sp:subject _:b32 |
1003 | ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; | 1031 | ] [ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; |
1004 | sp:predicate rdf:type ; | 1032 | sp:predicate rdf:type ; |
1005 | - sp:subject _:b39 | 1033 | + sp:subject _:b32 |
1006 | ]) ; | 1034 | ]) ; |
1007 | sp:graphNameNode npdata:npd | 1035 | sp:graphNameNode npdata:npd |
1008 | ]) | 1036 | ]) |
... | @@ -1041,71 +1069,50 @@ rhspin:wellByName | ... | @@ -1041,71 +1069,50 @@ rhspin:wellByName |
1041 | ] ; | 1069 | ] ; |
1042 | spin:returnType <http://www.reportinghub.no/ep/schema/well#Well> . | 1070 | spin:returnType <http://www.reportinghub.no/ep/schema/well#Well> . |
1043 | 1071 | ||
1044 | -_:b39 | ||
1045 | - sp:varName "wellBore"^^xsd:string . | ||
1046 | - | ||
1047 | -_:b38 | ||
1048 | - sp:varName "name"^^xsd:string . | ||
1049 | - | ||
1050 | -_:b37 | ||
1051 | - sp:varName "id"^^xsd:string . | ||
1052 | - | ||
1053 | -_:b36 | ||
1054 | - sp:varName "t4"^^xsd:string . | ||
1055 | - | ||
1056 | -_:b35 | ||
1057 | - sp:varName "t3"^^xsd:string . | ||
1058 | - | ||
1059 | -_:b34 | ||
1060 | - sp:varName "t2"^^xsd:string . | ||
1061 | - | ||
1062 | -_:b33 | ||
1063 | - sp:varName "t1"^^xsd:string . | ||
1064 | - | ||
1065 | _:b32 | 1072 | _:b32 |
1066 | - sp:varName "t0b"^^xsd:string . | 1073 | + sp:varName "wellBore"^^xsd:string . |
1067 | 1074 | ||
1068 | _:b31 | 1075 | _:b31 |
1069 | - sp:varName "t0a"^^xsd:string . | 1076 | + sp:varName "name"^^xsd:string . |
1070 | 1077 | ||
1071 | _:b30 | 1078 | _:b30 |
1072 | - sp:varName "s2"^^xsd:string . | 1079 | + sp:varName "id"^^xsd:string . |
1073 | 1080 | ||
1074 | _:b29 | 1081 | _:b29 |
1075 | - sp:varName "s1"^^xsd:string . | 1082 | + sp:varName "t4"^^xsd:string . |
1076 | 1083 | ||
1077 | _:b28 | 1084 | _:b28 |
1078 | - sp:varName "normalizedStr"^^xsd:string . | 1085 | + sp:varName "t3"^^xsd:string . |
1079 | 1086 | ||
1080 | _:b27 | 1087 | _:b27 |
1081 | - sp:varName "licence"^^xsd:string . | 1088 | + sp:varName "t2"^^xsd:string . |
1082 | 1089 | ||
1083 | _:b26 | 1090 | _:b26 |
1084 | - sp:varName "id"^^xsd:string . | 1091 | + sp:varName "t1"^^xsd:string . |
1085 | 1092 | ||
1086 | _:b25 | 1093 | _:b25 |
1087 | - sp:varName "licence"^^xsd:string . | 1094 | + sp:varName "t0b"^^xsd:string . |
1088 | 1095 | ||
1089 | _:b24 | 1096 | _:b24 |
1090 | - sp:varName "wellBore"^^xsd:string . | 1097 | + sp:varName "t0a"^^xsd:string . |
1091 | 1098 | ||
1092 | _:b23 | 1099 | _:b23 |
1093 | - sp:varName "uri"^^xsd:string . | 1100 | + sp:varName "s2"^^xsd:string . |
1094 | 1101 | ||
1095 | _:b22 | 1102 | _:b22 |
1096 | - sp:varName "reif"^^xsd:string . | 1103 | + sp:varName "s1"^^xsd:string . |
1097 | 1104 | ||
1098 | _:b21 | 1105 | _:b21 |
1099 | - sp:varName "value"^^xsd:string . | 1106 | + sp:varName "normalizedStr"^^xsd:string . |
1100 | 1107 | ||
1101 | _:b20 | 1108 | _:b20 |
1102 | - sp:varName "wellBore"^^xsd:string . | 1109 | + sp:varName "licence"^^xsd:string . |
1103 | 1110 | ||
1104 | _:b19 | 1111 | _:b19 |
1105 | - sp:varName "id"^^xsd:string . | 1112 | + sp:varName "reif"^^xsd:string . |
1106 | 1113 | ||
1107 | _:b18 | 1114 | _:b18 |
1108 | - sp:varName "startedAt"^^xsd:string . | 1115 | + sp:varName "value"^^xsd:string . |
1109 | 1116 | ||
1110 | _:b17 | 1117 | _:b17 |
1111 | sp:varName "wellBore"^^xsd:string . | 1118 | sp:varName "wellBore"^^xsd:string . | ... | ... |
-
Please register or login to post a comment