Showing
3 changed files
with
812 additions
and
295 deletions
... | @@ -15,7 +15,7 @@ | ... | @@ -15,7 +15,7 @@ |
15 | <http://www.reportinghub.no/ep/transform/transform-helper-schema> | 15 | <http://www.reportinghub.no/ep/transform/transform-helper-schema> |
16 | rdf:type owl:Ontology ; | 16 | rdf:type owl:Ontology ; |
17 | rdfs:comment "The Transform Helper Schema is the set of properties and classes used for the creation of temporary data used as part of the ERH transformations. All instances of classes and uses of these properties is deleted before the triples are stored in the RDF database."^^xsd:string ; | 17 | rdfs:comment "The Transform Helper Schema is the set of properties and classes used for the creation of temporary data used as part of the ERH transformations. All instances of classes and uses of these properties is deleted before the triples are stored in the RDF database."^^xsd:string ; |
18 | - owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.epim.no/schemas/mprml/1> ; | 18 | + owl:imports <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://spinrdf.org/spin> ; |
19 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 19 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
20 | 20 | ||
21 | transhelp:buildRdlURI | 21 | transhelp:buildRdlURI |
... | @@ -44,15 +44,15 @@ transhelp:derivedFrom | ... | @@ -44,15 +44,15 @@ transhelp:derivedFrom |
44 | rdf:type owl:ObjectProperty . | 44 | rdf:type owl:ObjectProperty . |
45 | 45 | ||
46 | transhelp:domainOfPropertyMapsToMPREnumeration | 46 | transhelp:domainOfPropertyMapsToMPREnumeration |
47 | - rdf:type owl:InverseFunctionalProperty , owl:ObjectProperty ; | 47 | + rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ; |
48 | rdfs:label "domain of property maps to MPR enumeration"^^xsd:string ; | 48 | rdfs:label "domain of property maps to MPR enumeration"^^xsd:string ; |
49 | rdfs:subPropertyOf transhelp:mapsTo . | 49 | rdfs:subPropertyOf transhelp:mapsTo . |
50 | 50 | ||
51 | transhelp:facilityIdentifier | 51 | transhelp:facilityIdentifier |
52 | - rdf:type owl:FunctionalProperty , owl:DatatypeProperty . | 52 | + rdf:type owl:DatatypeProperty , owl:FunctionalProperty . |
53 | 53 | ||
54 | transhelp:flowingStateMapsToMPREnumeration | 54 | transhelp:flowingStateMapsToMPREnumeration |
55 | - rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ; | 55 | + rdf:type owl:InverseFunctionalProperty , owl:ObjectProperty ; |
56 | rdfs:label "flowing state maps to MPR enumeration"^^xsd:string ; | 56 | rdfs:label "flowing state maps to MPR enumeration"^^xsd:string ; |
57 | rdfs:subPropertyOf transhelp:mapsTo . | 57 | rdfs:subPropertyOf transhelp:mapsTo . |
58 | 58 | ||
... | @@ -71,43 +71,46 @@ transhelp:hasEquivalentInRDL | ... | @@ -71,43 +71,46 @@ transhelp:hasEquivalentInRDL |
71 | rdfs:label "has equivalent in RDL"^^xsd:string . | 71 | rdfs:label "has equivalent in RDL"^^xsd:string . |
72 | 72 | ||
73 | transhelp:interval | 73 | transhelp:interval |
74 | - rdf:type owl:FunctionalProperty , owl:DatatypeProperty . | 74 | + rdf:type owl:DatatypeProperty , owl:FunctionalProperty . |
75 | 75 | ||
76 | transhelp:intervalEnd | 76 | transhelp:intervalEnd |
77 | - rdf:type owl:FunctionalProperty , owl:DatatypeProperty . | 77 | + rdf:type owl:DatatypeProperty , owl:FunctionalProperty . |
78 | 78 | ||
79 | transhelp:intervalIdentifier | 79 | transhelp:intervalIdentifier |
80 | - rdf:type owl:FunctionalProperty , owl:DatatypeProperty . | 80 | + rdf:type owl:DatatypeProperty , owl:FunctionalProperty . |
81 | 81 | ||
82 | transhelp:intervalStart | 82 | transhelp:intervalStart |
83 | - rdf:type owl:FunctionalProperty , owl:DatatypeProperty . | 83 | + rdf:type owl:DatatypeProperty , owl:FunctionalProperty . |
84 | 84 | ||
85 | transhelp:label | 85 | transhelp:label |
86 | - rdf:type owl:FunctionalProperty , owl:DatatypeProperty . | 86 | + rdf:type owl:DatatypeProperty , owl:FunctionalProperty . |
87 | 87 | ||
88 | transhelp:mapsTo | 88 | transhelp:mapsTo |
89 | rdf:type rdf:Property . | 89 | rdf:type rdf:Property . |
90 | 90 | ||
91 | transhelp:materialClassMapsToMPREnumeration | 91 | transhelp:materialClassMapsToMPREnumeration |
92 | - rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ; | 92 | + rdf:type owl:InverseFunctionalProperty , owl:ObjectProperty ; |
93 | rdfs:label "material class maps to MPR enumeration"^^xsd:string ; | 93 | rdfs:label "material class maps to MPR enumeration"^^xsd:string ; |
94 | rdfs:subPropertyOf transhelp:mapsTo . | 94 | rdfs:subPropertyOf transhelp:mapsTo . |
95 | 95 | ||
96 | +transhelp:necessaryIntervalString | ||
97 | + rdf:type owl:DatatypeProperty . | ||
98 | + | ||
96 | transhelp:nominalInstant | 99 | transhelp:nominalInstant |
97 | - rdf:type owl:FunctionalProperty , owl:DatatypeProperty . | 100 | + rdf:type owl:DatatypeProperty , owl:FunctionalProperty . |
98 | 101 | ||
99 | transhelp:propertyMapsToMPREnumeration | 102 | transhelp:propertyMapsToMPREnumeration |
100 | - rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ; | 103 | + rdf:type owl:InverseFunctionalProperty , owl:ObjectProperty ; |
101 | rdfs:label "property maps to MPR enumeration"^^xsd:string ; | 104 | rdfs:label "property maps to MPR enumeration"^^xsd:string ; |
102 | rdfs:subPropertyOf transhelp:mapsTo . | 105 | rdfs:subPropertyOf transhelp:mapsTo . |
103 | 106 | ||
104 | transhelp:quantitySpaceMapsToClassOfScale | 107 | transhelp:quantitySpaceMapsToClassOfScale |
105 | - rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty , owl:FunctionalProperty ; | 108 | + rdf:type owl:FunctionalProperty , owl:InverseFunctionalProperty , owl:ObjectProperty ; |
106 | rdfs:label "quantity space maps to class of scale"^^xsd:string ; | 109 | rdfs:label "quantity space maps to class of scale"^^xsd:string ; |
107 | rdfs:subPropertyOf transhelp:mapsTo . | 110 | rdfs:subPropertyOf transhelp:mapsTo . |
108 | 111 | ||
109 | transhelp:rangeOfPropertyMapsToMPREnumeration | 112 | transhelp:rangeOfPropertyMapsToMPREnumeration |
110 | - rdf:type owl:InverseFunctionalProperty , owl:ObjectProperty ; | 113 | + rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ; |
111 | rdfs:label "range of property maps to MPR enumeration"^^xsd:string ; | 114 | rdfs:label "range of property maps to MPR enumeration"^^xsd:string ; |
112 | rdfs:subPropertyOf transhelp:mapsTo . | 115 | rdfs:subPropertyOf transhelp:mapsTo . |
113 | 116 | ... | ... |
This diff could not be displayed because it is too large.
... | @@ -6,134 +6,582 @@ | ... | @@ -6,134 +6,582 @@ |
6 | # imports: http://www.reportinghub.no/ep/transform/transform-helper-schema | 6 | # imports: http://www.reportinghub.no/ep/transform/transform-helper-schema |
7 | 7 | ||
8 | @prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeParameterSet-v1.1.1#> . | 8 | @prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeParameterSet-v1.1.1#> . |
9 | +@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . | ||
10 | +@prefix arg: <http://spinrdf.org/arg#> . | ||
9 | @prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> . | 11 | @prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> . |
12 | +@prefix fn: <http://www.w3.org/2005/xpath-functions#> . | ||
10 | @prefix owl: <http://www.w3.org/2002/07/owl#> . | 13 | @prefix owl: <http://www.w3.org/2002/07/owl#> . |
11 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 14 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
12 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | 15 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
16 | +@prefix smf: <http://topbraid.org/sparqlmotionfunctions#> . | ||
13 | @prefix sp: <http://spinrdf.org/sp#> . | 17 | @prefix sp: <http://spinrdf.org/sp#> . |
14 | @prefix spin: <http://spinrdf.org/spin#> . | 18 | @prefix spin: <http://spinrdf.org/spin#> . |
15 | @prefix spl: <http://spinrdf.org/spl#> . | 19 | @prefix spl: <http://spinrdf.org/spl#> . |
16 | @prefix unnamed: <http://www.reportinghub.no/ep/schema/1.0/unnamed#> . | 20 | @prefix unnamed: <http://www.reportinghub.no/ep/schema/1.0/unnamed#> . |
17 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | 21 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
18 | 22 | ||
23 | +<http://www.epim.no/schemas/mprml/1#Cs_productVolumeFacility> | ||
24 | + spin:rule | ||
25 | + [ rdf:type sp:Construct ; | ||
26 | + rdfs:comment "STEP 80000a Find the classes of spatial part that need to be created for the parameter set properties."^^xsd:string ; | ||
27 | + sp:templates ([ sp:object spin:_this ; | ||
28 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
29 | + sp:subject | ||
30 | + [ sp:varName "classOfSpatialPart"^^xsd:string | ||
31 | + ] | ||
32 | + ]) ; | ||
33 | + sp:where ([ sp:object | ||
34 | + [ sp:varName "parameterSetRef"^^xsd:string | ||
35 | + ] ; | ||
36 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterSetRef> ; | ||
37 | + sp:subject spin:_this | ||
38 | + ] [ sp:object spin:_this ; | ||
39 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
40 | + sp:subject | ||
41 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
42 | + ] | ||
43 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
44 | + sp:predicate rdf:type ; | ||
45 | + sp:subject | ||
46 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
47 | + ] | ||
48 | + ] [ sp:object | ||
49 | + [ sp:varName "nameRef"^^xsd:string | ||
50 | + ] ; | ||
51 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | ||
52 | + sp:subject | ||
53 | + [ sp:varName "parameterSetRef"^^xsd:string | ||
54 | + ] | ||
55 | + ] [ sp:object | ||
56 | + [ sp:varName "nameRef"^^xsd:string | ||
57 | + ] ; | ||
58 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ; | ||
59 | + sp:subject | ||
60 | + [ sp:varName "classOfSpatialPart"^^xsd:string | ||
61 | + ] | ||
62 | + ] [ rdf:type sp:NotExists ; | ||
63 | + sp:elements ([ sp:object | ||
64 | + [ sp:varName "classOfSpatialPart"^^xsd:string | ||
65 | + ] ; | ||
66 | + sp:predicate rdf:type ; | ||
67 | + sp:subject | ||
68 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
69 | + ] | ||
70 | + ]) | ||
71 | + ]) | ||
72 | + ] ; | ||
73 | + spin:rule | ||
74 | + [ rdf:type sp:Construct ; | ||
75 | + rdfs:comment "STEP 80000b Create the spatial parts for the parameter set properties."^^xsd:string ; | ||
76 | + sp:templates ([ sp:object | ||
77 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
78 | + ] ; | ||
79 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; | ||
80 | + sp:subject _:b1 | ||
81 | + ] [ sp:object | ||
82 | + [ sp:varName "classOfSpatialPart"^^xsd:string | ||
83 | + ] ; | ||
84 | + sp:predicate rdf:type ; | ||
85 | + sp:subject _:b1 | ||
86 | + ] [ sp:object | ||
87 | + [ sp:varName "startedAt"^^xsd:string | ||
88 | + ] ; | ||
89 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
90 | + sp:subject _:b1 | ||
91 | + ] [ sp:object | ||
92 | + [ sp:varName "finishedAt"^^xsd:string | ||
93 | + ] ; | ||
94 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
95 | + sp:subject _:b1 | ||
96 | + ]) ; | ||
97 | + sp:where ([ sp:object spin:_this ; | ||
98 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
99 | + sp:subject | ||
100 | + [ sp:varName "classOfSpatialPart"^^xsd:string | ||
101 | + ] | ||
102 | + ] [ sp:object owl:Class ; | ||
103 | + sp:predicate rdf:type ; | ||
104 | + sp:subject | ||
105 | + [ sp:varName "classOfSpatialPart"^^xsd:string | ||
106 | + ] | ||
107 | + ] [ sp:object spin:_this ; | ||
108 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
109 | + sp:subject | ||
110 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
111 | + ] | ||
112 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
113 | + sp:predicate rdf:type ; | ||
114 | + sp:subject | ||
115 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
116 | + ] | ||
117 | + ] [ rdf:type sp:Optional ; | ||
118 | + sp:elements ([ sp:object | ||
119 | + [ sp:varName "startedAt"^^xsd:string | ||
120 | + ] ; | ||
121 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
122 | + sp:subject | ||
123 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
124 | + ] | ||
125 | + ]) | ||
126 | + ] [ rdf:type sp:Optional ; | ||
127 | + sp:elements ([ sp:object | ||
128 | + [ sp:varName "finishedAt"^^xsd:string | ||
129 | + ] ; | ||
130 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
131 | + sp:subject | ||
132 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
133 | + ] | ||
134 | + ]) | ||
135 | + ]) | ||
136 | + ] . | ||
137 | + | ||
19 | <http://www.epim.no/schemas/mprml/1#Cs_productVolumeParameterSet> | 138 | <http://www.epim.no/schemas/mprml/1#Cs_productVolumeParameterSet> |
20 | spin:rule | 139 | spin:rule |
21 | [ rdf:type sp:Construct ; | 140 | [ rdf:type sp:Construct ; |
22 | - rdfs:comment "STEP 80004 Set flowing or not-flowing state"^^xsd:string ; | 141 | + rdfs:comment "STEP 80002a Create temporal part of parameterSet facility corresponding to the nominal time, if necessary"^^xsd:string ; |
142 | + sp:templates ([ sp:object | ||
143 | + [ sp:varName "classOfParameterSetFacility"^^xsd:string | ||
144 | + ] ; | ||
145 | + sp:predicate rdf:type ; | ||
146 | + sp:subject _:b2 | ||
147 | + ] [ sp:object | ||
148 | + [ sp:varName "dTim"^^xsd:string | ||
149 | + ] ; | ||
150 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; | ||
151 | + sp:subject _:b2 | ||
152 | + ] [ sp:object | ||
153 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
154 | + ] ; | ||
155 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
156 | + sp:subject _:b2 | ||
157 | + ] [ sp:object | ||
158 | + [ sp:varName "parameterRef"^^xsd:string | ||
159 | + ] ; | ||
160 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
161 | + sp:subject _:b2 | ||
162 | + ]) ; | ||
163 | + sp:where ([ sp:object spin:_this ; | ||
164 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
165 | + sp:subject | ||
166 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
167 | + ] | ||
168 | + ] [ sp:object | ||
169 | + [ sp:varName "classOfParameterSetFacility"^^xsd:string | ||
170 | + ] ; | ||
171 | + sp:predicate rdf:type ; | ||
172 | + sp:subject | ||
173 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
174 | + ] | ||
175 | + ] [ sp:object | ||
176 | + [ sp:varName "parameterRef"^^xsd:string | ||
177 | + ] ; | ||
178 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | ||
179 | + sp:subject spin:_this | ||
180 | + ] [ sp:object | ||
181 | + [ sp:varName "dTim"^^xsd:string | ||
182 | + ] ; | ||
183 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ; | ||
184 | + sp:subject | ||
185 | + [ sp:varName "parameterRef"^^xsd:string | ||
186 | + ] | ||
187 | + ] [ rdf:type sp:NotExists ; | ||
188 | + sp:elements ([ sp:object | ||
189 | + [ sp:varName "dTim"^^xsd:string | ||
190 | + ] ; | ||
191 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; | ||
192 | + sp:subject | ||
193 | + [ sp:varName "parameterFacility"^^xsd:string | ||
194 | + ] | ||
195 | + ] [ sp:object | ||
196 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
197 | + ] ; | ||
198 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
199 | + sp:subject | ||
200 | + [ sp:varName "parameterFacility"^^xsd:string | ||
201 | + ] | ||
202 | + ]) | ||
203 | + ]) | ||
204 | + ] ; | ||
205 | + spin:rule | ||
206 | + [ rdf:type sp:Construct ; | ||
207 | + rdfs:comment "STEP 80002b Find existing temporal part of parameterSet facility corresponding to the nominal time"^^xsd:string ; | ||
208 | + sp:templates ([ sp:object | ||
209 | + [ sp:varName "parameterRef"^^xsd:string | ||
210 | + ] ; | ||
211 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
212 | + sp:subject | ||
213 | + [ sp:varName "parameterFacility"^^xsd:string | ||
214 | + ] | ||
215 | + ]) ; | ||
216 | + sp:where ([ sp:object spin:_this ; | ||
217 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
218 | + sp:subject | ||
219 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
220 | + ] | ||
221 | + ] [ sp:object | ||
222 | + [ sp:varName "parameterRef"^^xsd:string | ||
223 | + ] ; | ||
224 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | ||
225 | + sp:subject spin:_this | ||
226 | + ] [ sp:object | ||
227 | + [ sp:varName "dTim"^^xsd:string | ||
228 | + ] ; | ||
229 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ; | ||
230 | + sp:subject | ||
231 | + [ sp:varName "parameterRef"^^xsd:string | ||
232 | + ] | ||
233 | + ] [ sp:object | ||
234 | + [ sp:varName "dTim"^^xsd:string | ||
235 | + ] ; | ||
236 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; | ||
237 | + sp:subject | ||
238 | + [ sp:varName "parameterFacility"^^xsd:string | ||
239 | + ] | ||
240 | + ] [ sp:object | ||
241 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
242 | + ] ; | ||
243 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
244 | + sp:subject | ||
245 | + [ sp:varName "parameterFacility"^^xsd:string | ||
246 | + ] | ||
247 | + ]) | ||
248 | + ] ; | ||
249 | + spin:rule | ||
250 | + [ rdf:type sp:Construct ; | ||
251 | + rdfs:comment "STEP 80003a Create list of necessary temporal parts of parameterSet facility corresponding to the start and end"^^xsd:string ; | ||
252 | + sp:templates ([ sp:object | ||
253 | + [ sp:varName "intervalString"^^xsd:string | ||
254 | + ] ; | ||
255 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#necessaryIntervalString> ; | ||
256 | + sp:subject | ||
257 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
258 | + ] | ||
259 | + ]) ; | ||
260 | + sp:where ([ sp:object spin:_this ; | ||
261 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
262 | + sp:subject | ||
263 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
264 | + ] | ||
265 | + ] [ sp:object | ||
266 | + [ sp:varName "classOfParameterSetFacility"^^xsd:string | ||
267 | + ] ; | ||
268 | + sp:predicate rdf:type ; | ||
269 | + sp:subject | ||
270 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
271 | + ] | ||
272 | + ] [ sp:object | ||
273 | + [ sp:varName "parameterRef"^^xsd:string | ||
274 | + ] ; | ||
275 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | ||
276 | + sp:subject spin:_this | ||
277 | + ] [ sp:object | ||
278 | + [ sp:varName "intervalStart"^^xsd:string | ||
279 | + ] ; | ||
280 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | ||
281 | + sp:subject | ||
282 | + [ sp:varName "parameterRef"^^xsd:string | ||
283 | + ] | ||
284 | + ] [ sp:object | ||
285 | + [ sp:varName "intervalEnd"^^xsd:string | ||
286 | + ] ; | ||
287 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; | ||
288 | + sp:subject | ||
289 | + [ sp:varName "parameterRef"^^xsd:string | ||
290 | + ] | ||
291 | + ] [ rdf:type sp:NotExists ; | ||
292 | + sp:elements ([ sp:object | ||
293 | + [ sp:varName "intervalStart"^^xsd:string | ||
294 | + ] ; | ||
295 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
296 | + sp:subject | ||
297 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
298 | + ] | ||
299 | + ] [ sp:object | ||
300 | + [ sp:varName "intervalEnd"^^xsd:string | ||
301 | + ] ; | ||
302 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
303 | + sp:subject | ||
304 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
305 | + ] | ||
306 | + ]) | ||
307 | + ] [ rdf:type sp:Bind ; | ||
308 | + sp:expression | ||
309 | + [ rdf:type fn:concat ; | ||
310 | + sp:arg1 [ sp:varName "intervalStart"^^xsd:string | ||
311 | + ] ; | ||
312 | + sp:arg2 "$" ; | ||
313 | + sp:arg3 [ sp:varName "intervalEnd"^^xsd:string | ||
314 | + ] | ||
315 | + ] ; | ||
316 | + sp:variable | ||
317 | + [ sp:varName "intervalString"^^xsd:string | ||
318 | + ] | ||
319 | + ]) | ||
320 | + ] ; | ||
321 | + spin:rule | ||
322 | + [ rdf:type sp:Construct ; | ||
323 | + rdfs:comment "STEP 80001a Regularise start and end times - time specified by parameter element"^^xsd:string ; | ||
324 | + sp:templates ([ sp:object | ||
325 | + [ sp:varName "start1"^^xsd:string | ||
326 | + ] ; | ||
327 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | ||
328 | + sp:subject | ||
329 | + [ sp:varName "parameterRef"^^xsd:string | ||
330 | + ] | ||
331 | + ] [ sp:object | ||
332 | + [ sp:varName "start2"^^xsd:string | ||
333 | + ] ; | ||
334 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | ||
335 | + sp:subject | ||
336 | + [ sp:varName "parameterRef"^^xsd:string | ||
337 | + ] | ||
338 | + ] [ sp:object | ||
339 | + [ sp:varName "end1"^^xsd:string | ||
340 | + ] ; | ||
341 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; | ||
342 | + sp:subject | ||
343 | + [ sp:varName "parameterRef"^^xsd:string | ||
344 | + ] | ||
345 | + ] [ sp:object | ||
346 | + [ sp:varName "end2"^^xsd:string | ||
347 | + ] ; | ||
348 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; | ||
349 | + sp:subject | ||
350 | + [ sp:varName "parameterRef"^^xsd:string | ||
351 | + ] | ||
352 | + ]) ; | ||
353 | + sp:where ([ sp:object | ||
354 | + [ sp:varName "parameterRef"^^xsd:string | ||
355 | + ] ; | ||
356 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | ||
357 | + sp:subject spin:_this | ||
358 | + ] [ rdf:type sp:Optional ; | ||
359 | + sp:elements ([ sp:object | ||
360 | + [ sp:varName "dTimStart"^^xsd:string | ||
361 | + ] ; | ||
362 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; | ||
363 | + sp:subject | ||
364 | + [ sp:varName "parameterRef"^^xsd:string | ||
365 | + ] | ||
366 | + ]) | ||
367 | + ] [ rdf:type sp:Optional ; | ||
368 | + sp:elements ([ sp:object | ||
369 | + [ sp:varName "dTimEnd"^^xsd:string | ||
370 | + ] ; | ||
371 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | ||
372 | + sp:subject | ||
373 | + [ sp:varName "parameterRef"^^xsd:string | ||
374 | + ] | ||
375 | + ]) | ||
376 | + ] [ rdf:type sp:Optional ; | ||
377 | + sp:elements ([ sp:object | ||
378 | + [ sp:varName "dateStart"^^xsd:string | ||
379 | + ] ; | ||
380 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | ||
381 | + sp:subject | ||
382 | + [ sp:varName "parameterRef"^^xsd:string | ||
383 | + ] | ||
384 | + ]) | ||
385 | + ] [ rdf:type sp:Optional ; | ||
386 | + sp:elements ([ sp:object | ||
387 | + [ sp:varName "dateEnd"^^xsd:string | ||
388 | + ] ; | ||
389 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
390 | + sp:subject | ||
391 | + [ sp:varName "parameterRef"^^xsd:string | ||
392 | + ] | ||
393 | + ]) | ||
394 | + ] [ rdf:type sp:Bind ; | ||
395 | + sp:expression | ||
396 | + [ rdf:type smf:cast ; | ||
397 | + arg:datatype xsd:string ; | ||
398 | + sp:arg1 [ sp:varName "dTimStart"^^xsd:string | ||
399 | + ] | ||
400 | + ] ; | ||
401 | + sp:variable | ||
402 | + [ sp:varName "start1"^^xsd:string | ||
403 | + ] | ||
404 | + ] [ rdf:type sp:Bind ; | ||
405 | + sp:expression | ||
406 | + [ rdf:type smf:cast ; | ||
407 | + arg:datatype xsd:string ; | ||
408 | + sp:arg1 [ sp:varName "dateStart"^^xsd:string | ||
409 | + ] | ||
410 | + ] ; | ||
411 | + sp:variable | ||
412 | + [ sp:varName "start2"^^xsd:string | ||
413 | + ] | ||
414 | + ] [ rdf:type sp:Bind ; | ||
415 | + sp:expression | ||
416 | + [ rdf:type smf:cast ; | ||
417 | + arg:datatype xsd:string ; | ||
418 | + sp:arg1 [ sp:varName "dTimEnd"^^xsd:string | ||
419 | + ] | ||
420 | + ] ; | ||
421 | + sp:variable | ||
422 | + [ sp:varName "end1"^^xsd:string | ||
423 | + ] | ||
424 | + ] [ rdf:type sp:Bind ; | ||
425 | + sp:expression | ||
426 | + [ rdf:type smf:cast ; | ||
427 | + arg:datatype xsd:string ; | ||
428 | + sp:arg1 [ sp:varName "dateEnd"^^xsd:string | ||
429 | + ] | ||
430 | + ] ; | ||
431 | + sp:variable | ||
432 | + [ sp:varName "end2"^^xsd:string | ||
433 | + ] | ||
434 | + ]) | ||
435 | + ] ; | ||
436 | + spin:rule | ||
437 | + [ rdf:type sp:Construct ; | ||
438 | + rdfs:comment "STEP 80003c Assign temporal parts of parameterSet facility to parameter elements"^^xsd:string ; | ||
23 | sp:templates ([ sp:object | 439 | sp:templates ([ sp:object |
24 | - [ sp:varName "flowingStateType"^^xsd:string | 440 | + [ sp:varName "parameterRef"^^xsd:string |
25 | ] ; | 441 | ] ; |
26 | - sp:predicate rdf:type ; | 442 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
27 | sp:subject | 443 | sp:subject |
28 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 444 | + [ sp:varName "parameterFacility"^^xsd:string |
445 | + ] | ||
446 | + ] [ sp:object "80003c" ; | ||
447 | + sp:predicate rdfs:label ; | ||
448 | + sp:subject | ||
449 | + [ sp:varName "parameterFacility"^^xsd:string | ||
29 | ] | 450 | ] |
30 | ]) ; | 451 | ]) ; |
31 | - sp:where ([ sp:object | 452 | + sp:where ([ sp:object spin:_this ; |
32 | - [ sp:varName "parameterRef"^^xsd:string | ||
33 | - ] ; | ||
34 | - sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | ||
35 | - sp:subject spin:_this | ||
36 | - ] [ sp:object | ||
37 | - [ sp:varName "parameterRef"^^xsd:string | ||
38 | - ] ; | ||
39 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 453 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
40 | sp:subject | 454 | sp:subject |
41 | - [ sp:varName "temporalPartOfASpatialPart"^^xsd:string | 455 | + [ sp:varName "parameterSetFacility"^^xsd:string |
42 | ] | 456 | ] |
43 | ] [ sp:object | 457 | ] [ sp:object |
44 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 458 | + [ sp:varName "classOfParameterSetFacility"^^xsd:string |
45 | ] ; | 459 | ] ; |
46 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; | 460 | + sp:predicate rdf:type ; |
47 | sp:subject | 461 | sp:subject |
48 | - [ sp:varName "temporalPartOfASpatialPart"^^xsd:string | 462 | + [ sp:varName "parameterSetFacility"^^xsd:string |
49 | ] | 463 | ] |
50 | ] [ sp:object | 464 | ] [ sp:object |
51 | - [ sp:varName "nameRef"^^xsd:string | 465 | + [ sp:varName "classOfParameterSetFacility"^^xsd:string |
52 | ] ; | 466 | ] ; |
53 | - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | 467 | + sp:predicate rdf:type ; |
54 | - sp:subject spin:_this | 468 | + sp:subject |
469 | + [ sp:varName "parameterFacility"^^xsd:string | ||
470 | + ] | ||
55 | ] [ sp:object | 471 | ] [ sp:object |
56 | - [ sp:varName "nameRef"^^xsd:string | 472 | + [ sp:varName "intervalStartString"^^xsd:string |
57 | ] ; | 473 | ] ; |
58 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#flowingStateMapsToMPREnumeration> ; | 474 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
59 | sp:subject | 475 | sp:subject |
60 | - [ sp:varName "flowingStateType"^^xsd:string | 476 | + [ sp:varName "parameterFacility"^^xsd:string |
61 | ] | 477 | ] |
62 | - ]) | 478 | + ] [ sp:object |
63 | - ] ; | 479 | + [ sp:varName "intervalEndString"^^xsd:string |
64 | - spin:rule | 480 | + ] ; |
65 | - [ rdf:type sp:Construct ; | 481 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
66 | - rdfs:comment "STEP 80002a Measurement qualifier specified"^^xsd:string ; | ||
67 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ; | ||
68 | - sp:predicate rdf:type ; | ||
69 | sp:subject | 482 | sp:subject |
70 | - [ sp:varName "temporalPart"^^xsd:string | 483 | + [ sp:varName "parameterFacility"^^xsd:string |
71 | ] | 484 | ] |
72 | ] [ sp:object | 485 | ] [ sp:object |
73 | - [ sp:varName "measuredQualityType"^^xsd:string | 486 | + [ sp:varName "parameterSetFacility"^^xsd:string |
74 | ] ; | 487 | ] ; |
75 | - sp:predicate rdf:type ; | 488 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
76 | sp:subject | 489 | sp:subject |
77 | - [ sp:varName "temporalPart"^^xsd:string | 490 | + [ sp:varName "parameterFacility"^^xsd:string |
78 | ] | 491 | ] |
79 | - ]) ; | ||
80 | - sp:where ([ sp:object | ||
81 | - [ sp:varName "qualifierRef"^^xsd:string | ||
82 | - ] ; | ||
83 | - sp:predicate <http://www.epim.no/schemas/mprml/1#qualifierRef> ; | ||
84 | - sp:subject spin:_this | ||
85 | ] [ sp:object | 492 | ] [ sp:object |
86 | [ sp:varName "parameterRef"^^xsd:string | 493 | [ sp:varName "parameterRef"^^xsd:string |
87 | ] ; | 494 | ] ; |
88 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | 495 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
89 | sp:subject spin:_this | 496 | sp:subject spin:_this |
90 | ] [ sp:object | 497 | ] [ sp:object |
498 | + [ sp:varName "intervalStart"^^xsd:string | ||
499 | + ] ; | ||
500 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | ||
501 | + sp:subject | ||
91 | [ sp:varName "parameterRef"^^xsd:string | 502 | [ sp:varName "parameterRef"^^xsd:string |
503 | + ] | ||
504 | + ] [ sp:object | ||
505 | + [ sp:varName "intervalEnd"^^xsd:string | ||
92 | ] ; | 506 | ] ; |
93 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 507 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; |
94 | sp:subject | 508 | sp:subject |
95 | - [ sp:varName "temporalPart"^^xsd:string | 509 | + [ sp:varName "parameterRef"^^xsd:string |
96 | ] | 510 | ] |
97 | ] [ rdf:type sp:Bind ; | 511 | ] [ rdf:type sp:Bind ; |
98 | sp:expression | 512 | sp:expression |
99 | - [ rdf:type ep-mpr-spin-lib:selectMeasuredQualityType ; | 513 | + [ rdf:type smf:cast ; |
100 | - sp:arg1 [ sp:varName "qualifierRef"^^xsd:string | 514 | + arg:datatype xsd:string ; |
515 | + sp:arg1 [ sp:varName "intervalStart"^^xsd:string | ||
101 | ] | 516 | ] |
102 | ] ; | 517 | ] ; |
103 | sp:variable | 518 | sp:variable |
104 | - [ sp:varName "measuredQualityType"^^xsd:string | 519 | + [ sp:varName "intervalStartString"^^xsd:string |
520 | + ] | ||
521 | + ] [ rdf:type sp:Bind ; | ||
522 | + sp:expression | ||
523 | + [ rdf:type smf:cast ; | ||
524 | + arg:datatype xsd:string ; | ||
525 | + sp:arg1 [ sp:varName "intervalEnd"^^xsd:string | ||
526 | + ] | ||
527 | + ] ; | ||
528 | + sp:variable | ||
529 | + [ sp:varName "intervalEndString"^^xsd:string | ||
105 | ] | 530 | ] |
106 | ]) | 531 | ]) |
107 | ] ; | 532 | ] ; |
108 | spin:rule | 533 | spin:rule |
109 | [ rdf:type sp:Construct ; | 534 | [ rdf:type sp:Construct ; |
110 | - rdfs:comment "STEP 80001a Create temporal parts corresponding to the parameter period"^^xsd:string ; | 535 | + rdfs:comment "STEP 80006 Set flowing or not-flowing state"^^xsd:string ; |
111 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | 536 | + sp:templates ([ sp:object |
537 | + [ sp:varName "flowingStateType"^^xsd:string | ||
538 | + ] ; | ||
112 | sp:predicate rdf:type ; | 539 | sp:predicate rdf:type ; |
113 | - sp:subject _:b1 | 540 | + sp:subject |
114 | - ] [ sp:object | ||
115 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 541 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
542 | + ] | ||
543 | + ]) ; | ||
544 | + sp:where ([ sp:object | ||
545 | + [ sp:varName "parameterRef"^^xsd:string | ||
116 | ] ; | 546 | ] ; |
117 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 547 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
118 | - sp:subject _:b1 | 548 | + sp:subject spin:_this |
119 | ] [ sp:object | 549 | ] [ sp:object |
120 | - [ sp:varName "spatialPart"^^xsd:string | 550 | + [ sp:varName "parameterRef"^^xsd:string |
121 | ] ; | 551 | ] ; |
122 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 552 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
123 | - sp:subject _:b2 | 553 | + sp:subject |
554 | + [ sp:varName "parameterFacility"^^xsd:string | ||
555 | + ] | ||
124 | ] [ sp:object | 556 | ] [ sp:object |
125 | - [ sp:varName "classOfSpatialPart"^^xsd:string | 557 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
126 | ] ; | 558 | ] ; |
127 | - sp:predicate rdf:type ; | ||
128 | - sp:subject _:b2 | ||
129 | - ] [ sp:object _:b1 ; | ||
130 | sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; | 559 | sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; |
131 | - sp:subject _:b2 | 560 | + sp:subject |
561 | + [ sp:varName "parameterFacility"^^xsd:string | ||
562 | + ] | ||
132 | ] [ sp:object | 563 | ] [ sp:object |
133 | - [ sp:varName "parameterRef"^^xsd:string | 564 | + [ sp:varName "nameRef"^^xsd:string |
565 | + ] ; | ||
566 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | ||
567 | + sp:subject spin:_this | ||
568 | + ] [ sp:object | ||
569 | + [ sp:varName "nameRef"^^xsd:string | ||
134 | ] ; | 570 | ] ; |
571 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#flowingStateMapsToMPREnumeration> ; | ||
572 | + sp:subject | ||
573 | + [ sp:varName "flowingStateType"^^xsd:string | ||
574 | + ] | ||
575 | + ]) | ||
576 | + ] ; | ||
577 | + spin:rule | ||
578 | + [ rdf:type sp:Construct ; | ||
579 | + rdfs:comment "STEP 80000c Create the spatial parts that have the parameterSet property"^^xsd:string ; | ||
580 | + sp:templates ([ sp:object spin:_this ; | ||
135 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 581 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
136 | - sp:subject _:b2 | 582 | + sp:subject |
583 | + [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string | ||
584 | + ] | ||
137 | ]) ; | 585 | ]) ; |
138 | sp:where ([ sp:object spin:_this ; | 586 | sp:where ([ sp:object spin:_this ; |
139 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterSetRef> ; | 587 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterSetRef> ; |
... | @@ -152,10 +600,19 @@ | ... | @@ -152,10 +600,19 @@ |
152 | sp:subject | 600 | sp:subject |
153 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 601 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
154 | ] | 602 | ] |
155 | - ] [ sp:object spin:_this ; | 603 | + ] [ sp:object |
156 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 604 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
605 | + ] ; | ||
606 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; | ||
607 | + sp:subject | ||
608 | + [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string | ||
609 | + ] | ||
610 | + ] [ sp:object | ||
611 | + [ sp:varName "classOfSpatialPart"^^xsd:string | ||
612 | + ] ; | ||
613 | + sp:predicate rdf:type ; | ||
157 | sp:subject | 614 | sp:subject |
158 | - [ sp:varName "spatialPart"^^xsd:string | 615 | + [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string |
159 | ] | 616 | ] |
160 | ] [ sp:object | 617 | ] [ sp:object |
161 | [ sp:varName "nameRef"^^xsd:string | 618 | [ sp:varName "nameRef"^^xsd:string |
... | @@ -169,67 +626,83 @@ | ... | @@ -169,67 +626,83 @@ |
169 | sp:subject | 626 | sp:subject |
170 | [ sp:varName "classOfSpatialPart"^^xsd:string | 627 | [ sp:varName "classOfSpatialPart"^^xsd:string |
171 | ] | 628 | ] |
629 | + ] [ rdf:type sp:NotExists ; | ||
630 | + sp:elements ([ sp:object | ||
631 | + [ sp:varName "classOfSpatialPart"^^xsd:string | ||
632 | + ] ; | ||
633 | + sp:predicate rdf:type ; | ||
634 | + sp:subject | ||
635 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
636 | + ] | ||
637 | + ]) | ||
638 | + ]) | ||
639 | + ] ; | ||
640 | + spin:rule | ||
641 | + [ rdf:type sp:Construct ; | ||
642 | + rdfs:comment "STEP 80004a Measurement qualifier specified"^^xsd:string ; | ||
643 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ; | ||
644 | + sp:predicate rdf:type ; | ||
645 | + sp:subject | ||
646 | + [ sp:varName "parameterFacility"^^xsd:string | ||
647 | + ] | ||
648 | + ] [ sp:object | ||
649 | + [ sp:varName "measuredQualityType"^^xsd:string | ||
650 | + ] ; | ||
651 | + sp:predicate rdf:type ; | ||
652 | + sp:subject | ||
653 | + [ sp:varName "parameterFacility"^^xsd:string | ||
654 | + ] | ||
655 | + ]) ; | ||
656 | + sp:where ([ sp:object | ||
657 | + [ sp:varName "qualifierRef"^^xsd:string | ||
658 | + ] ; | ||
659 | + sp:predicate <http://www.epim.no/schemas/mprml/1#qualifierRef> ; | ||
660 | + sp:subject spin:_this | ||
172 | ] [ sp:object | 661 | ] [ sp:object |
173 | [ sp:varName "parameterRef"^^xsd:string | 662 | [ sp:varName "parameterRef"^^xsd:string |
174 | ] ; | 663 | ] ; |
175 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | 664 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
176 | sp:subject spin:_this | 665 | sp:subject spin:_this |
177 | - ] [ rdf:type sp:Exists ; | 666 | + ] [ sp:object |
178 | - sp:elements ([ rdf:type sp:Union ; | 667 | + [ sp:varName "parameterRef"^^xsd:string |
179 | - sp:elements (([ sp:object | 668 | + ] ; |
180 | - [ sp:varName "dTim"^^xsd:string | 669 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
181 | - ] ; | 670 | + sp:subject |
182 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ; | 671 | + [ sp:varName "parameterFacility"^^xsd:string |
183 | - sp:subject | 672 | + ] |
184 | - [ sp:varName "parameterRef"^^xsd:string | 673 | + ] [ rdf:type sp:Bind ; |
185 | - ] | 674 | + sp:expression |
186 | - ]) ([ sp:object | 675 | + [ rdf:type ep-mpr-spin-lib:selectMeasuredQualityType ; |
187 | - [ sp:varName "dTimStart"^^xsd:string | 676 | + sp:arg1 [ sp:varName "qualifierRef"^^xsd:string |
188 | - ] ; | 677 | + ] |
189 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; | 678 | + ] ; |
190 | - sp:subject | 679 | + sp:variable |
191 | - [ sp:varName "parameterRef"^^xsd:string | 680 | + [ sp:varName "measuredQualityType"^^xsd:string |
192 | - ] | 681 | + ] |
193 | - ]) ([ sp:object | ||
194 | - [ sp:varName "dTimEnd"^^xsd:string | ||
195 | - ] ; | ||
196 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | ||
197 | - sp:subject | ||
198 | - [ sp:varName "parameterRef"^^xsd:string | ||
199 | - ] | ||
200 | - ]) ([ sp:object | ||
201 | - [ sp:varName "dateStart"^^xsd:string | ||
202 | - ] ; | ||
203 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | ||
204 | - sp:subject | ||
205 | - [ sp:varName "parameterRef"^^xsd:string | ||
206 | - ] | ||
207 | - ]) ([ sp:object | ||
208 | - [ sp:varName "dateEnd"^^xsd:string | ||
209 | - ] ; | ||
210 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
211 | - sp:subject | ||
212 | - [ sp:varName "parameterRef"^^xsd:string | ||
213 | - ] | ||
214 | - ])) | ||
215 | - ]) | ||
216 | ]) | 682 | ]) |
217 | ] ; | 683 | ] ; |
218 | spin:rule | 684 | spin:rule |
219 | [ rdf:type sp:Construct ; | 685 | [ rdf:type sp:Construct ; |
220 | - rdfs:comment "STEP 80001c No temporal part corresponding to the parameter period is necessary"^^xsd:string ; | 686 | + rdfs:comment "STEP 80001c Regularise start and end times - end time inherited from temporal part of production facility"^^xsd:string ; |
221 | sp:templates ([ sp:object | 687 | sp:templates ([ sp:object |
222 | - [ sp:varName "parameterRef"^^xsd:string | 688 | + [ sp:varName "end"^^xsd:string |
223 | ] ; | 689 | ] ; |
224 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 690 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; |
225 | sp:subject | 691 | sp:subject |
226 | - [ sp:varName "spatialPart"^^xsd:string | 692 | + [ sp:varName "parameterRef"^^xsd:string |
227 | ] | 693 | ] |
228 | ]) ; | 694 | ]) ; |
229 | sp:where ([ sp:object spin:_this ; | 695 | sp:where ([ sp:object spin:_this ; |
230 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 696 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
231 | sp:subject | 697 | sp:subject |
232 | - [ sp:varName "spatialPart"^^xsd:string | 698 | + [ sp:varName "parameterSetFacility"^^xsd:string |
699 | + ] | ||
700 | + ] [ sp:object | ||
701 | + [ sp:varName "finishedAt"^^xsd:string | ||
702 | + ] ; | ||
703 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
704 | + sp:subject | ||
705 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
233 | ] | 706 | ] |
234 | ] [ sp:object | 707 | ] [ sp:object |
235 | [ sp:varName "parameterRef"^^xsd:string | 708 | [ sp:varName "parameterRef"^^xsd:string |
... | @@ -239,20 +712,6 @@ | ... | @@ -239,20 +712,6 @@ |
239 | ] [ rdf:type sp:NotExists ; | 712 | ] [ rdf:type sp:NotExists ; |
240 | sp:elements ([ rdf:type sp:Union ; | 713 | sp:elements ([ rdf:type sp:Union ; |
241 | sp:elements (([ sp:object | 714 | sp:elements (([ sp:object |
242 | - [ sp:varName "dTim"^^xsd:string | ||
243 | - ] ; | ||
244 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ; | ||
245 | - sp:subject | ||
246 | - [ sp:varName "parameterRef"^^xsd:string | ||
247 | - ] | ||
248 | - ]) ([ sp:object | ||
249 | - [ sp:varName "dTimStart"^^xsd:string | ||
250 | - ] ; | ||
251 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; | ||
252 | - sp:subject | ||
253 | - [ sp:varName "parameterRef"^^xsd:string | ||
254 | - ] | ||
255 | - ]) ([ sp:object | ||
256 | [ sp:varName "dTimEnd"^^xsd:string | 715 | [ sp:varName "dTimEnd"^^xsd:string |
257 | ] ; | 716 | ] ; |
258 | sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | 717 | sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; |
... | @@ -260,13 +719,6 @@ | ... | @@ -260,13 +719,6 @@ |
260 | [ sp:varName "parameterRef"^^xsd:string | 719 | [ sp:varName "parameterRef"^^xsd:string |
261 | ] | 720 | ] |
262 | ]) ([ sp:object | 721 | ]) ([ sp:object |
263 | - [ sp:varName "dateStart"^^xsd:string | ||
264 | - ] ; | ||
265 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | ||
266 | - sp:subject | ||
267 | - [ sp:varName "parameterRef"^^xsd:string | ||
268 | - ] | ||
269 | - ]) ([ sp:object | ||
270 | [ sp:varName "dateEnd"^^xsd:string | 722 | [ sp:varName "dateEnd"^^xsd:string |
271 | ] ; | 723 | ] ; |
272 | sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | 724 | sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; |
... | @@ -275,17 +727,85 @@ | ... | @@ -275,17 +727,85 @@ |
275 | ] | 727 | ] |
276 | ])) | 728 | ])) |
277 | ]) | 729 | ]) |
730 | + ] [ rdf:type sp:Bind ; | ||
731 | + sp:expression | ||
732 | + [ rdf:type smf:cast ; | ||
733 | + arg:datatype xsd:string ; | ||
734 | + sp:arg1 [ sp:varName "finishedAt"^^xsd:string | ||
735 | + ] | ||
736 | + ] ; | ||
737 | + sp:variable | ||
738 | + [ sp:varName "end"^^xsd:string | ||
739 | + ] | ||
740 | + ]) | ||
741 | + ] ; | ||
742 | + spin:rule | ||
743 | + [ rdf:type sp:Construct ; | ||
744 | + rdfs:comment "STEP 80003d No temporal part of the parameterSetFacility is required"^^xsd:string ; | ||
745 | + sp:templates ([ sp:object | ||
746 | + [ sp:varName "parameterRef"^^xsd:string | ||
747 | + ] ; | ||
748 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
749 | + sp:subject | ||
750 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
751 | + ] | ||
752 | + ]) ; | ||
753 | + sp:where ([ sp:object spin:_this ; | ||
754 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
755 | + sp:subject | ||
756 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
757 | + ] | ||
758 | + ] [ sp:object | ||
759 | + [ sp:varName "classOfParameterSetFacility"^^xsd:string | ||
760 | + ] ; | ||
761 | + sp:predicate rdf:type ; | ||
762 | + sp:subject | ||
763 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
764 | + ] | ||
765 | + ] [ sp:object | ||
766 | + [ sp:varName "parameterRef"^^xsd:string | ||
767 | + ] ; | ||
768 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | ||
769 | + sp:subject spin:_this | ||
770 | + ] [ sp:object | ||
771 | + [ sp:varName "intervalStart"^^xsd:string | ||
772 | + ] ; | ||
773 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | ||
774 | + sp:subject | ||
775 | + [ sp:varName "parameterRef"^^xsd:string | ||
776 | + ] | ||
777 | + ] [ sp:object | ||
778 | + [ sp:varName "intervalEnd"^^xsd:string | ||
779 | + ] ; | ||
780 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; | ||
781 | + sp:subject | ||
782 | + [ sp:varName "parameterRef"^^xsd:string | ||
783 | + ] | ||
784 | + ] [ sp:object | ||
785 | + [ sp:varName "intervalStart"^^xsd:string | ||
786 | + ] ; | ||
787 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
788 | + sp:subject | ||
789 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
790 | + ] | ||
791 | + ] [ sp:object | ||
792 | + [ sp:varName "intervalEnd"^^xsd:string | ||
793 | + ] ; | ||
794 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
795 | + sp:subject | ||
796 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
797 | + ] | ||
278 | ]) | 798 | ]) |
279 | ] ; | 799 | ] ; |
280 | spin:rule | 800 | spin:rule |
281 | [ rdf:type sp:Construct ; | 801 | [ rdf:type sp:Construct ; |
282 | - rdfs:comment "STEP 80003 Assign parameter value"^^xsd:string ; | 802 | + rdfs:comment "STEP 80005 Assign parameter value"^^xsd:string ; |
283 | sp:templates ([ sp:object _:b3 ; | 803 | sp:templates ([ sp:object _:b3 ; |
284 | sp:predicate | 804 | sp:predicate |
285 | [ sp:varName "propertyType"^^xsd:string | 805 | [ sp:varName "propertyType"^^xsd:string |
286 | ] ; | 806 | ] ; |
287 | sp:subject | 807 | sp:subject |
288 | - [ sp:varName "temporalPart"^^xsd:string | 808 | + [ sp:varName "parameterFacility"^^xsd:string |
289 | ] | 809 | ] |
290 | ] [ sp:object | 810 | ] [ sp:object |
291 | [ sp:varName "quantityType"^^xsd:string | 811 | [ sp:varName "quantityType"^^xsd:string |
... | @@ -329,7 +849,7 @@ | ... | @@ -329,7 +849,7 @@ |
329 | ] ; | 849 | ] ; |
330 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 850 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
331 | sp:subject | 851 | sp:subject |
332 | - [ sp:varName "temporalPart"^^xsd:string | 852 | + [ sp:varName "parameterFacility"^^xsd:string |
333 | ] | 853 | ] |
334 | ] [ sp:object | 854 | ] [ sp:object |
335 | [ sp:varName "measureValueRef"^^xsd:string | 855 | [ sp:varName "measureValueRef"^^xsd:string |
... | @@ -367,224 +887,218 @@ | ... | @@ -367,224 +887,218 @@ |
367 | ] ; | 887 | ] ; |
368 | spin:rule | 888 | spin:rule |
369 | [ rdf:type sp:Construct ; | 889 | [ rdf:type sp:Construct ; |
370 | - rdfs:comment "STEP 80000 Create the object that has the parameterSet property - either for all of its life or for a temporal part"^^xsd:string ; | 890 | + rdfs:comment "STEP 80004b Measurement qualifier not specified"^^xsd:string ; |
371 | - sp:templates ([ sp:object | 891 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ; |
372 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
373 | - ] ; | ||
374 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; | ||
375 | - sp:subject _:b4 | ||
376 | - ] [ sp:object | ||
377 | - [ sp:varName "classOfSpatialPart"^^xsd:string | ||
378 | - ] ; | ||
379 | sp:predicate rdf:type ; | 892 | sp:predicate rdf:type ; |
380 | - sp:subject _:b4 | ||
381 | - ] [ sp:object spin:_this ; | ||
382 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
383 | - sp:subject _:b4 | ||
384 | - ]) ; | ||
385 | - sp:where ([ sp:object spin:_this ; | ||
386 | - sp:predicate <http://www.epim.no/schemas/mprml/1#parameterSetRef> ; | ||
387 | sp:subject | 893 | sp:subject |
388 | - [ sp:varName "facilityRef"^^xsd:string | 894 | + [ sp:varName "parameterFacility"^^xsd:string |
389 | - ] | ||
390 | - ] [ sp:object | ||
391 | - [ sp:varName "facilityRef"^^xsd:string | ||
392 | - ] ; | ||
393 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
394 | - sp:subject | ||
395 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
396 | ] | 895 | ] |
397 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | 896 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#ValidlyMeasuredState> ; |
398 | sp:predicate rdf:type ; | 897 | sp:predicate rdf:type ; |
399 | sp:subject | 898 | sp:subject |
400 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 899 | + [ sp:varName "parameterFacility"^^xsd:string |
401 | ] | 900 | ] |
901 | + ]) ; | ||
902 | + sp:where ([ rdf:type sp:NotExists ; | ||
903 | + sp:elements ([ sp:object | ||
904 | + [ sp:varName "qualifierRef"^^xsd:string | ||
905 | + ] ; | ||
906 | + sp:predicate <http://www.epim.no/schemas/mprml/1#qualifierRef> ; | ||
907 | + sp:subject spin:_this | ||
908 | + ]) | ||
402 | ] [ sp:object | 909 | ] [ sp:object |
403 | - [ sp:varName "nameRef"^^xsd:string | 910 | + [ sp:varName "parameterRef"^^xsd:string |
404 | ] ; | 911 | ] ; |
405 | - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | 912 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
406 | sp:subject spin:_this | 913 | sp:subject spin:_this |
407 | ] [ sp:object | 914 | ] [ sp:object |
408 | - [ sp:varName "nameRef"^^xsd:string | 915 | + [ sp:varName "parameterRef"^^xsd:string |
409 | ] ; | 916 | ] ; |
410 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ; | 917 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
411 | sp:subject | 918 | sp:subject |
412 | - [ sp:varName "classOfSpatialPart"^^xsd:string | 919 | + [ sp:varName "parameterFacility"^^xsd:string |
413 | ] | 920 | ] |
414 | ]) | 921 | ]) |
415 | ] ; | 922 | ] ; |
416 | spin:rule | 923 | spin:rule |
417 | [ rdf:type sp:Construct ; | 924 | [ rdf:type sp:Construct ; |
418 | - rdfs:comment "STEP 80001b Set the times for the temporal part corresponding to the parameter period"^^xsd:string ; | 925 | + rdfs:comment "STEP 80001b Regularise start and end times - start time inherited from temporal part of production facility"^^xsd:string ; |
419 | sp:templates ([ sp:object | 926 | sp:templates ([ sp:object |
420 | - [ sp:varName "dTim"^^xsd:string | 927 | + [ sp:varName "start"^^xsd:string |
421 | ] ; | 928 | ] ; |
422 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; | 929 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; |
423 | sp:subject | 930 | sp:subject |
424 | - [ sp:varName "temporalPartOfASpatialPart"^^xsd:string | 931 | + [ sp:varName "parameterRef"^^xsd:string |
425 | ] | 932 | ] |
426 | - ] [ sp:object | 933 | + ]) ; |
427 | - [ sp:varName "dTimStart"^^xsd:string | 934 | + sp:where ([ sp:object spin:_this ; |
428 | - ] ; | 935 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
429 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
430 | sp:subject | 936 | sp:subject |
431 | - [ sp:varName "temporalPartOfASpatialPart"^^xsd:string | 937 | + [ sp:varName "parameterSetFacility"^^xsd:string |
432 | ] | 938 | ] |
433 | ] [ sp:object | 939 | ] [ sp:object |
434 | - [ sp:varName "dateStart"^^xsd:string | 940 | + [ sp:varName "startedAt"^^xsd:string |
435 | ] ; | 941 | ] ; |
436 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 942 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
437 | sp:subject | 943 | sp:subject |
438 | - [ sp:varName "temporalPartOfASpatialPart"^^xsd:string | 944 | + [ sp:varName "parameterSetFacility"^^xsd:string |
439 | ] | 945 | ] |
440 | ] [ sp:object | 946 | ] [ sp:object |
441 | - [ sp:varName "dTimEnd"^^xsd:string | 947 | + [ sp:varName "parameterRef"^^xsd:string |
442 | ] ; | 948 | ] ; |
443 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 949 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
444 | - sp:subject | 950 | + sp:subject spin:_this |
445 | - [ sp:varName "temporalPartOfASpatialPart"^^xsd:string | 951 | + ] [ rdf:type sp:NotExists ; |
952 | + sp:elements ([ rdf:type sp:Union ; | ||
953 | + sp:elements (([ sp:object | ||
954 | + [ sp:varName "dTimStart"^^xsd:string | ||
955 | + ] ; | ||
956 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; | ||
957 | + sp:subject | ||
958 | + [ sp:varName "parameterRef"^^xsd:string | ||
959 | + ] | ||
960 | + ]) ([ sp:object | ||
961 | + [ sp:varName "dateStart"^^xsd:string | ||
962 | + ] ; | ||
963 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | ||
964 | + sp:subject | ||
965 | + [ sp:varName "parameterRef"^^xsd:string | ||
966 | + ] | ||
967 | + ])) | ||
968 | + ]) | ||
969 | + ] [ rdf:type sp:Bind ; | ||
970 | + sp:expression | ||
971 | + [ rdf:type smf:cast ; | ||
972 | + arg:datatype xsd:string ; | ||
973 | + sp:arg1 [ sp:varName "startedAt"^^xsd:string | ||
974 | + ] | ||
975 | + ] ; | ||
976 | + sp:variable | ||
977 | + [ sp:varName "start"^^xsd:string | ||
446 | ] | 978 | ] |
979 | + ]) | ||
980 | + ] ; | ||
981 | + spin:rule | ||
982 | + [ rdf:type sp:Construct ; | ||
983 | + rdfs:comment "STEP 80003b Create temporal parts of parameterSet facility corresponding to the start and end without duplicates"^^xsd:string ; | ||
984 | + sp:templates ([ sp:object | ||
985 | + [ sp:varName "classOfParameterSetFacility"^^xsd:string | ||
986 | + ] ; | ||
987 | + sp:predicate rdf:type ; | ||
988 | + sp:subject _:b4 | ||
989 | + ] [ sp:object | ||
990 | + [ sp:varName "intervalStart"^^xsd:string | ||
991 | + ] ; | ||
992 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
993 | + sp:subject _:b4 | ||
447 | ] [ sp:object | 994 | ] [ sp:object |
448 | - [ sp:varName "dateEnd"^^xsd:string | 995 | + [ sp:varName "intervalEnd"^^xsd:string |
449 | ] ; | 996 | ] ; |
450 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 997 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
451 | - sp:subject | 998 | + sp:subject _:b4 |
452 | - [ sp:varName "temporalPartOfASpatialPart"^^xsd:string | ||
453 | - ] | ||
454 | ] [ sp:object | 999 | ] [ sp:object |
455 | - [ sp:varName "dTim"^^xsd:string | 1000 | + [ sp:varName "parameterSetFacility"^^xsd:string |
456 | ] ; | 1001 | ] ; |
457 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; | 1002 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
1003 | + sp:subject _:b4 | ||
1004 | + ]) ; | ||
1005 | + sp:where ([ sp:object spin:_this ; | ||
1006 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
458 | sp:subject | 1007 | sp:subject |
459 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 1008 | + [ sp:varName "parameterSetFacility"^^xsd:string |
460 | ] | 1009 | ] |
461 | ] [ sp:object | 1010 | ] [ sp:object |
462 | - [ sp:varName "dTimStart"^^xsd:string | 1011 | + [ sp:varName "classOfParameterSetFacility"^^xsd:string |
463 | ] ; | 1012 | ] ; |
464 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 1013 | + sp:predicate rdf:type ; |
465 | sp:subject | 1014 | sp:subject |
466 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 1015 | + [ sp:varName "parameterSetFacility"^^xsd:string |
467 | ] | 1016 | ] |
468 | ] [ sp:object | 1017 | ] [ sp:object |
469 | - [ sp:varName "dateStart"^^xsd:string | 1018 | + [ sp:varName "intervalString"^^xsd:string |
470 | ] ; | 1019 | ] ; |
471 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 1020 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#necessaryIntervalString> ; |
472 | sp:subject | 1021 | sp:subject |
473 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 1022 | + [ sp:varName "parameterSetFacility"^^xsd:string |
474 | ] | 1023 | ] |
475 | - ] [ sp:object | 1024 | + ] [ rdf:type sp:Bind ; |
476 | - [ sp:varName "dTimEnd"^^xsd:string | 1025 | + sp:expression |
1026 | + [ rdf:type afn:substr ; | ||
1027 | + sp:arg1 [ sp:varName "intervalString"^^xsd:string | ||
1028 | + ] ; | ||
1029 | + sp:arg2 0 ; | ||
1030 | + sp:arg3 [ rdf:type smf:indexOf ; | ||
1031 | + sp:arg1 [ sp:varName "intervalString"^^xsd:string | ||
1032 | + ] ; | ||
1033 | + sp:arg2 "$" | ||
1034 | + ] | ||
477 | ] ; | 1035 | ] ; |
478 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 1036 | + sp:variable |
479 | - sp:subject | 1037 | + [ sp:varName "intervalStart"^^xsd:string |
480 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
481 | ] | 1038 | ] |
482 | - ] [ sp:object | 1039 | + ] [ rdf:type sp:Bind ; |
483 | - [ sp:varName "dateEnd"^^xsd:string | 1040 | + sp:expression |
1041 | + [ rdf:type afn:substr ; | ||
1042 | + sp:arg1 [ rdf:type afn:substr ; | ||
1043 | + sp:arg1 [ sp:varName "intervalString"^^xsd:string | ||
1044 | + ] ; | ||
1045 | + sp:arg2 [ rdf:type smf:indexOf ; | ||
1046 | + sp:arg1 [ sp:varName "intervalString"^^xsd:string | ||
1047 | + ] ; | ||
1048 | + sp:arg2 "$" | ||
1049 | + ] | ||
1050 | + ] ; | ||
1051 | + sp:arg2 1 | ||
484 | ] ; | 1052 | ] ; |
485 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 1053 | + sp:variable |
1054 | + [ sp:varName "intervalEnd"^^xsd:string | ||
1055 | + ] | ||
1056 | + ]) | ||
1057 | + ] ; | ||
1058 | + spin:rule | ||
1059 | + [ rdf:type sp:Construct ; | ||
1060 | + rdfs:comment "STEP 80000d The whole production facility has the parameterSet property"^^xsd:string ; | ||
1061 | + sp:templates ([ sp:object spin:_this ; | ||
1062 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
486 | sp:subject | 1063 | sp:subject |
487 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 1064 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
488 | ] | 1065 | ] |
489 | ]) ; | 1066 | ]) ; |
490 | - sp:where ([ sp:object | 1067 | + sp:where ([ sp:object spin:_this ; |
491 | - [ sp:varName "parameterRef"^^xsd:string | 1068 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterSetRef> ; |
492 | - ] ; | ||
493 | - sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | ||
494 | - sp:subject spin:_this | ||
495 | - ] [ sp:object | ||
496 | - [ sp:varName "parameterRef"^^xsd:string | ||
497 | - ] ; | ||
498 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
499 | sp:subject | 1069 | sp:subject |
500 | - [ sp:varName "temporalPartOfASpatialPart"^^xsd:string | 1070 | + [ sp:varName "facilityRef"^^xsd:string |
501 | ] | 1071 | ] |
502 | ] [ sp:object | 1072 | ] [ sp:object |
503 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 1073 | + [ sp:varName "facilityRef"^^xsd:string |
504 | ] ; | 1074 | ] ; |
505 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; | 1075 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
506 | - sp:subject | ||
507 | - [ sp:varName "temporalPartOfASpatialPart"^^xsd:string | ||
508 | - ] | ||
509 | - ] [ rdf:type sp:Optional ; | ||
510 | - sp:elements ([ sp:object | ||
511 | - [ sp:varName "dTim"^^xsd:string | ||
512 | - ] ; | ||
513 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ; | ||
514 | - sp:subject | ||
515 | - [ sp:varName "parameterRef"^^xsd:string | ||
516 | - ] | ||
517 | - ]) | ||
518 | - ] [ rdf:type sp:Optional ; | ||
519 | - sp:elements ([ sp:object | ||
520 | - [ sp:varName "dTimStart"^^xsd:string | ||
521 | - ] ; | ||
522 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; | ||
523 | - sp:subject | ||
524 | - [ sp:varName "parameterRef"^^xsd:string | ||
525 | - ] | ||
526 | - ]) | ||
527 | - ] [ rdf:type sp:Optional ; | ||
528 | - sp:elements ([ sp:object | ||
529 | - [ sp:varName "dTimEnd"^^xsd:string | ||
530 | - ] ; | ||
531 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | ||
532 | - sp:subject | ||
533 | - [ sp:varName "parameterRef"^^xsd:string | ||
534 | - ] | ||
535 | - ]) | ||
536 | - ] [ rdf:type sp:Optional ; | ||
537 | - sp:elements ([ sp:object | ||
538 | - [ sp:varName "dateStart"^^xsd:string | ||
539 | - ] ; | ||
540 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | ||
541 | - sp:subject | ||
542 | - [ sp:varName "parameterRef"^^xsd:string | ||
543 | - ] | ||
544 | - ]) | ||
545 | - ] [ rdf:type sp:Optional ; | ||
546 | - sp:elements ([ sp:object | ||
547 | - [ sp:varName "dateEnd"^^xsd:string | ||
548 | - ] ; | ||
549 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
550 | - sp:subject | ||
551 | - [ sp:varName "parameterRef"^^xsd:string | ||
552 | - ] | ||
553 | - ]) | ||
554 | - ]) | ||
555 | - ] ; | ||
556 | - spin:rule | ||
557 | - [ rdf:type sp:Construct ; | ||
558 | - rdfs:comment "STEP 80002b Measurement qualifier not specified"^^xsd:string ; | ||
559 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ; | ||
560 | - sp:predicate rdf:type ; | ||
561 | sp:subject | 1076 | sp:subject |
562 | - [ sp:varName "temporalPart"^^xsd:string | 1077 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
563 | ] | 1078 | ] |
564 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#ValidlyMeasuredState> ; | 1079 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; |
565 | sp:predicate rdf:type ; | 1080 | sp:predicate rdf:type ; |
566 | sp:subject | 1081 | sp:subject |
567 | - [ sp:varName "temporalPart"^^xsd:string | 1082 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
568 | ] | 1083 | ] |
569 | - ]) ; | ||
570 | - sp:where ([ rdf:type sp:NotExists ; | ||
571 | - sp:elements ([ sp:object | ||
572 | - [ sp:varName "qualifierRef"^^xsd:string | ||
573 | - ] ; | ||
574 | - sp:predicate <http://www.epim.no/schemas/mprml/1#qualifierRef> ; | ||
575 | - sp:subject spin:_this | ||
576 | - ]) | ||
577 | ] [ sp:object | 1084 | ] [ sp:object |
578 | - [ sp:varName "parameterRef"^^xsd:string | 1085 | + [ sp:varName "nameRef"^^xsd:string |
579 | ] ; | 1086 | ] ; |
580 | - sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | 1087 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; |
581 | sp:subject spin:_this | 1088 | sp:subject spin:_this |
582 | ] [ sp:object | 1089 | ] [ sp:object |
583 | - [ sp:varName "parameterRef"^^xsd:string | 1090 | + [ sp:varName "nameRef"^^xsd:string |
584 | ] ; | 1091 | ] ; |
585 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 1092 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ; |
1093 | + sp:subject | ||
1094 | + [ sp:varName "classOfProductionFacility"^^xsd:string | ||
1095 | + ] | ||
1096 | + ] [ sp:object | ||
1097 | + [ sp:varName "classOfProductionFacility"^^xsd:string | ||
1098 | + ] ; | ||
1099 | + sp:predicate rdf:type ; | ||
586 | sp:subject | 1100 | sp:subject |
587 | - [ sp:varName "temporalPart"^^xsd:string | 1101 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
588 | ] | 1102 | ] |
589 | ]) | 1103 | ]) |
590 | ] . | 1104 | ] . | ... | ... |
-
Please register or login to post a comment