Showing
6 changed files
with
460 additions
and
255 deletions
1 | +# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-approval-v1.1.1 | ||
2 | +# imports: http://spinrdf.org/spin | ||
3 | +# imports: http://www.epim.no/schemas/mprml/1 | ||
4 | +# imports: http://www.reportinghub.no/ep/schema/1.0/production-activity | ||
5 | +# imports: http://www.reportinghub.no/ep/schema/1.0/report | ||
6 | +# imports: http://www.reportinghub.no/ep/transform/transform-helper-schema | ||
7 | + | ||
8 | +@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-approval-v1.1.1#> . | ||
9 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
10 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
11 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
12 | +@prefix sp: <http://spinrdf.org/sp#> . | ||
13 | +@prefix spin: <http://spinrdf.org/spin#> . | ||
14 | +@prefix spl: <http://spinrdf.org/spl#> . | ||
15 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
16 | + | ||
17 | +<http://www.epim.no/schemas/mprml/1#Cs_businessAssociate> | ||
18 | + spin:rule | ||
19 | + [ rdf:type sp:Construct ; | ||
20 | + rdfs:comment "STEP 90200 Set the approver"^^xsd:string ; | ||
21 | + sp:templates ([ sp:object _:b1 ; | ||
22 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#approver> ; | ||
23 | + sp:subject | ||
24 | + [ sp:varName "approveReport"^^xsd:string | ||
25 | + ] | ||
26 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#PersonOrOrganization> ; | ||
27 | + sp:predicate rdf:type ; | ||
28 | + sp:subject _:b1 | ||
29 | + ] [ sp:object | ||
30 | + [ sp:varName "approver"^^xsd:string | ||
31 | + ] ; | ||
32 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
33 | + sp:subject _:b1 | ||
34 | + ]) ; | ||
35 | + sp:where ([ sp:object spin:_this ; | ||
36 | + sp:predicate <http://www.epim.no/schemas/mprml/1#approverRef> ; | ||
37 | + sp:subject | ||
38 | + [ sp:varName "target"^^xsd:string | ||
39 | + ] | ||
40 | + ] [ sp:object | ||
41 | + [ sp:varName "target"^^xsd:string | ||
42 | + ] ; | ||
43 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
44 | + sp:subject | ||
45 | + [ sp:varName "report"^^xsd:string | ||
46 | + ] | ||
47 | + ] [ sp:object | ||
48 | + [ sp:varName "report"^^xsd:string | ||
49 | + ] ; | ||
50 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#approvedReport> ; | ||
51 | + sp:subject | ||
52 | + [ sp:varName "approveReport"^^xsd:string | ||
53 | + ] | ||
54 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#ApproveAReport> ; | ||
55 | + sp:predicate rdf:type ; | ||
56 | + sp:subject | ||
57 | + [ sp:varName "approveReport"^^xsd:string | ||
58 | + ] | ||
59 | + ] [ sp:object spin:_this ; | ||
60 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
61 | + sp:subject | ||
62 | + [ sp:varName "approver"^^xsd:string | ||
63 | + ] | ||
64 | + ]) | ||
65 | + ] . | ||
66 | + | ||
67 | +<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-approval-v1.1.1> | ||
68 | + rdf:type owl:Ontology ; | ||
69 | + owl:imports <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://www.reportinghub.no/ep/schema/1.0/production-activity> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> ; | ||
70 | + owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
1 | +# baseURI: null | ||
2 | + | ||
3 | +@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> . | ||
4 | +@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> . | ||
5 | +@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> . | ||
6 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
7 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
8 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
9 | +@prefix visual: <http://topbraid.org/visual#> . | ||
10 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
11 | + | ||
12 | +[] rdf:type inference:Configuration ; | ||
13 | + composite:child | ||
14 | + [ rdf:type <http://spinrdf.org/spin#TopSPIN> ; | ||
15 | + composite:index "0"^^xsd:int | ||
16 | + ] . |
... | @@ -3,6 +3,7 @@ | ... | @@ -3,6 +3,7 @@ |
3 | # imports: http://www.reportinghub.no/ep/transform/1.0/mpr/injectionTestResults | 3 | # imports: http://www.reportinghub.no/ep/transform/1.0/mpr/injectionTestResults |
4 | # imports: http://www.reportinghub.no/ep/transform/1.0/mpr/productionTestResults | 4 | # imports: http://www.reportinghub.no/ep/transform/1.0/mpr/productionTestResults |
5 | # imports: http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest | 5 | # imports: http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest |
6 | +# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-approval-v1.1.1 | ||
6 | # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1 | 7 | # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1 |
7 | # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1 | 8 | # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1 |
8 | # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1 | 9 | # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1 |
... | @@ -20,6 +21,7 @@ | ... | @@ -20,6 +21,7 @@ |
20 | # imports: http://www.reportinghub.no/ep/transform/transform-helper-schema | 21 | # imports: http://www.reportinghub.no/ep/transform/transform-helper-schema |
21 | 22 | ||
22 | @prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector#> . | 23 | @prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector#> . |
24 | +@prefix TRANSFORM_mpr-approval-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-approval-v1.1.1#> . | ||
23 | @prefix TRANSFORM_mpr-comment-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1#> . | 25 | @prefix TRANSFORM_mpr-comment-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1#> . |
24 | @prefix TRANSFORM_mpr-facility-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facility-v1.0#> . | 26 | @prefix TRANSFORM_mpr-facility-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facility-v1.0#> . |
25 | @prefix TRANSFORM_mpr-facilityIdentifierStructure-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1#> . | 27 | @prefix TRANSFORM_mpr-facilityIdentifierStructure-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1#> . |
... | @@ -48,5 +50,5 @@ | ... | @@ -48,5 +50,5 @@ |
48 | 50 | ||
49 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> | 51 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> |
50 | rdf:type owl:Ontology ; | 52 | rdf:type owl:Ontology ; |
51 | - owl:imports <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionActivity-v1.1.1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-geographicContext-v1.1.1> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> , <http://www.reportinghub.no/ep/transform/1.0/mpr/injectionTestResults> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-weather-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0> , <http://www.reportinghub.no/ep/transform/1.0/mpr/productionTestResults> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-operationalHSEReport-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-installationReport-v1.1.1> ; | 53 | + owl:imports <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionActivity-v1.1.1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-comment-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-geographicContext-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-approval-v1.1.1> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> , <http://www.reportinghub.no/ep/transform/1.0/mpr/injectionTestResults> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-organization-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-weather-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0> , <http://www.reportinghub.no/ep/transform/1.0/mpr/productionTestResults> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-operationalHSEReport-v1.1.1> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-installationReport-v1.1.1> ; |
52 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 54 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
This diff could not be displayed because it is too large.
... | @@ -22,6 +22,271 @@ | ... | @@ -22,6 +22,271 @@ |
22 | <http://www.epim.no/schemas/mprml/1#A_Global-Objects> | 22 | <http://www.epim.no/schemas/mprml/1#A_Global-Objects> |
23 | spin:rule | 23 | spin:rule |
24 | [ rdf:type sp:Construct ; | 24 | [ rdf:type sp:Construct ; |
25 | + rdfs:comment "STEP 40010 Create the ProductionOperationReport; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ; | ||
26 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationReport> ; | ||
27 | + sp:predicate rdf:type ; | ||
28 | + sp:subject _:b1 | ||
29 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#Report> ; | ||
30 | + sp:predicate rdf:type ; | ||
31 | + sp:subject _:b1 | ||
32 | + ] [ sp:object | ||
33 | + [ sp:varName "productionReport"^^xsd:string | ||
34 | + ] ; | ||
35 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; | ||
36 | + sp:subject _:b1 | ||
37 | + ] [ sp:object | ||
38 | + [ sp:varName "name"^^xsd:string | ||
39 | + ] ; | ||
40 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
41 | + sp:subject _:b1 | ||
42 | + ] [ sp:object | ||
43 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
44 | + ] ; | ||
45 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
46 | + sp:subject _:b1 | ||
47 | + ] [ sp:object | ||
48 | + [ sp:varName "reportPeriodType"^^xsd:string | ||
49 | + ] ; | ||
50 | + sp:predicate rdf:type ; | ||
51 | + sp:subject _:b1 | ||
52 | + ] [ sp:object _:b2 ; | ||
53 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
54 | + sp:subject _:b1 | ||
55 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
56 | + sp:predicate rdf:type ; | ||
57 | + sp:subject _:b2 | ||
58 | + ] [ sp:object | ||
59 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
60 | + ] ; | ||
61 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
62 | + sp:subject _:b2 | ||
63 | + ] [ sp:object _:b3 ; | ||
64 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
65 | + sp:subject _:b2 | ||
66 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
67 | + sp:predicate rdf:type ; | ||
68 | + sp:subject _:b3 | ||
69 | + ] [ sp:object | ||
70 | + [ sp:varName "title"^^xsd:string | ||
71 | + ] ; | ||
72 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#title> ; | ||
73 | + sp:subject _:b1 | ||
74 | + ]) ; | ||
75 | + sp:where ([ sp:object spin:_this ; | ||
76 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
77 | + sp:subject | ||
78 | + [ sp:varName "productionReport"^^xsd:string | ||
79 | + ] | ||
80 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; | ||
81 | + sp:predicate rdf:type ; | ||
82 | + sp:subject | ||
83 | + [ sp:varName "productionReport"^^xsd:string | ||
84 | + ] | ||
85 | + ] [ sp:object | ||
86 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
87 | + ] ; | ||
88 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
89 | + sp:subject spin:_this | ||
90 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | ||
91 | + sp:predicate rdf:type ; | ||
92 | + sp:subject | ||
93 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
94 | + ] | ||
95 | + ] [ sp:object | ||
96 | + [ sp:varName "nameRef"^^xsd:string | ||
97 | + ] ; | ||
98 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | ||
99 | + sp:subject | ||
100 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
101 | + ] | ||
102 | + ] [ sp:object | ||
103 | + [ sp:varName "name"^^xsd:string | ||
104 | + ] ; | ||
105 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
106 | + sp:subject | ||
107 | + [ sp:varName "nameRef"^^xsd:string | ||
108 | + ] | ||
109 | + ] [ rdf:type sp:Optional ; | ||
110 | + sp:elements ([ sp:object | ||
111 | + [ sp:varName "periodKindRef"^^xsd:string | ||
112 | + ] ; | ||
113 | + sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ; | ||
114 | + sp:subject | ||
115 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
116 | + ] | ||
117 | + ]) | ||
118 | + ] [ rdf:type sp:Optional ; | ||
119 | + sp:elements ([ sp:object | ||
120 | + [ sp:varName "titleRef"^^xsd:string | ||
121 | + ] ; | ||
122 | + sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ; | ||
123 | + sp:subject | ||
124 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
125 | + ] | ||
126 | + ] [ sp:object | ||
127 | + [ sp:varName "title"^^xsd:string | ||
128 | + ] ; | ||
129 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
130 | + sp:subject | ||
131 | + [ sp:varName "titleRef"^^xsd:string | ||
132 | + ] | ||
133 | + ]) | ||
134 | + ] [ rdf:type sp:Bind ; | ||
135 | + sp:expression | ||
136 | + [ rdf:type ep-mpr-spin-lib:selectReportPeriodType ; | ||
137 | + sp:arg1 [ sp:varName "periodKindRef"^^xsd:string | ||
138 | + ] | ||
139 | + ] ; | ||
140 | + sp:variable | ||
141 | + [ sp:varName "reportPeriodType"^^xsd:string | ||
142 | + ] | ||
143 | + ]) | ||
144 | + ] ; | ||
145 | + spin:rule | ||
146 | + [ rdf:type sp:Construct ; | ||
147 | + rdfs:comment "STEP 40030 Record the start and end date-times"^^xsd:string ; | ||
148 | + sp:templates ([ sp:object | ||
149 | + [ sp:varName "dTimStart"^^xsd:string | ||
150 | + ] ; | ||
151 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
152 | + sp:subject | ||
153 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
154 | + ] | ||
155 | + ] [ sp:object | ||
156 | + [ sp:varName "dTimEnd"^^xsd:string | ||
157 | + ] ; | ||
158 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
159 | + sp:subject | ||
160 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
161 | + ] | ||
162 | + ] [ sp:object | ||
163 | + [ sp:varName "dTimEnd"^^xsd:string | ||
164 | + ] ; | ||
165 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
166 | + sp:subject | ||
167 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
168 | + ] | ||
169 | + ]) ; | ||
170 | + sp:where ([ sp:object | ||
171 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
172 | + ] ; | ||
173 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
174 | + sp:subject spin:_this | ||
175 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | ||
176 | + sp:predicate rdf:type ; | ||
177 | + sp:subject | ||
178 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
179 | + ] | ||
180 | + ] [ sp:object | ||
181 | + [ sp:varName "dTimStart"^^xsd:string | ||
182 | + ] ; | ||
183 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; | ||
184 | + sp:subject | ||
185 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
186 | + ] | ||
187 | + ] [ sp:object | ||
188 | + [ sp:varName "dTimEnd"^^xsd:string | ||
189 | + ] ; | ||
190 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | ||
191 | + sp:subject | ||
192 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
193 | + ] | ||
194 | + ] [ sp:object | ||
195 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
196 | + ] ; | ||
197 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
198 | + sp:subject | ||
199 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
200 | + ] | ||
201 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
202 | + sp:predicate rdf:type ; | ||
203 | + sp:subject | ||
204 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
205 | + ] | ||
206 | + ] [ sp:object | ||
207 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
208 | + ] ; | ||
209 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
210 | + sp:subject | ||
211 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
212 | + ] | ||
213 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
214 | + sp:predicate rdf:type ; | ||
215 | + sp:subject | ||
216 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
217 | + ] | ||
218 | + ]) | ||
219 | + ] ; | ||
220 | + spin:rule | ||
221 | + [ rdf:type sp:Construct ; | ||
222 | + rdfs:comment "STEP 40040 Set the installation"^^xsd:string ; | ||
223 | + sp:templates ([ sp:object | ||
224 | + [ sp:varName "productionFacility"^^xsd:string | ||
225 | + ] ; | ||
226 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
227 | + sp:subject | ||
228 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
229 | + ] | ||
230 | + ] [ sp:object | ||
231 | + [ sp:varName "productionFacility"^^xsd:string | ||
232 | + ] ; | ||
233 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
234 | + sp:subject | ||
235 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
236 | + ] | ||
237 | + ]) ; | ||
238 | + sp:where ([ sp:object | ||
239 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
240 | + ] ; | ||
241 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
242 | + sp:subject spin:_this | ||
243 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | ||
244 | + sp:predicate rdf:type ; | ||
245 | + sp:subject | ||
246 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
247 | + ] | ||
248 | + ] [ sp:object | ||
249 | + [ sp:varName "installationRef"^^xsd:string | ||
250 | + ] ; | ||
251 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
252 | + sp:subject | ||
253 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
254 | + ] | ||
255 | + ] [ sp:object | ||
256 | + [ sp:varName "installationRef"^^xsd:string | ||
257 | + ] ; | ||
258 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
259 | + sp:subject | ||
260 | + [ sp:varName "productionFacility"^^xsd:string | ||
261 | + ] | ||
262 | + ] [ sp:object | ||
263 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
264 | + ] ; | ||
265 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
266 | + sp:subject | ||
267 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
268 | + ] | ||
269 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
270 | + sp:predicate rdf:type ; | ||
271 | + sp:subject | ||
272 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
273 | + ] | ||
274 | + ] [ sp:object | ||
275 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
276 | + ] ; | ||
277 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
278 | + sp:subject | ||
279 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
280 | + ] | ||
281 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
282 | + sp:predicate rdf:type ; | ||
283 | + sp:subject | ||
284 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
285 | + ] | ||
286 | + ]) | ||
287 | + ] ; | ||
288 | + spin:rule | ||
289 | + [ rdf:type sp:Construct ; | ||
25 | rdfs:comment "STEP 40020 Add the report kind ."^^xsd:string ; | 290 | rdfs:comment "STEP 40020 Add the report kind ."^^xsd:string ; |
26 | sp:templates ([ sp:object | 291 | sp:templates ([ sp:object |
27 | [ sp:varName "reportKind"^^xsd:string | 292 | [ sp:varName "reportKind"^^xsd:string |
... | @@ -109,17 +374,21 @@ | ... | @@ -109,17 +374,21 @@ |
109 | ] ; | 374 | ] ; |
110 | spin:rule | 375 | spin:rule |
111 | [ rdf:type sp:Construct ; | 376 | [ rdf:type sp:Construct ; |
112 | - rdfs:comment "STEP 40040 Set the installation"^^xsd:string ; | 377 | + rdfs:comment "STEP 40051 Set the context facility - installation does not exist"^^xsd:string ; |
113 | - sp:templates ([ sp:object | 378 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; |
114 | - [ sp:varName "productionFacility"^^xsd:string | 379 | + sp:predicate rdf:type ; |
380 | + sp:subject _:b4 | ||
381 | + ] [ sp:object | ||
382 | + [ sp:varName "contextFacility"^^xsd:string | ||
115 | ] ; | 383 | ] ; |
384 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
385 | + sp:subject _:b4 | ||
386 | + ] [ sp:object _:b4 ; | ||
116 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 387 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
117 | sp:subject | 388 | sp:subject |
118 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 389 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
119 | ] | 390 | ] |
120 | - ] [ sp:object | 391 | + ] [ sp:object _:b4 ; |
121 | - [ sp:varName "productionFacility"^^xsd:string | ||
122 | - ] ; | ||
123 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 392 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
124 | sp:subject | 393 | sp:subject |
125 | [ sp:varName "productionFacilityToDate"^^xsd:string | 394 | [ sp:varName "productionFacilityToDate"^^xsd:string |
... | @@ -135,7 +404,8 @@ | ... | @@ -135,7 +404,8 @@ |
135 | sp:subject | 404 | sp:subject |
136 | [ sp:varName "productionOperationRef"^^xsd:string | 405 | [ sp:varName "productionOperationRef"^^xsd:string |
137 | ] | 406 | ] |
138 | - ] [ sp:object | 407 | + ] [ rdf:type sp:NotExists ; |
408 | + sp:elements ([ sp:object | ||
139 | [ sp:varName "installationRef"^^xsd:string | 409 | [ sp:varName "installationRef"^^xsd:string |
140 | ] ; | 410 | ] ; |
141 | sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 411 | sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; |
... | @@ -149,8 +419,23 @@ | ... | @@ -149,8 +419,23 @@ |
149 | sp:subject | 419 | sp:subject |
150 | [ sp:varName "productionFacility"^^xsd:string | 420 | [ sp:varName "productionFacility"^^xsd:string |
151 | ] | 421 | ] |
422 | + ]) | ||
152 | ] [ sp:object | 423 | ] [ sp:object |
424 | + [ sp:varName "contextFacilityRef"^^xsd:string | ||
425 | + ] ; | ||
426 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; | ||
427 | + sp:subject | ||
153 | [ sp:varName "productionOperationRef"^^xsd:string | 428 | [ sp:varName "productionOperationRef"^^xsd:string |
429 | + ] | ||
430 | + ] [ sp:object | ||
431 | + [ sp:varName "contextFacilityRef"^^xsd:string | ||
432 | + ] ; | ||
433 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
434 | + sp:subject | ||
435 | + [ sp:varName "contextFacility"^^xsd:string | ||
436 | + ] | ||
437 | + ] [ sp:object | ||
438 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
154 | ] ; | 439 | ] ; |
155 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 440 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
156 | sp:subject | 441 | sp:subject |
... | @@ -168,30 +453,84 @@ | ... | @@ -168,30 +453,84 @@ |
168 | sp:subject | 453 | sp:subject |
169 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 454 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
170 | ] | 455 | ] |
171 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | 456 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; |
172 | - sp:predicate rdf:type ; | 457 | + sp:predicate rdf:type ; |
458 | + sp:subject | ||
459 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
460 | + ] | ||
461 | + ]) | ||
462 | + ] ; | ||
463 | + spin:rule | ||
464 | + [ rdf:type sp:Construct ; | ||
465 | + rdfs:comment "STEP 40070 Create an approve a report activity"^^xsd:string ; | ||
466 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/activity#ApproveAReport> ; | ||
467 | + sp:predicate rdf:type ; | ||
468 | + sp:subject _:b5 | ||
469 | + ] [ sp:object | ||
470 | + [ sp:varName "productionOperationReport"^^xsd:string | ||
471 | + ] ; | ||
472 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#approvedReport> ; | ||
473 | + sp:subject _:b5 | ||
474 | + ]) ; | ||
475 | + sp:where ([ sp:object | ||
476 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
477 | + ] ; | ||
478 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
479 | + sp:subject spin:_this | ||
480 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | ||
481 | + sp:predicate rdf:type ; | ||
482 | + sp:subject | ||
483 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
484 | + ] | ||
485 | + ] [ sp:object | ||
486 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
487 | + ] ; | ||
488 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
489 | + sp:subject | ||
490 | + [ sp:varName "productionOperationReport"^^xsd:string | ||
491 | + ] | ||
492 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#Report> ; | ||
493 | + sp:predicate rdf:type ; | ||
494 | + sp:subject | ||
495 | + [ sp:varName "productionOperationReport"^^xsd:string | ||
496 | + ] | ||
497 | + ] [ rdf:type sp:Exists ; | ||
498 | + sp:elements ([ rdf:type sp:Union ; | ||
499 | + sp:elements (([ sp:object | ||
500 | + [ sp:varName "approvalDate"^^xsd:string | ||
501 | + ] ; | ||
502 | + sp:predicate <http://www.epim.no/schemas/mprml/1#approvalDate> ; | ||
503 | + sp:subject | ||
504 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
505 | + ] | ||
506 | + ]) ([ sp:object | ||
507 | + [ sp:varName "approverRef"^^xsd:string | ||
508 | + ] ; | ||
509 | + sp:predicate <http://www.epim.no/schemas/mprml/1#approverRef> ; | ||
173 | sp:subject | 510 | sp:subject |
174 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 511 | + [ sp:varName "productionOperationRef"^^xsd:string |
175 | ] | 512 | ] |
513 | + ])) | ||
514 | + ]) | ||
176 | ]) | 515 | ]) |
177 | ] ; | 516 | ] ; |
178 | spin:rule | 517 | spin:rule |
179 | [ rdf:type sp:Construct ; | 518 | [ rdf:type sp:Construct ; |
180 | rdfs:comment """STEP 40060 Set the facility operator | 519 | rdfs:comment """STEP 40060 Set the facility operator |
181 | role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | 520 | role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
182 | - sp:templates ([ sp:object _:b1 ; | 521 | + sp:templates ([ sp:object _:b6 ; |
183 | sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; | 522 | sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; |
184 | sp:subject | 523 | sp:subject |
185 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 524 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
186 | ] | 525 | ] |
187 | ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; | 526 | ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ; |
188 | sp:predicate rdf:type ; | 527 | sp:predicate rdf:type ; |
189 | - sp:subject _:b1 | 528 | + sp:subject _:b6 |
190 | ] [ sp:object | 529 | ] [ sp:object |
191 | [ sp:varName "operator"^^xsd:string | 530 | [ sp:varName "operator"^^xsd:string |
192 | ] ; | 531 | ] ; |
193 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 532 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
194 | - sp:subject _:b1 | 533 | + sp:subject _:b6 |
195 | ]) ; | 534 | ]) ; |
196 | sp:where ([ sp:object | 535 | sp:where ([ sp:object |
197 | [ sp:varName "productionOperationRef"^^xsd:string | 536 | [ sp:varName "productionOperationRef"^^xsd:string |
... | @@ -284,27 +623,14 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -284,27 +623,14 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
284 | ] ; | 623 | ] ; |
285 | spin:rule | 624 | spin:rule |
286 | [ rdf:type sp:Construct ; | 625 | [ rdf:type sp:Construct ; |
287 | - rdfs:comment "STEP 40030 Record the start and end date-times"^^xsd:string ; | 626 | + rdfs:comment """STEP 40071 Set the approval date |
627 | +The approver is set by STEP 90200 in the approval transform"""^^xsd:string ; | ||
288 | sp:templates ([ sp:object | 628 | sp:templates ([ sp:object |
289 | - [ sp:varName "dTimStart"^^xsd:string | 629 | + [ sp:varName "approvalDate"^^xsd:string |
290 | - ] ; | ||
291 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
292 | - sp:subject | ||
293 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
294 | - ] | ||
295 | - ] [ sp:object | ||
296 | - [ sp:varName "dTimEnd"^^xsd:string | ||
297 | - ] ; | ||
298 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
299 | - sp:subject | ||
300 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
301 | - ] | ||
302 | - ] [ sp:object | ||
303 | - [ sp:varName "dTimEnd"^^xsd:string | ||
304 | ] ; | 630 | ] ; |
305 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 631 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; |
306 | sp:subject | 632 | sp:subject |
307 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 633 | + [ sp:varName "approveProductionOperationReport"^^xsd:string |
308 | ] | 634 | ] |
309 | ]) ; | 635 | ]) ; |
310 | sp:where ([ sp:object | 636 | sp:where ([ sp:object |
... | @@ -318,42 +644,35 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -318,42 +644,35 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
318 | [ sp:varName "productionOperationRef"^^xsd:string | 644 | [ sp:varName "productionOperationRef"^^xsd:string |
319 | ] | 645 | ] |
320 | ] [ sp:object | 646 | ] [ sp:object |
321 | - [ sp:varName "dTimStart"^^xsd:string | 647 | + [ sp:varName "productionOperationRef"^^xsd:string |
322 | ] ; | 648 | ] ; |
323 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; | 649 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
324 | sp:subject | 650 | sp:subject |
325 | - [ sp:varName "productionOperationRef"^^xsd:string | 651 | + [ sp:varName "productionOperationReport"^^xsd:string |
326 | ] | 652 | ] |
327 | - ] [ sp:object | 653 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#Report> ; |
328 | - [ sp:varName "dTimEnd"^^xsd:string | 654 | + sp:predicate rdf:type ; |
329 | - ] ; | ||
330 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | ||
331 | sp:subject | 655 | sp:subject |
332 | - [ sp:varName "productionOperationRef"^^xsd:string | 656 | + [ sp:varName "productionOperationReport"^^xsd:string |
333 | ] | 657 | ] |
334 | ] [ sp:object | 658 | ] [ sp:object |
335 | - [ sp:varName "productionOperationRef"^^xsd:string | 659 | + [ sp:varName "productionOperationReport"^^xsd:string |
336 | ] ; | 660 | ] ; |
337 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 661 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#approvedReport> ; |
338 | sp:subject | 662 | sp:subject |
339 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 663 | + [ sp:varName "approveProductionOperationReport"^^xsd:string |
340 | ] | 664 | ] |
341 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | 665 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/activity#ApproveAReport> ; |
342 | sp:predicate rdf:type ; | 666 | sp:predicate rdf:type ; |
343 | sp:subject | 667 | sp:subject |
344 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 668 | + [ sp:varName "approveProductionOperationReport"^^xsd:string |
345 | ] | 669 | ] |
346 | ] [ sp:object | 670 | ] [ sp:object |
347 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 671 | + [ sp:varName "approvalDate"^^xsd:string |
348 | ] ; | 672 | ] ; |
349 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 673 | + sp:predicate <http://www.epim.no/schemas/mprml/1#approvalDate> ; |
350 | sp:subject | 674 | sp:subject |
351 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 675 | + [ sp:varName "productionOperationRef"^^xsd:string |
352 | - ] | ||
353 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
354 | - sp:predicate rdf:type ; | ||
355 | - sp:subject | ||
356 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
357 | ] | 676 | ] |
358 | ]) | 677 | ]) |
359 | ] ; | 678 | ] ; |
... | @@ -431,208 +750,6 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -431,208 +750,6 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
431 | [ sp:varName "productionFacilityToDate"^^xsd:string | 750 | [ sp:varName "productionFacilityToDate"^^xsd:string |
432 | ] | 751 | ] |
433 | ]) | 752 | ]) |
434 | - ] ; | ||
435 | - spin:rule | ||
436 | - [ rdf:type sp:Construct ; | ||
437 | - rdfs:comment "STEP 40051 Set the context facility - installation does not exist"^^xsd:string ; | ||
438 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
439 | - sp:predicate rdf:type ; | ||
440 | - sp:subject _:b2 | ||
441 | - ] [ sp:object | ||
442 | - [ sp:varName "contextFacility"^^xsd:string | ||
443 | - ] ; | ||
444 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
445 | - sp:subject _:b2 | ||
446 | - ] [ sp:object _:b2 ; | ||
447 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
448 | - sp:subject | ||
449 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
450 | - ] | ||
451 | - ] [ sp:object _:b2 ; | ||
452 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
453 | - sp:subject | ||
454 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
455 | - ] | ||
456 | - ]) ; | ||
457 | - sp:where ([ sp:object | ||
458 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
459 | - ] ; | ||
460 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
461 | - sp:subject spin:_this | ||
462 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | ||
463 | - sp:predicate rdf:type ; | ||
464 | - sp:subject | ||
465 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
466 | - ] | ||
467 | - ] [ rdf:type sp:NotExists ; | ||
468 | - sp:elements ([ sp:object | ||
469 | - [ sp:varName "installationRef"^^xsd:string | ||
470 | - ] ; | ||
471 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
472 | - sp:subject | ||
473 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
474 | - ] | ||
475 | - ] [ sp:object | ||
476 | - [ sp:varName "installationRef"^^xsd:string | ||
477 | - ] ; | ||
478 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
479 | - sp:subject | ||
480 | - [ sp:varName "productionFacility"^^xsd:string | ||
481 | - ] | ||
482 | - ]) | ||
483 | - ] [ sp:object | ||
484 | - [ sp:varName "contextFacilityRef"^^xsd:string | ||
485 | - ] ; | ||
486 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; | ||
487 | - sp:subject | ||
488 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
489 | - ] | ||
490 | - ] [ sp:object | ||
491 | - [ sp:varName "contextFacilityRef"^^xsd:string | ||
492 | - ] ; | ||
493 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
494 | - sp:subject | ||
495 | - [ sp:varName "contextFacility"^^xsd:string | ||
496 | - ] | ||
497 | - ] [ sp:object | ||
498 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
499 | - ] ; | ||
500 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
501 | - sp:subject | ||
502 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
503 | - ] | ||
504 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
505 | - sp:predicate rdf:type ; | ||
506 | - sp:subject | ||
507 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
508 | - ] | ||
509 | - ] [ sp:object | ||
510 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
511 | - ] ; | ||
512 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
513 | - sp:subject | ||
514 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
515 | - ] | ||
516 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
517 | - sp:predicate rdf:type ; | ||
518 | - sp:subject | ||
519 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
520 | - ] | ||
521 | - ]) | ||
522 | - ] ; | ||
523 | - spin:rule | ||
524 | - [ rdf:type sp:Construct ; | ||
525 | - rdfs:comment "STEP 40010 Create the ProductionOperationReport; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ; | ||
526 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionOperationReport> ; | ||
527 | - sp:predicate rdf:type ; | ||
528 | - sp:subject _:b3 | ||
529 | - ] [ sp:object | ||
530 | - [ sp:varName "productionReport"^^xsd:string | ||
531 | - ] ; | ||
532 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; | ||
533 | - sp:subject _:b3 | ||
534 | - ] [ sp:object | ||
535 | - [ sp:varName "name"^^xsd:string | ||
536 | - ] ; | ||
537 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
538 | - sp:subject _:b3 | ||
539 | - ] [ sp:object | ||
540 | - [ sp:varName "reportPeriodType"^^xsd:string | ||
541 | - ] ; | ||
542 | - sp:predicate rdf:type ; | ||
543 | - sp:subject _:b3 | ||
544 | - ] [ sp:object _:b4 ; | ||
545 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
546 | - sp:subject _:b3 | ||
547 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
548 | - sp:predicate rdf:type ; | ||
549 | - sp:subject _:b4 | ||
550 | - ] [ sp:object | ||
551 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
552 | - ] ; | ||
553 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
554 | - sp:subject _:b4 | ||
555 | - ] [ sp:object _:b5 ; | ||
556 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
557 | - sp:subject _:b4 | ||
558 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
559 | - sp:predicate rdf:type ; | ||
560 | - sp:subject _:b5 | ||
561 | - ] [ sp:object | ||
562 | - [ sp:varName "title"^^xsd:string | ||
563 | - ] ; | ||
564 | - sp:predicate <http://www.reportinghub.no/ep/schema/report#title> ; | ||
565 | - sp:subject _:b3 | ||
566 | - ]) ; | ||
567 | - sp:where ([ sp:object spin:_this ; | ||
568 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
569 | - sp:subject | ||
570 | - [ sp:varName "productionReport"^^xsd:string | ||
571 | - ] | ||
572 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; | ||
573 | - sp:predicate rdf:type ; | ||
574 | - sp:subject | ||
575 | - [ sp:varName "productionReport"^^xsd:string | ||
576 | - ] | ||
577 | - ] [ sp:object | ||
578 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
579 | - ] ; | ||
580 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
581 | - sp:subject spin:_this | ||
582 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | ||
583 | - sp:predicate rdf:type ; | ||
584 | - sp:subject | ||
585 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
586 | - ] | ||
587 | - ] [ sp:object | ||
588 | - [ sp:varName "nameRef"^^xsd:string | ||
589 | - ] ; | ||
590 | - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | ||
591 | - sp:subject | ||
592 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
593 | - ] | ||
594 | - ] [ sp:object | ||
595 | - [ sp:varName "name"^^xsd:string | ||
596 | - ] ; | ||
597 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
598 | - sp:subject | ||
599 | - [ sp:varName "nameRef"^^xsd:string | ||
600 | - ] | ||
601 | - ] [ rdf:type sp:Optional ; | ||
602 | - sp:elements ([ sp:object | ||
603 | - [ sp:varName "periodKindRef"^^xsd:string | ||
604 | - ] ; | ||
605 | - sp:predicate <http://www.epim.no/schemas/mprml/1#periodKindRef> ; | ||
606 | - sp:subject | ||
607 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
608 | - ] | ||
609 | - ]) | ||
610 | - ] [ rdf:type sp:Optional ; | ||
611 | - sp:elements ([ sp:object | ||
612 | - [ sp:varName "titleRef"^^xsd:string | ||
613 | - ] ; | ||
614 | - sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ; | ||
615 | - sp:subject | ||
616 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
617 | - ] | ||
618 | - ] [ sp:object | ||
619 | - [ sp:varName "title"^^xsd:string | ||
620 | - ] ; | ||
621 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
622 | - sp:subject | ||
623 | - [ sp:varName "titleRef"^^xsd:string | ||
624 | - ] | ||
625 | - ]) | ||
626 | - ] [ rdf:type sp:Bind ; | ||
627 | - sp:expression | ||
628 | - [ rdf:type ep-mpr-spin-lib:selectReportPeriodType ; | ||
629 | - sp:arg1 [ sp:varName "periodKindRef"^^xsd:string | ||
630 | - ] | ||
631 | - ] ; | ||
632 | - sp:variable | ||
633 | - [ sp:varName "reportPeriodType"^^xsd:string | ||
634 | - ] | ||
635 | - ]) | ||
636 | ] . | 753 | ] . |
637 | 754 | ||
638 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1> | 755 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionOperationReport-v1.1.1> | ... | ... |
This diff could not be displayed because it is too large.
-
Please register or login to post a comment