David Price

Merge branch 'master' into mprg-31pm

...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
13 13
14 <http://www.reportinghub.no/ep/schema/1.0/report> 14 <http://www.reportinghub.no/ep/schema/1.0/report>
15 rdf:type owl:Ontology ; 15 rdf:type owl:Ontology ;
16 - owl:imports <http://www.reportinghub.no/np/schema/1.0/npd> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/well> ; 16 + owl:imports <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/np/schema/1.0/npd> ;
17 owl:versionInfo "0.1.0"^^xsd:string . 17 owl:versionInfo "0.1.0"^^xsd:string .
18 18
19 ep-report:DailyDrillingReport 19 ep-report:DailyDrillingReport
...@@ -31,12 +31,12 @@ ep-report:DailyProductionReport ...@@ -31,12 +31,12 @@ ep-report:DailyProductionReport
31 rdfs:subClassOf ep-report:ProductionReport . 31 rdfs:subClassOf ep-report:ProductionReport .
32 32
33 ep-report:DailyReport 33 ep-report:DailyReport
34 - rdf:type owl:Class , ep-report:ReportPeriodType ; 34 + rdf:type ep-report:ReportPeriodType , owl:Class ;
35 rdfs:label "daily report"^^xsd:string ; 35 rdfs:label "daily report"^^xsd:string ;
36 rdfs:subClassOf ep-report:Report . 36 rdfs:subClassOf ep-report:Report .
37 37
38 ep-report:FinalDailyDrillingReport 38 ep-report:FinalDailyDrillingReport
39 - rdf:type ep-report:DailyDrillingReportFinalisationType , owl:Class ; 39 + rdf:type owl:Class , ep-report:DailyDrillingReportFinalisationType ;
40 rdfs:label "final daily drilling report"^^xsd:string ; 40 rdfs:label "final daily drilling report"^^xsd:string ;
41 rdfs:subClassOf ep-report:DailyDrillingReport . 41 rdfs:subClassOf ep-report:DailyDrillingReport .
42 42
...@@ -51,7 +51,7 @@ ep-report:MonthlyProductionReport ...@@ -51,7 +51,7 @@ ep-report:MonthlyProductionReport
51 rdfs:subClassOf ep-report:ProductionReport . 51 rdfs:subClassOf ep-report:ProductionReport .
52 52
53 ep-report:MonthlyReport 53 ep-report:MonthlyReport
54 - rdf:type owl:Class , ep-report:ReportPeriodType ; 54 + rdf:type ep-report:ReportPeriodType , owl:Class ;
55 rdfs:label "monthly report"^^xsd:string ; 55 rdfs:label "monthly report"^^xsd:string ;
56 rdfs:subClassOf ep-report:Report . 56 rdfs:subClassOf ep-report:Report .
57 57
...@@ -60,13 +60,8 @@ ep-report:NonProductivetimeReport ...@@ -60,13 +60,8 @@ ep-report:NonProductivetimeReport
60 rdfs:subClassOf ep-report:Report ; 60 rdfs:subClassOf ep-report:Report ;
61 rdfs:subClassOf 61 rdfs:subClassOf
62 [ rdf:type owl:Restriction ; 62 [ rdf:type owl:Restriction ;
63 - owl:allValuesFrom xsd:dateTime ;
64 - owl:onProperty ep-report:createdAt
65 - ] ;
66 - rdfs:subClassOf
67 - [ rdf:type owl:Restriction ;
68 owl:cardinality "1"^^xsd:nonNegativeInteger ; 63 owl:cardinality "1"^^xsd:nonNegativeInteger ;
69 - owl:onProperty ep-report:createdAt 64 + owl:onProperty ep-report:reportOn
70 ] ; 65 ] ;
71 rdfs:subClassOf 66 rdfs:subClassOf
72 [ rdf:type owl:Restriction ; 67 [ rdf:type owl:Restriction ;
...@@ -76,16 +71,21 @@ ep-report:NonProductivetimeReport ...@@ -76,16 +71,21 @@ ep-report:NonProductivetimeReport
76 rdfs:subClassOf 71 rdfs:subClassOf
77 [ rdf:type owl:Restriction ; 72 [ rdf:type owl:Restriction ;
78 owl:cardinality "1"^^xsd:nonNegativeInteger ; 73 owl:cardinality "1"^^xsd:nonNegativeInteger ;
79 - owl:onProperty ep-report:reportOn 74 + owl:onProperty ep-report:createdAt
75 + ] ;
76 + rdfs:subClassOf
77 + [ rdf:type owl:Restriction ;
78 + owl:allValuesFrom xsd:dateTime ;
79 + owl:onProperty ep-report:createdAt
80 ] . 80 ] .
81 81
82 ep-report:NormalDailyDrillingReport 82 ep-report:NormalDailyDrillingReport
83 - rdf:type ep-report:DailyDrillingReportFinalisationType , owl:Class ; 83 + rdf:type owl:Class , ep-report:DailyDrillingReportFinalisationType ;
84 rdfs:label "normal daily drilling report"^^xsd:string ; 84 rdfs:label "normal daily drilling report"^^xsd:string ;
85 rdfs:subClassOf ep-report:DailyDrillingReport . 85 rdfs:subClassOf ep-report:DailyDrillingReport .
86 86
87 ep-report:PreliminaryDailyDrillingReport 87 ep-report:PreliminaryDailyDrillingReport
88 - rdf:type ep-report:DailyDrillingReportFinalisationType , owl:Class ; 88 + rdf:type owl:Class , ep-report:DailyDrillingReportFinalisationType ;
89 rdfs:label "preliminary daily drilling report"^^xsd:string ; 89 rdfs:label "preliminary daily drilling report"^^xsd:string ;
90 rdfs:subClassOf ep-report:DailyDrillingReport . 90 rdfs:subClassOf ep-report:DailyDrillingReport .
91 91
...@@ -129,8 +129,8 @@ ep-report:ReportAliasIdentifier ...@@ -129,8 +129,8 @@ ep-report:ReportAliasIdentifier
129 rdfs:subClassOf owl:Thing ; 129 rdfs:subClassOf owl:Thing ;
130 rdfs:subClassOf 130 rdfs:subClassOf
131 [ rdf:type owl:Restriction ; 131 [ rdf:type owl:Restriction ;
132 - owl:minCardinality "1"^^xsd:nonNegativeInteger ; 132 + owl:cardinality "1"^^xsd:nonNegativeInteger ;
133 - owl:onProperty ep-report:aliasName 133 + owl:onProperty ep-report:isAliasFor
134 ] ; 134 ] ;
135 rdfs:subClassOf 135 rdfs:subClassOf
136 [ rdf:type owl:Restriction ; 136 [ rdf:type owl:Restriction ;
...@@ -139,17 +139,17 @@ ep-report:ReportAliasIdentifier ...@@ -139,17 +139,17 @@ ep-report:ReportAliasIdentifier
139 ] ; 139 ] ;
140 rdfs:subClassOf 140 rdfs:subClassOf
141 [ rdf:type owl:Restriction ; 141 [ rdf:type owl:Restriction ;
142 - owl:cardinality "1"^^xsd:nonNegativeInteger ; 142 + owl:minCardinality "1"^^xsd:nonNegativeInteger ;
143 - owl:onProperty ep-report:isAliasFor 143 + owl:onProperty ep-report:aliasName
144 ] . 144 ] .
145 145
146 ep-report:ReportForInstant 146 ep-report:ReportForInstant
147 - rdf:type owl:Class , ep-report:ReportPeriodType ; 147 + rdf:type ep-report:ReportPeriodType , owl:Class ;
148 rdfs:label "report for instant"^^xsd:string ; 148 rdfs:label "report for instant"^^xsd:string ;
149 rdfs:subClassOf ep-report:Report . 149 rdfs:subClassOf ep-report:Report .
150 150
151 ep-report:ReportMonthToDate 151 ep-report:ReportMonthToDate
152 - rdf:type owl:Class , ep-report:ReportPeriodType ; 152 + rdf:type ep-report:ReportPeriodType , owl:Class ;
153 rdfs:label "report month to date"^^xsd:string ; 153 rdfs:label "report month to date"^^xsd:string ;
154 rdfs:subClassOf ep-report:Report . 154 rdfs:subClassOf ep-report:Report .
155 155
...@@ -159,7 +159,7 @@ ep-report:ReportPeriodType ...@@ -159,7 +159,7 @@ ep-report:ReportPeriodType
159 rdfs:subClassOf owl:Class . 159 rdfs:subClassOf owl:Class .
160 160
161 ep-report:ReportYearToDate 161 ep-report:ReportYearToDate
162 - rdf:type owl:Class , ep-report:ReportPeriodType ; 162 + rdf:type ep-report:ReportPeriodType , owl:Class ;
163 rdfs:label "report year to date"^^xsd:string ; 163 rdfs:label "report year to date"^^xsd:string ;
164 rdfs:subClassOf ep-report:Report . 164 rdfs:subClassOf ep-report:Report .
165 165
...@@ -168,27 +168,27 @@ ep-report:WeeklyDrillingReport ...@@ -168,27 +168,27 @@ ep-report:WeeklyDrillingReport
168 rdfs:subClassOf ep-report:Report ; 168 rdfs:subClassOf ep-report:Report ;
169 rdfs:subClassOf 169 rdfs:subClassOf
170 [ rdf:type owl:Restriction ; 170 [ rdf:type owl:Restriction ;
171 - owl:allValuesFrom ep-report:DailyDrillingReport ; 171 + owl:cardinality "1"^^xsd:nonNegativeInteger ;
172 - owl:onProperty ep-report:reportOn 172 + owl:onProperty ep-report:createdAt
173 ] ; 173 ] ;
174 rdfs:subClassOf 174 rdfs:subClassOf
175 [ rdf:type owl:Restriction ; 175 [ rdf:type owl:Restriction ;
176 - owl:cardinality "7"^^xsd:nonNegativeInteger ; 176 + owl:allValuesFrom xsd:dateTime ;
177 - owl:onProperty ep-report:reportOn 177 + owl:onProperty ep-report:createdAt
178 ] ; 178 ] ;
179 rdfs:subClassOf 179 rdfs:subClassOf
180 [ rdf:type owl:Restriction ; 180 [ rdf:type owl:Restriction ;
181 - owl:allValuesFrom xsd:dateTime ; 181 + owl:cardinality "7"^^xsd:nonNegativeInteger ;
182 - owl:onProperty ep-report:createdAt 182 + owl:onProperty ep-report:reportOn
183 ] ; 183 ] ;
184 rdfs:subClassOf 184 rdfs:subClassOf
185 [ rdf:type owl:Restriction ; 185 [ rdf:type owl:Restriction ;
186 - owl:cardinality "1"^^xsd:nonNegativeInteger ; 186 + owl:allValuesFrom ep-report:DailyDrillingReport ;
187 - owl:onProperty ep-report:createdAt 187 + owl:onProperty ep-report:reportOn
188 ] . 188 ] .
189 189
190 ep-report:WeeklyReport 190 ep-report:WeeklyReport
191 - rdf:type owl:Class , ep-report:ReportPeriodType ; 191 + rdf:type ep-report:ReportPeriodType , owl:Class ;
192 rdfs:label "weekly report"^^xsd:string ; 192 rdfs:label "weekly report"^^xsd:string ;
193 rdfs:subClassOf ep-report:Report . 193 rdfs:subClassOf ep-report:Report .
194 194
...@@ -198,7 +198,7 @@ ep-report:WellTestReport ...@@ -198,7 +198,7 @@ ep-report:WellTestReport
198 rdfs:subClassOf ep-report:Report . 198 rdfs:subClassOf ep-report:Report .
199 199
200 ep-report:YearlyReport 200 ep-report:YearlyReport
201 - rdf:type owl:Class , ep-report:ReportPeriodType ; 201 + rdf:type ep-report:ReportPeriodType , owl:Class ;
202 rdfs:label "yearly report"^^xsd:string ; 202 rdfs:label "yearly report"^^xsd:string ;
203 rdfs:subClassOf ep-report:Report . 203 rdfs:subClassOf ep-report:Report .
204 204
...@@ -211,12 +211,12 @@ ep-report:aliasOwner ...@@ -211,12 +211,12 @@ ep-report:aliasOwner
211 rdfs:range <http://www.reportinghub.no/np/schema/npd#Individual> . 211 rdfs:range <http://www.reportinghub.no/np/schema/npd#Individual> .
212 212
213 ep-report:createdAt 213 ep-report:createdAt
214 - rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; 214 + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
215 rdfs:domain ep-report:Report ; 215 rdfs:domain ep-report:Report ;
216 rdfs:label "created at"^^xsd:string . 216 rdfs:label "created at"^^xsd:string .
217 217
218 ep-report:dailyDrillingReportNumber 218 ep-report:dailyDrillingReportNumber
219 - rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; 219 + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
220 rdfs:domain ep-report:DailyDrillingReport ; 220 rdfs:domain ep-report:DailyDrillingReport ;
221 rdfs:label "daily drilling report number"^^xsd:string . 221 rdfs:label "daily drilling report number"^^xsd:string .
222 222
...@@ -241,7 +241,7 @@ ep-report:disclaimer ...@@ -241,7 +241,7 @@ ep-report:disclaimer
241 rdfs:range xsd:string . 241 rdfs:range xsd:string .
242 242
243 ep-report:hasContent 243 ep-report:hasContent
244 - rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; 244 + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
245 rdfs:domain ep-report:Report ; 245 rdfs:domain ep-report:Report ;
246 rdfs:label "has content"^^xsd:string . 246 rdfs:label "has content"^^xsd:string .
247 247
...@@ -250,12 +250,12 @@ ep-report:isAliasFor ...@@ -250,12 +250,12 @@ ep-report:isAliasFor
250 rdfs:range <http://www.reportinghub.no/np/schema/npd#Individual> . 250 rdfs:range <http://www.reportinghub.no/np/schema/npd#Individual> .
251 251
252 ep-report:issuedAt 252 ep-report:issuedAt
253 - rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; 253 + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
254 rdfs:domain ep-report:Report ; 254 rdfs:domain ep-report:Report ;
255 rdfs:label "issued at"^^xsd:string . 255 rdfs:label "issued at"^^xsd:string .
256 256
257 ep-report:nameAsDatumObject 257 ep-report:nameAsDatumObject
258 - rdf:type owl:DatatypeProperty , owl:FunctionalProperty ; 258 + rdf:type owl:FunctionalProperty , owl:DatatypeProperty ;
259 rdfs:domain <http://www.reportinghub.no/ep/schema/core#PhysicalObject> ; 259 rdfs:domain <http://www.reportinghub.no/ep/schema/core#PhysicalObject> ;
260 rdfs:label "name as datum object"^^xsd:string . 260 rdfs:label "name as datum object"^^xsd:string .
261 261
...@@ -263,3 +263,9 @@ ep-report:reportOn ...@@ -263,3 +263,9 @@ ep-report:reportOn
263 rdf:type owl:ObjectProperty ; 263 rdf:type owl:ObjectProperty ;
264 rdfs:domain ep-report:Report ; 264 rdfs:domain ep-report:Report ;
265 rdfs:label "report on"^^xsd:string . 265 rdfs:label "report on"^^xsd:string .
266 +
267 +ep-report:reportSubmittedBy
268 + rdf:type owl:FunctionalProperty , owl:ObjectProperty ;
269 + rdfs:domain ep-report:Report ;
270 + rdfs:label "report submitted by"^^xsd:string ;
271 + rdfs:range <http://www.reportinghub.no/ep/schema/core#PhysicalObject> .
......
...@@ -20,10 +20,8 @@ ...@@ -20,10 +20,8 @@
20 <http://www.epim.no/schemas/mprml/1#A_Global-Objects> 20 <http://www.epim.no/schemas/mprml/1#A_Global-Objects>
21 spin:rule 21 spin:rule
22 [ rdf:type sp:Construct ; 22 [ rdf:type sp:Construct ;
23 - rdfs:comment "STEP 10001a Create the inteval identifier - dateStart and dateEnd from context"^^xsd:string ; 23 + rdfs:comment "STEP 10001e Create the interval identifier - no date"^^xsd:string ;
24 - sp:templates ([ sp:object 24 + sp:templates ([ sp:object "noDate" ;
25 - [ sp:varName "intervalIdentifier"^^xsd:string
26 - ] ;
27 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; 25 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
28 sp:subject spin:_this 26 sp:subject spin:_this
29 ]) ; 27 ]) ;
...@@ -37,10 +35,51 @@ ...@@ -37,10 +35,51 @@
37 sp:subject 35 sp:subject
38 [ sp:varName "contextRef"^^xsd:string 36 [ sp:varName "contextRef"^^xsd:string
39 ] 37 ]
40 - ] [ sp:object 38 + ] [ rdf:type sp:NotExists ;
41 - [ sp:varName "dateStart"^^xsd:string 39 + sp:elements ([ sp:object
40 + [ sp:varName "dateEnd"^^xsd:string
41 + ] ;
42 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
43 + sp:subject
44 + [ sp:varName "contextRef"^^xsd:string
45 + ]
46 + ])
47 + ] [ rdf:type sp:NotExists ;
48 + sp:elements ([ sp:object
49 + [ sp:varName "date"^^xsd:string
50 + ] ;
51 + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
52 + sp:subject
53 + [ sp:varName "contextRef"^^xsd:string
54 + ]
55 + ])
56 + ] [ rdf:type sp:NotExists ;
57 + sp:elements ([ sp:object
58 + [ sp:varName "dateStart"^^xsd:string
59 + ] ;
60 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
61 + sp:subject
62 + [ sp:varName "contextRef"^^xsd:string
63 + ]
64 + ])
65 + ])
66 + ] ;
67 + spin:rule
68 + [ rdf:type sp:Construct ;
69 + rdfs:comment "STEP 10001d Create the interval identifier - dateEnd from context"^^xsd:string ;
70 + sp:templates ([ sp:object
71 + [ sp:varName "dateEnd"^^xsd:string
42 ] ; 72 ] ;
43 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; 73 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
74 + sp:subject spin:_this
75 + ]) ;
76 + sp:where ([ sp:object
77 + [ sp:varName "contextRef"^^xsd:string
78 + ] ;
79 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
80 + sp:subject spin:_this
81 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
82 + sp:predicate rdf:type ;
44 sp:subject 83 sp:subject
45 [ sp:varName "contextRef"^^xsd:string 84 [ sp:varName "contextRef"^^xsd:string
46 ] 85 ]
...@@ -51,125 +90,82 @@ ...@@ -51,125 +90,82 @@
51 sp:subject 90 sp:subject
52 [ sp:varName "contextRef"^^xsd:string 91 [ sp:varName "contextRef"^^xsd:string
53 ] 92 ]
54 - ] [ rdf:type sp:Bind ; 93 + ] [ rdf:type sp:NotExists ;
55 - sp:expression 94 + sp:elements ([ sp:object
56 - [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ; 95 + [ sp:varName "date"^^xsd:string
57 - sp:arg1 [ sp:varName "dateStart"^^xsd:string 96 + ] ;
58 - ] ; 97 + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
59 - sp:arg2 [ sp:varName "dateEnd"^^xsd:string 98 + sp:subject
60 - ] 99 + [ sp:varName "contextRef"^^xsd:string
61 - ] ; 100 + ]
62 - sp:variable 101 + ])
63 - [ sp:varName "intervalIdentifier"^^xsd:string 102 + ] [ rdf:type sp:NotExists ;
64 - ] 103 + sp:elements ([ sp:object
104 + [ sp:varName "dateStart"^^xsd:string
105 + ] ;
106 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
107 + sp:subject
108 + [ sp:varName "contextRef"^^xsd:string
109 + ]
110 + ])
65 ]) 111 ])
66 ] ; 112 ] ;
67 spin:rule 113 spin:rule
68 [ rdf:type sp:Construct ; 114 [ rdf:type sp:Construct ;
69 - rdfs:comment "STEP 10001p Create the ProductionReport - no installation"^^xsd:string ; 115 + rdfs:comment "STEP 10001z Add the issue date and title"^^xsd:string ;
70 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; 116 + sp:templates ([ sp:object
71 - sp:predicate rdf:type ; 117 + [ sp:varName "month"^^xsd:string
72 - sp:subject 118 + ] ;
73 - [ sp:varName "productionReport"^^xsd:string 119 + sp:predicate <http://www.reportinghub.no/ep/schema/report#issuedAt> ;
74 - ]
75 - ] [ sp:object _:b1 ;
76 - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
77 sp:subject 120 sp:subject
78 [ sp:varName "productionReport"^^xsd:string 121 [ sp:varName "productionReport"^^xsd:string
79 ] 122 ]
80 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; 123 + ] [ sp:object
81 - sp:predicate rdf:type ; 124 + [ sp:varName "title"^^xsd:string
82 - sp:subject _:b1 125 + ] ;
83 - ] [ sp:object spin:_this ; 126 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
84 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
85 sp:subject 127 sp:subject
86 [ sp:varName "productionReport"^^xsd:string 128 [ sp:varName "productionReport"^^xsd:string
87 ] 129 ]
88 - ] [ sp:object
89 - [ sp:varName "contextRef"^^xsd:string
90 - ] ;
91 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
92 - sp:subject _:b1
93 ]) ; 130 ]) ;
94 sp:where ([ sp:object 131 sp:where ([ sp:object
95 - [ sp:varName "intervalIdentifier"^^xsd:string 132 + [ sp:varName "contextRef"^^xsd:string
96 ] ; 133 ] ;
97 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; 134 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
98 sp:subject spin:_this 135 sp:subject spin:_this
99 - ] [ rdf:type sp:NotExists ; 136 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
100 - sp:elements ([ sp:object 137 + sp:predicate rdf:type ;
101 - [ sp:varName "productVolumeRef"^^xsd:string 138 + sp:subject
102 - ] ; 139 + [ sp:varName "contextRef"^^xsd:string
103 - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 140 + ]
104 - sp:subject spin:_this 141 + ] [ rdf:type sp:Optional ;
105 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
106 - sp:predicate rdf:type ;
107 - sp:subject
108 - [ sp:varName "productVolumeRef"^^xsd:string
109 - ]
110 - ] [ sp:object
111 - [ sp:varName "something"^^xsd:string
112 - ] ;
113 - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
114 - sp:subject
115 - [ sp:varName "productVolumeRef"^^xsd:string
116 - ]
117 - ])
118 - ] [ rdf:type sp:NotExists ;
119 sp:elements ([ sp:object 142 sp:elements ([ sp:object
120 - [ sp:varName "productionOperationRef"^^xsd:string 143 + [ sp:varName "month"^^xsd:string
121 - ] ;
122 - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
123 - sp:subject spin:_this
124 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
125 - sp:predicate rdf:type ;
126 - sp:subject
127 - [ sp:varName "productionOperationRef"^^xsd:string
128 - ]
129 - ] [ sp:object
130 - [ sp:varName "somethingElse"^^xsd:string
131 ] ; 144 ] ;
132 - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; 145 + sp:predicate <http://www.epim.no/schemas/mprml/1#month> ;
133 sp:subject 146 sp:subject
134 - [ sp:varName "productionOperationRef"^^xsd:string 147 + [ sp:varName "contextRef"^^xsd:string
135 ] 148 ]
136 ]) 149 ])
137 - ] [ rdf:type sp:NotExists ; 150 + ] [ rdf:type sp:Optional ;
138 sp:elements ([ sp:object 151 sp:elements ([ sp:object
139 - [ sp:varName "contextRef"^^xsd:string 152 + [ sp:varName "titleRef"^^xsd:string
140 ] ; 153 ] ;
141 - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; 154 + sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ;
142 - sp:subject spin:_this
143 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
144 - sp:predicate rdf:type ;
145 sp:subject 155 sp:subject
146 [ sp:varName "contextRef"^^xsd:string 156 [ sp:varName "contextRef"^^xsd:string
147 ] 157 ]
148 ] [ sp:object 158 ] [ sp:object
149 - [ sp:varName "somethingElseElse"^^xsd:string 159 + [ sp:varName "title"^^xsd:string
150 ] ; 160 ] ;
151 - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; 161 + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
152 sp:subject 162 sp:subject
153 - [ sp:varName "contextRef"^^xsd:string 163 + [ sp:varName "titleRef"^^xsd:string
154 ] 164 ]
155 ]) 165 ])
156 - ] [ rdf:type sp:Bind ; 166 + ] [ sp:object spin:_this ;
157 - sp:expression 167 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
158 - [ rdf:type ep-spin-lib:normalizeString ; 168 + sp:subject
159 - sp:arg1 "noInstallation"
160 - ] ;
161 - sp:variable
162 - [ sp:varName "normalizedName"^^xsd:string
163 - ]
164 - ] [ rdf:type sp:Bind ;
165 - sp:expression
166 - [ rdf:type ep-mpr-spin-lib:buildProductionReportURI ;
167 - sp:arg1 [ sp:varName "normalizedName"^^xsd:string
168 - ] ;
169 - sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string
170 - ]
171 - ] ;
172 - sp:variable
173 [ sp:varName "productionReport"^^xsd:string 169 [ sp:varName "productionReport"^^xsd:string
174 ] 170 ]
175 ]) 171 ])
...@@ -217,7 +213,7 @@ ...@@ -217,7 +213,7 @@
217 ] [ sp:object 213 ] [ sp:object
218 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 214 [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
219 ] ; 215 ] ;
220 - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; 216 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedBy> ;
221 sp:subject 217 sp:subject
222 [ sp:varName "productionReport"^^xsd:string 218 [ sp:varName "productionReport"^^xsd:string
223 ] 219 ]
...@@ -292,217 +288,111 @@ ...@@ -292,217 +288,111 @@
292 ] ; 288 ] ;
293 spin:rule 289 spin:rule
294 [ rdf:type sp:Construct ; 290 [ rdf:type sp:Construct ;
295 - rdfs:comment "STEP 10001z Add the issue date and title"^^xsd:string ; 291 + rdfs:comment "STEP 10001n Set the submitting installation"^^xsd:string ;
296 - sp:templates ([ sp:object 292 + sp:templates ([ sp:object _:b1 ;
297 - [ sp:varName "month"^^xsd:string 293 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedBy> ;
298 - ] ;
299 - sp:predicate <http://www.reportinghub.no/ep/schema/report#issuedAt> ;
300 sp:subject 294 sp:subject
301 [ sp:varName "productionReport"^^xsd:string 295 [ sp:varName "productionReport"^^xsd:string
302 ] 296 ]
297 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
298 + sp:predicate rdf:type ;
299 + sp:subject _:b1
303 ] [ sp:object 300 ] [ sp:object
304 - [ sp:varName "title"^^xsd:string 301 + [ sp:varName "installation"^^xsd:string
305 ] ; 302 ] ;
306 - sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; 303 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
307 - sp:subject 304 + sp:subject _:b1
308 - [ sp:varName "productionReport"^^xsd:string
309 - ]
310 ]) ; 305 ]) ;
311 sp:where ([ sp:object 306 sp:where ([ sp:object
312 [ sp:varName "contextRef"^^xsd:string 307 [ sp:varName "contextRef"^^xsd:string
313 ] ; 308 ] ;
314 sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; 309 sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
315 sp:subject spin:_this 310 sp:subject spin:_this
316 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
317 - sp:predicate rdf:type ;
318 - sp:subject
319 - [ sp:varName "contextRef"^^xsd:string
320 - ]
321 - ] [ rdf:type sp:Optional ;
322 - sp:elements ([ sp:object
323 - [ sp:varName "month"^^xsd:string
324 - ] ;
325 - sp:predicate <http://www.epim.no/schemas/mprml/1#month> ;
326 - sp:subject
327 - [ sp:varName "contextRef"^^xsd:string
328 - ]
329 - ])
330 - ] [ rdf:type sp:Optional ;
331 - sp:elements ([ sp:object
332 - [ sp:varName "titleRef"^^xsd:string
333 - ] ;
334 - sp:predicate <http://www.epim.no/schemas/mprml/1#titleRef> ;
335 - sp:subject
336 - [ sp:varName "contextRef"^^xsd:string
337 - ]
338 - ] [ sp:object
339 - [ sp:varName "title"^^xsd:string
340 - ] ;
341 - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ;
342 - sp:subject
343 - [ sp:varName "titleRef"^^xsd:string
344 - ]
345 - ])
346 ] [ sp:object spin:_this ; 311 ] [ sp:object spin:_this ;
347 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 312 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
348 sp:subject 313 sp:subject
349 [ sp:varName "productionReport"^^xsd:string 314 [ sp:varName "productionReport"^^xsd:string
350 ] 315 ]
351 - ]) 316 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
352 - ] ;
353 - spin:rule
354 - [ rdf:type sp:Construct ;
355 - rdfs:comment "STEP 10001o Create the ProductionReport - extract the name from productVolume/installation"^^xsd:string ;
356 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
357 sp:predicate rdf:type ; 317 sp:predicate rdf:type ;
358 sp:subject 318 sp:subject
359 - [ sp:varName "productionReport"^^xsd:string 319 + [ sp:varName "contextRef"^^xsd:string
360 - ]
361 - ] [ sp:object _:b2 ;
362 - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
363 - sp:subject
364 - [ sp:varName "productionReport"^^xsd:string
365 ] 320 ]
366 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
367 - sp:predicate rdf:type ;
368 - sp:subject _:b2
369 ] [ sp:object 321 ] [ sp:object
370 - [ sp:varName "installation"^^xsd:string 322 + [ sp:varName "installationRef"^^xsd:string
371 ] ; 323 ] ;
372 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 324 + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
373 - sp:subject _:b2
374 - ] [ sp:object spin:_this ;
375 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
376 sp:subject 325 sp:subject
377 - [ sp:varName "productionReport"^^xsd:string 326 + [ sp:varName "contextRef"^^xsd:string
378 ] 327 ]
379 ] [ sp:object 328 ] [ sp:object
380 - [ sp:varName "contextRef"^^xsd:string 329 + [ sp:varName "installationRef"^^xsd:string
381 ] ; 330 ] ;
382 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 331 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
383 - sp:subject _:b2 332 + sp:subject
384 - ]) ; 333 + [ sp:varName "installation"^^xsd:string
385 - sp:where ([ sp:object 334 + ]
335 + ])
336 + ] ;
337 + spin:rule
338 + [ rdf:type sp:Construct ;
339 + rdfs:comment "STEP 10001a Create the inteval identifier - dateStart and dateEnd from context"^^xsd:string ;
340 + sp:templates ([ sp:object
386 [ sp:varName "intervalIdentifier"^^xsd:string 341 [ sp:varName "intervalIdentifier"^^xsd:string
387 ] ; 342 ] ;
388 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; 343 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
389 sp:subject spin:_this 344 sp:subject spin:_this
390 - ] [ sp:object 345 + ]) ;
391 - [ sp:varName "productVolumeRef"^^xsd:string 346 + sp:where ([ sp:object
347 + [ sp:varName "contextRef"^^xsd:string
392 ] ; 348 ] ;
393 - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 349 + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
394 sp:subject spin:_this 350 sp:subject spin:_this
395 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; 351 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
396 sp:predicate rdf:type ; 352 sp:predicate rdf:type ;
397 sp:subject 353 sp:subject
398 - [ sp:varName "productVolumeRef"^^xsd:string 354 + [ sp:varName "contextRef"^^xsd:string
399 ] 355 ]
400 ] [ sp:object 356 ] [ sp:object
401 - [ sp:varName "installationRef"^^xsd:string 357 + [ sp:varName "dateStart"^^xsd:string
402 ] ; 358 ] ;
403 - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; 359 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
404 sp:subject 360 sp:subject
405 - [ sp:varName "productVolumeRef"^^xsd:string 361 + [ sp:varName "contextRef"^^xsd:string
406 ] 362 ]
407 ] [ sp:object 363 ] [ sp:object
408 - [ sp:varName "installationRef"^^xsd:string 364 + [ sp:varName "dateEnd"^^xsd:string
409 ] ; 365 ] ;
410 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 366 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
411 sp:subject 367 sp:subject
412 - [ sp:varName "installation"^^xsd:string 368 + [ sp:varName "contextRef"^^xsd:string
413 - ]
414 - ] [ rdf:type sp:NotExists ;
415 - sp:elements ([ sp:object
416 - [ sp:varName "productionOperationRef"^^xsd:string
417 - ] ;
418 - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
419 - sp:subject spin:_this
420 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ;
421 - sp:predicate rdf:type ;
422 - sp:subject
423 - [ sp:varName "productionOperationRef"^^xsd:string
424 - ]
425 - ] [ sp:object
426 - [ sp:varName "something"^^xsd:string
427 - ] ;
428 - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
429 - sp:subject
430 - [ sp:varName "productionOperationRef"^^xsd:string
431 - ]
432 - ])
433 - ] [ rdf:type sp:NotExists ;
434 - sp:elements ([ sp:object
435 - [ sp:varName "contextRef"^^xsd:string
436 - ] ;
437 - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
438 - sp:subject spin:_this
439 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
440 - sp:predicate rdf:type ;
441 - sp:subject
442 - [ sp:varName "contextRef"^^xsd:string
443 - ]
444 - ] [ sp:object
445 - [ sp:varName "somethingElse"^^xsd:string
446 - ] ;
447 - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
448 - sp:subject
449 - [ sp:varName "contextRef"^^xsd:string
450 - ]
451 - ])
452 - ] [ rdf:type sp:Bind ;
453 - sp:expression
454 - [ rdf:type spl:object ;
455 - sp:arg1 [ sp:varName "installationRef"^^xsd:string
456 - ] ;
457 - sp:arg2 <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText>
458 - ] ;
459 - sp:variable
460 - [ sp:varName "normalizedInstallationName"^^xsd:string
461 ] 369 ]
462 ] [ rdf:type sp:Bind ; 370 ] [ rdf:type sp:Bind ;
463 sp:expression 371 sp:expression
464 - [ rdf:type ep-mpr-spin-lib:buildProductionReportURI ; 372 + [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ;
465 - sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string 373 + sp:arg1 [ sp:varName "dateStart"^^xsd:string
466 ] ; 374 ] ;
467 - sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string 375 + sp:arg2 [ sp:varName "dateEnd"^^xsd:string
468 ] 376 ]
469 ] ; 377 ] ;
470 sp:variable 378 sp:variable
471 - [ sp:varName "productionReport"^^xsd:string 379 + [ sp:varName "intervalIdentifier"^^xsd:string
472 ] 380 ]
473 ]) 381 ])
474 ] ; 382 ] ;
475 spin:rule 383 spin:rule
476 [ rdf:type sp:Construct ; 384 [ rdf:type sp:Construct ;
477 - rdfs:comment "STEP 10001n Create the ProductionReport - extract the name from productionOperation/installation"^^xsd:string ; 385 + rdfs:comment "STEP 10001m Create the ProductionReport - extract the name from productVolume/installation where the installation is a field"^^xsd:string ;
478 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; 386 sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
479 sp:predicate rdf:type ; 387 sp:predicate rdf:type ;
480 sp:subject 388 sp:subject
481 [ sp:varName "productionReport"^^xsd:string 389 [ sp:varName "productionReport"^^xsd:string
482 ] 390 ]
483 - ] [ sp:object _:b3 ;
484 - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
485 - sp:subject
486 - [ sp:varName "productionReport"^^xsd:string
487 - ]
488 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
489 - sp:predicate rdf:type ;
490 - sp:subject _:b3
491 - ] [ sp:object
492 - [ sp:varName "installation"^^xsd:string
493 - ] ;
494 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
495 - sp:subject _:b3
496 ] [ sp:object spin:_this ; 391 ] [ sp:object spin:_this ;
497 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 392 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
498 sp:subject 393 sp:subject
499 [ sp:varName "productionReport"^^xsd:string 394 [ sp:varName "productionReport"^^xsd:string
500 ] 395 ]
501 - ] [ sp:object
502 - [ sp:varName "contextRef"^^xsd:string
503 - ] ;
504 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
505 - sp:subject _:b3
506 ]) ; 396 ]) ;
507 sp:where ([ sp:object 397 sp:where ([ sp:object
508 [ sp:varName "intervalIdentifier"^^xsd:string 398 [ sp:varName "intervalIdentifier"^^xsd:string
...@@ -510,21 +400,21 @@ ...@@ -510,21 +400,21 @@
510 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; 400 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
511 sp:subject spin:_this 401 sp:subject spin:_this
512 ] [ sp:object 402 ] [ sp:object
513 - [ sp:varName "productionOperationRef"^^xsd:string 403 + [ sp:varName "productVolumeRef"^^xsd:string
514 ] ; 404 ] ;
515 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; 405 sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ;
516 sp:subject spin:_this 406 sp:subject spin:_this
517 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; 407 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ;
518 sp:predicate rdf:type ; 408 sp:predicate rdf:type ;
519 sp:subject 409 sp:subject
520 - [ sp:varName "productionOperationRef"^^xsd:string 410 + [ sp:varName "productVolumeRef"^^xsd:string
521 ] 411 ]
522 ] [ sp:object 412 ] [ sp:object
523 [ sp:varName "installationRef"^^xsd:string 413 [ sp:varName "installationRef"^^xsd:string
524 ] ; 414 ] ;
525 sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; 415 sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
526 sp:subject 416 sp:subject
527 - [ sp:varName "productionOperationRef"^^xsd:string 417 + [ sp:varName "productVolumeRef"^^xsd:string
528 ] 418 ]
529 ] [ sp:object 419 ] [ sp:object
530 [ sp:varName "installationRef"^^xsd:string 420 [ sp:varName "installationRef"^^xsd:string
...@@ -533,25 +423,11 @@ ...@@ -533,25 +423,11 @@
533 sp:subject 423 sp:subject
534 [ sp:varName "installation"^^xsd:string 424 [ sp:varName "installation"^^xsd:string
535 ] 425 ]
536 - ] [ rdf:type sp:NotExists ; 426 + ] [ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ;
537 - sp:elements ([ sp:object 427 + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ;
538 - [ sp:varName "contextRef"^^xsd:string 428 + sp:subject
539 - ] ; 429 + [ sp:varName "installationRef"^^xsd:string
540 - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; 430 + ]
541 - sp:subject spin:_this
542 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
543 - sp:predicate rdf:type ;
544 - sp:subject
545 - [ sp:varName "contextRef"^^xsd:string
546 - ]
547 - ] [ sp:object
548 - [ sp:varName "something"^^xsd:string
549 - ] ;
550 - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ;
551 - sp:subject
552 - [ sp:varName "contextRef"^^xsd:string
553 - ]
554 - ])
555 ] [ rdf:type sp:Bind ; 431 ] [ rdf:type sp:Bind ;
556 sp:expression 432 sp:expression
557 [ rdf:type spl:object ; 433 [ rdf:type spl:object ;
...@@ -577,58 +453,20 @@ ...@@ -577,58 +453,20 @@
577 ] ; 453 ] ;
578 spin:rule 454 spin:rule
579 [ rdf:type sp:Construct ; 455 [ rdf:type sp:Construct ;
580 - rdfs:comment "STEP 10001e Create the interval identifier - no date"^^xsd:string ; 456 + rdfs:comment "STEP 10020 Add the operator"^^xsd:string ;
581 - sp:templates ([ sp:object "noDate" ; 457 + sp:templates ([ sp:object _:b2 ;
582 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; 458 + sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
583 - sp:subject spin:_this
584 - ]) ;
585 - sp:where ([ sp:object
586 - [ sp:varName "contextRef"^^xsd:string
587 - ] ;
588 - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
589 - sp:subject spin:_this
590 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
591 - sp:predicate rdf:type ;
592 sp:subject 459 sp:subject
593 - [ sp:varName "contextRef"^^xsd:string 460 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
594 ] 461 ]
595 - ] [ rdf:type sp:NotExists ; 462 + ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
596 - sp:elements ([ sp:object 463 + sp:predicate rdf:type ;
597 - [ sp:varName "dateEnd"^^xsd:string 464 + sp:subject _:b2
598 - ] ; 465 + ] [ sp:object
599 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; 466 + [ sp:varName "operator"^^xsd:string
600 - sp:subject
601 - [ sp:varName "contextRef"^^xsd:string
602 - ]
603 - ])
604 - ] [ rdf:type sp:NotExists ;
605 - sp:elements ([ sp:object
606 - [ sp:varName "date"^^xsd:string
607 - ] ;
608 - sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
609 - sp:subject
610 - [ sp:varName "contextRef"^^xsd:string
611 - ]
612 - ])
613 - ] [ rdf:type sp:NotExists ;
614 - sp:elements ([ sp:object
615 - [ sp:varName "dateStart"^^xsd:string
616 - ] ;
617 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
618 - sp:subject
619 - [ sp:varName "contextRef"^^xsd:string
620 - ]
621 - ])
622 - ])
623 - ] ;
624 - spin:rule
625 - [ rdf:type sp:Construct ;
626 - rdfs:comment "STEP 10001c Create the interval identifier - date from context"^^xsd:string ;
627 - sp:templates ([ sp:object
628 - [ sp:varName "date"^^xsd:string
629 ] ; 467 ] ;
630 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; 468 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
631 - sp:subject spin:_this 469 + sp:subject _:b2
632 ]) ; 470 ]) ;
633 sp:where ([ sp:object 471 sp:where ([ sp:object
634 [ sp:varName "contextRef"^^xsd:string 472 [ sp:varName "contextRef"^^xsd:string
...@@ -641,121 +479,43 @@ ...@@ -641,121 +479,43 @@
641 [ sp:varName "contextRef"^^xsd:string 479 [ sp:varName "contextRef"^^xsd:string
642 ] 480 ]
643 ] [ sp:object 481 ] [ sp:object
644 - [ sp:varName "date"^^xsd:string 482 + [ sp:varName "operatorRef"^^xsd:string
645 ] ; 483 ] ;
646 - sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; 484 + sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ;
647 sp:subject 485 sp:subject
648 [ sp:varName "contextRef"^^xsd:string 486 [ sp:varName "contextRef"^^xsd:string
649 ] 487 ]
650 - ] [ rdf:type sp:NotExists ;
651 - sp:elements ([ sp:object
652 - [ sp:varName "dateStart"^^xsd:string
653 - ] ;
654 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
655 - sp:subject
656 - [ sp:varName "contextRef"^^xsd:string
657 - ]
658 - ])
659 - ] [ rdf:type sp:NotExists ;
660 - sp:elements ([ sp:object
661 - [ sp:varName "dateEnd"^^xsd:string
662 - ] ;
663 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
664 - sp:subject
665 - [ sp:varName "contextRef"^^xsd:string
666 - ]
667 - ])
668 - ])
669 - ] ;
670 - spin:rule
671 - [ rdf:type sp:Construct ;
672 - rdfs:comment "STEP 10001m Create the ProductionReport - extract the name from context/installation"^^xsd:string ;
673 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
674 - sp:predicate rdf:type ;
675 - sp:subject
676 - [ sp:varName "productionReport"^^xsd:string
677 - ]
678 - ] [ sp:object _:b4 ;
679 - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
680 - sp:subject
681 - [ sp:varName "productionReport"^^xsd:string
682 - ]
683 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
684 - sp:predicate rdf:type ;
685 - sp:subject _:b4
686 ] [ sp:object 488 ] [ sp:object
687 - [ sp:varName "installation"^^xsd:string 489 + [ sp:varName "operatorRef"^^xsd:string
688 ] ; 490 ] ;
689 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
690 - sp:subject _:b4
691 - ] [ sp:object spin:_this ;
692 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 491 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
693 sp:subject 492 sp:subject
694 - [ sp:varName "productionReport"^^xsd:string 493 + [ sp:varName "operator"^^xsd:string
695 ] 494 ]
696 - ] [ sp:object 495 + ] [ sp:object spin:_this ;
697 - [ sp:varName "contextRef"^^xsd:string
698 - ] ;
699 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 496 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
700 - sp:subject _:b4
701 - ]) ;
702 - sp:where ([ sp:object
703 - [ sp:varName "intervalIdentifier"^^xsd:string
704 - ] ;
705 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
706 - sp:subject spin:_this
707 - ] [ sp:object
708 - [ sp:varName "contextRef"^^xsd:string
709 - ] ;
710 - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
711 - sp:subject spin:_this
712 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
713 - sp:predicate rdf:type ;
714 sp:subject 497 sp:subject
715 - [ sp:varName "contextRef"^^xsd:string 498 + [ sp:varName "productionReport"^^xsd:string
716 ] 499 ]
717 ] [ sp:object 500 ] [ sp:object
718 - [ sp:varName "installationRef"^^xsd:string 501 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
719 ] ; 502 ] ;
720 - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; 503 + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportSubmittedBy> ;
721 sp:subject 504 sp:subject
722 - [ sp:varName "contextRef"^^xsd:string 505 + [ sp:varName "productionReport"^^xsd:string
723 ] 506 ]
724 - ] [ sp:object 507 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
725 - [ sp:varName "installationRef"^^xsd:string 508 + sp:predicate rdf:type ;
726 - ] ;
727 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
728 sp:subject 509 sp:subject
729 - [ sp:varName "installation"^^xsd:string 510 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
730 - ]
731 - ] [ rdf:type sp:Bind ;
732 - sp:expression
733 - [ rdf:type spl:object ;
734 - sp:arg1 [ sp:varName "installationRef"^^xsd:string
735 - ] ;
736 - sp:arg2 <http://www.reportinghub.no/ep/transform/transform-helper-schema#hasDerivedText>
737 - ] ;
738 - sp:variable
739 - [ sp:varName "normalizedInstallationName"^^xsd:string
740 - ]
741 - ] [ rdf:type sp:Bind ;
742 - sp:expression
743 - [ rdf:type ep-mpr-spin-lib:buildProductionReportURI ;
744 - sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string
745 - ] ;
746 - sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string
747 - ]
748 - ] ;
749 - sp:variable
750 - [ sp:varName "productionReport"^^xsd:string
751 ] 511 ]
752 ]) 512 ])
753 ] ; 513 ] ;
754 spin:rule 514 spin:rule
755 [ rdf:type sp:Construct ; 515 [ rdf:type sp:Construct ;
756 - rdfs:comment "STEP 10001d Create the interval identifier - dateEnd from context"^^xsd:string ; 516 + rdfs:comment "STEP 10001c Create the interval identifier - date from context"^^xsd:string ;
757 sp:templates ([ sp:object 517 sp:templates ([ sp:object
758 - [ sp:varName "dateEnd"^^xsd:string 518 + [ sp:varName "date"^^xsd:string
759 ] ; 519 ] ;
760 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ; 520 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalIdentifier> ;
761 sp:subject spin:_this 521 sp:subject spin:_this
...@@ -771,94 +531,34 @@ ...@@ -771,94 +531,34 @@
771 [ sp:varName "contextRef"^^xsd:string 531 [ sp:varName "contextRef"^^xsd:string
772 ] 532 ]
773 ] [ sp:object 533 ] [ sp:object
774 - [ sp:varName "dateEnd"^^xsd:string 534 + [ sp:varName "date"^^xsd:string
775 ] ; 535 ] ;
776 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; 536 + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ;
777 sp:subject 537 sp:subject
778 [ sp:varName "contextRef"^^xsd:string 538 [ sp:varName "contextRef"^^xsd:string
779 ] 539 ]
780 ] [ rdf:type sp:NotExists ; 540 ] [ rdf:type sp:NotExists ;
781 sp:elements ([ sp:object 541 sp:elements ([ sp:object
782 - [ sp:varName "date"^^xsd:string 542 + [ sp:varName "dateStart"^^xsd:string
783 ] ; 543 ] ;
784 - sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; 544 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
785 sp:subject 545 sp:subject
786 [ sp:varName "contextRef"^^xsd:string 546 [ sp:varName "contextRef"^^xsd:string
787 ] 547 ]
788 ]) 548 ])
789 ] [ rdf:type sp:NotExists ; 549 ] [ rdf:type sp:NotExists ;
790 sp:elements ([ sp:object 550 sp:elements ([ sp:object
791 - [ sp:varName "dateStart"^^xsd:string 551 + [ sp:varName "dateEnd"^^xsd:string
792 ] ; 552 ] ;
793 - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; 553 + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
794 sp:subject 554 sp:subject
795 [ sp:varName "contextRef"^^xsd:string 555 [ sp:varName "contextRef"^^xsd:string
796 ] 556 ]
797 ]) 557 ])
798 ]) 558 ])
799 - ] ;
800 - spin:rule
801 - [ rdf:type sp:Construct ;
802 - rdfs:comment "STEP 10020 Add the operator"^^xsd:string ;
803 - sp:templates ([ sp:object _:b5 ;
804 - sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ;
805 - sp:subject
806 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
807 - ]
808 - ] [ sp:object <http://www.reportinghub.no/ep/schema/organization#Organization> ;
809 - sp:predicate rdf:type ;
810 - sp:subject _:b5
811 - ] [ sp:object
812 - [ sp:varName "operator"^^xsd:string
813 - ] ;
814 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
815 - sp:subject _:b5
816 - ]) ;
817 - sp:where ([ sp:object
818 - [ sp:varName "contextRef"^^xsd:string
819 - ] ;
820 - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ;
821 - sp:subject spin:_this
822 - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ;
823 - sp:predicate rdf:type ;
824 - sp:subject
825 - [ sp:varName "contextRef"^^xsd:string
826 - ]
827 - ] [ sp:object
828 - [ sp:varName "operatorRef"^^xsd:string
829 - ] ;
830 - sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ;
831 - sp:subject
832 - [ sp:varName "contextRef"^^xsd:string
833 - ]
834 - ] [ sp:object
835 - [ sp:varName "operatorRef"^^xsd:string
836 - ] ;
837 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
838 - sp:subject
839 - [ sp:varName "operator"^^xsd:string
840 - ]
841 - ] [ sp:object spin:_this ;
842 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
843 - sp:subject
844 - [ sp:varName "productionReport"^^xsd:string
845 - ]
846 - ] [ sp:object
847 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
848 - ] ;
849 - sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
850 - sp:subject
851 - [ sp:varName "productionReport"^^xsd:string
852 - ]
853 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
854 - sp:predicate rdf:type ;
855 - sp:subject
856 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
857 - ]
858 - ])
859 ] . 559 ] .
860 560
861 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> 561 <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0>
862 rdf:type owl:Ontology ; 562 rdf:type owl:Ontology ;
863 - owl:imports <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> ; 563 + owl:imports <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> ;
864 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 564 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......