Holger Knublauch

Replaced ddr:nameWell with ep-spin-lib:nameWell

......@@ -34,7 +34,7 @@ ddr:Obj_drillReport
] [ sp:object spin:_this ;
sp:predicate spin:violationRoot ;
sp:subject _:b1
] [ sp:object ddr:nameWellbore ;
] [ sp:object ddr:nameWell ;
sp:predicate spin:violationPath ;
sp:subject _:b1
] [ sp:object
......@@ -44,33 +44,35 @@ ddr:Obj_drillReport
sp:subject _:b1
]) ;
sp:where ([ sp:object
[ sp:varName "wellBoreName"^^xsd:string
[ sp:varName "wellName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/spin/lib#nameWellbore> ;
sp:predicate <http://www.reportinghub.no/ep/spin/lib#nameWell> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:wellBoreByName ;
arg:wellBoreName
[ sp:varName "wellBoreName"^^xsd:string
[ rdf:type rhspin:wellByName ;
arg:wellName
[ sp:varName "wellName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "wellBore"^^xsd:string
[ sp:varName "well"^^xsd:string
]
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:not ;
sp:arg1 [ rdf:type sp:bound ;
sp:arg1 [ sp:varName "wellBore"^^xsd:string
]
sp:arg1 [ rdf:type rhspin:npdTripleExists ;
sp:arg1 [ sp:varName "well"^^xsd:string
] ;
sp:arg2 rdf:type ;
sp:arg3 <http://www.reportinghub.no/ep/schema/well#Well>
]
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type fn:concat ;
sp:arg1 "Unregistered well bore name " ;
sp:arg2 [ sp:varName "wellBoreName"^^xsd:string
sp:arg1 "Unregistered well name " ;
sp:arg2 [ sp:varName "wellName"^^xsd:string
]
] ;
sp:variable
......@@ -79,26 +81,6 @@ ddr:Obj_drillReport
])
] ;
spin:constraint
[ rdf:type sp:Ask ;
rdfs:comment "DDRs can only be submitted if a user is logged in"^^xsd:string ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:companyName
] ;
sp:variable
[ sp:varName "companyName"^^xsd:string
]
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:not ;
sp:arg1 [ rdf:type sp:bound ;
sp:arg1 [ sp:varName "companyName"^^xsd:string
]
]
]
])
] ;
spin:constraint
[ rdf:type sp:Construct ;
sp:templates ([ sp:object spin:ConstraintViolation ;
sp:predicate rdf:type ;
......@@ -106,7 +88,7 @@ ddr:Obj_drillReport
] [ sp:object spin:_this ;
sp:predicate spin:violationRoot ;
sp:subject _:b2
] [ sp:object ddr:nameWell ;
] [ sp:object ddr:nameWellbore ;
sp:predicate spin:violationPath ;
sp:subject _:b2
] [ sp:object
......@@ -116,39 +98,57 @@ ddr:Obj_drillReport
sp:subject _:b2
]) ;
sp:where ([ sp:object
[ sp:varName "wellName"^^xsd:string
[ sp:varName "wellBoreName"^^xsd:string
] ;
sp:predicate ddr:nameWell ;
sp:predicate <http://www.reportinghub.no/ep/spin/lib#nameWellbore> ;
sp:subject spin:_this
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:wellByName ;
arg:wellName
[ sp:varName "wellName"^^xsd:string
[ rdf:type rhspin:wellBoreByName ;
arg:wellBoreName
[ sp:varName "wellBoreName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "well"^^xsd:string
[ sp:varName "wellBore"^^xsd:string
]
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:not ;
sp:arg1 [ rdf:type rhspin:npdTripleExists ;
sp:arg1 [ sp:varName "well"^^xsd:string
] ;
sp:arg2 rdf:type ;
sp:arg3 <http://www.reportinghub.no/ep/schema/well#Well>
sp:arg1 [ rdf:type sp:bound ;
sp:arg1 [ sp:varName "wellBore"^^xsd:string
]
]
]
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type fn:concat ;
sp:arg1 "Unregistered well name " ;
sp:arg2 [ sp:varName "wellName"^^xsd:string
sp:arg1 "Unregistered well bore name " ;
sp:arg2 [ sp:varName "wellBoreName"^^xsd:string
]
] ;
sp:variable
[ sp:varName "message"^^xsd:string
]
])
] ;
spin:constraint
[ rdf:type sp:Ask ;
rdfs:comment "DDRs can only be submitted if a user is logged in"^^xsd:string ;
sp:where ([ rdf:type sp:Bind ;
sp:expression
[ rdf:type rhspin:companyName
] ;
sp:variable
[ sp:varName "companyName"^^xsd:string
]
] [ rdf:type sp:Filter ;
sp:expression
[ rdf:type sp:not ;
sp:arg1 [ rdf:type sp:bound ;
sp:arg1 [ sp:varName "companyName"^^xsd:string
]
]
]
])
] .
......
This diff could not be displayed because it is too large.
......@@ -416,7 +416,7 @@ Classify a DailyDrillingReport"""^^xsd:string ;
] [ sp:object
[ sp:varName "nameWell"^^xsd:string
] ;
sp:predicate ddr:nameWell ;
sp:predicate ep-spin-lib:nameWell ;
sp:subject spin:_this
] [ sp:object
[ sp:varName "dTimStart"^^xsd:string
......