MonkeyChap

well test

......@@ -118,6 +118,20 @@ Would be much better if we could assume testDate is mandatory - that would give
sp:subject
[ sp:varName "epWellTest"^^xsd:string
]
] [ sp:object
[ sp:varName "lastValidTest"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
sp:subject
[ sp:varName "epLastValidTest"^^xsd:string
]
] [ sp:object
[ sp:varName "epLastValidTest"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/production-activity#hasValidPredecessor> ;
sp:subject
[ sp:varName "epWellTest"^^xsd:string
]
]) ;
sp:where ([ sp:object spin:_this ;
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
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "lastValidTest"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#previousTestDate> ;
sp:subject
[ sp:varName "wellTest"^^xsd:string
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-spin-lib:buildURI ;
sp:arg1 "https://www.reportinghub.no/ep/data/wellTest/" ;
sp:arg2 [ rdf:type fn:concat ;
sp:arg1 [ rdf:type ep-spin-lib:normalizeString ;
sp:arg1 [ sp:varName "wellName"^^xsd:string
]
] ;
sp:arg2 <http://topbraid.org/sparqlmotionfunctions#generateUUID>
]
] ;
sp:variable
[ sp:varName "epLastValidTest"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "testReason"^^xsd:string
] ;
sp:predicate <http://www.epim.no/schemas/mprml/1#testReasonRef> ;
......