Holger Knublauch

Added constraints for platforms and generalizes constraint for Company Names

......@@ -13,6 +13,7 @@
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rhspin: <http://www.reportinghub.no/spin/rh#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spif: <http://spinrdf.org/spif#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
......@@ -48,7 +49,9 @@ arg:kindRef
]
[
rdf:type sp:TriplePath ;
sp:object "Operating Company" ;
sp:object [
sp:varName "role"^^xsd:string ;
] ;
sp:path [
rdf:type sp:SeqPath ;
sp:path1 <http://www.epim.no/schemas/mprml/1#roleRef> ;
......@@ -57,6 +60,19 @@ arg:kindRef
sp:subject spin:_this ;
]
[
rdf:type sp:Filter ;
sp:expression [
rdf:type sp:eq ;
sp:arg1 [
rdf:type spif:lowerCase ;
sp:arg1 [
sp:varName "role"^^xsd:string ;
] ;
] ;
sp:arg2 "operating company" ;
] ;
]
[
rdf:type sp:Bind ;
sp:expression [
rdf:type rhspin:companyWithName ;
......@@ -104,6 +120,11 @@ arg:kindRef
] ;
spin:constraint [
rdf:type mpr-proxy-constraints:CheckId ;
arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ;
arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> ;
] ;
spin:constraint [
rdf:type mpr-proxy-constraints:CheckId ;
arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ;
arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> ;
] ;
......@@ -139,6 +160,11 @@ arg:kindRef
] ;
spin:constraint [
rdf:type mpr-proxy-constraints:CheckName ;
arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_platform> ;
arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> ;
] ;
spin:constraint [
rdf:type mpr-proxy-constraints:CheckName ;
arg:kindRef <http://www.epim.no/schemas/mprml/1#RF_terminal> ;
arg:type <http://www.reportinghub.no/ep/schema/facility#Facility> ;
] ;
......