Showing
1 changed file
with
595 additions
and
555 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 | +@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . |
7 | -@prefix arg: <http://spinrdf.org/arg#> . | 7 | +@prefix arg: <http://spinrdf.org/arg#> . |
8 | -@prefix fn: <http://www.w3.org/2005/xpath-functions#> . | 8 | +@prefix fn: <http://www.w3.org/2005/xpath-functions#> . |
9 | -@prefix mpr-proxy-constraints: <http://www.reportinghub.no/ep/spin/mpr-proxy-constraints#> . | 9 | +@prefix mpr-proxy-constraints: <http://www.reportinghub.no/ep/spin/mpr-proxy-constraints#> . |
10 | -@prefix owl: <http://www.w3.org/2002/07/owl#> . | 10 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . |
11 | -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 11 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
12 | -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | 12 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
13 | -@prefix rhspin: <http://www.reportinghub.no/spin/rh#> . | 13 | +@prefix rhspin: <http://www.reportinghub.no/spin/rh#> . |
14 | -@prefix sp: <http://spinrdf.org/sp#> . | 14 | +@prefix sp: <http://spinrdf.org/sp#> . |
15 | -@prefix spif: <http://spinrdf.org/spif#> . | 15 | +@prefix spif: <http://spinrdf.org/spif#> . |
16 | -@prefix spin: <http://spinrdf.org/spin#> . | 16 | +@prefix spin: <http://spinrdf.org/spin#> . |
17 | -@prefix spl: <http://spinrdf.org/spl#> . | 17 | +@prefix spl: <http://spinrdf.org/spl#> . |
18 | -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | 18 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
19 | - | 19 | + |
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 ([ sp:object spin:ConstraintViolation ; |
29 | - sp:predicate rdf:type ; | 29 | + sp:predicate rdf:type ; |
30 | - sp:subject _:b1 | 30 | + sp:subject _:b1 |
31 | - ] [ sp:object | 31 | + ] [ sp:object |
32 | - [ sp:varName "message"^^xsd:string | 32 | + [ sp:varName "message"^^xsd:string |
33 | - ] ; | 33 | + ] ; |
34 | - sp:predicate rdfs:label ; | 34 | + sp:predicate rdfs:label ; |
35 | - sp:subject _:b1 | 35 | + sp:subject _:b1 |
36 | - ]) ; | 36 | + ]) ; |
37 | - sp:where ([ sp:object | 37 | + sp:where ([ sp:object |
38 | - [ sp:varName "struct"^^xsd:string | 38 | + [ sp:varName "struct"^^xsd:string |
39 | - ] ; | 39 | + ] ; |
40 | - sp:predicate <http://www.epim.no/schemas/mprml/1#fieldRef> ; | 40 | + sp:predicate <http://www.epim.no/schemas/mprml/1#fieldRef> ; |
41 | - sp:subject spin:_this | 41 | + sp:subject spin:_this |
42 | - ] [ sp:object "NPD"^^xsd:string ; | 42 | + ] [ sp:object "NPD"^^xsd:string ; |
43 | - sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; | 43 | + sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; |
44 | - sp:subject | 44 | + sp:subject |
45 | - [ sp:varName "struct"^^xsd:string | 45 | + [ sp:varName "struct"^^xsd:string |
46 | - ] | 46 | + ] |
47 | - ] [ sp:object | 47 | + ] [ sp:object |
48 | - [ sp:varName "name"^^xsd:string | 48 | + [ sp:varName "name"^^xsd:string |
49 | - ] ; | 49 | + ] ; |
50 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 50 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
51 | - sp:subject | 51 | + sp:subject |
52 | - [ sp:varName "struct"^^xsd:string | 52 | + [ sp:varName "struct"^^xsd:string |
53 | - ] | 53 | + ] |
54 | - ] [ rdf:type sp:Bind ; | 54 | + ] [ rdf:type sp:Bind ; |
55 | - sp:expression | 55 | + sp:expression |
56 | - [ rdf:type rhspin:npdIndividualByName ; | 56 | + [ rdf:type rhspin:npdIndividualByName ; |
57 | - arg:name | 57 | + arg:name |
58 | - [ sp:varName "name"^^xsd:string | 58 | + [ sp:varName "name"^^xsd:string |
59 | - ] ; | 59 | + ] ; |
60 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Field> | 60 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Field> |
61 | - ] ; | 61 | + ] ; |
62 | - sp:variable | 62 | + sp:variable |
63 | - [ sp:varName "npd"^^xsd:string | 63 | + [ sp:varName "npd"^^xsd:string |
64 | - ] | 64 | + ] |
65 | - ] [ rdf:type sp:Filter ; | 65 | + ] [ rdf:type sp:Filter ; |
66 | - sp:expression | 66 | + sp:expression |
67 | - [ rdf:type sp:not ; | 67 | + [ rdf:type sp:not ; |
68 | - sp:arg1 [ rdf:type sp:bound ; | 68 | + sp:arg1 [ rdf:type sp:bound ; |
69 | - sp:arg1 [ sp:varName "npd"^^xsd:string | 69 | + sp:arg1 [ sp:varName "npd"^^xsd:string |
70 | - ] | 70 | + ] |
71 | - ] | 71 | + ] |
72 | - ] | 72 | + ] |
73 | - ] [ rdf:type sp:Bind ; | 73 | + ] [ rdf:type sp:Bind ; |
74 | - sp:expression | 74 | + sp:expression |
75 | - [ rdf:type fn:concat ; | 75 | + [ rdf:type fn:concat ; |
76 | - sp:arg1 "[RH-19] Invalid Field name " ; | 76 | + sp:arg1 "[RH-19] Invalid Field name " ; |
77 | - sp:arg2 [ sp:varName "name"^^xsd:string | 77 | + sp:arg2 [ sp:varName "name"^^xsd:string |
78 | - ] | 78 | + ] |
79 | - ] ; | 79 | + ] ; |
80 | - sp:variable | 80 | + sp:variable |
81 | - [ sp:varName "message"^^xsd:string | 81 | + [ sp:varName "message"^^xsd:string |
82 | - ] | 82 | + ] |
83 | - ]) | 83 | + ]) |
84 | - ] . | 84 | + ] . |
85 | - | 85 | + |
86 | -<http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> | 86 | +<http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> |
87 | - spin:constraint | 87 | + spin:constraint |
88 | - [ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; | 88 | + [ rdf:type sp:Construct ; |
89 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ; | 89 | + sp:templates ([ sp:object spin:ConstraintViolation ; |
90 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Platform> | 90 | + sp:predicate rdf:type ; |
91 | - ] ; | 91 | + sp:subject _:b2 |
92 | - spin:constraint | 92 | + ] [ sp:object |
93 | - [ rdf:type mpr-proxy-constraints:CheckId ; | 93 | + [ sp:varName "message"^^xsd:string |
94 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | 94 | + ] ; |
95 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> | 95 | + sp:predicate rdfs:label ; |
96 | - ] ; | 96 | + sp:subject _:b2 |
97 | - spin:constraint | 97 | + ]) ; |
98 | - [ rdf:type sp:Construct ; | 98 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ; |
99 | - sp:templates ([ sp:object spin:ConstraintViolation ; | 99 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
100 | - sp:predicate rdf:type ; | 100 | + sp:subject spin:_this |
101 | - sp:subject _:b2 | 101 | + ] [ sp:object |
102 | - ] [ sp:object | 102 | + [ sp:varName "fieldName"^^xsd:string |
103 | - [ sp:varName "message"^^xsd:string | 103 | + ] ; |
104 | - ] ; | 104 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
105 | - sp:predicate rdfs:label ; | 105 | + sp:subject spin:_this |
106 | - sp:subject _:b2 | 106 | + ] [ rdf:type sp:Filter ; |
107 | - ]) ; | 107 | + sp:expression |
108 | - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | 108 | + [ rdf:type sp:not ; |
109 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 109 | + sp:arg1 [ rdf:type rhspin:currentUserIsOperatorOfFieldWithName ; |
110 | - sp:subject spin:_this | 110 | + arg:fieldName |
111 | - ] [ sp:object | 111 | + [ sp:varName "fieldName"^^xsd:string |
112 | - [ sp:varName "wellBoreName"^^xsd:string | 112 | + ] |
113 | - ] ; | 113 | + ] |
114 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 114 | + ] |
115 | - sp:subject spin:_this | 115 | + ] [ rdf:type sp:Bind ; |
116 | - ] [ rdf:type sp:Bind ; | 116 | + sp:expression |
117 | - sp:expression | 117 | + [ rdf:type fn:concat ; |
118 | - [ rdf:type rhspin:wellBoreByName ; | 118 | + sp:arg1 "Your company is not the operator of field with name " ; |
119 | - arg:wellBoreName | 119 | + sp:arg2 [ sp:varName "fieldName"^^xsd:string |
120 | - [ sp:varName "wellBoreName"^^xsd:string | 120 | + ] |
121 | - ] | 121 | + ] ; |
122 | - ] ; | 122 | + sp:variable |
123 | - sp:variable | 123 | + [ sp:varName "message"^^xsd:string |
124 | - [ sp:varName "wellBore"^^xsd:string | 124 | + ] |
125 | - ] | 125 | + ]) |
126 | - ] [ rdf:type sp:Filter ; | 126 | + ] ; |
127 | - sp:expression | 127 | + spin:constraint |
128 | - [ rdf:type sp:bound ; | 128 | + [ rdf:type sp:Construct ; |
129 | - sp:arg1 [ sp:varName "wellBore"^^xsd:string | 129 | + sp:templates ([ sp:object spin:ConstraintViolation ; |
130 | - ] | 130 | + sp:predicate rdf:type ; |
131 | - ] | 131 | + sp:subject _:b3 |
132 | - ] [ rdf:type sp:Filter ; | 132 | + ] [ sp:object |
133 | - sp:expression | 133 | + [ sp:varName "message"^^xsd:string |
134 | - [ rdf:type sp:not ; | 134 | + ] ; |
135 | - sp:arg1 [ rdf:type rhspin:currentUserIsOperatorOfWellBore ; | 135 | + sp:predicate rdfs:label ; |
136 | - arg:wellBore | 136 | + sp:subject _:b3 |
137 | - [ sp:varName "wellBore"^^xsd:string | 137 | + ]) ; |
138 | - ] | 138 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; |
139 | - ] | 139 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
140 | - ] | 140 | + sp:subject spin:_this |
141 | - ] [ rdf:type sp:Bind ; | 141 | + ] [ sp:object |
142 | - sp:expression | 142 | + [ sp:varName "wellBoreName"^^xsd:string |
143 | - [ rdf:type fn:concat ; | 143 | + ] ; |
144 | - sp:arg1 "Your company is not the operator of well bore with name " ; | 144 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
145 | - sp:arg2 [ sp:varName "wellBoreName"^^xsd:string | 145 | + sp:subject spin:_this |
146 | - ] | 146 | + ] [ rdf:type sp:Bind ; |
147 | - ] ; | 147 | + sp:expression |
148 | - sp:variable | 148 | + [ rdf:type rhspin:wellBoreByName ; |
149 | - [ sp:varName "message"^^xsd:string | 149 | + arg:wellBoreName |
150 | - ] | 150 | + [ sp:varName "wellBoreName"^^xsd:string |
151 | - ]) | 151 | + ] |
152 | - ] ; | 152 | + ] ; |
153 | - spin:constraint | 153 | + sp:variable |
154 | - [ rdf:type sp:Construct ; | 154 | + [ sp:varName "wellBore"^^xsd:string |
155 | - sp:templates ([ sp:object spin:ConstraintViolation ; | 155 | + ] |
156 | - sp:predicate rdf:type ; | 156 | + ] [ rdf:type sp:Filter ; |
157 | - sp:subject _:b3 | 157 | + sp:expression |
158 | - ] [ sp:object | 158 | + [ rdf:type sp:bound ; |
159 | - [ sp:varName "message"^^xsd:string | 159 | + sp:arg1 [ sp:varName "wellBore"^^xsd:string |
160 | - ] ; | 160 | + ] |
161 | - sp:predicate rdfs:label ; | 161 | + ] |
162 | - sp:subject _:b3 | 162 | + ] [ rdf:type sp:Filter ; |
163 | - ]) ; | 163 | + sp:expression |
164 | - sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ; | 164 | + [ rdf:type sp:not ; |
165 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 165 | + sp:arg1 [ rdf:type rhspin:currentUserIsOperatorOfWellBore ; |
166 | - sp:subject spin:_this | 166 | + arg:wellBore |
167 | - ] [ sp:object | 167 | + [ sp:varName "wellBore"^^xsd:string |
168 | - [ sp:varName "fieldName"^^xsd:string | 168 | + ] |
169 | - ] ; | 169 | + ] |
170 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 170 | + ] |
171 | - sp:subject spin:_this | 171 | + ] [ rdf:type sp:Bind ; |
172 | - ] [ rdf:type sp:Filter ; | 172 | + sp:expression |
173 | - sp:expression | 173 | + [ rdf:type fn:concat ; |
174 | - [ rdf:type sp:not ; | 174 | + sp:arg1 "Your company is not the operator of well bore with name " ; |
175 | - sp:arg1 [ rdf:type rhspin:currentUserIsOperatorOfFieldWithName ; | 175 | + sp:arg2 [ sp:varName "wellBoreName"^^xsd:string |
176 | - arg:fieldName | 176 | + ] |
177 | - [ sp:varName "fieldName"^^xsd:string | 177 | + ] ; |
178 | - ] | 178 | + sp:variable |
179 | - ] | 179 | + [ sp:varName "message"^^xsd:string |
180 | - ] | 180 | + ] |
181 | - ] [ rdf:type sp:Bind ; | 181 | + ]) |
182 | - sp:expression | 182 | + ] ; |
183 | - [ rdf:type fn:concat ; | 183 | + spin:constraint |
184 | - sp:arg1 "Your company is not the operator of field with name " ; | 184 | + [ rdf:type mpr-proxy-constraints:CheckId ; |
185 | - sp:arg2 [ sp:varName "fieldName"^^xsd:string | 185 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ; |
186 | - ] | 186 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> |
187 | - ] ; | 187 | + ] ; |
188 | - sp:variable | 188 | + spin:constraint |
189 | - [ sp:varName "message"^^xsd:string | 189 | + [ rdf:type mpr-proxy-constraints:CheckId ; |
190 | - ] | 190 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; |
191 | - ]) | 191 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> |
192 | - ] ; | 192 | + ] ; |
193 | - spin:constraint | 193 | + spin:constraint |
194 | - [ rdf:type mpr-proxy-constraints:CheckId ; | 194 | + [ rdf:type mpr-proxy-constraints:CheckId ; |
195 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | 195 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ; |
196 | - arg:type <http://www.reportinghub.no/ep/schema/well#WellBore> | 196 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Field> |
197 | - ] ; | 197 | + ] ; |
198 | - spin:constraint | 198 | + spin:constraint |
199 | - [ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; | 199 | + [ rdf:type mpr-proxy-constraints:CheckId ; |
200 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ; | 200 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; |
201 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Field> | 201 | + arg:type <http://www.reportinghub.no/ep/schema/well#WellBore> |
202 | - ] ; | 202 | + ] ; |
203 | - spin:constraint | 203 | + spin:constraint |
204 | - [ rdf:type mpr-proxy-constraints:CheckName ; | 204 | + [ rdf:type mpr-proxy-constraints:CheckName ; |
205 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ; | 205 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ; |
206 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> | 206 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> |
207 | - ] ; | 207 | + ] ; |
208 | - spin:constraint | 208 | + spin:constraint |
209 | - [ rdf:type mpr-proxy-constraints:CheckId ; | 209 | + [ rdf:type mpr-proxy-constraints:CheckName ; |
210 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ; | 210 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; |
211 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> | 211 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> |
212 | - ] ; | 212 | + ] ; |
213 | - spin:constraint | 213 | + spin:constraint |
214 | - [ rdf:type mpr-proxy-constraints:CheckName ; | 214 | + [ rdf:type mpr-proxy-constraints:CheckName ; |
215 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | 215 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ; |
216 | - arg:type <http://www.reportinghub.no/ep/schema/well#WellBore> | 216 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Field> |
217 | - ] ; | 217 | + ] ; |
218 | - spin:constraint | 218 | + spin:constraint |
219 | - [ rdf:type mpr-proxy-constraints:CheckName ; | 219 | + [ rdf:type mpr-proxy-constraints:CheckName ; |
220 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | 220 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; |
221 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> | 221 | + arg:type <http://www.reportinghub.no/ep/schema/well#WellBore> |
222 | - ] ; | 222 | + ] ; |
223 | - spin:constraint | 223 | + spin:constraint |
224 | - [ rdf:type mpr-proxy-constraints:CheckName ; | 224 | + [ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; |
225 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ; | 225 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; |
226 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Field> | 226 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> |
227 | - ] ; | 227 | + ] ; |
228 | - spin:constraint | 228 | + spin:constraint |
229 | - [ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; | 229 | + [ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; |
230 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | 230 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ; |
231 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> | 231 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Field> |
232 | - ] ; | 232 | + ] ; |
233 | - spin:constraint | 233 | + spin:constraint |
234 | - [ rdf:type mpr-proxy-constraints:CheckId ; | 234 | + [ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; |
235 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_field> ; | 235 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ; |
236 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Field> | 236 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Platform> |
237 | - ] ; | 237 | + ] ; |
238 | - spin:constraint | 238 | + spin:constraint |
239 | - [ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; | 239 | + [ rdf:type mpr-proxy-constraints:CheckIdAndNameMatch ; |
240 | - arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | 240 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; |
241 | - arg:type <http://www.reportinghub.no/ep/schema/well#WellBore> | 241 | + arg:type <http://www.reportinghub.no/ep/schema/well#WellBore> |
242 | - ] . | 242 | + ] . |
243 | - | 243 | + |
244 | -<http://www.epim.no/schemas/mprml/1#Obj_productVolume> | 244 | +<http://www.epim.no/schemas/mprml/1#Obj_productVolume> |
245 | - spin:constraint | 245 | + spin:constraint |
246 | - [ rdf:type sp:Construct ; | 246 | + [ rdf:type sp:Construct ; |
247 | - sp:templates ([ sp:object spin:ConstraintViolation ; | 247 | + sp:templates ([ sp:object spin:ConstraintViolation ; |
248 | - sp:predicate rdf:type ; | 248 | + sp:predicate rdf:type ; |
249 | - sp:subject _:b4 | 249 | + sp:subject _:b4 |
250 | - ] [ sp:object | 250 | + ] [ sp:object |
251 | - [ sp:varName "message"^^xsd:string | 251 | + [ sp:varName "message"^^xsd:string |
252 | - ] ; | 252 | + ] ; |
253 | - sp:predicate rdfs:label ; | 253 | + sp:predicate rdfs:label ; |
254 | - sp:subject _:b4 | 254 | + sp:subject _:b4 |
255 | - ]) ; | 255 | + ]) ; |
256 | - sp:where ([ rdf:type sp:TriplePath ; | 256 | + sp:where ([ rdf:type sp:TriplePath ; |
257 | - sp:object | 257 | + sp:object |
258 | - [ sp:varName "name"^^xsd:string | 258 | + [ sp:varName "name"^^xsd:string |
259 | - ] ; | 259 | + ] ; |
260 | - sp:path [ rdf:type sp:SeqPath ; | 260 | + sp:path [ rdf:type sp:SeqPath ; |
261 | - sp:path1 <http://www.epim.no/schemas/mprml/1#nameRef> ; | 261 | + sp:path1 <http://www.epim.no/schemas/mprml/1#nameRef> ; |
262 | - sp:path2 <http://www.linkedmodel.org/schema/dtype#value> | 262 | + sp:path2 <http://www.linkedmodel.org/schema/dtype#value> |
263 | - ] ; | 263 | + ] ; |
264 | - sp:subject spin:_this | 264 | + sp:subject spin:_this |
265 | - ] [ rdf:type sp:Bind ; | 265 | + ] [ rdf:type sp:Bind ; |
266 | - sp:expression | 266 | + sp:expression |
267 | - [ rdf:type rhspin:npdIndividualByName ; | 267 | + [ rdf:type rhspin:npdIndividualByName ; |
268 | - arg:name | 268 | + arg:name |
269 | - [ sp:varName "name"^^xsd:string | 269 | + [ sp:varName "name"^^xsd:string |
270 | - ] ; | 270 | + ] ; |
271 | - arg:type <http://www.reportinghub.no/ep/schema/facility#Field> | 271 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Field> |
272 | - ] ; | 272 | + ] ; |
273 | - sp:variable | 273 | + sp:variable |
274 | - [ sp:varName "field"^^xsd:string | 274 | + [ sp:varName "field"^^xsd:string |
275 | - ] | 275 | + ] |
276 | - ] [ rdf:type sp:Filter ; | 276 | + ] [ rdf:type sp:Filter ; |
277 | - sp:expression | 277 | + sp:expression |
278 | - [ rdf:type sp:not ; | 278 | + [ rdf:type sp:not ; |
279 | - sp:arg1 [ rdf:type sp:bound ; | 279 | + sp:arg1 [ rdf:type sp:bound ; |
280 | - sp:arg1 [ sp:varName "field"^^xsd:string | 280 | + sp:arg1 [ sp:varName "field"^^xsd:string |
281 | - ] | 281 | + ] |
282 | - ] | 282 | + ] |
283 | - ] | 283 | + ] |
284 | - ] [ rdf:type sp:Bind ; | 284 | + ] [ rdf:type sp:Bind ; |
285 | - sp:expression | 285 | + sp:expression |
286 | - [ rdf:type fn:concat ; | 286 | + [ rdf:type fn:concat ; |
287 | - sp:arg1 "Invalid Field name " ; | 287 | + sp:arg1 "Invalid Field name " ; |
288 | - sp:arg2 [ sp:varName "name"^^xsd:string | 288 | + sp:arg2 [ sp:varName "name"^^xsd:string |
289 | - ] | 289 | + ] |
290 | - ] ; | 290 | + ] ; |
291 | - sp:variable | 291 | + sp:variable |
292 | - [ sp:varName "message"^^xsd:string | 292 | + [ sp:varName "message"^^xsd:string |
293 | - ] | 293 | + ] |
294 | - ]) | 294 | + ]) |
295 | - ] . | 295 | + ] . |
296 | - | 296 | + |
297 | -<http://www.reportinghub.no/ep/spin/mpr-proxy-constraints> | 297 | +<http://www.epim.no/schemas/mprml/1#Obj_wellTest> |
298 | - rdf:type owl:Ontology ; | 298 | + spin:constraint |
299 | - rdfs:comment "Collection of constraints that are executed on the SXML proxy ontology for MPR schema based reports."^^xsd:string ; | 299 | + [ rdf:type sp:Construct ; |
300 | - owl:imports <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/spin/rh> ; | 300 | + sp:templates ([ sp:object spin:ConstraintViolation ; |
301 | - owl:versionInfo "0.1.0"^^xsd:string . | 301 | + sp:predicate rdf:type ; |
302 | - | 302 | + sp:subject _:b5 |
303 | -mpr-proxy-constraints:CheckId | 303 | + ] [ sp:object |
304 | - rdf:type spin:ConstructTemplate ; | 304 | + [ sp:varName "message"^^xsd:string |
305 | - rdfs:label "Check id"^^xsd:string ; | 305 | + ] ; |
306 | - rdfs:subClassOf mpr-proxy-constraints:ConstraintTemplates ; | 306 | + sp:predicate rdfs:label ; |
307 | - spin:body | 307 | + sp:subject _:b5 |
308 | - [ rdf:type sp:Construct ; | 308 | + ]) ; |
309 | - sp:templates ([ sp:object spin:ConstraintViolation ; | 309 | + sp:where ([ sp:object |
310 | - sp:predicate rdf:type ; | 310 | + [ sp:varName "wellName"^^xsd:string |
311 | - sp:subject _:b5 | 311 | + ] ; |
312 | - ] [ sp:object | 312 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameWell> ; |
313 | - [ sp:varName "message"^^xsd:string | 313 | + sp:subject spin:_this |
314 | - ] ; | 314 | + ] [ rdf:type sp:Filter ; |
315 | - sp:predicate rdfs:label ; | 315 | + sp:expression |
316 | - sp:subject _:b5 | 316 | + [ rdf:type sp:not ; |
317 | - ]) ; | 317 | + sp:arg1 [ rdf:type rhspin:npdIndividualByName ; |
318 | - sp:where ([ sp:object | 318 | + arg:name |
319 | - [ sp:varName "kindRef"^^xsd:string | 319 | + [ sp:varName "wellName"^^xsd:string |
320 | - ] ; | 320 | + ] ; |
321 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 321 | + arg:type <http://www.reportinghub.no/ep/schema/well#Well> |
322 | - sp:subject spin:_this | 322 | + ] |
323 | - ] [ sp:object "NPD" ; | 323 | + ] |
324 | - sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; | 324 | + ] [ rdf:type sp:Bind ; |
325 | - sp:subject spin:_this | 325 | + sp:expression |
326 | - ] [ sp:object | 326 | + [ rdf:type fn:concat ; |
327 | - [ sp:varName "id"^^xsd:string | 327 | + sp:arg1 "[RH-19] Invalid well name : " ; |
328 | - ] ; | 328 | + sp:arg2 [ sp:varName "wellName"^^xsd:string |
329 | - sp:predicate <http://www.epim.no/schemas/mprml/1#uidRefValue> ; | 329 | + ] |
330 | - sp:subject spin:_this | 330 | + ] ; |
331 | - ] [ rdf:type sp:Bind ; | 331 | + sp:variable |
332 | - sp:expression | 332 | + [ sp:varName "message"^^xsd:string |
333 | - [ rdf:type rhspin:npdIndividualById ; | 333 | + ] |
334 | - arg:id [ sp:varName "id"^^xsd:string | 334 | + ]) |
335 | - ] ; | 335 | + ] . |
336 | - arg:type | 336 | + |
337 | - [ sp:varName "type"^^xsd:string | 337 | +<http://www.reportinghub.no/ep/spin/mpr-proxy-constraints> |
338 | - ] | 338 | + rdf:type owl:Ontology ; |
339 | - ] ; | 339 | + rdfs:comment "Collection of constraints that are executed on the SXML proxy ontology for MPR schema based reports."^^xsd:string ; |
340 | - sp:variable | 340 | + owl:imports <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/spin/rh> ; |
341 | - [ sp:varName "npd"^^xsd:string | 341 | + owl:versionInfo "0.1.0"^^xsd:string . |
342 | - ] | 342 | + |
343 | - ] [ rdf:type sp:Filter ; | 343 | +mpr-proxy-constraints:CheckId |
344 | - sp:expression | 344 | + rdf:type spin:ConstructTemplate ; |
345 | - [ rdf:type sp:not ; | 345 | + rdfs:label "Check id"^^xsd:string ; |
346 | - sp:arg1 [ rdf:type sp:bound ; | 346 | + rdfs:subClassOf mpr-proxy-constraints:ConstraintTemplates ; |
347 | - sp:arg1 [ sp:varName "npd"^^xsd:string | 347 | + spin:body |
348 | - ] | 348 | + [ rdf:type sp:Construct ; |
349 | - ] | 349 | + sp:templates ([ sp:object spin:ConstraintViolation ; |
350 | - ] | 350 | + sp:predicate rdf:type ; |
351 | - ] [ rdf:type sp:Bind ; | 351 | + sp:subject _:b6 |
352 | - sp:expression | 352 | + ] [ sp:object |
353 | - [ rdf:type fn:concat ; | 353 | + [ sp:varName "message"^^xsd:string |
354 | - sp:arg1 "[RH-19] Invalid " ; | 354 | + ] ; |
355 | - sp:arg2 [ rdf:type afn:localname ; | 355 | + sp:predicate rdfs:label ; |
356 | - sp:arg1 [ sp:varName "type"^^xsd:string | 356 | + sp:subject _:b6 |
357 | - ] | 357 | + ]) ; |
358 | - ] ; | 358 | + sp:where ([ sp:object |
359 | - sp:arg3 " id " ; | 359 | + [ sp:varName "kindRef"^^xsd:string |
360 | - sp:arg4 [ sp:varName "id"^^xsd:string | 360 | + ] ; |
361 | - ] | 361 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
362 | - ] ; | 362 | + sp:subject spin:_this |
363 | - sp:variable | 363 | + ] [ sp:object "NPD" ; |
364 | - [ sp:varName "message"^^xsd:string | 364 | + sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; |
365 | - ] | 365 | + sp:subject spin:_this |
366 | - ]) | 366 | + ] [ sp:object |
367 | - ] ; | 367 | + [ sp:varName "id"^^xsd:string |
368 | - spin:labelTemplate "Must be NPD id of {?type}/{?kindRef}"^^xsd:string . | 368 | + ] ; |
369 | - | 369 | + sp:predicate <http://www.epim.no/schemas/mprml/1#uidRefValue> ; |
370 | -mpr-proxy-constraints:CheckIdAndNameMatch | 370 | + sp:subject spin:_this |
371 | - rdf:type spin:ConstructTemplate ; | 371 | + ] [ rdf:type sp:Bind ; |
372 | - rdfs:label "NPD id and name must match"^^xsd:string ; | 372 | + sp:expression |
373 | - rdfs:subClassOf mpr-proxy-constraints:ConstraintTemplates ; | 373 | + [ rdf:type rhspin:npdIndividualById ; |
374 | - spin:body | 374 | + arg:id [ sp:varName "id"^^xsd:string |
375 | - [ rdf:type sp:Construct ; | 375 | + ] ; |
376 | - sp:templates ([ sp:object spin:ConstraintViolation ; | 376 | + arg:type |
377 | - sp:predicate rdf:type ; | 377 | + [ sp:varName "type"^^xsd:string |
378 | - sp:subject _:b6 | 378 | + ] |
379 | - ] [ sp:object | 379 | + ] ; |
380 | - [ sp:varName "message"^^xsd:string | 380 | + sp:variable |
381 | - ] ; | 381 | + [ sp:varName "npd"^^xsd:string |
382 | - sp:predicate rdfs:label ; | 382 | + ] |
383 | - sp:subject _:b6 | 383 | + ] [ rdf:type sp:Filter ; |
384 | - ]) ; | 384 | + sp:expression |
385 | - sp:where ([ sp:object | 385 | + [ rdf:type sp:not ; |
386 | - [ sp:varName "kindRef"^^xsd:string | 386 | + sp:arg1 [ rdf:type sp:bound ; |
387 | - ] ; | 387 | + sp:arg1 [ sp:varName "npd"^^xsd:string |
388 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 388 | + ] |
389 | - sp:subject spin:_this | 389 | + ] |
390 | - ] [ sp:object "NPD" ; | 390 | + ] |
391 | - sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; | 391 | + ] [ rdf:type sp:Bind ; |
392 | - sp:subject spin:_this | 392 | + sp:expression |
393 | - ] [ sp:object | 393 | + [ rdf:type fn:concat ; |
394 | - [ sp:varName "name"^^xsd:string | 394 | + sp:arg1 "[RH-19] Invalid " ; |
395 | - ] ; | 395 | + sp:arg2 [ rdf:type afn:localname ; |
396 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 396 | + sp:arg1 [ sp:varName "type"^^xsd:string |
397 | - sp:subject spin:_this | 397 | + ] |
398 | - ] [ sp:object | 398 | + ] ; |
399 | - [ sp:varName "id"^^xsd:string | 399 | + sp:arg3 " id " ; |
400 | - ] ; | 400 | + sp:arg4 [ sp:varName "id"^^xsd:string |
401 | - sp:predicate <http://www.epim.no/schemas/mprml/1#uidRefValue> ; | 401 | + ] |
402 | - sp:subject spin:_this | 402 | + ] ; |
403 | - ] [ rdf:type sp:Bind ; | 403 | + sp:variable |
404 | - sp:expression | 404 | + [ sp:varName "message"^^xsd:string |
405 | - [ rdf:type rhspin:npdIndividualById ; | 405 | + ] |
406 | - arg:id [ sp:varName "id"^^xsd:string | 406 | + ]) |
407 | - ] ; | 407 | + ] ; |
408 | - arg:type | 408 | + spin:labelTemplate "Must be NPD id of {?type}/{?kindRef}"^^xsd:string . |
409 | - [ sp:varName "type"^^xsd:string | 409 | + |
410 | - ] | 410 | +mpr-proxy-constraints:CheckIdAndNameMatch |
411 | - ] ; | 411 | + rdf:type spin:ConstructTemplate ; |
412 | - sp:variable | 412 | + rdfs:label "NPD id and name must match"^^xsd:string ; |
413 | - [ sp:varName "byId"^^xsd:string | 413 | + rdfs:subClassOf mpr-proxy-constraints:ConstraintTemplates ; |
414 | - ] | 414 | + spin:body |
415 | - ] [ rdf:type sp:Bind ; | 415 | + [ rdf:type sp:Construct ; |
416 | - sp:expression | 416 | + sp:templates ([ sp:object spin:ConstraintViolation ; |
417 | - [ rdf:type rhspin:npdIndividualByName ; | 417 | + sp:predicate rdf:type ; |
418 | - arg:name | 418 | + sp:subject _:b7 |
419 | - [ sp:varName "name"^^xsd:string | 419 | + ] [ sp:object |
420 | - ] ; | 420 | + [ sp:varName "message"^^xsd:string |
421 | - arg:type | 421 | + ] ; |
422 | - [ sp:varName "type"^^xsd:string | 422 | + sp:predicate rdfs:label ; |
423 | - ] | 423 | + sp:subject _:b7 |
424 | - ] ; | 424 | + ]) ; |
425 | - sp:variable | 425 | + sp:where ([ sp:object |
426 | - [ sp:varName "byName"^^xsd:string | 426 | + [ sp:varName "kindRef"^^xsd:string |
427 | - ] | 427 | + ] ; |
428 | - ] [ rdf:type sp:Filter ; | 428 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
429 | - sp:expression | 429 | + sp:subject spin:_this |
430 | - [ rdf:type sp:and ; | 430 | + ] [ sp:object "NPD" ; |
431 | - sp:arg1 [ rdf:type sp:or ; | 431 | + sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; |
432 | - sp:arg1 [ rdf:type sp:bound ; | 432 | + sp:subject spin:_this |
433 | - sp:arg1 [ sp:varName "byId"^^xsd:string | 433 | + ] [ sp:object |
434 | - ] | 434 | + [ sp:varName "name"^^xsd:string |
435 | - ] ; | 435 | + ] ; |
436 | - sp:arg2 [ rdf:type sp:bound ; | 436 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
437 | - sp:arg1 [ sp:varName "byName"^^xsd:string | 437 | + sp:subject spin:_this |
438 | - ] | 438 | + ] [ sp:object |
439 | - ] | 439 | + [ sp:varName "id"^^xsd:string |
440 | - ] ; | 440 | + ] ; |
441 | - sp:arg2 [ rdf:type sp:ne ; | 441 | + sp:predicate <http://www.epim.no/schemas/mprml/1#uidRefValue> ; |
442 | - sp:arg1 [ sp:varName "byId"^^xsd:string | 442 | + sp:subject spin:_this |
443 | - ] ; | 443 | + ] [ rdf:type sp:Bind ; |
444 | - sp:arg2 [ sp:varName "byName"^^xsd:string | 444 | + sp:expression |
445 | - ] | 445 | + [ rdf:type rhspin:npdIndividualById ; |
446 | - ] | 446 | + arg:id [ sp:varName "id"^^xsd:string |
447 | - ] | 447 | + ] ; |
448 | - ] [ rdf:type sp:Bind ; | 448 | + arg:type |
449 | - sp:expression | 449 | + [ sp:varName "type"^^xsd:string |
450 | - [ rdf:type fn:concat ; | 450 | + ] |
451 | - sp:arg1 "[RH-19] Mismatching " ; | 451 | + ] ; |
452 | - sp:arg2 [ rdf:type afn:localname ; | 452 | + sp:variable |
453 | - sp:arg1 [ sp:varName "type"^^xsd:string | 453 | + [ sp:varName "byId"^^xsd:string |
454 | - ] | 454 | + ] |
455 | - ] ; | 455 | + ] [ rdf:type sp:Bind ; |
456 | - sp:arg3 " id: " ; | 456 | + sp:expression |
457 | - sp:arg4 [ sp:varName "id"^^xsd:string | 457 | + [ rdf:type rhspin:npdIndividualByName ; |
458 | - ] ; | 458 | + arg:name |
459 | - sp:arg5 " is not the NPD id of " ; | 459 | + [ sp:varName "name"^^xsd:string |
460 | - sp:arg6 [ sp:varName "name"^^xsd:string | 460 | + ] ; |
461 | - ] | 461 | + arg:type |
462 | - ] ; | 462 | + [ sp:varName "type"^^xsd:string |
463 | - sp:variable | 463 | + ] |
464 | - [ sp:varName "message"^^xsd:string | 464 | + ] ; |
465 | - ] | 465 | + sp:variable |
466 | - ]) | 466 | + [ sp:varName "byName"^^xsd:string |
467 | - ] ; | 467 | + ] |
468 | - spin:labelTemplate "NPD name and id of {?type}/{?kindRef} must match"^^xsd:string . | 468 | + ] [ rdf:type sp:Filter ; |
469 | - | 469 | + sp:expression |
470 | -mpr-proxy-constraints:CheckName | 470 | + [ rdf:type sp:and ; |
471 | - rdf:type spin:ConstructTemplate ; | 471 | + sp:arg1 [ rdf:type sp:or ; |
472 | - rdfs:label "Check name"^^xsd:string ; | 472 | + sp:arg1 [ rdf:type sp:bound ; |
473 | - rdfs:subClassOf mpr-proxy-constraints:ConstraintTemplates ; | 473 | + sp:arg1 [ sp:varName "byId"^^xsd:string |
474 | - spin:body | 474 | + ] |
475 | - [ rdf:type sp:Construct ; | 475 | + ] ; |
476 | - sp:templates ([ sp:object spin:ConstraintViolation ; | 476 | + sp:arg2 [ rdf:type sp:bound ; |
477 | - sp:predicate rdf:type ; | 477 | + sp:arg1 [ sp:varName "byName"^^xsd:string |
478 | - sp:subject _:b7 | 478 | + ] |
479 | - ] [ sp:object | 479 | + ] |
480 | - [ sp:varName "message"^^xsd:string | 480 | + ] ; |
481 | - ] ; | 481 | + sp:arg2 [ rdf:type sp:ne ; |
482 | - sp:predicate rdfs:label ; | 482 | + sp:arg1 [ sp:varName "byId"^^xsd:string |
483 | - sp:subject _:b7 | 483 | + ] ; |
484 | - ]) ; | 484 | + sp:arg2 [ sp:varName "byName"^^xsd:string |
485 | - sp:where ([ sp:object | 485 | + ] |
486 | - [ sp:varName "kindRef"^^xsd:string | 486 | + ] |
487 | - ] ; | 487 | + ] |
488 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 488 | + ] [ rdf:type sp:Bind ; |
489 | - sp:subject spin:_this | 489 | + sp:expression |
490 | - ] [ sp:object "NPD" ; | 490 | + [ rdf:type fn:concat ; |
491 | - sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; | 491 | + sp:arg1 "[RH-19] Mismatching " ; |
492 | - sp:subject spin:_this | 492 | + sp:arg2 [ rdf:type afn:localname ; |
493 | - ] [ sp:object | 493 | + sp:arg1 [ sp:varName "type"^^xsd:string |
494 | - [ sp:varName "name"^^xsd:string | 494 | + ] |
495 | - ] ; | 495 | + ] ; |
496 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 496 | + sp:arg3 " id: " ; |
497 | - sp:subject spin:_this | 497 | + sp:arg4 [ sp:varName "id"^^xsd:string |
498 | - ] [ rdf:type sp:Bind ; | 498 | + ] ; |
499 | - sp:expression | 499 | + sp:arg5 " is not the NPD id of " ; |
500 | - [ rdf:type rhspin:npdIndividualByName ; | 500 | + sp:arg6 [ sp:varName "name"^^xsd:string |
501 | - arg:name | 501 | + ] |
502 | - [ sp:varName "name"^^xsd:string | 502 | + ] ; |
503 | - ] ; | 503 | + sp:variable |
504 | - arg:type | 504 | + [ sp:varName "message"^^xsd:string |
505 | - [ sp:varName "type"^^xsd:string | 505 | + ] |
506 | - ] | 506 | + ]) |
507 | - ] ; | 507 | + ] ; |
508 | - sp:variable | 508 | + spin:labelTemplate "NPD name and id of {?type}/{?kindRef} must match"^^xsd:string . |
509 | - [ sp:varName "npd"^^xsd:string | 509 | + |
510 | - ] | 510 | +mpr-proxy-constraints:CheckName |
511 | - ] [ rdf:type sp:Filter ; | 511 | + rdf:type spin:ConstructTemplate ; |
512 | - sp:expression | 512 | + rdfs:label "Check name"^^xsd:string ; |
513 | - [ rdf:type sp:not ; | 513 | + rdfs:subClassOf mpr-proxy-constraints:ConstraintTemplates ; |
514 | - sp:arg1 [ rdf:type sp:bound ; | 514 | + spin:body |
515 | - sp:arg1 [ sp:varName "npd"^^xsd:string | 515 | + [ rdf:type sp:Construct ; |
516 | - ] | 516 | + sp:templates ([ sp:object spin:ConstraintViolation ; |
517 | - ] | 517 | + sp:predicate rdf:type ; |
518 | - ] | 518 | + sp:subject _:b8 |
519 | - ] [ rdf:type sp:Bind ; | 519 | + ] [ sp:object |
520 | - sp:expression | 520 | + [ sp:varName "message"^^xsd:string |
521 | - [ rdf:type fn:concat ; | 521 | + ] ; |
522 | - sp:arg1 [ rdf:type sp:add ; | 522 | + sp:predicate rdfs:label ; |
523 | - sp:arg1 "[RH-19] Invalid " ; | 523 | + sp:subject _:b8 |
524 | - sp:arg2 [ rdf:type afn:localname ; | 524 | + ]) ; |
525 | - sp:arg1 [ sp:varName "type"^^xsd:string | 525 | + sp:where ([ sp:object |
526 | - ] | 526 | + [ sp:varName "kindRef"^^xsd:string |
527 | - ] | 527 | + ] ; |
528 | - ] ; | 528 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
529 | - sp:arg2 " name " ; | 529 | + sp:subject spin:_this |
530 | - sp:arg3 [ sp:varName "name"^^xsd:string | 530 | + ] [ sp:object "NPD" ; |
531 | - ] | 531 | + sp:predicate <http://www.epim.no/schemas/mprml/1#namingSystem> ; |
532 | - ] ; | 532 | + sp:subject spin:_this |
533 | - sp:variable | 533 | + ] [ sp:object |
534 | - [ sp:varName "message"^^xsd:string | 534 | + [ sp:varName "name"^^xsd:string |
535 | - ] | 535 | + ] ; |
536 | - ]) | 536 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
537 | - ] ; | 537 | + sp:subject spin:_this |
538 | - spin:labelTemplate "Must be NPD name of {?type}/{?kindRef}"^^xsd:string . | 538 | + ] [ rdf:type sp:Bind ; |
539 | - | 539 | + sp:expression |
540 | -mpr-proxy-constraints:ConstraintTemplates | 540 | + [ rdf:type rhspin:npdIndividualByName ; |
541 | - rdf:type spin:ConstructTemplate ; | 541 | + arg:name |
542 | - rdfs:label "Constraint templates"^^xsd:string ; | 542 | + [ sp:varName "name"^^xsd:string |
543 | - rdfs:subClassOf spin:ConstructTemplates ; | 543 | + ] ; |
544 | - spin:constraint | 544 | + arg:type |
545 | - [ rdf:type spl:Argument ; | 545 | + [ sp:varName "type"^^xsd:string |
546 | - rdfs:comment "The kind reference value."^^xsd:string ; | 546 | + ] |
547 | - spl:predicate arg:kindRef ; | 547 | + ] ; |
548 | - spl:valueType <http://www.epim.no/schemas/mprml/1#ReportingFacility> | 548 | + sp:variable |
549 | - ] ; | 549 | + [ sp:varName "npd"^^xsd:string |
550 | - spin:constraint | 550 | + ] |
551 | - [ rdf:type spl:Argument ; | 551 | + ] [ rdf:type sp:Filter ; |
552 | - rdfs:comment "The NPD type that the individual needs to have."^^xsd:string ; | 552 | + sp:expression |
553 | - spl:predicate arg:type ; | 553 | + [ rdf:type sp:not ; |
554 | - spl:valueType rdfs:Class | 554 | + sp:arg1 [ rdf:type sp:bound ; |
555 | - ] . | 555 | + sp:arg1 [ sp:varName "npd"^^xsd:string |
556 | + ] | ||
557 | + ] | ||
558 | + ] | ||
559 | + ] [ rdf:type sp:Bind ; | ||
560 | + sp:expression | ||
561 | + [ rdf:type fn:concat ; | ||
562 | + sp:arg1 [ rdf:type sp:add ; | ||
563 | + sp:arg1 "[RH-19] Invalid " ; | ||
564 | + sp:arg2 [ rdf:type afn:localname ; | ||
565 | + sp:arg1 [ sp:varName "type"^^xsd:string | ||
566 | + ] | ||
567 | + ] | ||
568 | + ] ; | ||
569 | + sp:arg2 " name " ; | ||
570 | + sp:arg3 [ sp:varName "name"^^xsd:string | ||
571 | + ] | ||
572 | + ] ; | ||
573 | + sp:variable | ||
574 | + [ sp:varName "message"^^xsd:string | ||
575 | + ] | ||
576 | + ]) | ||
577 | + ] ; | ||
578 | + spin:labelTemplate "Must be NPD name of {?type}/{?kindRef}"^^xsd:string . | ||
579 | + | ||
580 | +mpr-proxy-constraints:ConstraintTemplates | ||
581 | + rdf:type spin:ConstructTemplate ; | ||
582 | + rdfs:label "Constraint templates"^^xsd:string ; | ||
583 | + rdfs:subClassOf spin:ConstructTemplates ; | ||
584 | + spin:constraint | ||
585 | + [ rdf:type spl:Argument ; | ||
586 | + rdfs:comment "The kind reference value."^^xsd:string ; | ||
587 | + spl:predicate arg:kindRef ; | ||
588 | + spl:valueType <http://www.epim.no/schemas/mprml/1#ReportingFacility> | ||
589 | + ] ; | ||
590 | + spin:constraint | ||
591 | + [ rdf:type spl:Argument ; | ||
592 | + rdfs:comment "The NPD type that the individual needs to have."^^xsd:string ; | ||
593 | + spl:predicate arg:type ; | ||
594 | + spl:valueType rdfs:Class | ||
595 | + ] . | ... | ... |
-
Please register or login to post a comment