Showing
1 changed file
with
115 additions
and
9 deletions
... | @@ -8,6 +8,9 @@ | ... | @@ -8,6 +8,9 @@ |
8 | 8 | ||
9 | @prefix : <http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest#> . | 9 | @prefix : <http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest#> . |
10 | @prefix arg: <http://spinrdf.org/arg#> . | 10 | @prefix arg: <http://spinrdf.org/arg#> . |
11 | +@prefix ep-dpr-spin-lib: <http://www.reportinghub.no/ep/dpr/spin/1.1/lib#> . | ||
12 | +@prefix ep-spin-lib: <http://www.reportinghub.no/ep/spin/lib#> . | ||
13 | +@prefix fn: <http://www.w3.org/2005/xpath-functions#> . | ||
11 | @prefix owl: <http://www.w3.org/2002/07/owl#> . | 14 | @prefix owl: <http://www.w3.org/2002/07/owl#> . |
12 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 15 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
13 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | 16 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
... | @@ -21,7 +24,8 @@ | ... | @@ -21,7 +24,8 @@ |
21 | spin:rule | 24 | spin:rule |
22 | [ rdf:type sp:Construct ; | 25 | [ rdf:type sp:Construct ; |
23 | rdfs:comment """STEP 30101 Create WellTest activity - anonymous because there is no mandatory data about it | 26 | rdfs:comment """STEP 30101 Create WellTest activity - anonymous because there is no mandatory data about it |
24 | -DPR was using wellbore for this, here we use Well."""^^xsd:string ; | 27 | +DPR was using wellbore for this, here we use Well. |
28 | +Would be much better if we could assume testDate is mandatory - that would give us a unique ID and a way to link to predecessor."""^^xsd:string ; | ||
25 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellTest> ; | 29 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#WellTest> ; |
26 | sp:predicate rdf:type ; | 30 | sp:predicate rdf:type ; |
27 | sp:subject | 31 | sp:subject |
... | @@ -42,12 +46,38 @@ DPR was using wellbore for this, here we use Well."""^^xsd:string ; | ... | @@ -42,12 +46,38 @@ DPR was using wellbore for this, here we use Well."""^^xsd:string ; |
42 | [ sp:varName "epWellTest"^^xsd:string | 46 | [ sp:varName "epWellTest"^^xsd:string |
43 | ] | 47 | ] |
44 | ] [ sp:object | 48 | ] [ sp:object |
45 | - [ sp:varName "epWell"^^xsd:string | 49 | + [ sp:varName "epWellTP"^^xsd:string |
46 | ] ; | 50 | ] ; |
47 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ; | 51 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#onWell> ; |
48 | sp:subject | 52 | sp:subject |
49 | [ sp:varName "epWellTest"^^xsd:string | 53 | [ sp:varName "epWellTest"^^xsd:string |
50 | ] | 54 | ] |
55 | + ] [ sp:object | ||
56 | + [ sp:varName "wellTestName"^^xsd:string | ||
57 | + ] ; | ||
58 | + sp:predicate rdfs:label ; | ||
59 | + sp:subject | ||
60 | + [ sp:varName "epWellTest"^^xsd:string | ||
61 | + ] | ||
62 | + ] [ sp:object | ||
63 | + [ sp:varName "wellTest"^^xsd:string | ||
64 | + ] ; | ||
65 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
66 | + sp:subject | ||
67 | + [ sp:varName "epWellTest"^^xsd:string | ||
68 | + ] | ||
69 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/well#TemporalPartOfAWell> ; | ||
70 | + sp:predicate rdf:type ; | ||
71 | + sp:subject | ||
72 | + [ sp:varName "epWellTP"^^xsd:string | ||
73 | + ] | ||
74 | + ] [ sp:object | ||
75 | + [ sp:varName "epWell"^^xsd:string | ||
76 | + ] ; | ||
77 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
78 | + sp:subject | ||
79 | + [ sp:varName "epWellTP"^^xsd:string | ||
80 | + ] | ||
51 | ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellTestType> ; | 81 | ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#WellTestType> ; |
52 | sp:predicate rdf:type ; | 82 | sp:predicate rdf:type ; |
53 | sp:subject | 83 | sp:subject |
... | @@ -67,6 +97,27 @@ DPR was using wellbore for this, here we use Well."""^^xsd:string ; | ... | @@ -67,6 +97,27 @@ DPR was using wellbore for this, here we use Well."""^^xsd:string ; |
67 | sp:subject | 97 | sp:subject |
68 | [ sp:varName "epWellTestType"^^xsd:string | 98 | [ sp:varName "epWellTestType"^^xsd:string |
69 | ] | 99 | ] |
100 | + ] [ sp:object | ||
101 | + [ sp:varName "epWellTestReasonType"^^xsd:string | ||
102 | + ] ; | ||
103 | + sp:predicate rdf:type ; | ||
104 | + sp:subject | ||
105 | + [ sp:varName "epWellTest"^^xsd:string | ||
106 | + ] | ||
107 | + ] [ sp:object | ||
108 | + [ sp:varName "previousTestDate"^^xsd:string | ||
109 | + ] ; | ||
110 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; | ||
111 | + sp:subject | ||
112 | + [ sp:varName "epPreviousWellTest"^^xsd:string | ||
113 | + ] | ||
114 | + ] [ sp:object | ||
115 | + [ sp:varName "epPreviousWellTest"^^xsd:string | ||
116 | + ] ; | ||
117 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#hasPredecessor> ; | ||
118 | + sp:subject | ||
119 | + [ sp:varName "epWellTest"^^xsd:string | ||
120 | + ] | ||
70 | ]) ; | 121 | ]) ; |
71 | sp:where ([ sp:object spin:_this ; | 122 | sp:where ([ sp:object spin:_this ; |
72 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 123 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
... | @@ -93,6 +144,13 @@ DPR was using wellbore for this, here we use Well."""^^xsd:string ; | ... | @@ -93,6 +144,13 @@ DPR was using wellbore for this, here we use Well."""^^xsd:string ; |
93 | ] [ sp:object | 144 | ] [ sp:object |
94 | [ sp:varName "wellName"^^xsd:string | 145 | [ sp:varName "wellName"^^xsd:string |
95 | ] ; | 146 | ] ; |
147 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameWell> ; | ||
148 | + sp:subject | ||
149 | + [ sp:varName "wellTest"^^xsd:string | ||
150 | + ] | ||
151 | + ] [ sp:object | ||
152 | + [ sp:varName "wellTestName"^^xsd:string | ||
153 | + ] ; | ||
96 | sp:predicate <http://www.epim.no/schemas/mprml/1#name> ; | 154 | sp:predicate <http://www.epim.no/schemas/mprml/1#name> ; |
97 | sp:subject | 155 | sp:subject |
98 | [ sp:varName "wellTest"^^xsd:string | 156 | [ sp:varName "wellTest"^^xsd:string |
... | @@ -109,10 +167,25 @@ DPR was using wellbore for this, here we use Well."""^^xsd:string ; | ... | @@ -109,10 +167,25 @@ DPR was using wellbore for this, here we use Well."""^^xsd:string ; |
109 | ] | 167 | ] |
110 | ] [ rdf:type sp:Bind ; | 168 | ] [ rdf:type sp:Bind ; |
111 | sp:expression | 169 | sp:expression |
112 | - [ rdf:type <http://www.reportinghub.no/ep/spin/lib#buildURI> ; | 170 | + [ rdf:type ep-spin-lib:buildURI ; |
171 | + sp:arg1 "https://www.reportinghub.no/ep/data/temporalPartOfAWell/" ; | ||
172 | + sp:arg2 [ rdf:type fn:concat ; | ||
173 | + sp:arg1 [ rdf:type ep-spin-lib:normalizeString ; | ||
174 | + sp:arg1 [ sp:varName "wellName"^^xsd:string | ||
175 | + ] | ||
176 | + ] ; | ||
177 | + sp:arg2 <http://topbraid.org/sparqlmotionfunctions#generateUUID> | ||
178 | + ] | ||
179 | + ] ; | ||
180 | + sp:variable | ||
181 | + [ sp:varName "epWellTP"^^xsd:string | ||
182 | + ] | ||
183 | + ] [ rdf:type sp:Bind ; | ||
184 | + sp:expression | ||
185 | + [ rdf:type ep-spin-lib:buildURI ; | ||
113 | sp:arg1 "https://www.reportinghub.no/ep/data/wellTest/" ; | 186 | sp:arg1 "https://www.reportinghub.no/ep/data/wellTest/" ; |
114 | - sp:arg2 [ rdf:type <http://www.w3.org/2005/xpath-functions#concat> ; | 187 | + sp:arg2 [ rdf:type fn:concat ; |
115 | - sp:arg1 [ rdf:type <http://www.reportinghub.no/ep/spin/lib#normalizeString> ; | 188 | + sp:arg1 [ rdf:type ep-spin-lib:normalizeString ; |
116 | sp:arg1 [ sp:varName "wellName"^^xsd:string | 189 | sp:arg1 [ sp:varName "wellName"^^xsd:string |
117 | ] | 190 | ] |
118 | ] ; | 191 | ] ; |
... | @@ -133,12 +206,45 @@ DPR was using wellbore for this, here we use Well."""^^xsd:string ; | ... | @@ -133,12 +206,45 @@ DPR was using wellbore for this, here we use Well."""^^xsd:string ; |
133 | ]) | 206 | ]) |
134 | ] [ rdf:type sp:Optional ; | 207 | ] [ rdf:type sp:Optional ; |
135 | sp:elements ([ sp:object | 208 | sp:elements ([ sp:object |
209 | + [ sp:varName "previousTestDate"^^xsd:string | ||
210 | + ] ; | ||
211 | + sp:predicate <http://www.epim.no/schemas/mprml/1#previousTestDate> ; | ||
212 | + sp:subject | ||
213 | + [ sp:varName "wellTest"^^xsd:string | ||
214 | + ] | ||
215 | + ] [ rdf:type sp:Bind ; | ||
216 | + sp:expression | ||
217 | + [ rdf:type ep-spin-lib:buildURI ; | ||
218 | + sp:arg1 "https://www.reportinghub.no/ep/data/wellTest/" ; | ||
219 | + sp:arg2 [ rdf:type fn:concat ; | ||
220 | + sp:arg1 [ rdf:type ep-spin-lib:normalizeString ; | ||
221 | + sp:arg1 [ sp:varName "wellName"^^xsd:string | ||
222 | + ] | ||
223 | + ] ; | ||
224 | + sp:arg2 <http://topbraid.org/sparqlmotionfunctions#generateUUID> | ||
225 | + ] | ||
226 | + ] ; | ||
227 | + sp:variable | ||
228 | + [ sp:varName "epPreviousWellTest"^^xsd:string | ||
229 | + ] | ||
230 | + ]) | ||
231 | + ] [ rdf:type sp:Optional ; | ||
232 | + sp:elements ([ sp:object | ||
136 | [ sp:varName "testReason"^^xsd:string | 233 | [ sp:varName "testReason"^^xsd:string |
137 | ] ; | 234 | ] ; |
138 | sp:predicate <http://www.epim.no/schemas/mprml/1#testReasonRef> ; | 235 | sp:predicate <http://www.epim.no/schemas/mprml/1#testReasonRef> ; |
139 | sp:subject | 236 | sp:subject |
140 | [ sp:varName "wellTest"^^xsd:string | 237 | [ sp:varName "wellTest"^^xsd:string |
141 | ] | 238 | ] |
239 | + ] [ rdf:type sp:Bind ; | ||
240 | + sp:expression | ||
241 | + [ rdf:type ep-dpr-spin-lib:selectWellTestReasonType ; | ||
242 | + sp:arg1 [ sp:varName "testReason"^^xsd:string | ||
243 | + ] | ||
244 | + ] ; | ||
245 | + sp:variable | ||
246 | + [ sp:varName "epWellTestReasonType"^^xsd:string | ||
247 | + ] | ||
142 | ]) | 248 | ]) |
143 | ] [ rdf:type sp:Optional ; | 249 | ] [ rdf:type sp:Optional ; |
144 | sp:elements ([ sp:object | 250 | sp:elements ([ sp:object |
... | @@ -150,10 +256,10 @@ DPR was using wellbore for this, here we use Well."""^^xsd:string ; | ... | @@ -150,10 +256,10 @@ DPR was using wellbore for this, here we use Well."""^^xsd:string ; |
150 | ] | 256 | ] |
151 | ] [ rdf:type sp:Bind ; | 257 | ] [ rdf:type sp:Bind ; |
152 | sp:expression | 258 | sp:expression |
153 | - [ rdf:type <http://www.reportinghub.no/ep/spin/lib#buildURI> ; | 259 | + [ rdf:type ep-spin-lib:buildURI ; |
154 | sp:arg1 "https://www.reportinghub.no/ep/data/wellTestType/" ; | 260 | sp:arg1 "https://www.reportinghub.no/ep/data/wellTestType/" ; |
155 | - sp:arg2 [ rdf:type <http://www.w3.org/2005/xpath-functions#concat> ; | 261 | + sp:arg2 [ rdf:type fn:concat ; |
156 | - sp:arg1 [ rdf:type <http://www.reportinghub.no/ep/spin/lib#normalizeString> ; | 262 | + sp:arg1 [ rdf:type ep-spin-lib:normalizeString ; |
157 | sp:arg1 [ sp:varName "wellTestTypeText"^^xsd:string | 263 | sp:arg1 [ sp:varName "wellTestTypeText"^^xsd:string |
158 | ] | 264 | ] |
159 | ] | 265 | ] |
... | @@ -168,5 +274,5 @@ DPR was using wellbore for this, here we use Well."""^^xsd:string ; | ... | @@ -168,5 +274,5 @@ DPR was using wellbore for this, here we use Well."""^^xsd:string ; |
168 | 274 | ||
169 | <http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest> | 275 | <http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest> |
170 | rdf:type owl:Ontology ; | 276 | rdf:type owl:Ontology ; |
171 | - owl:imports <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production-well> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> ; | 277 | + owl:imports <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/production-well> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> ; |
172 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 278 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
-
Please register or login to post a comment