Holger Knublauch

Calls of ddr:nameWellbore replaced with ep-spin-lib:nameWellbore

Showing 42 changed files with 48 additions and 67 deletions
......@@ -7,7 +7,7 @@
@prefix : <http://www.reportinghub.no/ep/spin/ddr-constraints#> .
@prefix arg: <http://spinrdf.org/arg#> .
@prefix ddr: <http://www.reportinghub.no/ep/schema/ddr#> .
@prefix ddr: <http://www.witsml.org/schemas/1series#> .
@prefix fn: <http://www.w3.org/2005/xpath-functions#> .
@prefix normalization: <http://www.reportinghub.no/ep/transform/1.1/normalization#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
......@@ -17,7 +17,6 @@
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix witsml: <http://www.witsml.org/schemas/1series#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/spin/ddr-constraints>
......@@ -26,27 +25,7 @@
owl:imports <http://spinrdf.org/spin> , <http://topbraid.org/sxml> , <http://www.reportinghub.no/np/schema/1.0/npd> , <http://www.reportinghub.no/spin/rh> , <http://www.witsml.org/schemas/1series> ;
owl:versionInfo "0.2.0"^^xsd:string .
witsml: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
]
]
]
])
] ;
ddr:Obj_drillReport
spin:constraint
[ rdf:type sp:Construct ;
sp:templates ([ sp:object spin:ConstraintViolation ;
......@@ -55,7 +34,7 @@ witsml:Obj_drillReport
] [ sp:object spin:_this ;
sp:predicate spin:violationRoot ;
sp:subject _:b1
] [ sp:object witsml:nameWell ;
] [ sp:object ddr:nameWellbore ;
sp:predicate spin:violationPath ;
sp:subject _:b1
] [ sp:object
......@@ -65,35 +44,33 @@ witsml:Obj_drillReport
sp:subject _:b1
]) ;
sp:where ([ sp:object
[ sp:varName "wellName"^^xsd:string
[ sp:varName "wellBoreName"^^xsd:string
] ;
sp:predicate witsml: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
......@@ -102,6 +79,26 @@ witsml: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 ;
......@@ -109,7 +106,7 @@ witsml:Obj_drillReport
] [ sp:object spin:_this ;
sp:predicate spin:violationRoot ;
sp:subject _:b2
] [ sp:object witsml:nameWellbore ;
] [ sp:object ddr:nameWell ;
sp:predicate spin:violationPath ;
sp:subject _:b2
] [ sp:object
......@@ -119,33 +116,35 @@ witsml:Obj_drillReport
sp:subject _:b2
]) ;
sp:where ([ sp:object
[ sp:varName "wellBoreName"^^xsd:string
[ sp:varName "wellName"^^xsd:string
] ;
sp:predicate witsml:nameWellbore ;
sp:predicate ddr: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
......
# Saved by TopBraid on Tue Sep 27 13:59:39 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Sat Sep 24 11:52:58 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Wed Sep 14 18:06:22 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Mon Sep 19 13:44:54 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Sun Sep 18 21:37:54 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Mon Sep 19 15:28:07 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Wed Sep 28 18:18:02 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Mon Sep 19 17:13:14 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Mon Sep 19 18:17:47 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Mon Sep 19 20:27:36 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Tue Sep 20 17:36:42 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Tue Sep 20 17:40:09 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Tue Sep 20 17:34:59 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Tue Sep 20 19:34:31 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Tue Sep 20 19:37:29 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Tue Sep 13 11:23:38 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Tue Sep 27 14:13:13 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......
# Saved by TopBraid on Sun Sep 25 13:40:06 BST 2011
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
......