Showing
1 changed file
with
38 additions
and
0 deletions
| ... | @@ -118,6 +118,20 @@ Would be much better if we could assume testDate is mandatory - that would give | ... | @@ -118,6 +118,20 @@ Would be much better if we could assume testDate is mandatory - that would give |
| 118 | sp:subject | 118 | sp:subject |
| 119 | [ sp:varName "epWellTest"^^xsd:string | 119 | [ sp:varName "epWellTest"^^xsd:string |
| 120 | ] | 120 | ] |
| 121 | + ] [ sp:object | ||
| 122 | + [ sp:varName "lastValidTest"^^xsd:string | ||
| 123 | + ] ; | ||
| 124 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; | ||
| 125 | + sp:subject | ||
| 126 | + [ sp:varName "epLastValidTest"^^xsd:string | ||
| 127 | + ] | ||
| 128 | + ] [ sp:object | ||
| 129 | + [ sp:varName "epLastValidTest"^^xsd:string | ||
| 130 | + ] ; | ||
| 131 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#hasValidPredecessor> ; | ||
| 132 | + sp:subject | ||
| 133 | + [ sp:varName "epWellTest"^^xsd:string | ||
| 134 | + ] | ||
| 121 | ]) ; | 135 | ]) ; |
| 122 | sp:where ([ sp:object spin:_this ; | 136 | sp:where ([ sp:object spin:_this ; |
| 123 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 137 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
| ... | @@ -230,6 +244,30 @@ Would be much better if we could assume testDate is mandatory - that would give | ... | @@ -230,6 +244,30 @@ Would be much better if we could assume testDate is mandatory - that would give |
| 230 | ]) | 244 | ]) |
| 231 | ] [ rdf:type sp:Optional ; | 245 | ] [ rdf:type sp:Optional ; |
| 232 | sp:elements ([ sp:object | 246 | sp:elements ([ sp:object |
| 247 | + [ sp:varName "lastValidTest"^^xsd:string | ||
| 248 | + ] ; | ||
| 249 | + sp:predicate <http://www.epim.no/schemas/mprml/1#previousTestDate> ; | ||
| 250 | + sp:subject | ||
| 251 | + [ sp:varName "wellTest"^^xsd:string | ||
| 252 | + ] | ||
| 253 | + ] [ rdf:type sp:Bind ; | ||
| 254 | + sp:expression | ||
| 255 | + [ rdf:type ep-spin-lib:buildURI ; | ||
| 256 | + sp:arg1 "https://www.reportinghub.no/ep/data/wellTest/" ; | ||
| 257 | + sp:arg2 [ rdf:type fn:concat ; | ||
| 258 | + sp:arg1 [ rdf:type ep-spin-lib:normalizeString ; | ||
| 259 | + sp:arg1 [ sp:varName "wellName"^^xsd:string | ||
| 260 | + ] | ||
| 261 | + ] ; | ||
| 262 | + sp:arg2 <http://topbraid.org/sparqlmotionfunctions#generateUUID> | ||
| 263 | + ] | ||
| 264 | + ] ; | ||
| 265 | + sp:variable | ||
| 266 | + [ sp:varName "epLastValidTest"^^xsd:string | ||
| 267 | + ] | ||
| 268 | + ]) | ||
| 269 | + ] [ rdf:type sp:Optional ; | ||
| 270 | + sp:elements ([ sp:object | ||
| 233 | [ sp:varName "testReason"^^xsd:string | 271 | [ sp:varName "testReason"^^xsd:string |
| 234 | ] ; | 272 | ] ; |
| 235 | sp:predicate <http://www.epim.no/schemas/mprml/1#testReasonRef> ; | 273 | sp:predicate <http://www.epim.no/schemas/mprml/1#testReasonRef> ; | ... | ... |
-
Please register or login to post a comment