Added constraints for platforms and generalizes constraint for Company Names
Showing
1 changed file
with
27 additions
and
1 deletions
| ... | @@ -13,6 +13,7 @@ | ... | @@ -13,6 +13,7 @@ |
| 13 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | 13 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
| 14 | @prefix rhspin: <http://www.reportinghub.no/spin/rh#> . | 14 | @prefix rhspin: <http://www.reportinghub.no/spin/rh#> . |
| 15 | @prefix sp: <http://spinrdf.org/sp#> . | 15 | @prefix sp: <http://spinrdf.org/sp#> . |
| 16 | +@prefix spif: <http://spinrdf.org/spif#> . | ||
| 16 | @prefix spin: <http://spinrdf.org/spin#> . | 17 | @prefix spin: <http://spinrdf.org/spin#> . |
| 17 | @prefix spl: <http://spinrdf.org/spl#> . | 18 | @prefix spl: <http://spinrdf.org/spl#> . |
| 18 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | 19 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
| ... | @@ -48,7 +49,9 @@ arg:kindRef | ... | @@ -48,7 +49,9 @@ arg:kindRef |
| 48 | ] | 49 | ] |
| 49 | [ | 50 | [ |
| 50 | rdf:type sp:TriplePath ; | 51 | rdf:type sp:TriplePath ; |
| 51 | - sp:object "Operating Company" ; | 52 | + sp:object [ |
| 53 | + sp:varName "role"^^xsd:string ; | ||
| 54 | + ] ; | ||
| 52 | sp:path [ | 55 | sp:path [ |
| 53 | rdf:type sp:SeqPath ; | 56 | rdf:type sp:SeqPath ; |
| 54 | sp:path1 <http://www.epim.no/schemas/mprml/1#roleRef> ; | 57 | sp:path1 <http://www.epim.no/schemas/mprml/1#roleRef> ; |
| ... | @@ -57,6 +60,19 @@ arg:kindRef | ... | @@ -57,6 +60,19 @@ arg:kindRef |
| 57 | sp:subject spin:_this ; | 60 | sp:subject spin:_this ; |
| 58 | ] | 61 | ] |
| 59 | [ | 62 | [ |
| 63 | + rdf:type sp:Filter ; | ||
| 64 | + sp:expression [ | ||
| 65 | + rdf:type sp:eq ; | ||
| 66 | + sp:arg1 [ | ||
| 67 | + rdf:type spif:lowerCase ; | ||
| 68 | + sp:arg1 [ | ||
| 69 | + sp:varName "role"^^xsd:string ; | ||
| 70 | + ] ; | ||
| 71 | + ] ; | ||
| 72 | + sp:arg2 "operating company" ; | ||
| 73 | + ] ; | ||
| 74 | + ] | ||
| 75 | + [ | ||
| 60 | rdf:type sp:Bind ; | 76 | rdf:type sp:Bind ; |
| 61 | sp:expression [ | 77 | sp:expression [ |
| 62 | rdf:type rhspin:companyWithName ; | 78 | rdf:type rhspin:companyWithName ; |
| ... | @@ -104,6 +120,11 @@ arg:kindRef | ... | @@ -104,6 +120,11 @@ arg:kindRef |
| 104 | ] ; | 120 | ] ; |
| 105 | spin:constraint [ | 121 | spin:constraint [ |
| 106 | rdf:type mpr-proxy-constraints:CheckId ; | 122 | rdf:type mpr-proxy-constraints:CheckId ; |
| 123 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ; | ||
| 124 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> ; | ||
| 125 | + ] ; | ||
| 126 | + spin:constraint [ | ||
| 127 | + rdf:type mpr-proxy-constraints:CheckId ; | ||
| 107 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | 128 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; |
| 108 | arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> ; | 129 | arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> ; |
| 109 | ] ; | 130 | ] ; |
| ... | @@ -139,6 +160,11 @@ arg:kindRef | ... | @@ -139,6 +160,11 @@ arg:kindRef |
| 139 | ] ; | 160 | ] ; |
| 140 | spin:constraint [ | 161 | spin:constraint [ |
| 141 | rdf:type mpr-proxy-constraints:CheckName ; | 162 | rdf:type mpr-proxy-constraints:CheckName ; |
| 163 | + arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ; | ||
| 164 | + arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> ; | ||
| 165 | + ] ; | ||
| 166 | + spin:constraint [ | ||
| 167 | + rdf:type mpr-proxy-constraints:CheckName ; | ||
| 142 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | 168 | arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ; |
| 143 | arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> ; | 169 | arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> ; |
| 144 | ] ; | 170 | ] ; | ... | ... |
-
Please register or login to post a comment