Showing
1 changed file
with
773 additions
and
585 deletions
1 | -# baseURI: http://www.reportinghub.no/ep/spin/mpr-proxy-constraints | 1 | +# baseURI: http://www.reportinghub.no/ep/spin/mpr-proxy-constraints |
2 | -# imports: http://spinrdf.org/spin | 2 | +# imports: http://spinrdf.org/spin |
3 | -# imports: http://www.epim.no/schemas/mprml/1 | 3 | +# imports: http://www.epim.no/schemas/mprml/1 |
4 | -# imports: http://www.reportinghub.no/spin/rh | 4 | +# imports: http://www.reportinghub.no/spin/rh |
5 | - | 5 | + |
6 | -@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . | 6 | +# c14n-version: 3 |
7 | -@prefix arg: <http://spinrdf.org/arg#> . | 7 | +@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . |
8 | -@prefix fn: <http://www.w3.org/2005/xpath-functions#> . | 8 | +@prefix arg: <http://spinrdf.org/arg#> . |
9 | -@prefix mpr-proxy-constraints: <http://www.reportinghub.no/ep/spin/mpr-proxy-constraints#> . | 9 | +@prefix fn: <http://www.w3.org/2005/xpath-functions#> . |
10 | -@prefix owl: <http://www.w3.org/2002/07/owl#> . | 10 | +@prefix mpr-proxy-constraints: <http://www.reportinghub.no/ep/spin/mpr-proxy-constraints#> . |
11 | -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 11 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . |
12 | -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | 12 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
13 | -@prefix rhspin: <http://www.reportinghub.no/spin/rh#> . | 13 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
14 | -@prefix sp: <http://spinrdf.org/sp#> . | 14 | +@prefix rhspin: <http://www.reportinghub.no/spin/rh#> . |
15 | -@prefix spif: <http://spinrdf.org/spif#> . | 15 | +@prefix sp: <http://spinrdf.org/sp#> . |
16 | -@prefix spin: <http://spinrdf.org/spin#> . | 16 | +@prefix spif: <http://spinrdf.org/spif#> . |
17 | -@prefix spl: <http://spinrdf.org/spl#> . | 17 | +@prefix spin: <http://spinrdf.org/spin#> . |
18 | -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | 18 | +@prefix spl: <http://spinrdf.org/spl#> . |
19 | - | 19 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
20 | arg:kindRef | 20 | arg:kindRef |
21 | - rdf:type rdf:Property ; | 21 | + rdf:type rdf:Property ; |
22 | - rdfs:label "kind ref"^^xsd:string ; | 22 | + rdfs:label "kind ref"^^xsd:string ; |
23 | - rdfs:subPropertyOf sp:arg . | 23 | + rdfs:subPropertyOf sp:arg ; |
24 | - | 24 | +. |
25 | <http://www.epim.no/schemas/mprml/1#Cs_wellContext> | 25 | <http://www.epim.no/schemas/mprml/1#Cs_wellContext> |
26 | - spin:constraint | 26 | + spin:constraint [ |
27 | - [ rdf:type sp:Construct ; | 27 | + rdf:type sp:Construct ; |
28 | - sp:templates ([ sp:object spin:ConstraintViolation ; | 28 | + sp:templates ( |
29 | - sp:predicate rdf:type ; | 29 | + [ |
30 | - sp:subject _:b1 | 30 | + sp:object spin:ConstraintViolation ; |
31 | - ] [ sp:object | 31 | + sp:predicate rdf:type ; |
32 | - [ sp:varName "message"^^xsd:string | 32 | + sp:subject _:b25853 ; |
33 | - ] ; | 33 | + ] |
34 | - sp:predicate rdfs:label ; | 34 | + [ |
35 | - sp:subject _:b1 | 35 | + sp:object [ |
36 | - ]) ; | 36 | + sp:varName "message"^^xsd:string ; |
37 | - sp:where ([ sp:object | 37 | + ] ; |
38 | - [ sp:varName "struct"^^xsd:string | 38 | + sp:predicate rdfs:label ; |
39 | - ] ; | 39 | + sp:subject _:b25853 ; |
40 | - sp:predicate <http://www.epim.no/schemas/mprml/1#fieldRef> ; | 40 | + ] |
41 | - sp:subject spin:_this | 41 | + ) ; |
42 | - ] [ sp:object "NPD"^^xsd:string ; | 42 | + sp:where ( |
43 | - sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; | 43 | + [ |
44 | - sp:subject | 44 | + sp:object [ |
45 | - [ sp:varName "struct"^^xsd:string | 45 | + sp:varName "struct"^^xsd:string ; |
46 | - ] | 46 | + ] ; |
47 | - ] [ sp:object | 47 | + sp:predicate <http://www.epim.no/schemas/mprml/1#fieldRef> ; |
48 | - [ sp:varName "name"^^xsd:string | 48 | + sp:subject spin:_this ; |
49 | - ] ; | 49 | + ] |
50 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 50 | + [ |
51 | - sp:subject | 51 | + sp:object "NPD"^^xsd:string ; |
52 | - [ sp:varName "struct"^^xsd:string | 52 | + sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; |
53 | - ] | 53 | + sp:subject [ |
54 | - ] [ rdf:type sp:Bind ; | 54 | + sp:varName "struct"^^xsd:string ; |
55 | - sp:expression | 55 | + ] ; |
56 | - [ rdf:type rhspin:npdIndividualByName ; | 56 | + ] |
57 | - arg:name | 57 | + [ |
58 | - [ sp:varName "name"^^xsd:string | 58 | + sp:object [ |
59 | - ] ; | 59 | + sp:varName "name"^^xsd:string ; |
60 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Field> | 60 | + ] ; |
61 | - ] ; | 61 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
62 | - sp:variable | 62 | + sp:subject [ |
63 | - [ sp:varName "npd"^^xsd:string | 63 | + sp:varName "struct"^^xsd:string ; |
64 | - ] | 64 | + ] ; |
65 | - ] [ rdf:type sp:Filter ; | 65 | + ] |
66 | - sp:expression | 66 | + [ |
67 | - [ rdf:type sp:not ; | 67 | + rdf:type sp:Bind ; |
68 | - sp:arg1 [ rdf:type sp:bound ; | 68 | + sp:expression [ |
69 | - sp:arg1 [ sp:varName "npd"^^xsd:string | 69 | + rdf:type rhspin:npdIndividualByName ; |
70 | - ] | 70 | + arg:name [ |
71 | - ] | 71 | + sp:varName "name"^^xsd:string ; |
72 | - ] | 72 | + ] ; |
73 | - ] [ rdf:type sp:Bind ; | 73 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Field> ; |
74 | - sp:expression | 74 | + ] ; |
75 | - [ rdf:type fn:concat ; | 75 | + sp:variable [ |
76 | - sp:arg1 "[RH-19] Invalid Field name " ; | 76 | + sp:varName "npd"^^xsd:string ; |
77 | - sp:arg2 [ sp:varName "name"^^xsd:string | 77 | + ] ; |
78 | - ] | 78 | + ] |
79 | - ] ; | 79 | + [ |
80 | - sp:variable | 80 | + rdf:type sp:Filter ; |
81 | - [ sp:varName "message"^^xsd:string | 81 | + sp:expression [ |
82 | - ] | 82 | + rdf:type sp:not ; |
83 | - ]) | 83 | + sp:arg1 [ |
84 | - ] . | 84 | + rdf:type sp:bound ; |
85 | - | 85 | + sp:arg1 [ |
86 | + sp:varName "npd"^^xsd:string ; | ||
87 | + ] ; | ||
88 | + ] ; | ||
89 | + ] ; | ||
90 | + ] | ||
91 | + [ | ||
92 | + rdf:type sp:Bind ; | ||
93 | + sp:expression [ | ||
94 | + rdf:type fn:concat ; | ||
95 | + sp:arg1 "[RH-19] Invalid Field name " ; | ||
96 | + sp:arg2 [ | ||
97 | + sp:varName "name"^^xsd:string ; | ||
98 | + ] ; | ||
99 | + ] ; | ||
100 | + sp:variable [ | ||
101 | + sp:varName "message"^^xsd:string ; | ||
102 | + ] ; | ||
103 | + ] | ||
104 | + ) ; | ||
105 | + ] ; | ||
106 | +. | ||
86 | <http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> | 107 | <http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> |
87 | - spin:constraint | 108 | + spin:constraint [ |
88 | - [ rdf:type sp:Construct ; | 109 | + rdf:type sp:Construct ; |
89 | - sp:templates ([ sp:object spin:ConstraintViolation ; | 110 | + sp:templates ( |
90 | - sp:predicate rdf:type ; | 111 | + [ |
91 | - sp:subject _:b2 | 112 | + sp:object spin:ConstraintViolation ; |
92 | - ] [ sp:object | 113 | + sp:predicate rdf:type ; |
93 | - [ sp:varName "message"^^xsd:string | 114 | + sp:subject _:b62802 ; |
94 | - ] ; | 115 | + ] |
95 | - sp:predicate rdfs:label ; | 116 | + [ |
96 | - sp:subject _:b2 | 117 | + sp:object [ |
97 | - ]) ; | 118 | + sp:varName "message"^^xsd:string ; |
98 | - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ; | 119 | + ] ; |
99 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 120 | + sp:predicate rdfs:label ; |
100 | - sp:subject spin:_this | 121 | + sp:subject _:b62802 ; |
101 | - ] [ sp:object | 122 | + ] |
102 | - [ sp:varName "fieldName"^^xsd:string | 123 | + ) ; |
103 | - ] ; | 124 | + sp:where ( |
104 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 125 | + [ |
105 | - sp:subject spin:_this | 126 | + sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ; |
106 | - ] [ rdf:type sp:Filter ; | 127 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
107 | - sp:expression | 128 | + sp:subject spin:_this ; |
108 | - [ rdf:type sp:not ; | 129 | + ] |
109 | - sp:arg1 [ rdf:type rhspin:currentUserIsOperatorOfFieldWithName ; | 130 | + [ |
110 | - arg:fieldName | 131 | + sp:object [ |
111 | - [ sp:varName "fieldName"^^xsd:string | 132 | + sp:varName "fieldName"^^xsd:string ; |
112 | - ] | 133 | + ] ; |
113 | - ] | 134 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
114 | - ] | 135 | + sp:subject spin:_this ; |
115 | - ] [ rdf:type sp:Bind ; | 136 | + ] |
116 | - sp:expression | 137 | + [ |
117 | - [ rdf:type fn:concat ; | 138 | + rdf:type sp:Filter ; |
118 | - sp:arg1 "Your company is not the operator of field with name " ; | 139 | + sp:expression [ |
119 | - sp:arg2 [ sp:varName "fieldName"^^xsd:string | 140 | + rdf:type sp:not ; |
120 | - ] | 141 | + sp:arg1 [ |
121 | - ] ; | 142 | + rdf:type rhspin:currentUserIsOperatorOfFieldWithName ; |
122 | - sp:variable | 143 | + arg:fieldName [ |
123 | - [ sp:varName "message"^^xsd:string | 144 | + sp:varName "fieldName"^^xsd:string ; |
124 | - ] | 145 | + ] ; |
125 | - ]) | 146 | + ] ; |
126 | - ] ; | 147 | + ] ; |
127 | - spin:constraint | 148 | + ] |
128 | - [ rdf:type sp:Construct ; | 149 | + [ |
129 | - sp:templates ([ sp:object spin:ConstraintViolation ; | 150 | + rdf:type sp:Bind ; |
130 | - sp:predicate rdf:type ; | 151 | + sp:expression [ |
131 | - sp:subject _:b3 | 152 | + rdf:type fn:concat ; |
132 | - ] [ sp:object | 153 | + sp:arg1 "Your company is not the operator of field with name " ; |
133 | - [ sp:varName "message"^^xsd:string | 154 | + sp:arg2 [ |
134 | - ] ; | 155 | + sp:varName "fieldName"^^xsd:string ; |
135 | - sp:predicate rdfs:label ; | 156 | + ] ; |
136 | - sp:subject _:b3 | 157 | + ] ; |
137 | - ]) ; | 158 | + sp:variable [ |
138 | - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | 159 | + sp:varName "message"^^xsd:string ; |
139 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 160 | + ] ; |
140 | - sp:subject spin:_this | 161 | + ] |
141 | - ] [ sp:object | 162 | + ) ; |
142 | - [ sp:varName "wellBoreName"^^xsd:string | 163 | + ] ; |
143 | - ] ; | 164 | + spin:constraint [ |
144 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 165 | + rdf:type sp:Construct ; |
145 | - sp:subject spin:_this | 166 | + sp:templates ( |
146 | - ] [ rdf:type sp:Bind ; | 167 | + [ |
147 | - sp:expression | 168 | + sp:object spin:ConstraintViolation ; |
148 | - [ rdf:type rhspin:wellBoreByName ; | 169 | + sp:predicate rdf:type ; |
149 | - arg:wellBoreName | 170 | + sp:subject _:b69969 ; |
150 | - [ sp:varName "wellBoreName"^^xsd:string | 171 | + ] |
151 | - ] | 172 | + [ |
152 | - ] ; | 173 | + sp:object [ |
153 | - sp:variable | 174 | + sp:varName "message"^^xsd:string ; |
154 | - [ sp:varName "wellBore"^^xsd:string | 175 | + ] ; |
155 | - ] | 176 | + sp:predicate rdfs:label ; |
156 | - ] [ rdf:type sp:Filter ; | 177 | + sp:subject _:b69969 ; |
157 | - sp:expression | 178 | + ] |
158 | - [ rdf:type sp:bound ; | 179 | + ) ; |
159 | - sp:arg1 [ sp:varName "wellBore"^^xsd:string | 180 | + sp:where ( |
160 | - ] | 181 | + [ |
161 | - ] | 182 | + sp:object <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; |
162 | - ] [ rdf:type sp:Filter ; | 183 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
163 | - sp:expression | 184 | + sp:subject spin:_this ; |
164 | - [ rdf:type sp:not ; | 185 | + ] |
165 | - sp:arg1 [ rdf:type rhspin:currentUserIsOperatorOfWellBore ; | 186 | + [ |
166 | - arg:wellBore | 187 | + sp:object [ |
167 | - [ sp:varName "wellBore"^^xsd:string | 188 | + sp:varName "wellBoreName"^^xsd:string ; |
168 | - ] | 189 | + ] ; |
169 | - ] | 190 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
170 | - ] | 191 | + sp:subject spin:_this ; |
171 | - ] [ rdf:type sp:Bind ; | 192 | + ] |
172 | - sp:expression | 193 | + [ |
173 | - [ rdf:type fn:concat ; | 194 | + rdf:type sp:Bind ; |
174 | - sp:arg1 "Your company is not the operator of well bore with name " ; | 195 | + sp:expression [ |
175 | - sp:arg2 [ sp:varName "wellBoreName"^^xsd:string | 196 | + rdf:type rhspin:wellBoreByName ; |
176 | - ] | 197 | + arg:wellBoreName [ |
177 | - ] ; | 198 | + sp:varName "wellBoreName"^^xsd:string ; |
178 | - sp:variable | 199 | + ] ; |
179 | - [ sp:varName "message"^^xsd:string | 200 | + ] ; |
180 | - ] | 201 | + sp:variable [ |
181 | - ]) | 202 | + sp:varName "wellBore"^^xsd:string ; |
182 | - ] ; | 203 | + ] ; |
183 | - spin:constraint | 204 | + ] |
184 | - [ rdf:type mpr-proxy-constraints:CheckId ; | 205 | + [ |
185 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ; | 206 | + rdf:type sp:Filter ; |
186 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> | 207 | + sp:expression [ |
187 | - ] ; | 208 | + rdf:type sp:bound ; |
188 | - spin:constraint | 209 | + sp:arg1 [ |
189 | - [ rdf:type mpr-proxy-constraints:CheckId ; | 210 | + sp:varName "wellBore"^^xsd:string ; |
190 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | 211 | + ] ; |
191 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> | 212 | + ] ; |
192 | - ] ; | 213 | + ] |
193 | - spin:constraint | 214 | + [ |
194 | - [ rdf:type mpr-proxy-constraints:CheckId ; | 215 | + rdf:type sp:Filter ; |
195 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ; | 216 | + sp:expression [ |
196 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Field> | 217 | + rdf:type sp:not ; |
197 | - ] ; | 218 | + sp:arg1 [ |
198 | - spin:constraint | 219 | + rdf:type rhspin:currentUserIsOperatorOfWellBore ; |
199 | - [ rdf:type mpr-proxy-constraints:CheckId ; | 220 | + arg:wellBore [ |
200 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | 221 | + sp:varName "wellBore"^^xsd:string ; |
201 | - arg:type <http://www.reportinghub.no/ep/schema/well#WellBore> | 222 | + ] ; |
202 | - ] ; | 223 | + ] ; |
203 | - spin:constraint | 224 | + ] ; |
204 | - [ rdf:type mpr-proxy-constraints:CheckName ; | 225 | + ] |
205 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ; | 226 | + [ |
206 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> | 227 | + rdf:type sp:Bind ; |
207 | - ] ; | 228 | + sp:expression [ |
208 | - spin:constraint | 229 | + rdf:type fn:concat ; |
209 | - [ rdf:type mpr-proxy-constraints:CheckName ; | 230 | + sp:arg1 "Your company is not the operator of well bore with name " ; |
210 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | 231 | + sp:arg2 [ |
211 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> | 232 | + sp:varName "wellBoreName"^^xsd:string ; |
212 | - ] ; | 233 | + ] ; |
213 | - spin:constraint | 234 | + ] ; |
214 | - [ rdf:type mpr-proxy-constraints:CheckName ; | 235 | + sp:variable [ |
215 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ; | 236 | + sp:varName "message"^^xsd:string ; |
216 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Field> | 237 | + ] ; |
217 | - ] ; | 238 | + ] |
218 | - spin:constraint | 239 | + ) ; |
219 | - [ rdf:type mpr-proxy-constraints:CheckName ; | 240 | + ] ; |
220 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | 241 | + spin:constraint [ |
221 | - arg:type <http://www.reportinghub.no/ep/schema/well#WellBore> | 242 | + rdf:type mpr-proxy-constraints:CheckId ; |
222 | - ] ; | 243 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ; |
223 | - spin:constraint | 244 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Field> ; |
224 | - [ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; | 245 | + ] ; |
225 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | 246 | + spin:constraint [ |
226 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> | 247 | + rdf:type mpr-proxy-constraints:CheckId ; |
227 | - ] ; | 248 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ; |
228 | - spin:constraint | 249 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> ; |
229 | - [ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; | 250 | + ] ; |
230 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ; | 251 | + spin:constraint [ |
231 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Field> | 252 | + rdf:type mpr-proxy-constraints:CheckId ; |
232 | - ] ; | 253 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; |
233 | - spin:constraint | 254 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> ; |
234 | - [ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; | 255 | + ] ; |
235 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ; | 256 | + spin:constraint [ |
236 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Platform> | 257 | + rdf:type mpr-proxy-constraints:CheckId ; |
237 | - ] ; | 258 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; |
238 | - spin:constraint | 259 | + arg:type <http://www.reportinghub.no/ep/schema/well#WellBore> ; |
239 | - [ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; | 260 | + ] ; |
240 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | 261 | + spin:constraint [ |
241 | - arg:type <http://www.reportinghub.no/ep/schema/well#WellBore> | 262 | + rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; |
242 | - ] . | 263 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ; |
243 | - | 264 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Field> ; |
265 | + ] ; | ||
266 | + spin:constraint [ | ||
267 | + rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; | ||
268 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ; | ||
269 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Platform> ; | ||
270 | + ] ; | ||
271 | + spin:constraint [ | ||
272 | + rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; | ||
273 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | ||
274 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> ; | ||
275 | + ] ; | ||
276 | + spin:constraint [ | ||
277 | + rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; | ||
278 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | ||
279 | + arg:type <http://www.reportinghub.no/ep/schema/well#WellBore> ; | ||
280 | + ] ; | ||
281 | + spin:constraint [ | ||
282 | + rdf:type mpr-proxy-constraints:CheckName ; | ||
283 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ; | ||
284 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Field> ; | ||
285 | + ] ; | ||
286 | + spin:constraint [ | ||
287 | + rdf:type mpr-proxy-constraints:CheckName ; | ||
288 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ; | ||
289 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> ; | ||
290 | + ] ; | ||
291 | + spin:constraint [ | ||
292 | + rdf:type mpr-proxy-constraints:CheckName ; | ||
293 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | ||
294 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> ; | ||
295 | + ] ; | ||
296 | + spin:constraint [ | ||
297 | + rdf:type mpr-proxy-constraints:CheckName ; | ||
298 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | ||
299 | + arg:type <http://www.reportinghub.no/ep/schema/well#WellBore> ; | ||
300 | + ] ; | ||
301 | +. | ||
244 | <http://www.epim.no/schemas/mprml/1#Obj_productVolume> | 302 | <http://www.epim.no/schemas/mprml/1#Obj_productVolume> |
245 | - spin:constraint | 303 | + spin:constraint [ |
246 | - [ rdf:type sp:Construct ; | 304 | + rdf:type sp:Construct ; |
247 | - sp:templates ([ sp:object spin:ConstraintViolation ; | 305 | + sp:templates ( |
248 | - sp:predicate rdf:type ; | 306 | + [ |
249 | - sp:subject _:b4 | 307 | + sp:object spin:ConstraintViolation ; |
250 | - ] [ sp:object | 308 | + sp:predicate rdf:type ; |
251 | - [ sp:varName "message"^^xsd:string | 309 | + sp:subject _:b3901 ; |
252 | - ] ; | 310 | + ] |
253 | - sp:predicate rdfs:label ; | 311 | + [ |
254 | - sp:subject _:b4 | 312 | + sp:object [ |
255 | - ]) ; | 313 | + sp:varName "message"^^xsd:string ; |
256 | - sp:where ([ rdf:type sp:TriplePath ; | 314 | + ] ; |
257 | - sp:object | 315 | + sp:predicate rdfs:label ; |
258 | - [ sp:varName "name"^^xsd:string | 316 | + sp:subject _:b3901 ; |
259 | - ] ; | 317 | + ] |
260 | - sp:path [ rdf:type sp:SeqPath ; | 318 | + ) ; |
261 | - sp:path1 <http://www.epim.no/schemas/mprml/1#nameRef> ; | 319 | + sp:where ( |
262 | - sp:path2 <http://www.linkedmodel.org/schema/dtype#value> | 320 | + [ |
263 | - ] ; | 321 | + rdf:type sp:TriplePath ; |
264 | - sp:subject spin:_this | 322 | + sp:object [ |
265 | - ] [ rdf:type sp:Bind ; | 323 | + sp:varName "name"^^xsd:string ; |
266 | - sp:expression | 324 | + ] ; |
267 | - [ rdf:type rhspin:npdIndividualByName ; | 325 | + sp:path [ |
268 | - arg:name | 326 | + rdf:type sp:SeqPath ; |
269 | - [ sp:varName "name"^^xsd:string | 327 | + sp:path1 <http://www.epim.no/schemas/mprml/1#nameRef> ; |
270 | - ] ; | 328 | + sp:path2 <http://www.linkedmodel.org/schema/dtype#value> ; |
271 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Field> | 329 | + ] ; |
272 | - ] ; | 330 | + sp:subject spin:_this ; |
273 | - sp:variable | 331 | + ] |
274 | - [ sp:varName "field"^^xsd:string | 332 | + [ |
275 | - ] | 333 | + rdf:type sp:Bind ; |
276 | - ] [ rdf:type sp:Filter ; | 334 | + sp:expression [ |
277 | - sp:expression | 335 | + rdf:type rhspin:npdIndividualByName ; |
278 | - [ rdf:type sp:not ; | 336 | + arg:name [ |
279 | - sp:arg1 [ rdf:type sp:bound ; | 337 | + sp:varName "name"^^xsd:string ; |
280 | - sp:arg1 [ sp:varName "field"^^xsd:string | 338 | + ] ; |
281 | - ] | 339 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Field> ; |
282 | - ] | 340 | + ] ; |
283 | - ] | 341 | + sp:variable [ |
284 | - ] [ rdf:type sp:Bind ; | 342 | + sp:varName "field"^^xsd:string ; |
285 | - sp:expression | 343 | + ] ; |
286 | - [ rdf:type fn:concat ; | 344 | + ] |
287 | - sp:arg1 "Invalid Field name " ; | 345 | + [ |
288 | - sp:arg2 [ sp:varName "name"^^xsd:string | 346 | + rdf:type sp:Filter ; |
289 | - ] | 347 | + sp:expression [ |
290 | - ] ; | 348 | + rdf:type sp:not ; |
291 | - sp:variable | 349 | + sp:arg1 [ |
292 | - [ sp:varName "message"^^xsd:string | 350 | + rdf:type sp:bound ; |
293 | - ] | 351 | + sp:arg1 [ |
294 | - ]) | 352 | + sp:varName "field"^^xsd:string ; |
295 | - ] . | 353 | + ] ; |
296 | - | 354 | + ] ; |
355 | + ] ; | ||
356 | + ] | ||
357 | + [ | ||
358 | + rdf:type sp:Bind ; | ||
359 | + sp:expression [ | ||
360 | + rdf:type fn:concat ; | ||
361 | + sp:arg1 "Invalid Field name " ; | ||
362 | + sp:arg2 [ | ||
363 | + sp:varName "name"^^xsd:string ; | ||
364 | + ] ; | ||
365 | + ] ; | ||
366 | + sp:variable [ | ||
367 | + sp:varName "message"^^xsd:string ; | ||
368 | + ] ; | ||
369 | + ] | ||
370 | + ) ; | ||
371 | + ] ; | ||
372 | +. | ||
297 | <http://www.epim.no/schemas/mprml/1#Obj_wellTest> | 373 | <http://www.epim.no/schemas/mprml/1#Obj_wellTest> |
298 | - spin:constraint | 374 | + spin:constraint [ |
299 | - [ rdf:type sp:Construct ; | 375 | + rdf:type sp:Construct ; |
300 | - sp:templates ([ sp:object spin:ConstraintViolation ; | 376 | + sp:templates ( |
301 | - sp:predicate rdf:type ; | 377 | + [ |
302 | - sp:subject _:b5 | 378 | + sp:object spin:ConstraintViolation ; |
303 | - ] [ sp:object | 379 | + sp:predicate rdf:type ; |
304 | - [ sp:varName "message"^^xsd:string | 380 | + sp:subject _:b55110 ; |
305 | - ] ; | 381 | + ] |
306 | - sp:predicate rdfs:label ; | 382 | + [ |
307 | - sp:subject _:b5 | 383 | + sp:object [ |
308 | - ]) ; | 384 | + sp:varName "message"^^xsd:string ; |
309 | - sp:where ([ sp:object | 385 | + ] ; |
310 | - [ sp:varName "wellName"^^xsd:string | 386 | + sp:predicate rdfs:label ; |
311 | - ] ; | 387 | + sp:subject _:b55110 ; |
312 | - sp:predicate <http://www.epim.no/schemas/mprml/1#nameWell> ; | 388 | + ] |
313 | - sp:subject spin:_this | 389 | + ) ; |
314 | - ] [ rdf:type sp:Filter ; | 390 | + sp:where ( |
315 | - sp:expression | 391 | + [ |
316 | - [ rdf:type sp:not ; | 392 | + sp:object [ |
317 | - sp:arg1 [ rdf:type rhspin:npdIndividualByName ; | 393 | + sp:varName "wellName"^^xsd:string ; |
318 | - arg:name | 394 | + ] ; |
319 | - [ sp:varName "wellName"^^xsd:string | 395 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameWell> ; |
320 | - ] ; | 396 | + sp:subject spin:_this ; |
321 | - arg:type <http://www.reportinghub.no/ep/schema/well#Well> | 397 | + ] |
322 | - ] | 398 | + [ |
323 | - ] | 399 | + rdf:type sp:Bind ; |
324 | - ] [ rdf:type sp:Bind ; | 400 | + sp:expression [ |
325 | - sp:expression | 401 | + rdf:type rhspin:npdIndividualByName ; |
326 | - [ rdf:type fn:concat ; | 402 | + arg:name [ |
327 | - sp:arg1 "[RH-19] Invalid well name : " ; | 403 | + sp:varName "wellName"^^xsd:string ; |
328 | - sp:arg2 [ sp:varName "wellName"^^xsd:string | 404 | + ] ; |
329 | - ] | 405 | + arg:type <http://www.reportinghub.no/ep/schema/well#Well> ; |
330 | - ] ; | 406 | + ] ; |
331 | - sp:variable | 407 | + sp:variable [ |
332 | - [ sp:varName "message"^^xsd:string | 408 | + sp:varName "well"^^xsd:string ; |
333 | - ] | 409 | + ] ; |
334 | - ]) | 410 | + ] |
335 | - ] . | 411 | + [ |
336 | - | 412 | + rdf:type sp:Filter ; |
413 | + sp:expression [ | ||
414 | + rdf:type sp:not ; | ||
415 | + sp:arg1 [ | ||
416 | + rdf:type sp:bound ; | ||
417 | + sp:arg1 [ | ||
418 | + sp:varName "well"^^xsd:string ; | ||
419 | + ] ; | ||
420 | + ] ; | ||
421 | + ] ; | ||
422 | + ] | ||
423 | + [ | ||
424 | + rdf:type sp:Bind ; | ||
425 | + sp:expression [ | ||
426 | + rdf:type fn:concat ; | ||
427 | + sp:arg1 "[RH-19] Invalid well name : " ; | ||
428 | + sp:arg2 [ | ||
429 | + sp:varName "wellName"^^xsd:string ; | ||
430 | + ] ; | ||
431 | + ] ; | ||
432 | + sp:variable [ | ||
433 | + sp:varName "message"^^xsd:string ; | ||
434 | + ] ; | ||
435 | + ] | ||
436 | + ) ; | ||
437 | + ] ; | ||
438 | +. | ||
337 | <http://www.reportinghub.no/ep/spin/mpr-proxy-constraints> | 439 | <http://www.reportinghub.no/ep/spin/mpr-proxy-constraints> |
338 | - rdf:type owl:Ontology ; | 440 | + rdf:type owl:Ontology ; |
339 | - rdfs:comment "Collection of constraints that are executed on the SXML proxy ontology for MPR schema based reports."^^xsd:string ; | 441 | + rdfs:comment "Collection of constraints that are executed on the SXML proxy ontology for MPR schema based reports."^^xsd:string ; |
340 | - owl:imports <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/spin/rh> ; | 442 | + owl:imports <http://spinrdf.org/spin> ; |
341 | - owl:versionInfo "0.1.0"^^xsd:string . | 443 | + owl:imports <http://www.epim.no/schemas/mprml/1> ; |
342 | - | 444 | + owl:imports <http://www.reportinghub.no/spin/rh> ; |
445 | + owl:versionInfo "0.1.0"^^xsd:string ; | ||
446 | +. | ||
343 | mpr-proxy-constraints:CheckId | 447 | mpr-proxy-constraints:CheckId |
344 | - rdf:type spin:ConstructTemplate ; | 448 | + rdf:type spin:ConstructTemplate ; |
345 | - rdfs:label "Check id"^^xsd:string ; | 449 | + spin:body [ |
346 | - rdfs:subClassOf mpr-proxy-constraints:ConstraintTemplates ; | 450 | + rdf:type sp:Construct ; |
347 | - spin:body | 451 | + sp:templates ( |
348 | - [ rdf:type sp:Construct ; | 452 | + [ |
349 | - sp:templates ([ sp:object spin:ConstraintViolation ; | 453 | + sp:object spin:ConstraintViolation ; |
350 | - sp:predicate rdf:type ; | 454 | + sp:predicate rdf:type ; |
351 | - sp:subject _:b6 | 455 | + sp:subject _:b63838 ; |
352 | - ] [ sp:object | 456 | + ] |
353 | - [ sp:varName "message"^^xsd:string | 457 | + [ |
354 | - ] ; | 458 | + sp:object [ |
355 | - sp:predicate rdfs:label ; | 459 | + sp:varName "message"^^xsd:string ; |
356 | - sp:subject _:b6 | 460 | + ] ; |
357 | - ]) ; | 461 | + sp:predicate rdfs:label ; |
358 | - sp:where ([ sp:object | 462 | + sp:subject _:b63838 ; |
359 | - [ sp:varName "kindRef"^^xsd:string | 463 | + ] |
360 | - ] ; | 464 | + ) ; |
361 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 465 | + sp:where ( |
362 | - sp:subject spin:_this | 466 | + [ |
363 | - ] [ sp:object "NPD" ; | 467 | + sp:object [ |
364 | - sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; | 468 | + sp:varName "kindRef"^^xsd:string ; |
365 | - sp:subject spin:_this | 469 | + ] ; |
366 | - ] [ sp:object | 470 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
367 | - [ sp:varName "id"^^xsd:string | 471 | + sp:subject spin:_this ; |
368 | - ] ; | 472 | + ] |
369 | - sp:predicate <http://www.epim.no/schemas/mprml/1#uidRefValue> ; | 473 | + [ |
370 | - sp:subject spin:_this | 474 | + sp:object "NPD" ; |
371 | - ] [ rdf:type sp:Bind ; | 475 | + sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; |
372 | - sp:expression | 476 | + sp:subject spin:_this ; |
373 | - [ rdf:type rhspin:npdIndividualById ; | 477 | + ] |
374 | - arg:id [ sp:varName "id"^^xsd:string | 478 | + [ |
375 | - ] ; | 479 | + sp:object [ |
376 | - arg:type | 480 | + sp:varName "id"^^xsd:string ; |
377 | - [ sp:varName "type"^^xsd:string | 481 | + ] ; |
378 | - ] | 482 | + sp:predicate <http://www.epim.no/schemas/mprml/1#uidRefValue> ; |
379 | - ] ; | 483 | + sp:subject spin:_this ; |
380 | - sp:variable | 484 | + ] |
381 | - [ sp:varName "npd"^^xsd:string | 485 | + [ |
382 | - ] | 486 | + rdf:type sp:Bind ; |
383 | - ] [ rdf:type sp:Filter ; | 487 | + sp:expression [ |
384 | - sp:expression | 488 | + rdf:type rhspin:npdIndividualById ; |
385 | - [ rdf:type sp:not ; | 489 | + arg:id [ |
386 | - sp:arg1 [ rdf:type sp:bound ; | 490 | + sp:varName "id"^^xsd:string ; |
387 | - sp:arg1 [ sp:varName "npd"^^xsd:string | 491 | + ] ; |
388 | - ] | 492 | + arg:type [ |
389 | - ] | 493 | + sp:varName "type"^^xsd:string ; |
390 | - ] | 494 | + ] ; |
391 | - ] [ rdf:type sp:Bind ; | 495 | + ] ; |
392 | - sp:expression | 496 | + sp:variable [ |
393 | - [ rdf:type fn:concat ; | 497 | + sp:varName "npd"^^xsd:string ; |
394 | - sp:arg1 "[RH-19] Invalid " ; | 498 | + ] ; |
395 | - sp:arg2 [ rdf:type afn:localname ; | 499 | + ] |
396 | - sp:arg1 [ sp:varName "type"^^xsd:string | 500 | + [ |
397 | - ] | 501 | + rdf:type sp:Filter ; |
398 | - ] ; | 502 | + sp:expression [ |
399 | - sp:arg3 " id " ; | 503 | + rdf:type sp:not ; |
400 | - sp:arg4 [ sp:varName "id"^^xsd:string | 504 | + sp:arg1 [ |
401 | - ] | 505 | + rdf:type sp:bound ; |
402 | - ] ; | 506 | + sp:arg1 [ |
403 | - sp:variable | 507 | + sp:varName "npd"^^xsd:string ; |
404 | - [ sp:varName "message"^^xsd:string | 508 | + ] ; |
405 | - ] | 509 | + ] ; |
406 | - ]) | 510 | + ] ; |
407 | - ] ; | 511 | + ] |
408 | - spin:labelTemplate "Must be NPD id of {?type}/{?kindRef}"^^xsd:string . | 512 | + [ |
409 | - | 513 | + rdf:type sp:Bind ; |
514 | + sp:expression [ | ||
515 | + rdf:type fn:concat ; | ||
516 | + sp:arg1 "[RH-19] Invalid " ; | ||
517 | + sp:arg2 [ | ||
518 | + rdf:type afn:localname ; | ||
519 | + sp:arg1 [ | ||
520 | + sp:varName "type"^^xsd:string ; | ||
521 | + ] ; | ||
522 | + ] ; | ||
523 | + sp:arg3 " id " ; | ||
524 | + sp:arg4 [ | ||
525 | + sp:varName "id"^^xsd:string ; | ||
526 | + ] ; | ||
527 | + ] ; | ||
528 | + sp:variable [ | ||
529 | + sp:varName "message"^^xsd:string ; | ||
530 | + ] ; | ||
531 | + ] | ||
532 | + ) ; | ||
533 | + ] ; | ||
534 | + spin:labelTemplate "Must be NPD id of {?type}/{?kindRef}"^^xsd:string ; | ||
535 | + rdfs:label "Check id"^^xsd:string ; | ||
536 | + rdfs:subClassOf mpr-proxy-constraints:ConstraintTemplates ; | ||
537 | +. | ||
410 | mpr-proxy-constraints:CheckIdAndNameMatch | 538 | mpr-proxy-constraints:CheckIdAndNameMatch |
411 | - rdf:type spin:ConstructTemplate ; | 539 | + rdf:type spin:ConstructTemplate ; |
412 | - rdfs:label "NPD id and name must match"^^xsd:string ; | 540 | + spin:body [ |
413 | - rdfs:subClassOf mpr-proxy-constraints:ConstraintTemplates ; | 541 | + rdf:type sp:Construct ; |
414 | - spin:body | 542 | + sp:templates ( |
415 | - [ rdf:type sp:Construct ; | 543 | + [ |
416 | - sp:templates ([ sp:object spin:ConstraintViolation ; | 544 | + sp:object spin:ConstraintViolation ; |
417 | - sp:predicate rdf:type ; | 545 | + sp:predicate rdf:type ; |
418 | - sp:subject _:b7 | 546 | + sp:subject _:b30672 ; |
419 | - ] [ sp:object | 547 | + ] |
420 | - [ sp:varName "message"^^xsd:string | 548 | + [ |
421 | - ] ; | 549 | + sp:object [ |
422 | - sp:predicate rdfs:label ; | 550 | + sp:varName "message"^^xsd:string ; |
423 | - sp:subject _:b7 | 551 | + ] ; |
424 | - ]) ; | 552 | + sp:predicate rdfs:label ; |
425 | - sp:where ([ sp:object | 553 | + sp:subject _:b30672 ; |
426 | - [ sp:varName "kindRef"^^xsd:string | 554 | + ] |
427 | - ] ; | 555 | + ) ; |
428 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 556 | + sp:where ( |
429 | - sp:subject spin:_this | 557 | + [ |
430 | - ] [ sp:object "NPD" ; | 558 | + sp:object [ |
431 | - sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; | 559 | + sp:varName "kindRef"^^xsd:string ; |
432 | - sp:subject spin:_this | 560 | + ] ; |
433 | - ] [ sp:object | 561 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
434 | - [ sp:varName "name"^^xsd:string | 562 | + sp:subject spin:_this ; |
435 | - ] ; | 563 | + ] |
436 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 564 | + [ |
437 | - sp:subject spin:_this | 565 | + sp:object "NPD" ; |
438 | - ] [ sp:object | 566 | + sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; |
439 | - [ sp:varName "id"^^xsd:string | 567 | + sp:subject spin:_this ; |
440 | - ] ; | 568 | + ] |
441 | - sp:predicate <http://www.epim.no/schemas/mprml/1#uidRefValue> ; | 569 | + [ |
442 | - sp:subject spin:_this | 570 | + sp:object [ |
443 | - ] [ rdf:type sp:Bind ; | 571 | + sp:varName "name"^^xsd:string ; |
444 | - sp:expression | 572 | + ] ; |
445 | - [ rdf:type rhspin:npdIndividualById ; | 573 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
446 | - arg:id [ sp:varName "id"^^xsd:string | 574 | + sp:subject spin:_this ; |
447 | - ] ; | 575 | + ] |
448 | - arg:type | 576 | + [ |
449 | - [ sp:varName "type"^^xsd:string | 577 | + sp:object [ |
450 | - ] | 578 | + sp:varName "id"^^xsd:string ; |
451 | - ] ; | 579 | + ] ; |
452 | - sp:variable | 580 | + sp:predicate <http://www.epim.no/schemas/mprml/1#uidRefValue> ; |
453 | - [ sp:varName "byId"^^xsd:string | 581 | + sp:subject spin:_this ; |
454 | - ] | 582 | + ] |
455 | - ] [ rdf:type sp:Bind ; | 583 | + [ |
456 | - sp:expression | 584 | + rdf:type sp:Bind ; |
457 | - [ rdf:type rhspin:npdIndividualByName ; | 585 | + sp:expression [ |
458 | - arg:name | 586 | + rdf:type rhspin:npdIndividualById ; |
459 | - [ sp:varName "name"^^xsd:string | 587 | + arg:id [ |
460 | - ] ; | 588 | + sp:varName "id"^^xsd:string ; |
461 | - arg:type | 589 | + ] ; |
462 | - [ sp:varName "type"^^xsd:string | 590 | + arg:type [ |
463 | - ] | 591 | + sp:varName "type"^^xsd:string ; |
464 | - ] ; | 592 | + ] ; |
465 | - sp:variable | 593 | + ] ; |
466 | - [ sp:varName "byName"^^xsd:string | 594 | + sp:variable [ |
467 | - ] | 595 | + sp:varName "byId"^^xsd:string ; |
468 | - ] [ rdf:type sp:Filter ; | 596 | + ] ; |
469 | - sp:expression | 597 | + ] |
470 | - [ rdf:type sp:and ; | 598 | + [ |
471 | - sp:arg1 [ rdf:type sp:or ; | 599 | + rdf:type sp:Bind ; |
472 | - sp:arg1 [ rdf:type sp:bound ; | 600 | + sp:expression [ |
473 | - sp:arg1 [ sp:varName "byId"^^xsd:string | 601 | + rdf:type rhspin:npdIndividualByName ; |
474 | - ] | 602 | + arg:name [ |
475 | - ] ; | 603 | + sp:varName "name"^^xsd:string ; |
476 | - sp:arg2 [ rdf:type sp:bound ; | 604 | + ] ; |
477 | - sp:arg1 [ sp:varName "byName"^^xsd:string | 605 | + arg:type [ |
478 | - ] | 606 | + sp:varName "type"^^xsd:string ; |
479 | - ] | 607 | + ] ; |
480 | - ] ; | 608 | + ] ; |
481 | - sp:arg2 [ rdf:type sp:ne ; | 609 | + sp:variable [ |
482 | - sp:arg1 [ sp:varName "byId"^^xsd:string | 610 | + sp:varName "byName"^^xsd:string ; |
483 | - ] ; | 611 | + ] ; |
484 | - sp:arg2 [ sp:varName "byName"^^xsd:string | 612 | + ] |
485 | - ] | 613 | + [ |
486 | - ] | 614 | + rdf:type sp:Filter ; |
487 | - ] | 615 | + sp:expression [ |
488 | - ] [ rdf:type sp:Bind ; | 616 | + rdf:type sp:and ; |
489 | - sp:expression | 617 | + sp:arg1 [ |
490 | - [ rdf:type fn:concat ; | 618 | + rdf:type sp:or ; |
491 | - sp:arg1 "[RH-19] Mismatching " ; | 619 | + sp:arg1 [ |
492 | - sp:arg2 [ rdf:type afn:localname ; | 620 | + rdf:type sp:bound ; |
493 | - sp:arg1 [ sp:varName "type"^^xsd:string | 621 | + sp:arg1 [ |
494 | - ] | 622 | + sp:varName "byId"^^xsd:string ; |
495 | - ] ; | 623 | + ] ; |
496 | - sp:arg3 " id: " ; | 624 | + ] ; |
497 | - sp:arg4 [ sp:varName "id"^^xsd:string | 625 | + sp:arg2 [ |
498 | - ] ; | 626 | + rdf:type sp:bound ; |
499 | - sp:arg5 " is not the NPD id of " ; | 627 | + sp:arg1 [ |
500 | - sp:arg6 [ sp:varName "name"^^xsd:string | 628 | + sp:varName "byName"^^xsd:string ; |
501 | - ] | 629 | + ] ; |
502 | - ] ; | 630 | + ] ; |
503 | - sp:variable | 631 | + ] ; |
504 | - [ sp:varName "message"^^xsd:string | 632 | + sp:arg2 [ |
505 | - ] | 633 | + rdf:type sp:ne ; |
506 | - ]) | 634 | + sp:arg1 [ |
507 | - ] ; | 635 | + sp:varName "byId"^^xsd:string ; |
508 | - spin:labelTemplate "NPD name and id of {?type}/{?kindRef} must match"^^xsd:string . | 636 | + ] ; |
509 | - | 637 | + sp:arg2 [ |
638 | + sp:varName "byName"^^xsd:string ; | ||
639 | + ] ; | ||
640 | + ] ; | ||
641 | + ] ; | ||
642 | + ] | ||
643 | + [ | ||
644 | + rdf:type sp:Bind ; | ||
645 | + sp:expression [ | ||
646 | + rdf:type fn:concat ; | ||
647 | + sp:arg1 "[RH-19] Mismatching " ; | ||
648 | + sp:arg2 [ | ||
649 | + rdf:type afn:localname ; | ||
650 | + sp:arg1 [ | ||
651 | + sp:varName "type"^^xsd:string ; | ||
652 | + ] ; | ||
653 | + ] ; | ||
654 | + sp:arg3 " id: " ; | ||
655 | + sp:arg4 [ | ||
656 | + sp:varName "id"^^xsd:string ; | ||
657 | + ] ; | ||
658 | + sp:arg5 " is not the NPD id of " ; | ||
659 | + sp:arg6 [ | ||
660 | + sp:varName "name"^^xsd:string ; | ||
661 | + ] ; | ||
662 | + ] ; | ||
663 | + sp:variable [ | ||
664 | + sp:varName "message"^^xsd:string ; | ||
665 | + ] ; | ||
666 | + ] | ||
667 | + ) ; | ||
668 | + ] ; | ||
669 | + spin:labelTemplate "NPD name and id of {?type}/{?kindRef} must match"^^xsd:string ; | ||
670 | + rdfs:label "NPD id and name must match"^^xsd:string ; | ||
671 | + rdfs:subClassOf mpr-proxy-constraints:ConstraintTemplates ; | ||
672 | +. | ||
510 | mpr-proxy-constraints:CheckName | 673 | mpr-proxy-constraints:CheckName |
511 | - rdf:type spin:ConstructTemplate ; | 674 | + rdf:type spin:ConstructTemplate ; |
512 | - rdfs:label "Check name"^^xsd:string ; | 675 | + spin:body [ |
513 | - rdfs:subClassOf mpr-proxy-constraints:ConstraintTemplates ; | 676 | + rdf:type sp:Construct ; |
514 | - spin:body | 677 | + sp:templates ( |
515 | - [ rdf:type sp:Construct ; | 678 | + [ |
516 | - sp:templates ([ sp:object spin:ConstraintViolation ; | 679 | + sp:object spin:ConstraintViolation ; |
517 | - sp:predicate rdf:type ; | 680 | + sp:predicate rdf:type ; |
518 | - sp:subject _:b8 | 681 | + sp:subject _:b81462 ; |
519 | - ] [ sp:object | 682 | + ] |
520 | - [ sp:varName "message"^^xsd:string | 683 | + [ |
521 | - ] ; | 684 | + sp:object [ |
522 | - sp:predicate rdfs:label ; | 685 | + sp:varName "message"^^xsd:string ; |
523 | - sp:subject _:b8 | 686 | + ] ; |
524 | - ]) ; | 687 | + sp:predicate rdfs:label ; |
525 | - sp:where ([ sp:object | 688 | + sp:subject _:b81462 ; |
526 | - [ sp:varName "kindRef"^^xsd:string | 689 | + ] |
527 | - ] ; | 690 | + ) ; |
528 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 691 | + sp:where ( |
529 | - sp:subject spin:_this | 692 | + [ |
530 | - ] [ sp:object "NPD" ; | 693 | + sp:object [ |
531 | - sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; | 694 | + sp:varName "kindRef"^^xsd:string ; |
532 | - sp:subject spin:_this | 695 | + ] ; |
533 | - ] [ sp:object | 696 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
534 | - [ sp:varName "name"^^xsd:string | 697 | + sp:subject spin:_this ; |
535 | - ] ; | 698 | + ] |
536 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 699 | + [ |
537 | - sp:subject spin:_this | 700 | + sp:object "NPD" ; |
538 | - ] [ rdf:type sp:Bind ; | 701 | + sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; |
539 | - sp:expression | 702 | + sp:subject spin:_this ; |
540 | - [ rdf:type rhspin:npdIndividualByName ; | 703 | + ] |
541 | - arg:name | 704 | + [ |
542 | - [ sp:varName "name"^^xsd:string | 705 | + sp:object [ |
543 | - ] ; | 706 | + sp:varName "name"^^xsd:string ; |
544 | - arg:type | 707 | + ] ; |
545 | - [ sp:varName "type"^^xsd:string | 708 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
546 | - ] | 709 | + sp:subject spin:_this ; |
547 | - ] ; | 710 | + ] |
548 | - sp:variable | 711 | + [ |
549 | - [ sp:varName "npd"^^xsd:string | 712 | + rdf:type sp:Bind ; |
550 | - ] | 713 | + sp:expression [ |
551 | - ] [ rdf:type sp:Filter ; | 714 | + rdf:type rhspin:npdIndividualByName ; |
552 | - sp:expression | 715 | + arg:name [ |
553 | - [ rdf:type sp:not ; | 716 | + sp:varName "name"^^xsd:string ; |
554 | - sp:arg1 [ rdf:type sp:bound ; | 717 | + ] ; |
555 | - sp:arg1 [ sp:varName "npd"^^xsd:string | 718 | + arg:type [ |
556 | - ] | 719 | + sp:varName "type"^^xsd:string ; |
557 | - ] | 720 | + ] ; |
558 | - ] | 721 | + ] ; |
559 | - ] [ rdf:type sp:Bind ; | 722 | + sp:variable [ |
560 | - sp:expression | 723 | + sp:varName "npd"^^xsd:string ; |
561 | - [ rdf:type fn:concat ; | 724 | + ] ; |
562 | - sp:arg1 [ rdf:type sp:add ; | 725 | + ] |
563 | - sp:arg1 "[RH-19] Invalid " ; | 726 | + [ |
564 | - sp:arg2 [ rdf:type afn:localname ; | 727 | + rdf:type sp:Filter ; |
565 | - sp:arg1 [ sp:varName "type"^^xsd:string | 728 | + sp:expression [ |
566 | - ] | 729 | + rdf:type sp:not ; |
567 | - ] | 730 | + sp:arg1 [ |
568 | - ] ; | 731 | + rdf:type sp:bound ; |
569 | - sp:arg2 " name " ; | 732 | + sp:arg1 [ |
570 | - sp:arg3 [ sp:varName "name"^^xsd:string | 733 | + sp:varName "npd"^^xsd:string ; |
571 | - ] | 734 | + ] ; |
572 | - ] ; | 735 | + ] ; |
573 | - sp:variable | 736 | + ] ; |
574 | - [ sp:varName "message"^^xsd:string | 737 | + ] |
575 | - ] | 738 | + [ |
576 | - ]) | 739 | + rdf:type sp:Bind ; |
577 | - ] ; | 740 | + sp:expression [ |
578 | - spin:labelTemplate "Must be NPD name of {?type}/{?kindRef}"^^xsd:string . | 741 | + rdf:type fn:concat ; |
579 | - | 742 | + sp:arg1 [ |
743 | + rdf:type sp:add ; | ||
744 | + sp:arg1 "[RH-19] Invalid " ; | ||
745 | + sp:arg2 [ | ||
746 | + rdf:type afn:localname ; | ||
747 | + sp:arg1 [ | ||
748 | + sp:varName "type"^^xsd:string ; | ||
749 | + ] ; | ||
750 | + ] ; | ||
751 | + ] ; | ||
752 | + sp:arg2 " name " ; | ||
753 | + sp:arg3 [ | ||
754 | + sp:varName "name"^^xsd:string ; | ||
755 | + ] ; | ||
756 | + ] ; | ||
757 | + sp:variable [ | ||
758 | + sp:varName "message"^^xsd:string ; | ||
759 | + ] ; | ||
760 | + ] | ||
761 | + ) ; | ||
762 | + ] ; | ||
763 | + spin:labelTemplate "Must be NPD name of {?type}/{?kindRef}"^^xsd:string ; | ||
764 | + rdfs:label "Check name"^^xsd:string ; | ||
765 | + rdfs:subClassOf mpr-proxy-constraints:ConstraintTemplates ; | ||
766 | +. | ||
580 | mpr-proxy-constraints:ConstraintTemplates | 767 | mpr-proxy-constraints:ConstraintTemplates |
581 | - rdf:type spin:ConstructTemplate ; | 768 | + rdf:type spin:ConstructTemplate ; |
582 | - rdfs:label "Constraint templates"^^xsd:string ; | 769 | + spin:constraint [ |
583 | - rdfs:subClassOf spin:ConstructTemplates ; | 770 | + rdf:type spl:Argument ; |
584 | - spin:constraint | 771 | + spl:predicate arg:kindRef ; |
585 | - [ rdf:type spl:Argument ; | 772 | + spl:valueType <http://www.epim.no/schemas/mprml/1#ReportingFacility> ; |
586 | - rdfs:comment "The kind reference value."^^xsd:string ; | 773 | + rdfs:comment "The kind reference value."^^xsd:string ; |
587 | - spl:predicate arg:kindRef ; | 774 | + ] ; |
588 | - spl:valueType <http://www.epim.no/schemas/mprml/1#ReportingFacility> | 775 | + spin:constraint [ |
589 | - ] ; | 776 | + rdf:type spl:Argument ; |
590 | - spin:constraint | 777 | + spl:predicate arg:type ; |
591 | - [ rdf:type spl:Argument ; | 778 | + spl:valueType rdfs:Class ; |
592 | - rdfs:comment "The NPD type that the individual needs to have."^^xsd:string ; | 779 | + rdfs:comment "The NPD type that the individual needs to have."^^xsd:string ; |
593 | - spl:predicate arg:type ; | 780 | + ] ; |
594 | - spl:valueType rdfs:Class | 781 | + rdfs:label "Constraint templates"^^xsd:string ; |
595 | - ] . | 782 | + rdfs:subClassOf spin:ConstructTemplates ; |
783 | +. | ... | ... |
-
Please register or login to post a comment