Showing
11 changed files
with
1453 additions
and
816 deletions
1 | # baseURI: http://www.reportinghub.no/ep/schema/1.0/production-equipment | 1 | # baseURI: http://www.reportinghub.no/ep/schema/1.0/production-equipment |
2 | # imports: http://www.reportinghub.no/ep/schema/1.0/equipment | 2 | # imports: http://www.reportinghub.no/ep/schema/1.0/equipment |
3 | +# imports: http://www.reportinghub.no/ep/schema/1.0/production-facility | ||
3 | # imports: http://www.reportinghub.no/ep/schema/1.0/production-organization | 4 | # imports: http://www.reportinghub.no/ep/schema/1.0/production-organization |
4 | 5 | ||
5 | @prefix ep-core: <http://www.reportinghub.no/ep/schema/core#> . | 6 | @prefix ep-core: <http://www.reportinghub.no/ep/schema/core#> . |
6 | @prefix ep-prodeqt: <http://www.reportinghub.no/ep/schema/production-equipment#> . | 7 | @prefix ep-prodeqt: <http://www.reportinghub.no/ep/schema/production-equipment#> . |
8 | +@prefix ep-prodfac: <http://www.reportinghub.no/ep/schema/production-facility#> . | ||
7 | @prefix owl: <http://www.w3.org/2002/07/owl#> . | 9 | @prefix owl: <http://www.w3.org/2002/07/owl#> . |
8 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 10 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
9 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | 11 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
... | @@ -11,9 +13,28 @@ | ... | @@ -11,9 +13,28 @@ |
11 | 13 | ||
12 | <http://www.reportinghub.no/ep/schema/1.0/production-equipment> | 14 | <http://www.reportinghub.no/ep/schema/1.0/production-equipment> |
13 | rdf:type owl:Ontology ; | 15 | rdf:type owl:Ontology ; |
14 | - owl:imports <http://www.reportinghub.no/ep/schema/1.0/production-organization> , <http://www.reportinghub.no/ep/schema/1.0/equipment> ; | 16 | + owl:imports <http://www.reportinghub.no/ep/schema/1.0/production-facility> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/production-organization> ; |
15 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 17 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
16 | 18 | ||
19 | +<http://www.reportinghub.no/ep/schema/equipment#ChokeValve> | ||
20 | + rdfs:subClassOf ep-prodeqt:Valve . | ||
21 | + | ||
22 | +<http://www.reportinghub.no/ep/schema/equipment#Controller-lift> | ||
23 | + rdfs:subClassOf ep-prodeqt:Controller . | ||
24 | + | ||
25 | +<http://www.reportinghub.no/ep/schema/equipment#Manifold> | ||
26 | + rdfs:label "manifold"^^xsd:string . | ||
27 | + | ||
28 | +ep-prodeqt:BlockValve | ||
29 | + rdf:type owl:Class ; | ||
30 | + rdfs:label "block valve"^^xsd:string ; | ||
31 | + rdfs:subClassOf ep-prodeqt:Valve . | ||
32 | + | ||
33 | +ep-prodeqt:Controller | ||
34 | + rdf:type ep-prodfac:ProductionFacilityType , owl:Class ; | ||
35 | + rdfs:label "controller"^^xsd:string ; | ||
36 | + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/equipment#Equipment> . | ||
37 | + | ||
17 | ep-prodeqt:DownHoleControlValve | 38 | ep-prodeqt:DownHoleControlValve |
18 | rdf:type owl:Class ; | 39 | rdf:type owl:Class ; |
19 | rdfs:label "down hole control valve"^^xsd:string ; | 40 | rdfs:label "down hole control valve"^^xsd:string ; |
... | @@ -28,18 +49,43 @@ ep-prodeqt:GasLiftChoke | ... | @@ -28,18 +49,43 @@ ep-prodeqt:GasLiftChoke |
28 | rdfs:label "gas lift choke"^^xsd:string ; | 49 | rdfs:label "gas lift choke"^^xsd:string ; |
29 | rdfs:subClassOf <http://www.reportinghub.no/ep/schema/equipment#Equipment> . | 50 | rdfs:subClassOf <http://www.reportinghub.no/ep/schema/equipment#Equipment> . |
30 | 51 | ||
52 | +ep-prodeqt:PressureMeter | ||
53 | + rdf:type owl:Class ; | ||
54 | + rdfs:label "pressure meter"^^xsd:string ; | ||
55 | + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/equipment#Equipment> . | ||
56 | + | ||
57 | +ep-prodeqt:RegulatingValve | ||
58 | + rdf:type owl:Class ; | ||
59 | + rdfs:label "regulating valve"^^xsd:string ; | ||
60 | + rdfs:subClassOf ep-prodeqt:Valve . | ||
61 | + | ||
62 | +ep-prodeqt:SleeveValve | ||
63 | + rdf:type owl:Class ; | ||
64 | + rdfs:label "sleeve valve"^^xsd:string ; | ||
65 | + rdfs:subClassOf ep-prodeqt:Valve . | ||
66 | + | ||
67 | +ep-prodeqt:TemperatureMeter | ||
68 | + rdf:type owl:Class ; | ||
69 | + rdfs:label "temperature meter"^^xsd:string ; | ||
70 | + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/equipment#Equipment> . | ||
71 | + | ||
31 | ep-prodeqt:Valve | 72 | ep-prodeqt:Valve |
32 | rdf:type owl:Class ; | 73 | rdf:type owl:Class ; |
33 | rdfs:label "valve"^^xsd:string ; | 74 | rdfs:label "valve"^^xsd:string ; |
34 | rdfs:subClassOf <http://www.reportinghub.no/ep/schema/equipment#Equipment> . | 75 | rdfs:subClassOf <http://www.reportinghub.no/ep/schema/equipment#Equipment> . |
35 | 76 | ||
36 | ep-prodeqt:hasCaptain | 77 | ep-prodeqt:hasCaptain |
37 | - rdf:type owl:ObjectProperty , owl:FunctionalProperty ; | 78 | + rdf:type owl:FunctionalProperty , owl:ObjectProperty ; |
38 | rdfs:label "has captain"^^xsd:string ; | 79 | rdfs:label "has captain"^^xsd:string ; |
39 | rdfs:range <http://www.reportinghub.no/ep/schema/production-organization#Person> . | 80 | rdfs:range <http://www.reportinghub.no/ep/schema/production-organization#Person> . |
40 | 81 | ||
41 | ep-prodeqt:hasValvePosition | 82 | ep-prodeqt:hasValvePosition |
42 | - rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ; | 83 | + rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ; |
43 | rdfs:domain ep-prodeqt:Valve ; | 84 | rdfs:domain ep-prodeqt:Valve ; |
44 | rdfs:label "has valve position"^^xsd:string ; | 85 | rdfs:label "has valve position"^^xsd:string ; |
45 | rdfs:range ep-core:Ratio . | 86 | rdfs:range ep-core:Ratio . |
87 | + | ||
88 | +ep-prodfac:Pipeline | ||
89 | + rdf:type owl:Class , ep-prodfac:ProductionFacilityType ; | ||
90 | + rdfs:label "pipeline"^^xsd:string ; | ||
91 | + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> . | ... | ... |
1 | # baseURI: http://www.reportinghub.no/ep/schema/1.0/production-facility | 1 | # baseURI: http://www.reportinghub.no/ep/schema/1.0/production-facility |
2 | # imports: http://www.reportinghub.no/ep/schema/1.0/facility | 2 | # imports: http://www.reportinghub.no/ep/schema/1.0/facility |
3 | # imports: http://www.reportinghub.no/ep/schema/1.0/organization | 3 | # imports: http://www.reportinghub.no/ep/schema/1.0/organization |
4 | +# imports: http://www.reportinghub.no/ep/schema/1.0/production-well | ||
4 | 5 | ||
5 | @prefix ep-core: <http://www.reportinghub.no/ep/schema/core#> . | 6 | @prefix ep-core: <http://www.reportinghub.no/ep/schema/core#> . |
6 | @prefix ep-prodfac: <http://www.reportinghub.no/ep/schema/production-facility#> . | 7 | @prefix ep-prodfac: <http://www.reportinghub.no/ep/schema/production-facility#> . |
... | @@ -11,29 +12,139 @@ | ... | @@ -11,29 +12,139 @@ |
11 | 12 | ||
12 | <http://www.reportinghub.no/ep/schema/1.0/production-facility> | 13 | <http://www.reportinghub.no/ep/schema/1.0/production-facility> |
13 | rdf:type owl:Ontology ; | 14 | rdf:type owl:Ontology ; |
14 | - owl:imports <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/organization> ; | 15 | + owl:imports <http://www.reportinghub.no/ep/schema/1.0/production-well> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/facility> ; |
15 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 16 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
16 | 17 | ||
18 | +<http://www.reportinghub.no/ep/schema/equipment#ChokeValve> | ||
19 | + rdf:type ep-prodfac:ProductionFacilityType . | ||
20 | + | ||
21 | +<http://www.reportinghub.no/ep/schema/equipment#Compressor> | ||
22 | + rdf:type ep-prodfac:ProductionFacilityType . | ||
23 | + | ||
24 | +<http://www.reportinghub.no/ep/schema/equipment#Controller-lift> | ||
25 | + rdf:type ep-prodfac:ProductionFacilityType . | ||
26 | + | ||
27 | +<http://www.reportinghub.no/ep/schema/equipment#Manifold> | ||
28 | + rdf:type ep-prodfac:ProductionFacilityType . | ||
29 | + | ||
30 | +<http://www.reportinghub.no/ep/schema/equipment#Separator> | ||
31 | + rdf:type ep-prodfac:ProductionFacilityType . | ||
32 | + | ||
33 | +<http://www.reportinghub.no/ep/schema/equipment#Tank> | ||
34 | + rdf:type ep-prodfac:ProductionFacilityType . | ||
35 | + | ||
36 | +<http://www.reportinghub.no/ep/schema/facility#Field> | ||
37 | + rdf:type ep-prodfac:ProductionFacilityType . | ||
38 | + | ||
39 | +<http://www.reportinghub.no/ep/schema/facility#Flowline> | ||
40 | + rdf:type ep-prodfac:ProductionFacilityType . | ||
41 | + | ||
42 | +<http://www.reportinghub.no/ep/schema/facility#Lease> | ||
43 | + rdf:type ep-prodfac:ProductionFacilityType . | ||
44 | + | ||
45 | +<http://www.reportinghub.no/ep/schema/facility#Platform> | ||
46 | + rdf:type ep-prodfac:ProductionFacilityType . | ||
47 | + | ||
48 | +<http://www.reportinghub.no/ep/schema/facility#ProductionFacility> | ||
49 | + rdf:type ep-prodfac:ProductionFacilityType . | ||
50 | + | ||
17 | <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> | 51 | <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> |
18 | rdf:type owl:Class ; | 52 | rdf:type owl:Class ; |
19 | rdfs:label "production facility to date"^^xsd:string ; | 53 | rdfs:label "production facility to date"^^xsd:string ; |
20 | rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> . | 54 | rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> . |
21 | 55 | ||
56 | +<http://www.reportinghub.no/ep/schema/facility#Reservoir> | ||
57 | + rdf:type ep-prodfac:ProductionFacilityType . | ||
58 | + | ||
59 | +<http://www.reportinghub.no/ep/schema/facility#Template> | ||
60 | + rdf:type ep-prodfac:ProductionFacilityType . | ||
61 | + | ||
22 | <http://www.reportinghub.no/ep/schema/facility#facilityOperator> | 62 | <http://www.reportinghub.no/ep/schema/facility#facilityOperator> |
23 | - rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ; | 63 | + rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ; |
24 | rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ; | 64 | rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ; |
25 | rdfs:label "facility operator"^^xsd:string ; | 65 | rdfs:label "facility operator"^^xsd:string ; |
26 | rdfs:range <http://www.reportinghub.no/ep/schema/organization#Organization> . | 66 | rdfs:range <http://www.reportinghub.no/ep/schema/organization#Organization> . |
27 | 67 | ||
68 | +<http://www.reportinghub.no/ep/schema/geography#Country> | ||
69 | + rdf:type ep-prodfac:ProductionFacilityType . | ||
70 | + | ||
71 | +<http://www.reportinghub.no/ep/schema/geography#State> | ||
72 | + rdf:type ep-prodfac:ProductionFacilityType . | ||
73 | + | ||
74 | +<http://www.reportinghub.no/ep/schema/geography#Terminal> | ||
75 | + rdf:type ep-prodfac:ProductionFacilityType . | ||
76 | + | ||
77 | +<http://www.reportinghub.no/ep/schema/organization#Company> | ||
78 | + rdf:type ep-prodfac:ProductionFacilityType . | ||
79 | + | ||
80 | +<http://www.reportinghub.no/ep/schema/production-equipment#BlockValve> | ||
81 | + rdf:type ep-prodfac:ProductionFacilityType . | ||
82 | + | ||
83 | +<http://www.reportinghub.no/ep/schema/production-equipment#FlowMeter> | ||
84 | + rdf:type ep-prodfac:ProductionFacilityType ; | ||
85 | + rdfs:label "flow meter"^^xsd:string . | ||
86 | + | ||
87 | +<http://www.reportinghub.no/ep/schema/production-equipment#PressureMeter> | ||
88 | + rdf:type ep-prodfac:ProductionFacilityType . | ||
89 | + | ||
90 | +<http://www.reportinghub.no/ep/schema/production-equipment#RegulatingValve> | ||
91 | + rdf:type ep-prodfac:ProductionFacilityType . | ||
92 | + | ||
93 | +<http://www.reportinghub.no/ep/schema/production-equipment#SleeveValve> | ||
94 | + rdf:type ep-prodfac:ProductionFacilityType . | ||
95 | + | ||
96 | +<http://www.reportinghub.no/ep/schema/production-equipment#TemperatureMeter> | ||
97 | + rdf:type ep-prodfac:ProductionFacilityType . | ||
98 | + | ||
28 | ep-prodfac:Boat | 99 | ep-prodfac:Boat |
29 | rdf:type owl:Class ; | 100 | rdf:type owl:Class ; |
30 | rdfs:subClassOf ep-prodfac:ShipOrBoat . | 101 | rdfs:subClassOf ep-prodfac:ShipOrBoat . |
31 | 102 | ||
103 | +ep-prodfac:Field-area | ||
104 | + rdf:type owl:Class , ep-prodfac:ProductionFacilityType ; | ||
105 | + rdfs:label "field - area"^^xsd:string ; | ||
106 | + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Field> . | ||
107 | + | ||
108 | +ep-prodfac:Field-group | ||
109 | + rdf:type owl:Class , ep-prodfac:ProductionFacilityType ; | ||
110 | + rdfs:label "field - group"^^xsd:string ; | ||
111 | + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Field> . | ||
112 | + | ||
113 | +ep-prodfac:Field-part | ||
114 | + rdf:type owl:Class , ep-prodfac:ProductionFacilityType ; | ||
115 | + rdfs:label "field - part"^^xsd:string ; | ||
116 | + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Field> . | ||
117 | + | ||
118 | +ep-prodfac:Installation | ||
119 | + rdf:type ep-prodfac:ProductionFacilityType , owl:Class ; | ||
120 | + rdfs:label "installation"^^xsd:string ; | ||
121 | + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> . | ||
122 | + | ||
32 | ep-prodfac:OilTanker | 123 | ep-prodfac:OilTanker |
33 | rdf:type owl:Class ; | 124 | rdf:type owl:Class ; |
34 | rdfs:label "oil tanker"^^xsd:string ; | 125 | rdfs:label "oil tanker"^^xsd:string ; |
35 | rdfs:subClassOf ep-prodfac:Ship . | 126 | rdfs:subClassOf ep-prodfac:Ship . |
36 | 127 | ||
128 | +ep-prodfac:Plant | ||
129 | + rdf:type owl:Class , ep-prodfac:ProductionFacilityType ; | ||
130 | + rdfs:label "plant"^^xsd:string ; | ||
131 | + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> . | ||
132 | + | ||
133 | +ep-prodfac:Plant-processing | ||
134 | + rdf:type owl:Class , ep-prodfac:ProductionFacilityType ; | ||
135 | + rdfs:label "plant - processing"^^xsd:string ; | ||
136 | + rdfs:subClassOf ep-prodfac:Plant . | ||
137 | + | ||
138 | +ep-prodfac:ProcessingFacility | ||
139 | + rdf:type owl:Class , ep-prodfac:ProductionFacilityType ; | ||
140 | + rdfs:label "processing facility"^^xsd:string ; | ||
141 | + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> . | ||
142 | + | ||
143 | +ep-prodfac:ProductionFacilityType | ||
144 | + rdf:type rdfs:Class ; | ||
145 | + rdfs:label "production facility type"^^xsd:string ; | ||
146 | + rdfs:subClassOf owl:Class . | ||
147 | + | ||
37 | ep-prodfac:Ship | 148 | ep-prodfac:Ship |
38 | rdf:type owl:Class ; | 149 | rdf:type owl:Class ; |
39 | rdfs:label "Ship"^^xsd:string ; | 150 | rdfs:label "Ship"^^xsd:string ; |
... | @@ -43,6 +154,11 @@ ep-prodfac:ShipOrBoat | ... | @@ -43,6 +154,11 @@ ep-prodfac:ShipOrBoat |
43 | rdf:type owl:Class ; | 154 | rdf:type owl:Class ; |
44 | rdfs:subClassOf ep-prodfac:TemporalPartOfAShipOrBoat . | 155 | rdfs:subClassOf ep-prodfac:TemporalPartOfAShipOrBoat . |
45 | 156 | ||
157 | +ep-prodfac:StorageFacility | ||
158 | + rdf:type owl:Class , ep-prodfac:ProductionFacilityType ; | ||
159 | + rdfs:label "storage facility"^^xsd:string ; | ||
160 | + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> . | ||
161 | + | ||
46 | ep-prodfac:SupplyShip | 162 | ep-prodfac:SupplyShip |
47 | rdf:type owl:Class ; | 163 | rdf:type owl:Class ; |
48 | rdfs:label "supply ship"^^xsd:string ; | 164 | rdfs:label "supply ship"^^xsd:string ; |
... | @@ -52,6 +168,11 @@ ep-prodfac:TemporalPartOfAShipOrBoat | ... | @@ -52,6 +168,11 @@ ep-prodfac:TemporalPartOfAShipOrBoat |
52 | rdf:type owl:Class ; | 168 | rdf:type owl:Class ; |
53 | rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> . | 169 | rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> . |
54 | 170 | ||
171 | +ep-prodfac:TrunkLine | ||
172 | + rdf:type ep-prodfac:ProductionFacilityType , owl:Class ; | ||
173 | + rdfs:label "trunk line"^^xsd:string ; | ||
174 | + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> . | ||
175 | + | ||
55 | ep-prodfac:numberOfBedsAvailable | 176 | ep-prodfac:numberOfBedsAvailable |
56 | rdf:type owl:DatatypeProperty ; | 177 | rdf:type owl:DatatypeProperty ; |
57 | rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ; | 178 | rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ; |
... | @@ -96,3 +217,31 @@ ep-prodfac:numberOfPersonnelOnBoard | ... | @@ -96,3 +217,31 @@ ep-prodfac:numberOfPersonnelOnBoard |
96 | rdf:type owl:DatatypeProperty ; | 217 | rdf:type owl:DatatypeProperty ; |
97 | rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ; | 218 | rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ; |
98 | rdfs:range xsd:integer . | 219 | rdfs:range xsd:integer . |
220 | + | ||
221 | +<http://www.reportinghub.no/ep/schema/production-organization#CommercialEntity> | ||
222 | + rdf:type ep-prodfac:ProductionFacilityType . | ||
223 | + | ||
224 | +<http://www.reportinghub.no/ep/schema/production-well#RockFormation> | ||
225 | + rdf:type ep-prodfac:ProductionFacilityType . | ||
226 | + | ||
227 | +<http://www.reportinghub.no/ep/schema/production-well#TubingHead> | ||
228 | + rdf:type ep-prodfac:ProductionFacilityType . | ||
229 | + | ||
230 | +<http://www.reportinghub.no/ep/schema/production-well#WellCompletion> | ||
231 | + rdf:type ep-prodfac:ProductionFacilityType . | ||
232 | + | ||
233 | +<http://www.reportinghub.no/ep/schema/well#Well> | ||
234 | + rdf:type ep-prodfac:ProductionFacilityType . | ||
235 | + | ||
236 | +<http://www.reportinghub.no/ep/schema/well#WellBore> | ||
237 | + rdf:type ep-prodfac:ProductionFacilityType . | ||
238 | + | ||
239 | +<http://www.reportinghub.no/ep/schema/well#WellGroup> | ||
240 | + rdf:type ep-prodfac:ProductionFacilityType . | ||
241 | + | ||
242 | +<http://www.reportinghub.no/ep/schema/well#WellHead> | ||
243 | + rdf:type ep-prodfac:ProductionFacilityType . | ||
244 | + | ||
245 | +<http://www.reportinghub.no/np/schema/npd#Licence> | ||
246 | + rdf:type ep-prodfac:ProductionFacilityType ; | ||
247 | + rdfs:label "licence"^^xsd:string . | ... | ... |
... | @@ -12,6 +12,14 @@ | ... | @@ -12,6 +12,14 @@ |
12 | owl:imports <http://www.reportinghub.no/ep/schema/1.0/organization> ; | 12 | owl:imports <http://www.reportinghub.no/ep/schema/1.0/organization> ; |
13 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 13 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
14 | 14 | ||
15 | +<http://www.reportinghub.no/ep/schema/organization#Organization> | ||
16 | + rdfs:subClassOf ep-prodorg:PersonOrOrganization . | ||
17 | + | ||
18 | +ep-prodorg:CommercialEntity | ||
19 | + rdf:type owl:Class ; | ||
20 | + rdfs:label "commercial entity"^^xsd:string ; | ||
21 | + rdfs:subClassOf ep-prodorg:PersonOrOrganization . | ||
22 | + | ||
15 | ep-prodorg:Person | 23 | ep-prodorg:Person |
16 | rdf:type owl:Class ; | 24 | rdf:type owl:Class ; |
17 | rdfs:subClassOf ep-prodorg:PersonOrOrganization . | 25 | rdfs:subClassOf ep-prodorg:PersonOrOrganization . | ... | ... |
... | @@ -112,6 +112,11 @@ ep-prodwell:PureFluid | ... | @@ -112,6 +112,11 @@ ep-prodwell:PureFluid |
112 | rdfs:label "pure fluid"^^xsd:string ; | 112 | rdfs:label "pure fluid"^^xsd:string ; |
113 | rdfs:subClassOf ep-material:Fluid . | 113 | rdfs:subClassOf ep-material:Fluid . |
114 | 114 | ||
115 | +ep-prodwell:RockFormation | ||
116 | + rdf:type owl:Class ; | ||
117 | + rdfs:label "rock formation"^^xsd:string ; | ||
118 | + rdfs:subClassOf ep-core:PhysicalObject . | ||
119 | + | ||
115 | ep-prodwell:SplitFraction | 120 | ep-prodwell:SplitFraction |
116 | rdf:type ep-prodwell:FluidComponentKindType , owl:Class ; | 121 | rdf:type ep-prodwell:FluidComponentKindType , owl:Class ; |
117 | rdfs:label "split fraction"^^xsd:string ; | 122 | rdfs:label "split fraction"^^xsd:string ; |
... | @@ -127,11 +132,21 @@ ep-prodwell:TemporalPartOfASpatialPartOfAWellBore | ... | @@ -127,11 +132,21 @@ ep-prodwell:TemporalPartOfASpatialPartOfAWellBore |
127 | rdfs:label "temporal part of a spatial part of a wellbore"^^xsd:string ; | 132 | rdfs:label "temporal part of a spatial part of a wellbore"^^xsd:string ; |
128 | rdfs:subClassOf ep-well:TemporalPartOfAWellBore . | 133 | rdfs:subClassOf ep-well:TemporalPartOfAWellBore . |
129 | 134 | ||
135 | +ep-prodwell:TubingHead | ||
136 | + rdf:type owl:Class ; | ||
137 | + rdfs:label "tubing head"^^xsd:string ; | ||
138 | + rdfs:subClassOf ep-well:SpatialPartOfAWell . | ||
139 | + | ||
130 | ep-prodwell:UnknownFluid | 140 | ep-prodwell:UnknownFluid |
131 | rdf:type ep-well:FluidComponentType , owl:Class , ep-prodwell:InjectionFluidType ; | 141 | rdf:type ep-well:FluidComponentType , owl:Class , ep-prodwell:InjectionFluidType ; |
132 | rdfs:label "unknown fluid"^^xsd:string ; | 142 | rdfs:label "unknown fluid"^^xsd:string ; |
133 | rdfs:subClassOf ep-material:Fluid . | 143 | rdfs:subClassOf ep-material:Fluid . |
134 | 144 | ||
145 | +ep-prodwell:WellCompletion | ||
146 | + rdf:type owl:Class ; | ||
147 | + rdfs:label "well completion"^^xsd:string ; | ||
148 | + rdfs:subClassOf ep-well:SpatialPartOfAWellBore . | ||
149 | + | ||
135 | ep-prodwell:completeLiquidPartOf | 150 | ep-prodwell:completeLiquidPartOf |
136 | rdf:type owl:FunctionalProperty , owl:ObjectProperty ; | 151 | rdf:type owl:FunctionalProperty , owl:ObjectProperty ; |
137 | rdfs:domain ep-material:QuantityOfMaterial ; | 152 | rdfs:domain ep-material:QuantityOfMaterial ; | ... | ... |
... | @@ -4125,7 +4125,7 @@ ep-mpr-spin-lib:selectProductionFacilityType | ... | @@ -4125,7 +4125,7 @@ ep-mpr-spin-lib:selectProductionFacilityType |
4125 | sp:arg1 spin:_arg1 ; | 4125 | sp:arg1 spin:_arg1 ; |
4126 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_blockvalve> | 4126 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_blockvalve> |
4127 | ] ; | 4127 | ] ; |
4128 | - sp:arg2 <http://www.reportinghub.no/ep/schema/equipment#BlockValve> ; | 4128 | + sp:arg2 <http://www.reportinghub.no/ep/schema/production-equipment#BlockValve> ; |
4129 | sp:arg3 [ rdf:type sp:if ; | 4129 | sp:arg3 [ rdf:type sp:if ; |
4130 | sp:arg1 [ rdf:type sp:eq ; | 4130 | sp:arg1 [ rdf:type sp:eq ; |
4131 | sp:arg1 spin:_arg1 ; | 4131 | sp:arg1 spin:_arg1 ; |
... | @@ -4149,7 +4149,7 @@ ep-mpr-spin-lib:selectProductionFacilityType | ... | @@ -4149,7 +4149,7 @@ ep-mpr-spin-lib:selectProductionFacilityType |
4149 | sp:arg1 spin:_arg1 ; | 4149 | sp:arg1 spin:_arg1 ; |
4150 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_commercialentity> | 4150 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_commercialentity> |
4151 | ] ; | 4151 | ] ; |
4152 | - sp:arg2 <http://www.reportinghub.no/ep/schema/organization#CommercialEntity> ; | 4152 | + sp:arg2 <http://www.reportinghub.no/ep/schema/production-organization#CommercialEntity> ; |
4153 | sp:arg3 [ rdf:type sp:if ; | 4153 | sp:arg3 [ rdf:type sp:if ; |
4154 | sp:arg1 [ rdf:type sp:eq ; | 4154 | sp:arg1 [ rdf:type sp:eq ; |
4155 | sp:arg1 spin:_arg1 ; | 4155 | sp:arg1 spin:_arg1 ; |
... | @@ -4161,7 +4161,7 @@ ep-mpr-spin-lib:selectProductionFacilityType | ... | @@ -4161,7 +4161,7 @@ ep-mpr-spin-lib:selectProductionFacilityType |
4161 | sp:arg1 spin:_arg1 ; | 4161 | sp:arg1 spin:_arg1 ; |
4162 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_completion> | 4162 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_completion> |
4163 | ] ; | 4163 | ] ; |
4164 | - sp:arg2 <http://www.reportinghub.no/ep/schema/well#Completion> ; | 4164 | + sp:arg2 <http://www.reportinghub.no/ep/schema/production-well#WellCompletion> ; |
4165 | sp:arg3 [ rdf:type sp:if ; | 4165 | sp:arg3 [ rdf:type sp:if ; |
4166 | sp:arg1 [ rdf:type sp:eq ; | 4166 | sp:arg1 [ rdf:type sp:eq ; |
4167 | sp:arg1 spin:_arg1 ; | 4167 | sp:arg1 spin:_arg1 ; |
... | @@ -4179,7 +4179,7 @@ ep-mpr-spin-lib:selectProductionFacilityType | ... | @@ -4179,7 +4179,7 @@ ep-mpr-spin-lib:selectProductionFacilityType |
4179 | sp:arg1 spin:_arg1 ; | 4179 | sp:arg1 spin:_arg1 ; |
4180 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_controller> | 4180 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_controller> |
4181 | ] ; | 4181 | ] ; |
4182 | - sp:arg2 <http://www.reportinghub.no/ep/schema/equipment#Controller> ; | 4182 | + sp:arg2 <http://www.reportinghub.no/ep/schema/production-equipment#Controller> ; |
4183 | sp:arg3 [ rdf:type sp:if ; | 4183 | sp:arg3 [ rdf:type sp:if ; |
4184 | sp:arg1 [ rdf:type sp:eq ; | 4184 | sp:arg1 [ rdf:type sp:eq ; |
4185 | sp:arg1 spin:_arg1 ; | 4185 | sp:arg1 spin:_arg1 ; |
... | @@ -4197,19 +4197,19 @@ ep-mpr-spin-lib:selectProductionFacilityType | ... | @@ -4197,19 +4197,19 @@ ep-mpr-spin-lib:selectProductionFacilityType |
4197 | sp:arg1 spin:_arg1 ; | 4197 | sp:arg1 spin:_arg1 ; |
4198 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_field-area> | 4198 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_field-area> |
4199 | ] ; | 4199 | ] ; |
4200 | - sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Field-area> ; | 4200 | + sp:arg2 <http://www.reportinghub.no/ep/schema/production-facility#Field-area> ; |
4201 | sp:arg3 [ rdf:type sp:if ; | 4201 | sp:arg3 [ rdf:type sp:if ; |
4202 | sp:arg1 [ rdf:type sp:eq ; | 4202 | sp:arg1 [ rdf:type sp:eq ; |
4203 | sp:arg1 spin:_arg1 ; | 4203 | sp:arg1 spin:_arg1 ; |
4204 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_field-group> | 4204 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_field-group> |
4205 | ] ; | 4205 | ] ; |
4206 | - sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Field-group> ; | 4206 | + sp:arg2 <http://www.reportinghub.no/ep/schema/production-facility#Field-group> ; |
4207 | sp:arg3 [ rdf:type sp:if ; | 4207 | sp:arg3 [ rdf:type sp:if ; |
4208 | sp:arg1 [ rdf:type sp:eq ; | 4208 | sp:arg1 [ rdf:type sp:eq ; |
4209 | sp:arg1 spin:_arg1 ; | 4209 | sp:arg1 spin:_arg1 ; |
4210 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_field-part> | 4210 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_field-part> |
4211 | ] ; | 4211 | ] ; |
4212 | - sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Field-part> ; | 4212 | + sp:arg2 <http://www.reportinghub.no/ep/schema/production-facility#Field-part> ; |
4213 | sp:arg3 [ rdf:type sp:if ; | 4213 | sp:arg3 [ rdf:type sp:if ; |
4214 | sp:arg1 [ rdf:type sp:eq ; | 4214 | sp:arg1 [ rdf:type sp:eq ; |
4215 | sp:arg1 spin:_arg1 ; | 4215 | sp:arg1 spin:_arg1 ; |
... | @@ -4233,13 +4233,13 @@ ep-mpr-spin-lib:selectProductionFacilityType | ... | @@ -4233,13 +4233,13 @@ ep-mpr-spin-lib:selectProductionFacilityType |
4233 | sp:arg1 spin:_arg1 ; | 4233 | sp:arg1 spin:_arg1 ; |
4234 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_formation> | 4234 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_formation> |
4235 | ] ; | 4235 | ] ; |
4236 | - sp:arg2 <http://www.reportinghub.no/ep/schema/well#Formation> ; | 4236 | + sp:arg2 <http://www.reportinghub.no/ep/schema/production-well#RockFormation> ; |
4237 | sp:arg3 [ rdf:type sp:if ; | 4237 | sp:arg3 [ rdf:type sp:if ; |
4238 | sp:arg1 [ rdf:type sp:eq ; | 4238 | sp:arg1 [ rdf:type sp:eq ; |
4239 | sp:arg1 spin:_arg1 ; | 4239 | sp:arg1 spin:_arg1 ; |
4240 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_installation> | 4240 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_installation> |
4241 | ] ; | 4241 | ] ; |
4242 | - sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Installation> ; | 4242 | + sp:arg2 <http://www.reportinghub.no/ep/schema/production-facility#Installation> ; |
4243 | sp:arg3 [ rdf:type sp:if ; | 4243 | sp:arg3 [ rdf:type sp:if ; |
4244 | sp:arg1 [ rdf:type sp:eq ; | 4244 | sp:arg1 [ rdf:type sp:eq ; |
4245 | sp:arg1 spin:_arg1 ; | 4245 | sp:arg1 spin:_arg1 ; |
... | @@ -4251,31 +4251,31 @@ ep-mpr-spin-lib:selectProductionFacilityType | ... | @@ -4251,31 +4251,31 @@ ep-mpr-spin-lib:selectProductionFacilityType |
4251 | sp:arg1 spin:_arg1 ; | 4251 | sp:arg1 spin:_arg1 ; |
4252 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_licence> | 4252 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_licence> |
4253 | ] ; | 4253 | ] ; |
4254 | - sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Licence> ; | 4254 | + sp:arg2 <http://www.reportinghub.no/np/schema/npd#Licence> ; |
4255 | sp:arg3 [ rdf:type sp:if ; | 4255 | sp:arg3 [ rdf:type sp:if ; |
4256 | sp:arg1 [ rdf:type sp:eq ; | 4256 | sp:arg1 [ rdf:type sp:eq ; |
4257 | sp:arg1 spin:_arg1 ; | 4257 | sp:arg1 spin:_arg1 ; |
4258 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_manifold> | 4258 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_manifold> |
4259 | ] ; | 4259 | ] ; |
4260 | - sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Manifold> ; | 4260 | + sp:arg2 <http://www.reportinghub.no/ep/schema/equipment#Manifold> ; |
4261 | sp:arg3 [ rdf:type sp:if ; | 4261 | sp:arg3 [ rdf:type sp:if ; |
4262 | sp:arg1 [ rdf:type sp:eq ; | 4262 | sp:arg1 [ rdf:type sp:eq ; |
4263 | sp:arg1 spin:_arg1 ; | 4263 | sp:arg1 spin:_arg1 ; |
4264 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_pipeline> | 4264 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_pipeline> |
4265 | ] ; | 4265 | ] ; |
4266 | - sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Pipeline> ; | 4266 | + sp:arg2 <http://www.reportinghub.no/ep/schema/production-facility#Pipeline> ; |
4267 | sp:arg3 [ rdf:type sp:if ; | 4267 | sp:arg3 [ rdf:type sp:if ; |
4268 | sp:arg1 [ rdf:type sp:eq ; | 4268 | sp:arg1 [ rdf:type sp:eq ; |
4269 | sp:arg1 spin:_arg1 ; | 4269 | sp:arg1 spin:_arg1 ; |
4270 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_plant-processing> | 4270 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_plant-processing> |
4271 | ] ; | 4271 | ] ; |
4272 | - sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Plant-processing> ; | 4272 | + sp:arg2 <http://www.reportinghub.no/ep/schema/production-facility#Plant-processing> ; |
4273 | sp:arg3 [ rdf:type sp:if ; | 4273 | sp:arg3 [ rdf:type sp:if ; |
4274 | sp:arg1 [ rdf:type sp:eq ; | 4274 | sp:arg1 [ rdf:type sp:eq ; |
4275 | sp:arg1 spin:_arg1 ; | 4275 | sp:arg1 spin:_arg1 ; |
4276 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_plant> | 4276 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_plant> |
4277 | ] ; | 4277 | ] ; |
4278 | - sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Plant> ; | 4278 | + sp:arg2 <http://www.reportinghub.no/ep/schema/production-facility#Plant> ; |
4279 | sp:arg3 [ rdf:type sp:if ; | 4279 | sp:arg3 [ rdf:type sp:if ; |
4280 | sp:arg1 [ rdf:type sp:eq ; | 4280 | sp:arg1 [ rdf:type sp:eq ; |
4281 | sp:arg1 spin:_arg1 ; | 4281 | sp:arg1 spin:_arg1 ; |
... | @@ -4287,19 +4287,19 @@ ep-mpr-spin-lib:selectProductionFacilityType | ... | @@ -4287,19 +4287,19 @@ ep-mpr-spin-lib:selectProductionFacilityType |
4287 | sp:arg1 spin:_arg1 ; | 4287 | sp:arg1 spin:_arg1 ; |
4288 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_pressuremeter> | 4288 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_pressuremeter> |
4289 | ] ; | 4289 | ] ; |
4290 | - sp:arg2 <http://www.reportinghub.no/ep/schema/equipment#PressureMeter> ; | 4290 | + sp:arg2 <http://www.reportinghub.no/ep/schema/production-equipment#PressureMeter> ; |
4291 | sp:arg3 [ rdf:type sp:if ; | 4291 | sp:arg3 [ rdf:type sp:if ; |
4292 | sp:arg1 [ rdf:type sp:eq ; | 4292 | sp:arg1 [ rdf:type sp:eq ; |
4293 | sp:arg1 spin:_arg1 ; | 4293 | sp:arg1 spin:_arg1 ; |
4294 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_processingfacility> | 4294 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_processingfacility> |
4295 | ] ; | 4295 | ] ; |
4296 | - sp:arg2 <http://www.reportinghub.no/ep/schema/facility#ProcessingFacility> ; | 4296 | + sp:arg2 <http://www.reportinghub.no/ep/schema/production-facility#ProcessingFacility> ; |
4297 | sp:arg3 [ rdf:type sp:if ; | 4297 | sp:arg3 [ rdf:type sp:if ; |
4298 | sp:arg1 [ rdf:type sp:eq ; | 4298 | sp:arg1 [ rdf:type sp:eq ; |
4299 | sp:arg1 spin:_arg1 ; | 4299 | sp:arg1 spin:_arg1 ; |
4300 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_regulatingvalve> | 4300 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_regulatingvalve> |
4301 | ] ; | 4301 | ] ; |
4302 | - sp:arg2 <http://www.reportinghub.no/ep/schema/equipment#RegulatingValve> ; | 4302 | + sp:arg2 <http://www.reportinghub.no/ep/schema/production-equipment#RegulatingValve> ; |
4303 | sp:arg3 [ rdf:type sp:if ; | 4303 | sp:arg3 [ rdf:type sp:if ; |
4304 | sp:arg1 [ rdf:type sp:eq ; | 4304 | sp:arg1 [ rdf:type sp:eq ; |
4305 | sp:arg1 spin:_arg1 ; | 4305 | sp:arg1 spin:_arg1 ; |
... | @@ -4317,7 +4317,7 @@ ep-mpr-spin-lib:selectProductionFacilityType | ... | @@ -4317,7 +4317,7 @@ ep-mpr-spin-lib:selectProductionFacilityType |
4317 | sp:arg1 spin:_arg1 ; | 4317 | sp:arg1 spin:_arg1 ; |
4318 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_sleevevalve> | 4318 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_sleevevalve> |
4319 | ] ; | 4319 | ] ; |
4320 | - sp:arg2 <http://www.reportinghub.no/ep/schema/equipment#SleeveValve> ; | 4320 | + sp:arg2 <http://www.reportinghub.no/ep/schema/production-equipment#SleeveValve> ; |
4321 | sp:arg3 [ rdf:type sp:if ; | 4321 | sp:arg3 [ rdf:type sp:if ; |
4322 | sp:arg1 [ rdf:type sp:eq ; | 4322 | sp:arg1 [ rdf:type sp:eq ; |
4323 | sp:arg1 spin:_arg1 ; | 4323 | sp:arg1 spin:_arg1 ; |
... | @@ -4329,7 +4329,7 @@ ep-mpr-spin-lib:selectProductionFacilityType | ... | @@ -4329,7 +4329,7 @@ ep-mpr-spin-lib:selectProductionFacilityType |
4329 | sp:arg1 spin:_arg1 ; | 4329 | sp:arg1 spin:_arg1 ; |
4330 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_storage> | 4330 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_storage> |
4331 | ] ; | 4331 | ] ; |
4332 | - sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Storage> ; | 4332 | + sp:arg2 <http://www.reportinghub.no/ep/schema/production-facility#StorageFacility> ; |
4333 | sp:arg3 [ rdf:type sp:if ; | 4333 | sp:arg3 [ rdf:type sp:if ; |
4334 | sp:arg1 [ rdf:type sp:eq ; | 4334 | sp:arg1 [ rdf:type sp:eq ; |
4335 | sp:arg1 spin:_arg1 ; | 4335 | sp:arg1 spin:_arg1 ; |
... | @@ -4341,31 +4341,31 @@ ep-mpr-spin-lib:selectProductionFacilityType | ... | @@ -4341,31 +4341,31 @@ ep-mpr-spin-lib:selectProductionFacilityType |
4341 | sp:arg1 spin:_arg1 ; | 4341 | sp:arg1 spin:_arg1 ; |
4342 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_temperaturemeter> | 4342 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_temperaturemeter> |
4343 | ] ; | 4343 | ] ; |
4344 | - sp:arg2 <http://www.reportinghub.no/ep/schema/equipment#TemperatureMeter> ; | 4344 | + sp:arg2 <http://www.reportinghub.no/ep/schema/production-equipment#TemperatureMeter> ; |
4345 | sp:arg3 [ rdf:type sp:if ; | 4345 | sp:arg3 [ rdf:type sp:if ; |
4346 | sp:arg1 [ rdf:type sp:eq ; | 4346 | sp:arg1 [ rdf:type sp:eq ; |
4347 | sp:arg1 spin:_arg1 ; | 4347 | sp:arg1 spin:_arg1 ; |
4348 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_template> | 4348 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_template> |
4349 | ] ; | 4349 | ] ; |
4350 | - sp:arg2 <http://www.reportinghub.no/ep/schema/equipment#Template> ; | 4350 | + sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Template> ; |
4351 | sp:arg3 [ rdf:type sp:if ; | 4351 | sp:arg3 [ rdf:type sp:if ; |
4352 | sp:arg1 [ rdf:type sp:eq ; | 4352 | sp:arg1 [ rdf:type sp:eq ; |
4353 | sp:arg1 spin:_arg1 ; | 4353 | sp:arg1 spin:_arg1 ; |
4354 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_terminal> | 4354 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_terminal> |
4355 | ] ; | 4355 | ] ; |
4356 | - sp:arg2 <http://www.reportinghub.no/ep/schema/facility#Terminal> ; | 4356 | + sp:arg2 <http://www.reportinghub.no/ep/schema/geography#Terminal> ; |
4357 | sp:arg3 [ rdf:type sp:if ; | 4357 | sp:arg3 [ rdf:type sp:if ; |
4358 | sp:arg1 [ rdf:type sp:eq ; | 4358 | sp:arg1 [ rdf:type sp:eq ; |
4359 | sp:arg1 spin:_arg1 ; | 4359 | sp:arg1 spin:_arg1 ; |
4360 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_trunkline> | 4360 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_trunkline> |
4361 | ] ; | 4361 | ] ; |
4362 | - sp:arg2 <http://www.reportinghub.no/ep/schema/facility#TrunkLine> ; | 4362 | + sp:arg2 <http://www.reportinghub.no/ep/schema/production-facility#TrunkLine> ; |
4363 | sp:arg3 [ rdf:type sp:if ; | 4363 | sp:arg3 [ rdf:type sp:if ; |
4364 | sp:arg1 [ rdf:type sp:eq ; | 4364 | sp:arg1 [ rdf:type sp:eq ; |
4365 | sp:arg1 spin:_arg1 ; | 4365 | sp:arg1 spin:_arg1 ; |
4366 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_tubinghead> | 4366 | sp:arg2 <http://www.epim.no/schemas/mprml/1#RF_tubinghead> |
4367 | ] ; | 4367 | ] ; |
4368 | - sp:arg2 <http://www.reportinghub.no/ep/schema/equipment#TubingHead> ; | 4368 | + sp:arg2 <http://www.reportinghub.no/ep/schema/production-well#TubingHead> ; |
4369 | sp:arg3 [ rdf:type sp:if ; | 4369 | sp:arg3 [ rdf:type sp:if ; |
4370 | sp:arg1 [ rdf:type sp:eq ; | 4370 | sp:arg1 [ rdf:type sp:eq ; |
4371 | sp:arg1 spin:_arg1 ; | 4371 | sp:arg1 spin:_arg1 ; | ... | ... |
... | @@ -4,6 +4,7 @@ | ... | @@ -4,6 +4,7 @@ |
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-commonPropertiesProductVolume-v1.1.1 | 6 | # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-commonPropertiesProductVolume-v1.1.1 |
7 | +# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1 | ||
7 | # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0 | 8 | # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0 |
8 | # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0 | 9 | # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0 |
9 | # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0 | 10 | # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0 |
... | @@ -11,6 +12,7 @@ | ... | @@ -11,6 +12,7 @@ |
11 | 12 | ||
12 | @prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector#> . | 13 | @prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector#> . |
13 | @prefix TRANSFORM_mpr-facility-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facility-v1.0#> . | 14 | @prefix TRANSFORM_mpr-facility-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facility-v1.0#> . |
15 | +@prefix TRANSFORM_mpr-facilityIdentifierStructure-v1.1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1#> . | ||
14 | @prefix TRANSFORM_mpr-fluidSample-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0#> . | 16 | @prefix TRANSFORM_mpr-fluidSample-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-fluidSample-v1.0#> . |
15 | @prefix TRANSFORM_mpr-productVolume-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0#> . | 17 | @prefix TRANSFORM_mpr-productVolume-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0#> . |
16 | @prefix TRANSFORM_mpr-productVolumeReport-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0#> . | 18 | @prefix TRANSFORM_mpr-productVolumeReport-v1: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0#> . |
... | @@ -32,5 +34,5 @@ | ... | @@ -32,5 +34,5 @@ |
32 | 34 | ||
33 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> | 35 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> |
34 | rdf:type owl:Ontology ; | 36 | rdf:type owl:Ontology ; |
35 | - owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/1.0/mpr/wellTest> , <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-productVolume-v1.0> , <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-commonPropertiesProductVolume-v1.1.1> ; | 37 | + owl:imports <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-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-productionReport-v1.0> , <http://www.reportinghub.no/ep/transform/1.0/mpr/injectionTestResults> , <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-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> ; |
36 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 38 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
1 | +# baseURI: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-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/dpr/spin/1.1/lib | ||
5 | +# imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib | ||
6 | + | ||
7 | +@prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1#> . | ||
8 | +@prefix owl: <http://www.w3.org/2002/07/owl#> . | ||
9 | +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
10 | +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
11 | +@prefix sp: <http://spinrdf.org/sp#> . | ||
12 | +@prefix spin: <http://spinrdf.org/spin#> . | ||
13 | +@prefix spl: <http://spinrdf.org/spl#> . | ||
14 | +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
15 | + | ||
16 | +<http://www.epim.no/schemas/mprml/1#FacilityIdentifierStruct> | ||
17 | + spin:rule | ||
18 | + [ rdf:type sp:Construct ; | ||
19 | + rdfs:comment """STEP 00001 Record the Facility that has the flows - kind is \"field\", etc. | ||
20 | +Nothing is done with the namingSystem!"""^^xsd:string ; | ||
21 | + sp:templates ([ sp:object spin:_this ; | ||
22 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
23 | + sp:subject | ||
24 | + [ sp:varName "field"^^xsd:string | ||
25 | + ] | ||
26 | + ] [ sp:object | ||
27 | + [ sp:varName "fieldName"^^xsd:string | ||
28 | + ] ; | ||
29 | + sp:predicate rdfs:label ; | ||
30 | + sp:subject spin:_this | ||
31 | + ]) ; | ||
32 | + sp:where ([ rdf:type sp:Union ; | ||
33 | + sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ; | ||
34 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
35 | + sp:subject spin:_this | ||
36 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-part> ; | ||
37 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
38 | + sp:subject spin:_this | ||
39 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-group> ; | ||
40 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
41 | + sp:subject spin:_this | ||
42 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field-area> ; | ||
43 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
44 | + sp:subject spin:_this | ||
45 | + ])) | ||
46 | + ] [ sp:object | ||
47 | + [ sp:varName "fieldName"^^xsd:string | ||
48 | + ] ; | ||
49 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
50 | + sp:subject spin:_this | ||
51 | + ] [ rdf:type sp:NamedGraph ; | ||
52 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Field> ; | ||
53 | + sp:predicate rdf:type ; | ||
54 | + sp:subject | ||
55 | + [ sp:varName "field"^^xsd:string | ||
56 | + ] | ||
57 | + ] [ sp:object | ||
58 | + [ sp:varName "fieldName"^^xsd:string | ||
59 | + ] ; | ||
60 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
61 | + sp:subject | ||
62 | + [ sp:varName "field"^^xsd:string | ||
63 | + ] | ||
64 | + ]) ; | ||
65 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
66 | + ]) | ||
67 | + ] ; | ||
68 | + spin:rule | ||
69 | + [ rdf:type sp:Construct ; | ||
70 | + rdfs:comment """STEP 00003 Record the Facility that has the flows - kind is \"platform\" - assumed to be a SurfaceFixedFacility | ||
71 | +Nothing is done with the namingSystem!"""^^xsd:string ; | ||
72 | + sp:templates ([ sp:object spin:_this ; | ||
73 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
74 | + sp:subject | ||
75 | + [ sp:varName "platform"^^xsd:string | ||
76 | + ] | ||
77 | + ] [ sp:object | ||
78 | + [ sp:varName "platformName"^^xsd:string | ||
79 | + ] ; | ||
80 | + sp:predicate rdfs:label ; | ||
81 | + sp:subject spin:_this | ||
82 | + ]) ; | ||
83 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_platform> ; | ||
84 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
85 | + sp:subject spin:_this | ||
86 | + ] [ sp:object | ||
87 | + [ sp:varName "platformName"^^xsd:string | ||
88 | + ] ; | ||
89 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
90 | + sp:subject spin:_this | ||
91 | + ] [ rdf:type sp:NamedGraph ; | ||
92 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#SurfaceFixedFacility> ; | ||
93 | + sp:predicate rdf:type ; | ||
94 | + sp:subject | ||
95 | + [ sp:varName "platform"^^xsd:string | ||
96 | + ] | ||
97 | + ] [ sp:object | ||
98 | + [ sp:varName "platformName"^^xsd:string | ||
99 | + ] ; | ||
100 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
101 | + sp:subject | ||
102 | + [ sp:varName "platform"^^xsd:string | ||
103 | + ] | ||
104 | + ]) ; | ||
105 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
106 | + ]) | ||
107 | + ] ; | ||
108 | + spin:rule | ||
109 | + [ rdf:type sp:Construct ; | ||
110 | + rdfs:comment """STEP 00009 Record the Facility that has the flows - kind is \"licence\" | ||
111 | +Nothing is done with the namingSystem!"""^^xsd:string ; | ||
112 | + sp:templates ([ sp:object spin:_this ; | ||
113 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
114 | + sp:subject | ||
115 | + [ sp:varName "licence"^^xsd:string | ||
116 | + ] | ||
117 | + ] [ sp:object | ||
118 | + [ sp:varName "licenceName"^^xsd:string | ||
119 | + ] ; | ||
120 | + sp:predicate rdfs:label ; | ||
121 | + sp:subject spin:_this | ||
122 | + ]) ; | ||
123 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_licence> ; | ||
124 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
125 | + sp:subject spin:_this | ||
126 | + ] [ sp:object | ||
127 | + [ sp:varName "licenceName"^^xsd:string | ||
128 | + ] ; | ||
129 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
130 | + sp:subject spin:_this | ||
131 | + ] [ rdf:type sp:NamedGraph ; | ||
132 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#Licence> ; | ||
133 | + sp:predicate rdf:type ; | ||
134 | + sp:subject | ||
135 | + [ sp:varName "licence"^^xsd:string | ||
136 | + ] | ||
137 | + ] [ sp:object | ||
138 | + [ sp:varName "licenceName"^^xsd:string | ||
139 | + ] ; | ||
140 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
141 | + sp:subject | ||
142 | + [ sp:varName "licence"^^xsd:string | ||
143 | + ] | ||
144 | + ]) ; | ||
145 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
146 | + ]) | ||
147 | + ] ; | ||
148 | + spin:rule | ||
149 | + [ rdf:type sp:Construct ; | ||
150 | + rdfs:comment """STEP 00007 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an OperatingCompany | ||
151 | +Nothing is done with the namingSystem!"""^^xsd:string ; | ||
152 | + sp:templates ([ sp:object spin:_this ; | ||
153 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
154 | + sp:subject | ||
155 | + [ sp:varName "company"^^xsd:string | ||
156 | + ] | ||
157 | + ] [ sp:object | ||
158 | + [ sp:varName "companyName"^^xsd:string | ||
159 | + ] ; | ||
160 | + sp:predicate rdfs:label ; | ||
161 | + sp:subject spin:_this | ||
162 | + ]) ; | ||
163 | + sp:where ([ rdf:type sp:Union ; | ||
164 | + sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_company> ; | ||
165 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
166 | + sp:subject spin:_this | ||
167 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_commercialentity> ; | ||
168 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
169 | + sp:subject spin:_this | ||
170 | + ])) | ||
171 | + ] [ sp:object | ||
172 | + [ sp:varName "companyName"^^xsd:string | ||
173 | + ] ; | ||
174 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
175 | + sp:subject spin:_this | ||
176 | + ] [ rdf:type sp:NamedGraph ; | ||
177 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#OperatingCompany> ; | ||
178 | + sp:predicate rdf:type ; | ||
179 | + sp:subject | ||
180 | + [ sp:varName "company"^^xsd:string | ||
181 | + ] | ||
182 | + ] [ sp:object | ||
183 | + [ sp:varName "companyName"^^xsd:string | ||
184 | + ] ; | ||
185 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
186 | + sp:subject | ||
187 | + [ sp:varName "company"^^xsd:string | ||
188 | + ] | ||
189 | + ]) ; | ||
190 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
191 | + ]) | ||
192 | + ] ; | ||
193 | + spin:rule | ||
194 | + [ rdf:type sp:Construct ; | ||
195 | + rdfs:comment """STEP 00008 Record the Facility that has the flows - kind is \"company\" or \"commercial entity\" - assumed to be an ParentCompany | ||
196 | +Nothing is done with the namingSystem!"""^^xsd:string ; | ||
197 | + sp:templates ([ sp:object spin:_this ; | ||
198 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
199 | + sp:subject | ||
200 | + [ sp:varName "company"^^xsd:string | ||
201 | + ] | ||
202 | + ] [ sp:object | ||
203 | + [ sp:varName "companyName"^^xsd:string | ||
204 | + ] ; | ||
205 | + sp:predicate rdfs:label ; | ||
206 | + sp:subject spin:_this | ||
207 | + ]) ; | ||
208 | + sp:where ([ rdf:type sp:Union ; | ||
209 | + sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_company> ; | ||
210 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
211 | + sp:subject spin:_this | ||
212 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_commercialentity> ; | ||
213 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
214 | + sp:subject spin:_this | ||
215 | + ])) | ||
216 | + ] [ sp:object | ||
217 | + [ sp:varName "companyName"^^xsd:string | ||
218 | + ] ; | ||
219 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
220 | + sp:subject spin:_this | ||
221 | + ] [ rdf:type sp:NamedGraph ; | ||
222 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#ParentCompany> ; | ||
223 | + sp:predicate rdf:type ; | ||
224 | + sp:subject | ||
225 | + [ sp:varName "company"^^xsd:string | ||
226 | + ] | ||
227 | + ] [ sp:object | ||
228 | + [ sp:varName "companyName"^^xsd:string | ||
229 | + ] ; | ||
230 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
231 | + sp:subject | ||
232 | + [ sp:varName "company"^^xsd:string | ||
233 | + ] | ||
234 | + ]) ; | ||
235 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
236 | + ]) | ||
237 | + ] ; | ||
238 | + spin:rule | ||
239 | + [ rdf:type sp:Construct ; | ||
240 | + rdfs:comment """STEP 00005 Record the Facility that has the flows - kind is \"well\" | ||
241 | +Nothing is done with the namingSystem!"""^^xsd:string ; | ||
242 | + sp:templates ([ sp:object spin:_this ; | ||
243 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
244 | + sp:subject | ||
245 | + [ sp:varName "well"^^xsd:string | ||
246 | + ] | ||
247 | + ] [ sp:object | ||
248 | + [ sp:varName "wellName"^^xsd:string | ||
249 | + ] ; | ||
250 | + sp:predicate rdfs:label ; | ||
251 | + sp:subject spin:_this | ||
252 | + ]) ; | ||
253 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_well> ; | ||
254 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
255 | + sp:subject spin:_this | ||
256 | + ] [ sp:object | ||
257 | + [ sp:varName "wellName"^^xsd:string | ||
258 | + ] ; | ||
259 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
260 | + sp:subject spin:_this | ||
261 | + ] [ rdf:type sp:NamedGraph ; | ||
262 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#Well> ; | ||
263 | + sp:predicate rdf:type ; | ||
264 | + sp:subject | ||
265 | + [ sp:varName "well"^^xsd:string | ||
266 | + ] | ||
267 | + ] [ sp:object | ||
268 | + [ sp:varName "wellName"^^xsd:string | ||
269 | + ] ; | ||
270 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
271 | + sp:subject | ||
272 | + [ sp:varName "well"^^xsd:string | ||
273 | + ] | ||
274 | + ]) ; | ||
275 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
276 | + ]) | ||
277 | + ] ; | ||
278 | + spin:rule | ||
279 | + [ rdf:type sp:Construct ; | ||
280 | + rdfs:comment """STEP 00001a Record the Facility that has the flows - kind is \"field\", etc. | ||
281 | +Nothing is done with the namingSystem! | ||
282 | +?field ep-core:derivedFrom ?this . | ||
283 | +?this rdfs:label ?fieldName ."""^^xsd:string ; | ||
284 | + sp:templates () ; | ||
285 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_field> ; | ||
286 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
287 | + sp:subject spin:_this | ||
288 | + ] [ sp:object | ||
289 | + [ sp:varName "fieldName"^^xsd:string | ||
290 | + ] ; | ||
291 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
292 | + sp:subject spin:_this | ||
293 | + ] [ rdf:type sp:NamedGraph ; | ||
294 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#Field> ; | ||
295 | + sp:predicate rdf:type ; | ||
296 | + sp:subject | ||
297 | + [ sp:varName "field"^^xsd:string | ||
298 | + ] | ||
299 | + ] [ sp:object | ||
300 | + [ sp:varName "fieldName"^^xsd:string | ||
301 | + ] ; | ||
302 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
303 | + sp:subject | ||
304 | + [ sp:varName "field"^^xsd:string | ||
305 | + ] | ||
306 | + ]) ; | ||
307 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
308 | + ]) | ||
309 | + ] ; | ||
310 | + spin:rule | ||
311 | + [ rdf:type sp:Construct ; | ||
312 | + rdfs:comment """STEP 00002 Record the Facility that has the flows - kind is \"wellbore\" | ||
313 | +Nothing is done with the namingSystem!"""^^xsd:string ; | ||
314 | + sp:templates ([ sp:object spin:_this ; | ||
315 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
316 | + sp:subject | ||
317 | + [ sp:varName "wellBore"^^xsd:string | ||
318 | + ] | ||
319 | + ] [ sp:object | ||
320 | + [ sp:varName "wellBoreName"^^xsd:string | ||
321 | + ] ; | ||
322 | + sp:predicate rdfs:label ; | ||
323 | + sp:subject spin:_this | ||
324 | + ]) ; | ||
325 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_wellbore> ; | ||
326 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
327 | + sp:subject spin:_this | ||
328 | + ] [ sp:object | ||
329 | + [ sp:varName "wellBoreName"^^xsd:string | ||
330 | + ] ; | ||
331 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
332 | + sp:subject spin:_this | ||
333 | + ] [ rdf:type sp:NamedGraph ; | ||
334 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/well#WellBore> ; | ||
335 | + sp:predicate rdf:type ; | ||
336 | + sp:subject | ||
337 | + [ sp:varName "wellBore"^^xsd:string | ||
338 | + ] | ||
339 | + ] [ sp:object | ||
340 | + [ sp:varName "wellBoreName"^^xsd:string | ||
341 | + ] ; | ||
342 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
343 | + sp:subject | ||
344 | + [ sp:varName "wellBore"^^xsd:string | ||
345 | + ] | ||
346 | + ]) ; | ||
347 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
348 | + ]) | ||
349 | + ] ; | ||
350 | + spin:rule | ||
351 | + [ rdf:type sp:Construct ; | ||
352 | + rdfs:comment """STEP 00006 Record the Facility that has the flows - kind is \"terminal\", \"pipeline\", \"flowline\", \"installation\", etc. | ||
353 | +Nothing is done with the namingSystem!"""^^xsd:string ; | ||
354 | + sp:templates ([ sp:object spin:_this ; | ||
355 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
356 | + sp:subject | ||
357 | + [ sp:varName "tuf"^^xsd:string | ||
358 | + ] | ||
359 | + ] [ sp:object | ||
360 | + [ sp:varName "tufName"^^xsd:string | ||
361 | + ] ; | ||
362 | + sp:predicate rdfs:label ; | ||
363 | + sp:subject spin:_this | ||
364 | + ]) ; | ||
365 | + sp:where ([ rdf:type sp:Union ; | ||
366 | + sp:elements (([ sp:object <http://www.epim.no/schemas/mprml/1#RF_terminal> ; | ||
367 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
368 | + sp:subject spin:_this | ||
369 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_pipeline> ; | ||
370 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
371 | + sp:subject spin:_this | ||
372 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_flowline> ; | ||
373 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
374 | + sp:subject spin:_this | ||
375 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_installation> ; | ||
376 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
377 | + sp:subject spin:_this | ||
378 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_plant> ; | ||
379 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
380 | + sp:subject spin:_this | ||
381 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_processingfacility> ; | ||
382 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
383 | + sp:subject spin:_this | ||
384 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_trunkline> ; | ||
385 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
386 | + sp:subject spin:_this | ||
387 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_storage> ; | ||
388 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
389 | + sp:subject spin:_this | ||
390 | + ]) ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_plant-processing> ; | ||
391 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
392 | + sp:subject spin:_this | ||
393 | + ])) | ||
394 | + ] [ sp:object | ||
395 | + [ sp:varName "tufName"^^xsd:string | ||
396 | + ] ; | ||
397 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
398 | + sp:subject spin:_this | ||
399 | + ] [ rdf:type sp:NamedGraph ; | ||
400 | + sp:elements ([ sp:object <http://www.reportinghub.no/np/schema/npd#TUF> ; | ||
401 | + sp:predicate rdf:type ; | ||
402 | + sp:subject | ||
403 | + [ sp:varName "tuf"^^xsd:string | ||
404 | + ] | ||
405 | + ] [ sp:object | ||
406 | + [ sp:varName "tufName"^^xsd:string | ||
407 | + ] ; | ||
408 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
409 | + sp:subject | ||
410 | + [ sp:varName "tuf"^^xsd:string | ||
411 | + ] | ||
412 | + ]) ; | ||
413 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
414 | + ]) | ||
415 | + ] ; | ||
416 | + spin:rule | ||
417 | + [ rdf:type sp:Construct ; | ||
418 | + rdfs:comment """STEP 00004 Record the Facility that has the flows - kind is \"platform\" - assumed to be a MoveableFacility | ||
419 | +Nothing is done with the namingSystem!"""^^xsd:string ; | ||
420 | + sp:templates ([ sp:object spin:_this ; | ||
421 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
422 | + sp:subject | ||
423 | + [ sp:varName "platform"^^xsd:string | ||
424 | + ] | ||
425 | + ] [ sp:object | ||
426 | + [ sp:varName "platformName"^^xsd:string | ||
427 | + ] ; | ||
428 | + sp:predicate rdfs:label ; | ||
429 | + sp:subject spin:_this | ||
430 | + ]) ; | ||
431 | + sp:where ([ sp:object <http://www.epim.no/schemas/mprml/1#RF_platform> ; | ||
432 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
433 | + sp:subject spin:_this | ||
434 | + ] [ sp:object | ||
435 | + [ sp:varName "platformName"^^xsd:string | ||
436 | + ] ; | ||
437 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
438 | + sp:subject spin:_this | ||
439 | + ] [ rdf:type sp:NamedGraph ; | ||
440 | + sp:elements ([ sp:object <http://www.reportinghub.no/ep/schema/facility#MoveableFacility> ; | ||
441 | + sp:predicate rdf:type ; | ||
442 | + sp:subject | ||
443 | + [ sp:varName "platform"^^xsd:string | ||
444 | + ] | ||
445 | + ] [ sp:object | ||
446 | + [ sp:varName "platformName"^^xsd:string | ||
447 | + ] ; | ||
448 | + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ; | ||
449 | + sp:subject | ||
450 | + [ sp:varName "platform"^^xsd:string | ||
451 | + ] | ||
452 | + ]) ; | ||
453 | + sp:graphNameNode <http://www.reportinghub.no/np/data/npd> | ||
454 | + ]) | ||
455 | + ] . | ||
456 | + | ||
457 | +<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1> | ||
458 | + rdf:type owl:Ontology ; | ||
459 | + owl:imports <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> ; | ||
460 | + owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
www.reportinghub.no/ep/transform/TRANSFORM_mpr-facilityIdentifierStructure-v1.1.1.ttl.tbc
0 → 100644
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 | + ] . |
This diff could not be displayed because it is too large.
... | @@ -21,74 +21,6 @@ | ... | @@ -21,74 +21,6 @@ |
21 | <http://www.epim.no/schemas/mprml/1#A_Global-Objects> | 21 | <http://www.epim.no/schemas/mprml/1#A_Global-Objects> |
22 | spin:rule | 22 | spin:rule |
23 | [ rdf:type sp:Construct ; | 23 | [ rdf:type sp:Construct ; |
24 | - rdfs:comment """STEP 20060 Set the facility operator | ||
25 | -role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ||
26 | - sp:templates ([ sp:object | ||
27 | - [ sp:varName "operator"^^xsd:string | ||
28 | - ] ; | ||
29 | - sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; | ||
30 | - sp:subject | ||
31 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
32 | - ] | ||
33 | - ]) ; | ||
34 | - sp:where ([ sp:object | ||
35 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
36 | - ] ; | ||
37 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
38 | - sp:subject spin:_this | ||
39 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
40 | - sp:predicate rdf:type ; | ||
41 | - sp:subject | ||
42 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
43 | - ] | ||
44 | - ] [ sp:object | ||
45 | - [ sp:varName "operatorRef"^^xsd:string | ||
46 | - ] ; | ||
47 | - sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; | ||
48 | - sp:subject | ||
49 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
50 | - ] | ||
51 | - ] [ sp:object | ||
52 | - [ sp:varName "operatorName"^^xsd:string | ||
53 | - ] ; | ||
54 | - sp:predicate <http://www.epim.no/schemas/mprml/1#name> ; | ||
55 | - sp:subject | ||
56 | - [ sp:varName "operatorRef"^^xsd:string | ||
57 | - ] | ||
58 | - ] [ sp:object | ||
59 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
60 | - ] ; | ||
61 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
62 | - sp:subject | ||
63 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
64 | - ] | ||
65 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
66 | - sp:predicate rdf:type ; | ||
67 | - sp:subject | ||
68 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
69 | - ] | ||
70 | - ] [ rdf:type sp:Bind ; | ||
71 | - sp:expression | ||
72 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
73 | - sp:arg1 [ sp:varName "operatorName"^^xsd:string | ||
74 | - ] | ||
75 | - ] ; | ||
76 | - sp:variable | ||
77 | - [ sp:varName "normalizedOperatorName"^^xsd:string | ||
78 | - ] | ||
79 | - ] [ rdf:type sp:Bind ; | ||
80 | - sp:expression | ||
81 | - [ rdf:type rhspin:companyById ; | ||
82 | - arg:id [ sp:varName "normalizedOperatorName"^^xsd:string | ||
83 | - ] | ||
84 | - ] ; | ||
85 | - sp:variable | ||
86 | - [ sp:varName "operator"^^xsd:string | ||
87 | - ] | ||
88 | - ]) | ||
89 | - ] ; | ||
90 | - spin:rule | ||
91 | - [ rdf:type sp:Construct ; | ||
92 | rdfs:comment "STEP 20070 Set the geographic context - need a PartOfTheSurfaceOfTheEarth if any geographicContext"^^xsd:string ; | 24 | rdfs:comment "STEP 20070 Set the geographic context - need a PartOfTheSurfaceOfTheEarth if any geographicContext"^^xsd:string ; |
93 | sp:templates ([ sp:object _:b1 ; | 25 | sp:templates ([ sp:object _:b1 ; |
94 | sp:predicate <http://www.reportinghub.no/ep/schema/geography#nominallyLocatedAt> ; | 26 | sp:predicate <http://www.reportinghub.no/ep/schema/geography#nominallyLocatedAt> ; |
... | @@ -151,115 +83,6 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -151,115 +83,6 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
151 | ] ; | 83 | ] ; |
152 | spin:rule | 84 | spin:rule |
153 | [ rdf:type sp:Construct ; | 85 | [ rdf:type sp:Construct ; |
154 | - rdfs:comment "STEP 20050 Set the context facility - installation exists"^^xsd:string ; | ||
155 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
156 | - sp:predicate rdf:type ; | ||
157 | - sp:subject | ||
158 | - [ sp:varName "productionContextFacility"^^xsd:string | ||
159 | - ] | ||
160 | - ] [ sp:object | ||
161 | - [ sp:varName "productionContextFacilityType"^^xsd:string | ||
162 | - ] ; | ||
163 | - sp:predicate rdf:type ; | ||
164 | - sp:subject | ||
165 | - [ sp:varName "productionContextFacility"^^xsd:string | ||
166 | - ] | ||
167 | - ] [ sp:object | ||
168 | - [ sp:varName "productionFacility"^^xsd:string | ||
169 | - ] ; | ||
170 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; | ||
171 | - sp:subject | ||
172 | - [ sp:varName "productionContextFacility"^^xsd:string | ||
173 | - ] | ||
174 | - ]) ; | ||
175 | - sp:where ([ sp:object | ||
176 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
177 | - ] ; | ||
178 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
179 | - sp:subject spin:_this | ||
180 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
181 | - sp:predicate rdf:type ; | ||
182 | - sp:subject | ||
183 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
184 | - ] | ||
185 | - ] [ sp:object | ||
186 | - [ sp:varName "contextFacilityRef"^^xsd:string | ||
187 | - ] ; | ||
188 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; | ||
189 | - sp:subject | ||
190 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
191 | - ] | ||
192 | - ] [ sp:object | ||
193 | - [ sp:varName "contextFacilityName"^^xsd:string | ||
194 | - ] ; | ||
195 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
196 | - sp:subject | ||
197 | - [ sp:varName "contextFacilityRef"^^xsd:string | ||
198 | - ] | ||
199 | - ] [ rdf:type sp:Optional ; | ||
200 | - sp:elements ([ sp:object | ||
201 | - [ sp:varName "contextFacilityKind"^^xsd:string | ||
202 | - ] ; | ||
203 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
204 | - sp:subject | ||
205 | - [ sp:varName "contextFacilityRef"^^xsd:string | ||
206 | - ] | ||
207 | - ]) | ||
208 | - ] [ sp:object | ||
209 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
210 | - ] ; | ||
211 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
212 | - sp:subject | ||
213 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
214 | - ] | ||
215 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
216 | - sp:predicate rdf:type ; | ||
217 | - sp:subject | ||
218 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
219 | - ] | ||
220 | - ] [ sp:object | ||
221 | - [ sp:varName "productionFacility"^^xsd:string | ||
222 | - ] ; | ||
223 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
224 | - sp:subject | ||
225 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
226 | - ] | ||
227 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
228 | - sp:predicate rdf:type ; | ||
229 | - sp:subject | ||
230 | - [ sp:varName "productionFacility"^^xsd:string | ||
231 | - ] | ||
232 | - ] [ rdf:type sp:Bind ; | ||
233 | - sp:expression | ||
234 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
235 | - sp:arg1 [ sp:varName "contextFacilityName"^^xsd:string | ||
236 | - ] | ||
237 | - ] ; | ||
238 | - sp:variable | ||
239 | - [ sp:varName "normalizedContextFacilityName"^^xsd:string | ||
240 | - ] | ||
241 | - ] [ rdf:type sp:Bind ; | ||
242 | - sp:expression | ||
243 | - [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; | ||
244 | - sp:arg1 [ sp:varName "normalizedContextFacilityName"^^xsd:string | ||
245 | - ] | ||
246 | - ] ; | ||
247 | - sp:variable | ||
248 | - [ sp:varName "productionContextFacility"^^xsd:string | ||
249 | - ] | ||
250 | - ] [ rdf:type sp:Bind ; | ||
251 | - sp:expression | ||
252 | - [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; | ||
253 | - sp:arg1 [ sp:varName "contextFacilityKind"^^xsd:string | ||
254 | - ] | ||
255 | - ] ; | ||
256 | - sp:variable | ||
257 | - [ sp:varName "productionContextFacilityType"^^xsd:string | ||
258 | - ] | ||
259 | - ]) | ||
260 | - ] ; | ||
261 | - spin:rule | ||
262 | - [ rdf:type sp:Construct ; | ||
263 | rdfs:comment "STEP 20010 Create the ProductVolumeReport; the period ProductionFlow and the ProductionFlowToDate ; the period ProductionInventory and the ProductionInventoryToDate; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ; | 86 | rdfs:comment "STEP 20010 Create the ProductVolumeReport; the period ProductionFlow and the ProductionFlowToDate ; the period ProductionInventory and the ProductionInventoryToDate; the period ProductionFacility and the ProductionFacilityToDate ."^^xsd:string ; |
264 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ; | 87 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductVolumeReport> ; |
265 | sp:predicate rdf:type ; | 88 | sp:predicate rdf:type ; |
... | @@ -412,26 +235,14 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -412,26 +235,14 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
412 | ] ; | 235 | ] ; |
413 | spin:rule | 236 | spin:rule |
414 | [ rdf:type sp:Construct ; | 237 | [ rdf:type sp:Construct ; |
415 | - rdfs:comment "STEP 20007b Set the geographic context - country"^^xsd:string ; | 238 | + rdfs:comment "STEP 20007a Set the geographic context - field"^^xsd:string ; |
416 | sp:templates ([ sp:object | 239 | sp:templates ([ sp:object |
417 | - [ sp:varName "country"^^xsd:string | 240 | + [ sp:varName "field"^^xsd:string |
418 | ] ; | 241 | ] ; |
419 | sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | 242 | sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; |
420 | sp:subject | 243 | sp:subject |
421 | [ sp:varName "locationOfProductionFacility"^^xsd:string | 244 | [ sp:varName "locationOfProductionFacility"^^xsd:string |
422 | ] | 245 | ] |
423 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#Country> ; | ||
424 | - sp:predicate rdf:type ; | ||
425 | - sp:subject | ||
426 | - [ sp:varName "country"^^xsd:string | ||
427 | - ] | ||
428 | - ] [ sp:object | ||
429 | - [ sp:varName "countryName"^^xsd:string | ||
430 | - ] ; | ||
431 | - sp:predicate rdfs:label ; | ||
432 | - sp:subject | ||
433 | - [ sp:varName "country"^^xsd:string | ||
434 | - ] | ||
435 | ]) ; | 246 | ]) ; |
436 | sp:where ([ sp:object | 247 | sp:where ([ sp:object |
437 | [ sp:varName "productVolumeRef"^^xsd:string | 248 | [ sp:varName "productVolumeRef"^^xsd:string |
... | @@ -451,13 +262,20 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -451,13 +262,20 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
451 | [ sp:varName "productVolumeRef"^^xsd:string | 262 | [ sp:varName "productVolumeRef"^^xsd:string |
452 | ] | 263 | ] |
453 | ] [ sp:object | 264 | ] [ sp:object |
454 | - [ sp:varName "countryName"^^xsd:string | 265 | + [ sp:varName "fieldRef"^^xsd:string |
455 | ] ; | 266 | ] ; |
456 | - sp:predicate <http://www.epim.no/schemas/mprml/1#country> ; | 267 | + sp:predicate <http://www.epim.no/schemas/mprml/1#fieldRef> ; |
457 | sp:subject | 268 | sp:subject |
458 | [ sp:varName "geographicContextRef"^^xsd:string | 269 | [ sp:varName "geographicContextRef"^^xsd:string |
459 | ] | 270 | ] |
460 | ] [ sp:object | 271 | ] [ sp:object |
272 | + [ sp:varName "fieldName"^^xsd:string | ||
273 | + ] ; | ||
274 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
275 | + sp:subject | ||
276 | + [ sp:varName "fieldRef"^^xsd:string | ||
277 | + ] | ||
278 | + ] [ sp:object | ||
461 | [ sp:varName "geographicContextRef"^^xsd:string | 279 | [ sp:varName "geographicContextRef"^^xsd:string |
462 | ] ; | 280 | ] ; |
463 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 281 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
... | @@ -467,55 +285,88 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -467,55 +285,88 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
467 | ] [ rdf:type sp:Bind ; | 285 | ] [ rdf:type sp:Bind ; |
468 | sp:expression | 286 | sp:expression |
469 | [ rdf:type ep-spin-lib:normalizeString ; | 287 | [ rdf:type ep-spin-lib:normalizeString ; |
470 | - sp:arg1 [ sp:varName "countryName"^^xsd:string | 288 | + sp:arg1 [ sp:varName "fieldName"^^xsd:string |
471 | ] | 289 | ] |
472 | ] ; | 290 | ] ; |
473 | sp:variable | 291 | sp:variable |
474 | - [ sp:varName "normalizedCountryName"^^xsd:string | 292 | + [ sp:varName "normalizedFieldName"^^xsd:string |
475 | ] | 293 | ] |
476 | ] [ rdf:type sp:Bind ; | 294 | ] [ rdf:type sp:Bind ; |
477 | sp:expression | 295 | sp:expression |
478 | - [ rdf:type ep-dpr-spin-lib:buildCountryURI ; | 296 | + [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; |
479 | - sp:arg1 [ sp:varName "normalizedCountryName"^^xsd:string | 297 | + sp:arg1 [ sp:varName "normalizedFieldName"^^xsd:string |
480 | ] | 298 | ] |
481 | ] ; | 299 | ] ; |
482 | sp:variable | 300 | sp:variable |
483 | - [ sp:varName "country"^^xsd:string | 301 | + [ sp:varName "field"^^xsd:string |
484 | ] | 302 | ] |
485 | ]) | 303 | ]) |
486 | ] ; | 304 | ] ; |
487 | spin:rule | 305 | spin:rule |
488 | [ rdf:type sp:Construct ; | 306 | [ rdf:type sp:Construct ; |
489 | - rdfs:comment "STEP 20051 Set the context facility - installation does not exist"^^xsd:string ; | 307 | + rdfs:comment "STEP 20030 Record the start and end date-times"^^xsd:string ; |
490 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | 308 | + sp:templates ([ sp:object |
491 | - sp:predicate rdf:type ; | 309 | + [ sp:varName "dTimStart"^^xsd:string |
310 | + ] ; | ||
311 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
492 | sp:subject | 312 | sp:subject |
493 | - [ sp:varName "productionContextFacility"^^xsd:string | 313 | + [ sp:varName "productionFlow"^^xsd:string |
494 | ] | 314 | ] |
495 | ] [ sp:object | 315 | ] [ sp:object |
496 | - [ sp:varName "productionContextFacilityType"^^xsd:string | 316 | + [ sp:varName "dTimEnd"^^xsd:string |
497 | ] ; | 317 | ] ; |
498 | - sp:predicate rdf:type ; | 318 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
499 | sp:subject | 319 | sp:subject |
500 | - [ sp:varName "productionContextFacility"^^xsd:string | 320 | + [ sp:varName "productionFlow"^^xsd:string |
501 | ] | 321 | ] |
502 | - ] [ sp:object _:b9 ; | 322 | + ] [ sp:object |
503 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; | 323 | + [ sp:varName "dTimEnd"^^xsd:string |
324 | + ] ; | ||
325 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
504 | sp:subject | 326 | sp:subject |
505 | - [ sp:varName "productionContextFacility"^^xsd:string | 327 | + [ sp:varName "productionFlowToDate"^^xsd:string |
506 | ] | 328 | ] |
507 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | 329 | + ] [ sp:object |
508 | - sp:predicate rdf:type ; | 330 | + [ sp:varName "dTimStart"^^xsd:string |
509 | - sp:subject _:b9 | 331 | + ] ; |
510 | - ] [ sp:object _:b9 ; | 332 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
511 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
512 | sp:subject | 333 | sp:subject |
513 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 334 | + [ sp:varName "productionInventory"^^xsd:string |
514 | ] | 335 | ] |
515 | - ] [ sp:object _:b9 ; | 336 | + ] [ sp:object |
516 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 337 | + [ sp:varName "dTimEnd"^^xsd:string |
338 | + ] ; | ||
339 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
517 | sp:subject | 340 | sp:subject |
518 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 341 | + [ sp:varName "productionInventory"^^xsd:string |
342 | + ] | ||
343 | + ] [ sp:object | ||
344 | + [ sp:varName "dTimEnd"^^xsd:string | ||
345 | + ] ; | ||
346 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
347 | + sp:subject | ||
348 | + [ sp:varName "productionInventoryToDate"^^xsd:string | ||
349 | + ] | ||
350 | + ] [ sp:object | ||
351 | + [ sp:varName "dTimStart"^^xsd:string | ||
352 | + ] ; | ||
353 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
354 | + sp:subject | ||
355 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
356 | + ] | ||
357 | + ] [ sp:object | ||
358 | + [ sp:varName "dTimEnd"^^xsd:string | ||
359 | + ] ; | ||
360 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
361 | + sp:subject | ||
362 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
363 | + ] | ||
364 | + ] [ sp:object | ||
365 | + [ sp:varName "dTimEnd"^^xsd:string | ||
366 | + ] ; | ||
367 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
368 | + sp:subject | ||
369 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
519 | ] | 370 | ] |
520 | ]) ; | 371 | ]) ; |
521 | sp:where ([ sp:object | 372 | sp:where ([ sp:object |
... | @@ -529,161 +380,90 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -529,161 +380,90 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
529 | [ sp:varName "productVolumeRef"^^xsd:string | 380 | [ sp:varName "productVolumeRef"^^xsd:string |
530 | ] | 381 | ] |
531 | ] [ sp:object | 382 | ] [ sp:object |
532 | - [ sp:varName "contextFacilityRef"^^xsd:string | 383 | + [ sp:varName "dTimStart"^^xsd:string |
533 | ] ; | 384 | ] ; |
534 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; | 385 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; |
535 | sp:subject | 386 | sp:subject |
536 | [ sp:varName "productVolumeRef"^^xsd:string | 387 | [ sp:varName "productVolumeRef"^^xsd:string |
537 | ] | 388 | ] |
538 | ] [ sp:object | 389 | ] [ sp:object |
539 | - [ sp:varName "contextFacilityName"^^xsd:string | 390 | + [ sp:varName "dTimEnd"^^xsd:string |
540 | - ] ; | ||
541 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
542 | - sp:subject | ||
543 | - [ sp:varName "contextFacilityRef"^^xsd:string | ||
544 | - ] | ||
545 | - ] [ rdf:type sp:Optional ; | ||
546 | - sp:elements ([ sp:object | ||
547 | - [ sp:varName "contextFacilityKind"^^xsd:string | ||
548 | ] ; | 391 | ] ; |
549 | - sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 392 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; |
550 | sp:subject | 393 | sp:subject |
551 | - [ sp:varName "contextFacilityRef"^^xsd:string | 394 | + [ sp:varName "productVolumeRef"^^xsd:string |
552 | ] | 395 | ] |
553 | - ]) | ||
554 | ] [ sp:object | 396 | ] [ sp:object |
555 | [ sp:varName "productVolumeRef"^^xsd:string | 397 | [ sp:varName "productVolumeRef"^^xsd:string |
556 | ] ; | 398 | ] ; |
557 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 399 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
558 | sp:subject | 400 | sp:subject |
559 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 401 | + [ sp:varName "productionFlow"^^xsd:string |
560 | ] | 402 | ] |
561 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | 403 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ; |
562 | sp:predicate rdf:type ; | 404 | sp:predicate rdf:type ; |
563 | sp:subject | 405 | sp:subject |
564 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 406 | + [ sp:varName "productionFlow"^^xsd:string |
565 | ] | 407 | ] |
566 | ] [ sp:object | 408 | ] [ sp:object |
567 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 409 | + [ sp:varName "productionFlowToDate"^^xsd:string |
568 | ] ; | 410 | ] ; |
569 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 411 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
570 | sp:subject | 412 | sp:subject |
571 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 413 | + [ sp:varName "productionFlow"^^xsd:string |
572 | ] | 414 | ] |
573 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | 415 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; |
574 | sp:predicate rdf:type ; | 416 | sp:predicate rdf:type ; |
575 | sp:subject | 417 | sp:subject |
576 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 418 | + [ sp:varName "productionFlowToDate"^^xsd:string |
577 | ] | 419 | ] |
578 | - ] [ rdf:type sp:NotExists ; | 420 | + ] [ sp:object |
579 | - sp:elements ([ sp:object | 421 | + [ sp:varName "productVolumeRef"^^xsd:string |
580 | - [ sp:varName "productionFacility"^^xsd:string | ||
581 | ] ; | 422 | ] ; |
582 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 423 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
583 | sp:subject | 424 | sp:subject |
584 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 425 | + [ sp:varName "productionInventory"^^xsd:string |
585 | ] | 426 | ] |
586 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | 427 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ; |
587 | sp:predicate rdf:type ; | 428 | sp:predicate rdf:type ; |
588 | sp:subject | 429 | sp:subject |
589 | - [ sp:varName "productionFacility"^^xsd:string | 430 | + [ sp:varName "productionInventory"^^xsd:string |
590 | - ] | ||
591 | - ]) | ||
592 | - ] [ rdf:type sp:Bind ; | ||
593 | - sp:expression | ||
594 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
595 | - sp:arg1 [ sp:varName "contextFacilityName"^^xsd:string | ||
596 | - ] | ||
597 | - ] ; | ||
598 | - sp:variable | ||
599 | - [ sp:varName "normalizedContextFacilityName"^^xsd:string | ||
600 | - ] | ||
601 | - ] [ rdf:type sp:Bind ; | ||
602 | - sp:expression | ||
603 | - [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; | ||
604 | - sp:arg1 [ sp:varName "normalizedContextFacilityName"^^xsd:string | ||
605 | - ] | ||
606 | - ] ; | ||
607 | - sp:variable | ||
608 | - [ sp:varName "productionContextFacility"^^xsd:string | ||
609 | - ] | ||
610 | - ] [ rdf:type sp:Bind ; | ||
611 | - sp:expression | ||
612 | - [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; | ||
613 | - sp:arg1 [ sp:varName "contextFacilityKind"^^xsd:string | ||
614 | - ] | ||
615 | - ] ; | ||
616 | - sp:variable | ||
617 | - [ sp:varName "productionContextFacilityType"^^xsd:string | ||
618 | ] | 431 | ] |
619 | - ]) | 432 | + ] [ sp:object |
620 | - ] ; | 433 | + [ sp:varName "productionInventoryToDate"^^xsd:string |
621 | - spin:rule | ||
622 | - [ rdf:type sp:Construct ; | ||
623 | - rdfs:comment "STEP 20007a Set the geographic context - field"^^xsd:string ; | ||
624 | - sp:templates ([ sp:object | ||
625 | - [ sp:varName "field"^^xsd:string | ||
626 | ] ; | 434 | ] ; |
627 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | 435 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
628 | sp:subject | 436 | sp:subject |
629 | - [ sp:varName "locationOfProductionFacility"^^xsd:string | 437 | + [ sp:varName "productionInventory"^^xsd:string |
630 | ] | 438 | ] |
631 | - ]) ; | 439 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ; |
632 | - sp:where ([ sp:object | ||
633 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
634 | - ] ; | ||
635 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
636 | - sp:subject spin:_this | ||
637 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
638 | sp:predicate rdf:type ; | 440 | sp:predicate rdf:type ; |
639 | sp:subject | 441 | sp:subject |
640 | - [ sp:varName "productVolumeRef"^^xsd:string | 442 | + [ sp:varName "productionInventoryToDate"^^xsd:string |
641 | ] | 443 | ] |
642 | ] [ sp:object | 444 | ] [ sp:object |
643 | - [ sp:varName "geographicContextRef"^^xsd:string | ||
644 | - ] ; | ||
645 | - sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ; | ||
646 | - sp:subject | ||
647 | [ sp:varName "productVolumeRef"^^xsd:string | 445 | [ sp:varName "productVolumeRef"^^xsd:string |
648 | - ] | ||
649 | - ] [ sp:object | ||
650 | - [ sp:varName "fieldRef"^^xsd:string | ||
651 | ] ; | 446 | ] ; |
652 | - sp:predicate <http://www.epim.no/schemas/mprml/1#fieldRef> ; | 447 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
653 | sp:subject | 448 | sp:subject |
654 | - [ sp:varName "geographicContextRef"^^xsd:string | 449 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
655 | ] | 450 | ] |
656 | - ] [ sp:object | 451 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; |
657 | - [ sp:varName "fieldName"^^xsd:string | 452 | + sp:predicate rdf:type ; |
658 | - ] ; | ||
659 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
660 | sp:subject | 453 | sp:subject |
661 | - [ sp:varName "fieldRef"^^xsd:string | 454 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
662 | ] | 455 | ] |
663 | ] [ sp:object | 456 | ] [ sp:object |
664 | - [ sp:varName "geographicContextRef"^^xsd:string | 457 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
665 | ] ; | 458 | ] ; |
666 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 459 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
667 | sp:subject | 460 | sp:subject |
668 | - [ sp:varName "locationOfProductionFacility"^^xsd:string | 461 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
669 | - ] | ||
670 | - ] [ rdf:type sp:Bind ; | ||
671 | - sp:expression | ||
672 | - [ rdf:type ep-spin-lib:normalizeString ; | ||
673 | - sp:arg1 [ sp:varName "fieldName"^^xsd:string | ||
674 | - ] | ||
675 | - ] ; | ||
676 | - sp:variable | ||
677 | - [ sp:varName "normalizedFieldName"^^xsd:string | ||
678 | - ] | ||
679 | - ] [ rdf:type sp:Bind ; | ||
680 | - sp:expression | ||
681 | - [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; | ||
682 | - sp:arg1 [ sp:varName "normalizedFieldName"^^xsd:string | ||
683 | ] | 462 | ] |
684 | - ] ; | 463 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; |
685 | - sp:variable | 464 | + sp:predicate rdf:type ; |
686 | - [ sp:varName "field"^^xsd:string | 465 | + sp:subject |
466 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
687 | ] | 467 | ] |
688 | ]) | 468 | ]) |
689 | ] ; | 469 | ] ; |
... | @@ -816,32 +596,36 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -816,32 +596,36 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
816 | ] ; | 596 | ] ; |
817 | spin:rule | 597 | spin:rule |
818 | [ rdf:type sp:Construct ; | 598 | [ rdf:type sp:Construct ; |
819 | - rdfs:comment "STEP 20040 Set the installation"^^xsd:string ; | 599 | + rdfs:comment "STEP 20051 Set the context facility - installation does not exist"^^xsd:string ; |
820 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | 600 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; |
821 | sp:predicate rdf:type ; | 601 | sp:predicate rdf:type ; |
822 | sp:subject | 602 | sp:subject |
823 | - [ sp:varName "productionFacility"^^xsd:string | 603 | + [ sp:varName "productionContextFacility"^^xsd:string |
824 | ] | 604 | ] |
825 | ] [ sp:object | 605 | ] [ sp:object |
826 | - [ sp:varName "productionFacilityType"^^xsd:string | 606 | + [ sp:varName "productionContextFacilityType"^^xsd:string |
827 | ] ; | 607 | ] ; |
828 | sp:predicate rdf:type ; | 608 | sp:predicate rdf:type ; |
829 | sp:subject | 609 | sp:subject |
830 | - [ sp:varName "productionFacility"^^xsd:string | 610 | + [ sp:varName "productionContextFacility"^^xsd:string |
831 | ] | 611 | ] |
832 | - ] [ sp:object | 612 | + ] [ sp:object _:b9 ; |
833 | - [ sp:varName "productionFacility"^^xsd:string | 613 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; |
834 | - ] ; | 614 | + sp:subject |
615 | + [ sp:varName "productionContextFacility"^^xsd:string | ||
616 | + ] | ||
617 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
618 | + sp:predicate rdf:type ; | ||
619 | + sp:subject _:b9 | ||
620 | + ] [ sp:object _:b9 ; | ||
835 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 621 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
836 | sp:subject | 622 | sp:subject |
837 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 623 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
838 | ] | 624 | ] |
839 | - ] [ sp:object | 625 | + ] [ sp:object _:b9 ; |
840 | - [ sp:varName "productionFacility"^^xsd:string | ||
841 | - ] ; | ||
842 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 626 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
843 | sp:subject | 627 | sp:subject |
844 | - [ sp:varName "productionInventoryToDate"^^xsd:string | 628 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
845 | ] | 629 | ] |
846 | ]) ; | 630 | ]) ; |
847 | sp:where ([ sp:object | 631 | sp:where ([ sp:object |
... | @@ -855,26 +639,26 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -855,26 +639,26 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
855 | [ sp:varName "productVolumeRef"^^xsd:string | 639 | [ sp:varName "productVolumeRef"^^xsd:string |
856 | ] | 640 | ] |
857 | ] [ sp:object | 641 | ] [ sp:object |
858 | - [ sp:varName "installationRef"^^xsd:string | 642 | + [ sp:varName "contextFacilityRef"^^xsd:string |
859 | ] ; | 643 | ] ; |
860 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | 644 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; |
861 | sp:subject | 645 | sp:subject |
862 | [ sp:varName "productVolumeRef"^^xsd:string | 646 | [ sp:varName "productVolumeRef"^^xsd:string |
863 | ] | 647 | ] |
864 | ] [ sp:object | 648 | ] [ sp:object |
865 | - [ sp:varName "installationName"^^xsd:string | 649 | + [ sp:varName "contextFacilityName"^^xsd:string |
866 | ] ; | 650 | ] ; |
867 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 651 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
868 | sp:subject | 652 | sp:subject |
869 | - [ sp:varName "installationRef"^^xsd:string | 653 | + [ sp:varName "contextFacilityRef"^^xsd:string |
870 | ] | 654 | ] |
871 | ] [ rdf:type sp:Optional ; | 655 | ] [ rdf:type sp:Optional ; |
872 | sp:elements ([ sp:object | 656 | sp:elements ([ sp:object |
873 | - [ sp:varName "installationKind"^^xsd:string | 657 | + [ sp:varName "contextFacilityKind"^^xsd:string |
874 | ] ; | 658 | ] ; |
875 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | 659 | sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; |
876 | sp:subject | 660 | sp:subject |
877 | - [ sp:varName "installationRef"^^xsd:string | 661 | + [ sp:varName "contextFacilityRef"^^xsd:string |
878 | ] | 662 | ] |
879 | ]) | 663 | ]) |
880 | ] [ sp:object | 664 | ] [ sp:object |
... | @@ -901,96 +685,361 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -901,96 +685,361 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
901 | sp:subject | 685 | sp:subject |
902 | [ sp:varName "productionFacilityToDate"^^xsd:string | 686 | [ sp:varName "productionFacilityToDate"^^xsd:string |
903 | ] | 687 | ] |
688 | + ] [ rdf:type sp:NotExists ; | ||
689 | + sp:elements ([ sp:object | ||
690 | + [ sp:varName "productionFacility"^^xsd:string | ||
691 | + ] ; | ||
692 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
693 | + sp:subject | ||
694 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
695 | + ] | ||
696 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
697 | + sp:predicate rdf:type ; | ||
698 | + sp:subject | ||
699 | + [ sp:varName "productionFacility"^^xsd:string | ||
700 | + ] | ||
701 | + ]) | ||
904 | ] [ rdf:type sp:Bind ; | 702 | ] [ rdf:type sp:Bind ; |
905 | sp:expression | 703 | sp:expression |
906 | [ rdf:type ep-spin-lib:normalizeString ; | 704 | [ rdf:type ep-spin-lib:normalizeString ; |
907 | - sp:arg1 [ sp:varName "installationName"^^xsd:string | 705 | + sp:arg1 [ sp:varName "contextFacilityName"^^xsd:string |
908 | ] | 706 | ] |
909 | ] ; | 707 | ] ; |
910 | sp:variable | 708 | sp:variable |
911 | - [ sp:varName "normalizedInstallationName"^^xsd:string | 709 | + [ sp:varName "normalizedContextFacilityName"^^xsd:string |
912 | ] | 710 | ] |
913 | ] [ rdf:type sp:Bind ; | 711 | ] [ rdf:type sp:Bind ; |
914 | sp:expression | 712 | sp:expression |
915 | [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; | 713 | [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; |
916 | - sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string | 714 | + sp:arg1 [ sp:varName "normalizedContextFacilityName"^^xsd:string |
917 | ] | 715 | ] |
918 | ] ; | 716 | ] ; |
919 | sp:variable | 717 | sp:variable |
920 | - [ sp:varName "productionFacility"^^xsd:string | 718 | + [ sp:varName "productionContextFacility"^^xsd:string |
921 | ] | 719 | ] |
922 | ] [ rdf:type sp:Bind ; | 720 | ] [ rdf:type sp:Bind ; |
923 | sp:expression | 721 | sp:expression |
924 | [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; | 722 | [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; |
925 | - sp:arg1 [ sp:varName "installationKind"^^xsd:string | 723 | + sp:arg1 [ sp:varName "contextFacilityKind"^^xsd:string |
926 | ] | 724 | ] |
927 | ] ; | 725 | ] ; |
928 | sp:variable | 726 | sp:variable |
929 | - [ sp:varName "productionFacilityType"^^xsd:string | 727 | + [ sp:varName "productionContextFacilityType"^^xsd:string |
930 | ] | 728 | ] |
931 | ]) | 729 | ]) |
932 | ] ; | 730 | ] ; |
933 | spin:rule | 731 | spin:rule |
934 | [ rdf:type sp:Construct ; | 732 | [ rdf:type sp:Construct ; |
935 | - rdfs:comment "STEP 20030 Record the start and end date-times"^^xsd:string ; | 733 | + rdfs:comment "STEP 20040 Set the installation"^^xsd:string ; |
936 | sp:templates ([ sp:object | 734 | sp:templates ([ sp:object |
937 | - [ sp:varName "dTimStart"^^xsd:string | 735 | + [ sp:varName "productionFacility"^^xsd:string |
938 | ] ; | 736 | ] ; |
939 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 737 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
940 | sp:subject | 738 | sp:subject |
941 | - [ sp:varName "productionFlow"^^xsd:string | 739 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
942 | ] | 740 | ] |
943 | ] [ sp:object | 741 | ] [ sp:object |
944 | - [ sp:varName "dTimEnd"^^xsd:string | 742 | + [ sp:varName "productionFacility"^^xsd:string |
945 | ] ; | 743 | ] ; |
946 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 744 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
947 | sp:subject | 745 | sp:subject |
948 | - [ sp:varName "productionFlow"^^xsd:string | 746 | + [ sp:varName "productionFacilityToDate"^^xsd:string |
949 | ] | 747 | ] |
950 | - ] [ sp:object | 748 | + ]) ; |
951 | - [ sp:varName "dTimEnd"^^xsd:string | 749 | + sp:where ([ sp:object |
750 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
952 | ] ; | 751 | ] ; |
953 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 752 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
753 | + sp:subject spin:_this | ||
754 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
755 | + sp:predicate rdf:type ; | ||
954 | sp:subject | 756 | sp:subject |
955 | - [ sp:varName "productionFlowToDate"^^xsd:string | 757 | + [ sp:varName "productVolumeRef"^^xsd:string |
956 | ] | 758 | ] |
957 | ] [ sp:object | 759 | ] [ sp:object |
958 | - [ sp:varName "dTimStart"^^xsd:string | 760 | + [ sp:varName "installationRef"^^xsd:string |
761 | + ] ; | ||
762 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
763 | + sp:subject | ||
764 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
765 | + ] | ||
766 | + ] [ sp:object | ||
767 | + [ sp:varName "installationRef"^^xsd:string | ||
768 | + ] ; | ||
769 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
770 | + sp:subject | ||
771 | + [ sp:varName "productionFacility"^^xsd:string | ||
772 | + ] | ||
773 | + ] [ sp:object | ||
774 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
775 | + ] ; | ||
776 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
777 | + sp:subject | ||
778 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
779 | + ] | ||
780 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
781 | + sp:predicate rdf:type ; | ||
782 | + sp:subject | ||
783 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
784 | + ] | ||
785 | + ] [ sp:object | ||
786 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
787 | + ] ; | ||
788 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
789 | + sp:subject | ||
790 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
791 | + ] | ||
792 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
793 | + sp:predicate rdf:type ; | ||
794 | + sp:subject | ||
795 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
796 | + ] | ||
797 | + ]) | ||
798 | + ] ; | ||
799 | + spin:rule | ||
800 | + [ rdf:type sp:Construct ; | ||
801 | + rdfs:comment "STEP 20007b Set the geographic context - country"^^xsd:string ; | ||
802 | + sp:templates ([ sp:object | ||
803 | + [ sp:varName "country"^^xsd:string | ||
804 | + ] ; | ||
805 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
806 | + sp:subject | ||
807 | + [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
808 | + ] | ||
809 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#Country> ; | ||
810 | + sp:predicate rdf:type ; | ||
811 | + sp:subject | ||
812 | + [ sp:varName "country"^^xsd:string | ||
813 | + ] | ||
814 | + ] [ sp:object | ||
815 | + [ sp:varName "countryName"^^xsd:string | ||
816 | + ] ; | ||
817 | + sp:predicate rdfs:label ; | ||
818 | + sp:subject | ||
819 | + [ sp:varName "country"^^xsd:string | ||
820 | + ] | ||
821 | + ]) ; | ||
822 | + sp:where ([ sp:object | ||
823 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
824 | + ] ; | ||
825 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
826 | + sp:subject spin:_this | ||
827 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
828 | + sp:predicate rdf:type ; | ||
829 | + sp:subject | ||
830 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
831 | + ] | ||
832 | + ] [ sp:object | ||
833 | + [ sp:varName "geographicContextRef"^^xsd:string | ||
834 | + ] ; | ||
835 | + sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ; | ||
836 | + sp:subject | ||
837 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
838 | + ] | ||
839 | + ] [ sp:object | ||
840 | + [ sp:varName "countryName"^^xsd:string | ||
841 | + ] ; | ||
842 | + sp:predicate <http://www.epim.no/schemas/mprml/1#country> ; | ||
843 | + sp:subject | ||
844 | + [ sp:varName "geographicContextRef"^^xsd:string | ||
845 | + ] | ||
846 | + ] [ sp:object | ||
847 | + [ sp:varName "geographicContextRef"^^xsd:string | ||
848 | + ] ; | ||
849 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
850 | + sp:subject | ||
851 | + [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
852 | + ] | ||
853 | + ] [ rdf:type sp:Bind ; | ||
854 | + sp:expression | ||
855 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
856 | + sp:arg1 [ sp:varName "countryName"^^xsd:string | ||
857 | + ] | ||
858 | + ] ; | ||
859 | + sp:variable | ||
860 | + [ sp:varName "normalizedCountryName"^^xsd:string | ||
861 | + ] | ||
862 | + ] [ rdf:type sp:Bind ; | ||
863 | + sp:expression | ||
864 | + [ rdf:type ep-dpr-spin-lib:buildCountryURI ; | ||
865 | + sp:arg1 [ sp:varName "normalizedCountryName"^^xsd:string | ||
866 | + ] | ||
867 | + ] ; | ||
868 | + sp:variable | ||
869 | + [ sp:varName "country"^^xsd:string | ||
870 | + ] | ||
871 | + ]) | ||
872 | + ] ; | ||
873 | + spin:rule | ||
874 | + [ rdf:type sp:Construct ; | ||
875 | + rdfs:comment "STEP 20050 Set the context facility - installation exists"^^xsd:string ; | ||
876 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
877 | + sp:predicate rdf:type ; | ||
878 | + sp:subject | ||
879 | + [ sp:varName "productionContextFacility"^^xsd:string | ||
880 | + ] | ||
881 | + ] [ sp:object | ||
882 | + [ sp:varName "productionContextFacilityType"^^xsd:string | ||
883 | + ] ; | ||
884 | + sp:predicate rdf:type ; | ||
885 | + sp:subject | ||
886 | + [ sp:varName "productionContextFacility"^^xsd:string | ||
887 | + ] | ||
888 | + ] [ sp:object | ||
889 | + [ sp:varName "productionFacility"^^xsd:string | ||
890 | + ] ; | ||
891 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasPart> ; | ||
892 | + sp:subject | ||
893 | + [ sp:varName "productionContextFacility"^^xsd:string | ||
894 | + ] | ||
895 | + ]) ; | ||
896 | + sp:where ([ sp:object | ||
897 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
898 | + ] ; | ||
899 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
900 | + sp:subject spin:_this | ||
901 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
902 | + sp:predicate rdf:type ; | ||
903 | + sp:subject | ||
904 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
905 | + ] | ||
906 | + ] [ sp:object | ||
907 | + [ sp:varName "contextFacilityRef"^^xsd:string | ||
908 | + ] ; | ||
909 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextFacilityRef> ; | ||
910 | + sp:subject | ||
911 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
912 | + ] | ||
913 | + ] [ sp:object | ||
914 | + [ sp:varName "contextFacilityName"^^xsd:string | ||
915 | + ] ; | ||
916 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
917 | + sp:subject | ||
918 | + [ sp:varName "contextFacilityRef"^^xsd:string | ||
919 | + ] | ||
920 | + ] [ rdf:type sp:Optional ; | ||
921 | + sp:elements ([ sp:object | ||
922 | + [ sp:varName "contextFacilityKind"^^xsd:string | ||
923 | + ] ; | ||
924 | + sp:predicate <http://www.epim.no/schemas/mprml/1#kindRef> ; | ||
925 | + sp:subject | ||
926 | + [ sp:varName "contextFacilityRef"^^xsd:string | ||
927 | + ] | ||
928 | + ]) | ||
929 | + ] [ sp:object | ||
930 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
931 | + ] ; | ||
932 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
933 | + sp:subject | ||
934 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
935 | + ] | ||
936 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
937 | + sp:predicate rdf:type ; | ||
938 | + sp:subject | ||
939 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
940 | + ] | ||
941 | + ] [ sp:object | ||
942 | + [ sp:varName "productionFacility"^^xsd:string | ||
943 | + ] ; | ||
944 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
945 | + sp:subject | ||
946 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
947 | + ] | ||
948 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ; | ||
949 | + sp:predicate rdf:type ; | ||
950 | + sp:subject | ||
951 | + [ sp:varName "productionFacility"^^xsd:string | ||
952 | + ] | ||
953 | + ] [ rdf:type sp:Bind ; | ||
954 | + sp:expression | ||
955 | + [ rdf:type ep-spin-lib:normalizeString ; | ||
956 | + sp:arg1 [ sp:varName "contextFacilityName"^^xsd:string | ||
957 | + ] | ||
958 | + ] ; | ||
959 | + sp:variable | ||
960 | + [ sp:varName "normalizedContextFacilityName"^^xsd:string | ||
961 | + ] | ||
962 | + ] [ rdf:type sp:Bind ; | ||
963 | + sp:expression | ||
964 | + [ rdf:type ep-dpr-spin-lib:buildProductionFacilityURI ; | ||
965 | + sp:arg1 [ sp:varName "normalizedContextFacilityName"^^xsd:string | ||
966 | + ] | ||
967 | + ] ; | ||
968 | + sp:variable | ||
969 | + [ sp:varName "productionContextFacility"^^xsd:string | ||
970 | + ] | ||
971 | + ] [ rdf:type sp:Bind ; | ||
972 | + sp:expression | ||
973 | + [ rdf:type ep-dpr-spin-lib:selectProductionFacilityType ; | ||
974 | + sp:arg1 [ sp:varName "contextFacilityKind"^^xsd:string | ||
975 | + ] | ||
976 | + ] ; | ||
977 | + sp:variable | ||
978 | + [ sp:varName "productionContextFacilityType"^^xsd:string | ||
979 | + ] | ||
980 | + ]) | ||
981 | + ] ; | ||
982 | + spin:rule | ||
983 | + [ rdf:type sp:Construct ; | ||
984 | + rdfs:comment "STEP 20031 Record the start and end dates"^^xsd:string ; | ||
985 | + sp:templates ([ sp:object | ||
986 | + [ sp:varName "dateStart"^^xsd:string | ||
987 | + ] ; | ||
988 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
989 | + sp:subject | ||
990 | + [ sp:varName "productionFlow"^^xsd:string | ||
991 | + ] | ||
992 | + ] [ sp:object | ||
993 | + [ sp:varName "dateEnd"^^xsd:string | ||
994 | + ] ; | ||
995 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
996 | + sp:subject | ||
997 | + [ sp:varName "productionFlow"^^xsd:string | ||
998 | + ] | ||
999 | + ] [ sp:object | ||
1000 | + [ sp:varName "dateEnd"^^xsd:string | ||
1001 | + ] ; | ||
1002 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
1003 | + sp:subject | ||
1004 | + [ sp:varName "productionFlowToDate"^^xsd:string | ||
1005 | + ] | ||
1006 | + ] [ sp:object | ||
1007 | + [ sp:varName "dateStart"^^xsd:string | ||
959 | ] ; | 1008 | ] ; |
960 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 1009 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
961 | sp:subject | 1010 | sp:subject |
962 | [ sp:varName "productionInventory"^^xsd:string | 1011 | [ sp:varName "productionInventory"^^xsd:string |
963 | ] | 1012 | ] |
964 | ] [ sp:object | 1013 | ] [ sp:object |
965 | - [ sp:varName "dTimEnd"^^xsd:string | 1014 | + [ sp:varName "dateEnd"^^xsd:string |
966 | ] ; | 1015 | ] ; |
967 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 1016 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
968 | sp:subject | 1017 | sp:subject |
969 | [ sp:varName "productionInventory"^^xsd:string | 1018 | [ sp:varName "productionInventory"^^xsd:string |
970 | ] | 1019 | ] |
971 | ] [ sp:object | 1020 | ] [ sp:object |
972 | - [ sp:varName "dTimEnd"^^xsd:string | 1021 | + [ sp:varName "dateEnd"^^xsd:string |
973 | ] ; | 1022 | ] ; |
974 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 1023 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
975 | sp:subject | 1024 | sp:subject |
976 | [ sp:varName "productionInventoryToDate"^^xsd:string | 1025 | [ sp:varName "productionInventoryToDate"^^xsd:string |
977 | ] | 1026 | ] |
978 | ] [ sp:object | 1027 | ] [ sp:object |
979 | - [ sp:varName "dTimStart"^^xsd:string | 1028 | + [ sp:varName "dateStart"^^xsd:string |
980 | ] ; | 1029 | ] ; |
981 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 1030 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
982 | sp:subject | 1031 | sp:subject |
983 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 1032 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
984 | ] | 1033 | ] |
985 | ] [ sp:object | 1034 | ] [ sp:object |
986 | - [ sp:varName "dTimEnd"^^xsd:string | 1035 | + [ sp:varName "dateEnd"^^xsd:string |
987 | ] ; | 1036 | ] ; |
988 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 1037 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
989 | sp:subject | 1038 | sp:subject |
990 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 1039 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
991 | ] | 1040 | ] |
992 | ] [ sp:object | 1041 | ] [ sp:object |
993 | - [ sp:varName "dTimEnd"^^xsd:string | 1042 | + [ sp:varName "dateEnd"^^xsd:string |
994 | ] ; | 1043 | ] ; |
995 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 1044 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
996 | sp:subject | 1045 | sp:subject |
... | @@ -1008,16 +1057,16 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -1008,16 +1057,16 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
1008 | [ sp:varName "productVolumeRef"^^xsd:string | 1057 | [ sp:varName "productVolumeRef"^^xsd:string |
1009 | ] | 1058 | ] |
1010 | ] [ sp:object | 1059 | ] [ sp:object |
1011 | - [ sp:varName "dTimStart"^^xsd:string | 1060 | + [ sp:varName "dateStart"^^xsd:string |
1012 | ] ; | 1061 | ] ; |
1013 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; | 1062 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; |
1014 | sp:subject | 1063 | sp:subject |
1015 | [ sp:varName "productVolumeRef"^^xsd:string | 1064 | [ sp:varName "productVolumeRef"^^xsd:string |
1016 | ] | 1065 | ] |
1017 | ] [ sp:object | 1066 | ] [ sp:object |
1018 | - [ sp:varName "dTimEnd"^^xsd:string | 1067 | + [ sp:varName "dateEnd"^^xsd:string |
1019 | ] ; | 1068 | ] ; |
1020 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | 1069 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; |
1021 | sp:subject | 1070 | sp:subject |
1022 | [ sp:varName "productVolumeRef"^^xsd:string | 1071 | [ sp:varName "productVolumeRef"^^xsd:string |
1023 | ] | 1072 | ] |
... | @@ -1062,36 +1111,110 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -1062,36 +1111,110 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
1062 | ] ; | 1111 | ] ; |
1063 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 1112 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
1064 | sp:subject | 1113 | sp:subject |
1065 | - [ sp:varName "productionInventory"^^xsd:string | 1114 | + [ sp:varName "productionInventory"^^xsd:string |
1115 | + ] | ||
1116 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ; | ||
1117 | + sp:predicate rdf:type ; | ||
1118 | + sp:subject | ||
1119 | + [ sp:varName "productionInventoryToDate"^^xsd:string | ||
1120 | + ] | ||
1121 | + ] [ sp:object | ||
1122 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
1123 | + ] ; | ||
1124 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
1125 | + sp:subject | ||
1126 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
1127 | + ] | ||
1128 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
1129 | + sp:predicate rdf:type ; | ||
1130 | + sp:subject | ||
1131 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
1132 | + ] | ||
1133 | + ] [ sp:object | ||
1134 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
1135 | + ] ; | ||
1136 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
1137 | + sp:subject | ||
1138 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
1139 | + ] | ||
1140 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
1141 | + sp:predicate rdf:type ; | ||
1142 | + sp:subject | ||
1143 | + [ sp:varName "productionFacilityToDate"^^xsd:string | ||
1144 | + ] | ||
1145 | + ]) | ||
1146 | + ] ; | ||
1147 | + spin:rule | ||
1148 | + [ rdf:type sp:Construct ; | ||
1149 | + rdfs:comment "STEP 20007c Set the geographic context - state"^^xsd:string ; | ||
1150 | + sp:templates ([ sp:object | ||
1151 | + [ sp:varName "state"^^xsd:string | ||
1152 | + ] ; | ||
1153 | + sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
1154 | + sp:subject | ||
1155 | + [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
1156 | + ] | ||
1157 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#State> ; | ||
1158 | + sp:predicate rdf:type ; | ||
1159 | + sp:subject | ||
1160 | + [ sp:varName "state"^^xsd:string | ||
1161 | + ] | ||
1162 | + ] [ sp:object | ||
1163 | + [ sp:varName "stateName"^^xsd:string | ||
1164 | + ] ; | ||
1165 | + sp:predicate rdfs:label ; | ||
1166 | + sp:subject | ||
1167 | + [ sp:varName "state"^^xsd:string | ||
1168 | + ] | ||
1169 | + ]) ; | ||
1170 | + sp:where ([ sp:object | ||
1171 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
1172 | + ] ; | ||
1173 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
1174 | + sp:subject spin:_this | ||
1175 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
1176 | + sp:predicate rdf:type ; | ||
1177 | + sp:subject | ||
1178 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
1179 | + ] | ||
1180 | + ] [ sp:object | ||
1181 | + [ sp:varName "geographicContextRef"^^xsd:string | ||
1182 | + ] ; | ||
1183 | + sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ; | ||
1184 | + sp:subject | ||
1185 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
1066 | ] | 1186 | ] |
1067 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ; | 1187 | + ] [ sp:object |
1068 | - sp:predicate rdf:type ; | 1188 | + [ sp:varName "stateName"^^xsd:string |
1189 | + ] ; | ||
1190 | + sp:predicate <http://www.epim.no/schemas/mprml/1#state> ; | ||
1069 | sp:subject | 1191 | sp:subject |
1070 | - [ sp:varName "productionInventoryToDate"^^xsd:string | 1192 | + [ sp:varName "geographicContextRef"^^xsd:string |
1071 | ] | 1193 | ] |
1072 | ] [ sp:object | 1194 | ] [ sp:object |
1073 | - [ sp:varName "productVolumeRef"^^xsd:string | 1195 | + [ sp:varName "geographicContextRef"^^xsd:string |
1074 | ] ; | 1196 | ] ; |
1075 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 1197 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
1076 | sp:subject | 1198 | sp:subject |
1077 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 1199 | + [ sp:varName "locationOfProductionFacility"^^xsd:string |
1078 | ] | 1200 | ] |
1079 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | 1201 | + ] [ rdf:type sp:Bind ; |
1080 | - sp:predicate rdf:type ; | 1202 | + sp:expression |
1081 | - sp:subject | 1203 | + [ rdf:type ep-spin-lib:normalizeString ; |
1082 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 1204 | + sp:arg1 [ sp:varName "stateName"^^xsd:string |
1083 | ] | 1205 | ] |
1084 | - ] [ sp:object | ||
1085 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
1086 | ] ; | 1206 | ] ; |
1087 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 1207 | + sp:variable |
1088 | - sp:subject | 1208 | + [ sp:varName "normalizedStateName"^^xsd:string |
1089 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
1090 | ] | 1209 | ] |
1091 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | 1210 | + ] [ rdf:type sp:Bind ; |
1092 | - sp:predicate rdf:type ; | 1211 | + sp:expression |
1093 | - sp:subject | 1212 | + [ rdf:type ep-dpr-spin-lib:buildStateURI ; |
1094 | - [ sp:varName "productionFacilityToDate"^^xsd:string | 1213 | + sp:arg1 [ sp:varName "normalizedStateName"^^xsd:string |
1214 | + ] | ||
1215 | + ] ; | ||
1216 | + sp:variable | ||
1217 | + [ sp:varName "state"^^xsd:string | ||
1095 | ] | 1218 | ] |
1096 | ]) | 1219 | ]) |
1097 | ] ; | 1220 | ] ; |
... | @@ -1188,25 +1311,14 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -1188,25 +1311,14 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
1188 | ] ; | 1311 | ] ; |
1189 | spin:rule | 1312 | spin:rule |
1190 | [ rdf:type sp:Construct ; | 1313 | [ rdf:type sp:Construct ; |
1191 | - rdfs:comment "STEP 20007c Set the geographic context - state"^^xsd:string ; | 1314 | + rdfs:comment """STEP 20060 Set the facility operator |
1315 | +role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ||
1192 | sp:templates ([ sp:object | 1316 | sp:templates ([ sp:object |
1193 | - [ sp:varName "state"^^xsd:string | 1317 | + [ sp:varName "operator"^^xsd:string |
1194 | - ] ; | ||
1195 | - sp:predicate <http://www.reportinghub.no/ep/schema/geography#locatedWithin> ; | ||
1196 | - sp:subject | ||
1197 | - [ sp:varName "locationOfProductionFacility"^^xsd:string | ||
1198 | - ] | ||
1199 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/geography#State> ; | ||
1200 | - sp:predicate rdf:type ; | ||
1201 | - sp:subject | ||
1202 | - [ sp:varName "state"^^xsd:string | ||
1203 | - ] | ||
1204 | - ] [ sp:object | ||
1205 | - [ sp:varName "stateName"^^xsd:string | ||
1206 | ] ; | 1318 | ] ; |
1207 | - sp:predicate rdfs:label ; | 1319 | + sp:predicate <http://www.reportinghub.no/ep/schema/facility#facilityOperator> ; |
1208 | sp:subject | 1320 | sp:subject |
1209 | - [ sp:varName "state"^^xsd:string | 1321 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
1210 | ] | 1322 | ] |
1211 | ]) ; | 1323 | ]) ; |
1212 | sp:where ([ sp:object | 1324 | sp:where ([ sp:object |
... | @@ -1220,43 +1332,48 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -1220,43 +1332,48 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
1220 | [ sp:varName "productVolumeRef"^^xsd:string | 1332 | [ sp:varName "productVolumeRef"^^xsd:string |
1221 | ] | 1333 | ] |
1222 | ] [ sp:object | 1334 | ] [ sp:object |
1223 | - [ sp:varName "geographicContextRef"^^xsd:string | 1335 | + [ sp:varName "operatorRef"^^xsd:string |
1224 | ] ; | 1336 | ] ; |
1225 | - sp:predicate <http://www.epim.no/schemas/mprml/1#geographicContextRef> ; | 1337 | + sp:predicate <http://www.epim.no/schemas/mprml/1#operatorRef> ; |
1226 | sp:subject | 1338 | sp:subject |
1227 | [ sp:varName "productVolumeRef"^^xsd:string | 1339 | [ sp:varName "productVolumeRef"^^xsd:string |
1228 | ] | 1340 | ] |
1229 | ] [ sp:object | 1341 | ] [ sp:object |
1230 | - [ sp:varName "stateName"^^xsd:string | 1342 | + [ sp:varName "operatorName"^^xsd:string |
1231 | ] ; | 1343 | ] ; |
1232 | - sp:predicate <http://www.epim.no/schemas/mprml/1#state> ; | 1344 | + sp:predicate <http://www.epim.no/schemas/mprml/1#name> ; |
1233 | sp:subject | 1345 | sp:subject |
1234 | - [ sp:varName "geographicContextRef"^^xsd:string | 1346 | + [ sp:varName "operatorRef"^^xsd:string |
1235 | ] | 1347 | ] |
1236 | ] [ sp:object | 1348 | ] [ sp:object |
1237 | - [ sp:varName "geographicContextRef"^^xsd:string | 1349 | + [ sp:varName "productVolumeRef"^^xsd:string |
1238 | ] ; | 1350 | ] ; |
1239 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | 1351 | sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; |
1240 | sp:subject | 1352 | sp:subject |
1241 | - [ sp:varName "locationOfProductionFacility"^^xsd:string | 1353 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
1354 | + ] | ||
1355 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
1356 | + sp:predicate rdf:type ; | ||
1357 | + sp:subject | ||
1358 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
1242 | ] | 1359 | ] |
1243 | ] [ rdf:type sp:Bind ; | 1360 | ] [ rdf:type sp:Bind ; |
1244 | sp:expression | 1361 | sp:expression |
1245 | [ rdf:type ep-spin-lib:normalizeString ; | 1362 | [ rdf:type ep-spin-lib:normalizeString ; |
1246 | - sp:arg1 [ sp:varName "stateName"^^xsd:string | 1363 | + sp:arg1 [ sp:varName "operatorName"^^xsd:string |
1247 | ] | 1364 | ] |
1248 | ] ; | 1365 | ] ; |
1249 | sp:variable | 1366 | sp:variable |
1250 | - [ sp:varName "normalizedStateName"^^xsd:string | 1367 | + [ sp:varName "normalizedOperatorName"^^xsd:string |
1251 | ] | 1368 | ] |
1252 | ] [ rdf:type sp:Bind ; | 1369 | ] [ rdf:type sp:Bind ; |
1253 | sp:expression | 1370 | sp:expression |
1254 | - [ rdf:type ep-dpr-spin-lib:buildStateURI ; | 1371 | + [ rdf:type rhspin:companyById ; |
1255 | - sp:arg1 [ sp:varName "normalizedStateName"^^xsd:string | 1372 | + arg:id [ sp:varName "normalizedOperatorName"^^xsd:string |
1256 | ] | 1373 | ] |
1257 | ] ; | 1374 | ] ; |
1258 | sp:variable | 1375 | sp:variable |
1259 | - [ sp:varName "state"^^xsd:string | 1376 | + [ sp:varName "operator"^^xsd:string |
1260 | ] | 1377 | ] |
1261 | ]) | 1378 | ]) |
1262 | ] ; | 1379 | ] ; |
... | @@ -1328,174 +1445,9 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; | ... | @@ -1328,174 +1445,9 @@ role is ignored, because it is implicitly \"operator\""""^^xsd:string ; |
1328 | [ sp:varName "block"^^xsd:string | 1445 | [ sp:varName "block"^^xsd:string |
1329 | ] | 1446 | ] |
1330 | ]) | 1447 | ]) |
1331 | - ] ; | ||
1332 | - spin:rule | ||
1333 | - [ rdf:type sp:Construct ; | ||
1334 | - rdfs:comment "STEP 20031 Record the start and end dates"^^xsd:string ; | ||
1335 | - sp:templates ([ sp:object | ||
1336 | - [ sp:varName "dateStart"^^xsd:string | ||
1337 | - ] ; | ||
1338 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
1339 | - sp:subject | ||
1340 | - [ sp:varName "productionFlow"^^xsd:string | ||
1341 | - ] | ||
1342 | - ] [ sp:object | ||
1343 | - [ sp:varName "dateEnd"^^xsd:string | ||
1344 | - ] ; | ||
1345 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
1346 | - sp:subject | ||
1347 | - [ sp:varName "productionFlow"^^xsd:string | ||
1348 | - ] | ||
1349 | - ] [ sp:object | ||
1350 | - [ sp:varName "dateEnd"^^xsd:string | ||
1351 | - ] ; | ||
1352 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
1353 | - sp:subject | ||
1354 | - [ sp:varName "productionFlowToDate"^^xsd:string | ||
1355 | - ] | ||
1356 | - ] [ sp:object | ||
1357 | - [ sp:varName "dateStart"^^xsd:string | ||
1358 | - ] ; | ||
1359 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
1360 | - sp:subject | ||
1361 | - [ sp:varName "productionInventory"^^xsd:string | ||
1362 | - ] | ||
1363 | - ] [ sp:object | ||
1364 | - [ sp:varName "dateEnd"^^xsd:string | ||
1365 | - ] ; | ||
1366 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
1367 | - sp:subject | ||
1368 | - [ sp:varName "productionInventory"^^xsd:string | ||
1369 | - ] | ||
1370 | - ] [ sp:object | ||
1371 | - [ sp:varName "dateEnd"^^xsd:string | ||
1372 | - ] ; | ||
1373 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
1374 | - sp:subject | ||
1375 | - [ sp:varName "productionInventoryToDate"^^xsd:string | ||
1376 | - ] | ||
1377 | - ] [ sp:object | ||
1378 | - [ sp:varName "dateStart"^^xsd:string | ||
1379 | - ] ; | ||
1380 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
1381 | - sp:subject | ||
1382 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
1383 | - ] | ||
1384 | - ] [ sp:object | ||
1385 | - [ sp:varName "dateEnd"^^xsd:string | ||
1386 | - ] ; | ||
1387 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
1388 | - sp:subject | ||
1389 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
1390 | - ] | ||
1391 | - ] [ sp:object | ||
1392 | - [ sp:varName "dateEnd"^^xsd:string | ||
1393 | - ] ; | ||
1394 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
1395 | - sp:subject | ||
1396 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
1397 | - ] | ||
1398 | - ]) ; | ||
1399 | - sp:where ([ sp:object | ||
1400 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
1401 | - ] ; | ||
1402 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
1403 | - sp:subject spin:_this | ||
1404 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
1405 | - sp:predicate rdf:type ; | ||
1406 | - sp:subject | ||
1407 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
1408 | - ] | ||
1409 | - ] [ sp:object | ||
1410 | - [ sp:varName "dateStart"^^xsd:string | ||
1411 | - ] ; | ||
1412 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | ||
1413 | - sp:subject | ||
1414 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
1415 | - ] | ||
1416 | - ] [ sp:object | ||
1417 | - [ sp:varName "dateEnd"^^xsd:string | ||
1418 | - ] ; | ||
1419 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
1420 | - sp:subject | ||
1421 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
1422 | - ] | ||
1423 | - ] [ sp:object | ||
1424 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
1425 | - ] ; | ||
1426 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
1427 | - sp:subject | ||
1428 | - [ sp:varName "productionFlow"^^xsd:string | ||
1429 | - ] | ||
1430 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ; | ||
1431 | - sp:predicate rdf:type ; | ||
1432 | - sp:subject | ||
1433 | - [ sp:varName "productionFlow"^^xsd:string | ||
1434 | - ] | ||
1435 | - ] [ sp:object | ||
1436 | - [ sp:varName "productionFlowToDate"^^xsd:string | ||
1437 | - ] ; | ||
1438 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
1439 | - sp:subject | ||
1440 | - [ sp:varName "productionFlow"^^xsd:string | ||
1441 | - ] | ||
1442 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowToDate> ; | ||
1443 | - sp:predicate rdf:type ; | ||
1444 | - sp:subject | ||
1445 | - [ sp:varName "productionFlowToDate"^^xsd:string | ||
1446 | - ] | ||
1447 | - ] [ sp:object | ||
1448 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
1449 | - ] ; | ||
1450 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
1451 | - sp:subject | ||
1452 | - [ sp:varName "productionInventory"^^xsd:string | ||
1453 | - ] | ||
1454 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ; | ||
1455 | - sp:predicate rdf:type ; | ||
1456 | - sp:subject | ||
1457 | - [ sp:varName "productionInventory"^^xsd:string | ||
1458 | - ] | ||
1459 | - ] [ sp:object | ||
1460 | - [ sp:varName "productionInventoryToDate"^^xsd:string | ||
1461 | - ] ; | ||
1462 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
1463 | - sp:subject | ||
1464 | - [ sp:varName "productionInventory"^^xsd:string | ||
1465 | - ] | ||
1466 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryToDate> ; | ||
1467 | - sp:predicate rdf:type ; | ||
1468 | - sp:subject | ||
1469 | - [ sp:varName "productionInventoryToDate"^^xsd:string | ||
1470 | - ] | ||
1471 | - ] [ sp:object | ||
1472 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
1473 | - ] ; | ||
1474 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#derivedFrom> ; | ||
1475 | - sp:subject | ||
1476 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
1477 | - ] | ||
1478 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
1479 | - sp:predicate rdf:type ; | ||
1480 | - sp:subject | ||
1481 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
1482 | - ] | ||
1483 | - ] [ sp:object | ||
1484 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
1485 | - ] ; | ||
1486 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
1487 | - sp:subject | ||
1488 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
1489 | - ] | ||
1490 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacilityToDate> ; | ||
1491 | - sp:predicate rdf:type ; | ||
1492 | - sp:subject | ||
1493 | - [ sp:varName "productionFacilityToDate"^^xsd:string | ||
1494 | - ] | ||
1495 | - ]) | ||
1496 | ] . | 1448 | ] . |
1497 | 1449 | ||
1498 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> | 1450 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeReport-v1.0> |
1499 | rdf:type owl:Ontology ; | 1451 | rdf:type owl:Ontology ; |
1500 | - 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> ; | 1452 | + owl:imports <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> ; |
1501 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 1453 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
... | @@ -19,9 +19,9 @@ | ... | @@ -19,9 +19,9 @@ |
19 | <http://www.epim.no/schemas/mprml/1#A_Global-Objects> | 19 | <http://www.epim.no/schemas/mprml/1#A_Global-Objects> |
20 | spin:rule | 20 | spin:rule |
21 | [ rdf:type sp:Construct ; | 21 | [ rdf:type sp:Construct ; |
22 | - rdfs:comment "STEP 10001b Create the interval identifier - date and dateEnd from context"^^xsd:string ; | 22 | + rdfs:comment "STEP 10001c Create the interval identifier - date from context"^^xsd:string ; |
23 | sp:templates ([ sp:object | 23 | sp:templates ([ sp:object |
24 | - [ sp:varName "intervalIdentifier"^^xsd:string | 24 | + [ sp:varName "date"^^xsd:string |
25 | ] ; | 25 | ] ; |
26 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | 26 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; |
27 | sp:subject spin:_this | 27 | sp:subject spin:_this |
... | @@ -52,6 +52,36 @@ | ... | @@ -52,6 +52,36 @@ |
52 | [ sp:varName "contextRef"^^xsd:string | 52 | [ sp:varName "contextRef"^^xsd:string |
53 | ] | 53 | ] |
54 | ]) | 54 | ]) |
55 | + ] [ rdf:type sp:NotExists ; | ||
56 | + sp:elements ([ sp:object | ||
57 | + [ sp:varName "dateEnd"^^xsd:string | ||
58 | + ] ; | ||
59 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
60 | + sp:subject | ||
61 | + [ sp:varName "contextRef"^^xsd:string | ||
62 | + ] | ||
63 | + ]) | ||
64 | + ]) | ||
65 | + ] ; | ||
66 | + spin:rule | ||
67 | + [ rdf:type sp:Construct ; | ||
68 | + rdfs:comment "STEP 10001d Create the interval identifier - dateEnd from context"^^xsd:string ; | ||
69 | + sp:templates ([ sp:object | ||
70 | + [ sp:varName "dateEnd"^^xsd:string | ||
71 | + ] ; | ||
72 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | ||
73 | + sp:subject spin:_this | ||
74 | + ]) ; | ||
75 | + sp:where ([ sp:object | ||
76 | + [ sp:varName "contextRef"^^xsd:string | ||
77 | + ] ; | ||
78 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | ||
79 | + sp:subject spin:_this | ||
80 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
81 | + sp:predicate rdf:type ; | ||
82 | + sp:subject | ||
83 | + [ sp:varName "contextRef"^^xsd:string | ||
84 | + ] | ||
55 | ] [ sp:object | 85 | ] [ sp:object |
56 | [ sp:varName "dateEnd"^^xsd:string | 86 | [ sp:varName "dateEnd"^^xsd:string |
57 | ] ; | 87 | ] ; |
... | @@ -59,22 +89,29 @@ | ... | @@ -59,22 +89,29 @@ |
59 | sp:subject | 89 | sp:subject |
60 | [ sp:varName "contextRef"^^xsd:string | 90 | [ sp:varName "contextRef"^^xsd:string |
61 | ] | 91 | ] |
62 | - ] [ rdf:type sp:Bind ; | 92 | + ] [ rdf:type sp:NotExists ; |
63 | - sp:expression | 93 | + sp:elements ([ sp:object |
64 | - [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ; | 94 | + [ sp:varName "date"^^xsd:string |
65 | - sp:arg1 [ sp:varName "date"^^xsd:string | ||
66 | ] ; | 95 | ] ; |
67 | - sp:arg2 [ sp:varName "dateEnd"^^xsd:string | 96 | + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; |
97 | + sp:subject | ||
98 | + [ sp:varName "contextRef"^^xsd:string | ||
68 | ] | 99 | ] |
100 | + ]) | ||
101 | + ] [ rdf:type sp:NotExists ; | ||
102 | + sp:elements ([ sp:object | ||
103 | + [ sp:varName "dateStart"^^xsd:string | ||
69 | ] ; | 104 | ] ; |
70 | - sp:variable | 105 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; |
71 | - [ sp:varName "intervalIdentifier"^^xsd:string | 106 | + sp:subject |
107 | + [ sp:varName "contextRef"^^xsd:string | ||
72 | ] | 108 | ] |
73 | ]) | 109 | ]) |
110 | + ]) | ||
74 | ] ; | 111 | ] ; |
75 | spin:rule | 112 | spin:rule |
76 | [ rdf:type sp:Construct ; | 113 | [ rdf:type sp:Construct ; |
77 | - rdfs:comment "STEP 10001o Create the ProductionReport - extract the name from productVolume/installation"^^xsd:string ; | 114 | + rdfs:comment "STEP 10001p Create the ProductionReport - no installation"^^xsd:string ; |
78 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; | 115 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; |
79 | sp:predicate rdf:type ; | 116 | sp:predicate rdf:type ; |
80 | sp:subject | 117 | sp:subject |
... | @@ -91,12 +128,13 @@ | ... | @@ -91,12 +128,13 @@ |
91 | ] ; | 128 | ] ; |
92 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | 129 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; |
93 | sp:subject spin:_this | 130 | sp:subject spin:_this |
94 | - ] [ sp:object | 131 | + ] [ rdf:type sp:NotExists ; |
132 | + sp:elements ([ sp:object | ||
95 | [ sp:varName "productVolumeRef"^^xsd:string | 133 | [ sp:varName "productVolumeRef"^^xsd:string |
96 | ] ; | 134 | ] ; |
97 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 135 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
98 | sp:subject spin:_this | 136 | sp:subject spin:_this |
99 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | 137 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; |
100 | sp:predicate rdf:type ; | 138 | sp:predicate rdf:type ; |
101 | sp:subject | 139 | sp:subject |
102 | [ sp:varName "productVolumeRef"^^xsd:string | 140 | [ sp:varName "productVolumeRef"^^xsd:string |
... | @@ -115,6 +153,7 @@ | ... | @@ -115,6 +153,7 @@ |
115 | sp:subject | 153 | sp:subject |
116 | [ sp:varName "installationRef"^^xsd:string | 154 | [ sp:varName "installationRef"^^xsd:string |
117 | ] | 155 | ] |
156 | + ]) | ||
118 | ] [ rdf:type sp:NotExists ; | 157 | ] [ rdf:type sp:NotExists ; |
119 | sp:elements ([ sp:object | 158 | sp:elements ([ sp:object |
120 | [ sp:varName "productionOperationRef"^^xsd:string | 159 | [ sp:varName "productionOperationRef"^^xsd:string |
... | @@ -170,8 +209,7 @@ | ... | @@ -170,8 +209,7 @@ |
170 | ] [ rdf:type sp:Bind ; | 209 | ] [ rdf:type sp:Bind ; |
171 | sp:expression | 210 | sp:expression |
172 | [ rdf:type ep-spin-lib:normalizeString ; | 211 | [ rdf:type ep-spin-lib:normalizeString ; |
173 | - sp:arg1 [ sp:varName "name"^^xsd:string | 212 | + sp:arg1 "noInstallation" |
174 | - ] | ||
175 | ] ; | 213 | ] ; |
176 | sp:variable | 214 | sp:variable |
177 | [ sp:varName "normalizedName"^^xsd:string | 215 | [ sp:varName "normalizedName"^^xsd:string |
... | @@ -191,8 +229,10 @@ | ... | @@ -191,8 +229,10 @@ |
191 | ] ; | 229 | ] ; |
192 | spin:rule | 230 | spin:rule |
193 | [ rdf:type sp:Construct ; | 231 | [ rdf:type sp:Construct ; |
194 | - rdfs:comment "STEP 10001e Create the interval identifier - no date"^^xsd:string ; | 232 | + rdfs:comment "STEP 10001a Create the inteval identifier - dateStart and dateEnd from context"^^xsd:string ; |
195 | - sp:templates ([ sp:object "noDate" ; | 233 | + sp:templates ([ sp:object |
234 | + [ sp:varName "intervalIdentifier"^^xsd:string | ||
235 | + ] ; | ||
196 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | 236 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; |
197 | sp:subject spin:_this | 237 | sp:subject spin:_this |
198 | ]) ; | 238 | ]) ; |
... | @@ -206,54 +246,13 @@ | ... | @@ -206,54 +246,13 @@ |
206 | sp:subject | 246 | sp:subject |
207 | [ sp:varName "contextRef"^^xsd:string | 247 | [ sp:varName "contextRef"^^xsd:string |
208 | ] | 248 | ] |
209 | - ] [ rdf:type sp:NotExists ; | 249 | + ] [ sp:object |
210 | - sp:elements ([ sp:object | ||
211 | - [ sp:varName "dateEnd"^^xsd:string | ||
212 | - ] ; | ||
213 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
214 | - sp:subject | ||
215 | - [ sp:varName "contextRef"^^xsd:string | ||
216 | - ] | ||
217 | - ]) | ||
218 | - ] [ rdf:type sp:NotExists ; | ||
219 | - sp:elements ([ sp:object | ||
220 | - [ sp:varName "date"^^xsd:string | ||
221 | - ] ; | ||
222 | - sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; | ||
223 | - sp:subject | ||
224 | - [ sp:varName "contextRef"^^xsd:string | ||
225 | - ] | ||
226 | - ]) | ||
227 | - ] [ rdf:type sp:NotExists ; | ||
228 | - sp:elements ([ sp:object | ||
229 | [ sp:varName "dateStart"^^xsd:string | 250 | [ sp:varName "dateStart"^^xsd:string |
230 | ] ; | 251 | ] ; |
231 | sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | 252 | sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; |
232 | sp:subject | 253 | sp:subject |
233 | [ sp:varName "contextRef"^^xsd:string | 254 | [ sp:varName "contextRef"^^xsd:string |
234 | ] | 255 | ] |
235 | - ]) | ||
236 | - ]) | ||
237 | - ] ; | ||
238 | - spin:rule | ||
239 | - [ rdf:type sp:Construct ; | ||
240 | - rdfs:comment "STEP 10001d Create the interval identifier - dateEnd from context"^^xsd:string ; | ||
241 | - sp:templates ([ sp:object | ||
242 | - [ sp:varName "dateEnd"^^xsd:string | ||
243 | - ] ; | ||
244 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | ||
245 | - sp:subject spin:_this | ||
246 | - ]) ; | ||
247 | - sp:where ([ sp:object | ||
248 | - [ sp:varName "contextRef"^^xsd:string | ||
249 | - ] ; | ||
250 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | ||
251 | - sp:subject spin:_this | ||
252 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
253 | - sp:predicate rdf:type ; | ||
254 | - sp:subject | ||
255 | - [ sp:varName "contextRef"^^xsd:string | ||
256 | - ] | ||
257 | ] [ sp:object | 256 | ] [ sp:object |
258 | [ sp:varName "dateEnd"^^xsd:string | 257 | [ sp:varName "dateEnd"^^xsd:string |
259 | ] ; | 258 | ] ; |
... | @@ -261,29 +260,22 @@ | ... | @@ -261,29 +260,22 @@ |
261 | sp:subject | 260 | sp:subject |
262 | [ sp:varName "contextRef"^^xsd:string | 261 | [ sp:varName "contextRef"^^xsd:string |
263 | ] | 262 | ] |
264 | - ] [ rdf:type sp:NotExists ; | 263 | + ] [ rdf:type sp:Bind ; |
265 | - sp:elements ([ sp:object | 264 | + sp:expression |
266 | - [ sp:varName "date"^^xsd:string | 265 | + [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ; |
266 | + sp:arg1 [ sp:varName "dateStart"^^xsd:string | ||
267 | ] ; | 267 | ] ; |
268 | - sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; | 268 | + sp:arg2 [ sp:varName "dateEnd"^^xsd:string |
269 | - sp:subject | ||
270 | - [ sp:varName "contextRef"^^xsd:string | ||
271 | ] | 269 | ] |
272 | - ]) | ||
273 | - ] [ rdf:type sp:NotExists ; | ||
274 | - sp:elements ([ sp:object | ||
275 | - [ sp:varName "dateStart"^^xsd:string | ||
276 | ] ; | 270 | ] ; |
277 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | 271 | + sp:variable |
278 | - sp:subject | 272 | + [ sp:varName "intervalIdentifier"^^xsd:string |
279 | - [ sp:varName "contextRef"^^xsd:string | ||
280 | ] | 273 | ] |
281 | ]) | 274 | ]) |
282 | - ]) | ||
283 | ] ; | 275 | ] ; |
284 | spin:rule | 276 | spin:rule |
285 | [ rdf:type sp:Construct ; | 277 | [ rdf:type sp:Construct ; |
286 | - rdfs:comment "STEP 10001p Create the ProductionReport - no installation"^^xsd:string ; | 278 | + rdfs:comment "STEP 10001m Create the ProductionReport - extract the name from context/installation"^^xsd:string ; |
287 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; | 279 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; |
288 | sp:predicate rdf:type ; | 280 | sp:predicate rdf:type ; |
289 | sp:subject | 281 | sp:subject |
... | @@ -300,60 +292,7 @@ | ... | @@ -300,60 +292,7 @@ |
300 | ] ; | 292 | ] ; |
301 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | 293 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; |
302 | sp:subject spin:_this | 294 | sp:subject spin:_this |
303 | - ] [ rdf:type sp:NotExists ; | ||
304 | - sp:elements ([ sp:object | ||
305 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
306 | - ] ; | ||
307 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
308 | - sp:subject spin:_this | ||
309 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | ||
310 | - sp:predicate rdf:type ; | ||
311 | - sp:subject | ||
312 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
313 | - ] | ||
314 | - ] [ sp:object | ||
315 | - [ sp:varName "installationRef"^^xsd:string | ||
316 | - ] ; | ||
317 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
318 | - sp:subject | ||
319 | - [ sp:varName "productVolumeRef"^^xsd:string | ||
320 | - ] | ||
321 | ] [ sp:object | 295 | ] [ sp:object |
322 | - [ sp:varName "name"^^xsd:string | ||
323 | - ] ; | ||
324 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
325 | - sp:subject | ||
326 | - [ sp:varName "installationRef"^^xsd:string | ||
327 | - ] | ||
328 | - ]) | ||
329 | - ] [ rdf:type sp:NotExists ; | ||
330 | - sp:elements ([ sp:object | ||
331 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
332 | - ] ; | ||
333 | - sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
334 | - sp:subject spin:_this | ||
335 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | ||
336 | - sp:predicate rdf:type ; | ||
337 | - sp:subject | ||
338 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
339 | - ] | ||
340 | - ] [ sp:object | ||
341 | - [ sp:varName "installationRef"^^xsd:string | ||
342 | - ] ; | ||
343 | - sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
344 | - sp:subject | ||
345 | - [ sp:varName "productionOperationRef"^^xsd:string | ||
346 | - ] | ||
347 | - ] [ sp:object | ||
348 | - [ sp:varName "name"^^xsd:string | ||
349 | - ] ; | ||
350 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
351 | - sp:subject | ||
352 | - [ sp:varName "installationRef"^^xsd:string | ||
353 | - ] | ||
354 | - ]) | ||
355 | - ] [ rdf:type sp:NotExists ; | ||
356 | - sp:elements ([ sp:object | ||
357 | [ sp:varName "contextRef"^^xsd:string | 296 | [ sp:varName "contextRef"^^xsd:string |
358 | ] ; | 297 | ] ; |
359 | sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | 298 | sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; |
... | @@ -370,26 +309,20 @@ | ... | @@ -370,26 +309,20 @@ |
370 | sp:subject | 309 | sp:subject |
371 | [ sp:varName "contextRef"^^xsd:string | 310 | [ sp:varName "contextRef"^^xsd:string |
372 | ] | 311 | ] |
373 | - ] [ sp:object | ||
374 | - [ sp:varName "name"^^xsd:string | ||
375 | - ] ; | ||
376 | - sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
377 | - sp:subject | ||
378 | - [ sp:varName "installationRef"^^xsd:string | ||
379 | - ] | ||
380 | - ]) | ||
381 | ] [ rdf:type sp:Bind ; | 312 | ] [ rdf:type sp:Bind ; |
382 | sp:expression | 313 | sp:expression |
383 | - [ rdf:type ep-spin-lib:normalizeString ; | 314 | + [ rdf:type spl:object ; |
384 | - sp:arg1 "noInstallation" | 315 | + sp:arg1 [ sp:varName "installationRef"^^xsd:string |
316 | + ] ; | ||
317 | + sp:arg2 rdfs:label | ||
385 | ] ; | 318 | ] ; |
386 | sp:variable | 319 | sp:variable |
387 | - [ sp:varName "normalizedName"^^xsd:string | 320 | + [ sp:varName "normalizedInstallationName"^^xsd:string |
388 | ] | 321 | ] |
389 | ] [ rdf:type sp:Bind ; | 322 | ] [ rdf:type sp:Bind ; |
390 | sp:expression | 323 | sp:expression |
391 | [ rdf:type ep-mpr-spin-lib:buildProductionReportURI ; | 324 | [ rdf:type ep-mpr-spin-lib:buildProductionReportURI ; |
392 | - sp:arg1 [ sp:varName "normalizedName"^^xsd:string | 325 | + sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string |
393 | ] ; | 326 | ] ; |
394 | sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string | 327 | sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string |
395 | ] | 328 | ] |
... | @@ -401,10 +334,8 @@ | ... | @@ -401,10 +334,8 @@ |
401 | ] ; | 334 | ] ; |
402 | spin:rule | 335 | spin:rule |
403 | [ rdf:type sp:Construct ; | 336 | [ rdf:type sp:Construct ; |
404 | - rdfs:comment "STEP 10001c Create the interval identifier - date from context"^^xsd:string ; | 337 | + rdfs:comment "STEP 10001e Create the interval identifier - no date"^^xsd:string ; |
405 | - sp:templates ([ sp:object | 338 | + sp:templates ([ sp:object "noDate" ; |
406 | - [ sp:varName "date"^^xsd:string | ||
407 | - ] ; | ||
408 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | 339 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; |
409 | sp:subject spin:_this | 340 | sp:subject spin:_this |
410 | ]) ; | 341 | ]) ; |
... | @@ -418,82 +349,38 @@ | ... | @@ -418,82 +349,38 @@ |
418 | sp:subject | 349 | sp:subject |
419 | [ sp:varName "contextRef"^^xsd:string | 350 | [ sp:varName "contextRef"^^xsd:string |
420 | ] | 351 | ] |
421 | - ] [ sp:object | ||
422 | - [ sp:varName "date"^^xsd:string | ||
423 | - ] ; | ||
424 | - sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; | ||
425 | - sp:subject | ||
426 | - [ sp:varName "contextRef"^^xsd:string | ||
427 | - ] | ||
428 | ] [ rdf:type sp:NotExists ; | 352 | ] [ rdf:type sp:NotExists ; |
429 | sp:elements ([ sp:object | 353 | sp:elements ([ sp:object |
430 | - [ sp:varName "dateStart"^^xsd:string | 354 | + [ sp:varName "dateEnd"^^xsd:string |
431 | ] ; | 355 | ] ; |
432 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | 356 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; |
433 | sp:subject | 357 | sp:subject |
434 | [ sp:varName "contextRef"^^xsd:string | 358 | [ sp:varName "contextRef"^^xsd:string |
435 | ] | 359 | ] |
436 | ]) | 360 | ]) |
437 | ] [ rdf:type sp:NotExists ; | 361 | ] [ rdf:type sp:NotExists ; |
438 | sp:elements ([ sp:object | 362 | sp:elements ([ sp:object |
439 | - [ sp:varName "dateEnd"^^xsd:string | 363 | + [ sp:varName "date"^^xsd:string |
440 | ] ; | 364 | ] ; |
441 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | 365 | + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; |
442 | sp:subject | 366 | sp:subject |
443 | [ sp:varName "contextRef"^^xsd:string | 367 | [ sp:varName "contextRef"^^xsd:string |
444 | ] | 368 | ] |
445 | ]) | 369 | ]) |
446 | - ]) | 370 | + ] [ rdf:type sp:NotExists ; |
447 | - ] ; | 371 | + sp:elements ([ sp:object |
448 | - spin:rule | ||
449 | - [ rdf:type sp:Construct ; | ||
450 | - rdfs:comment "STEP 10001a Create the inteval identifier - dateStart and dateEnd from context"^^xsd:string ; | ||
451 | - sp:templates ([ sp:object | ||
452 | - [ sp:varName "intervalIdentifier"^^xsd:string | ||
453 | - ] ; | ||
454 | - sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | ||
455 | - sp:subject spin:_this | ||
456 | - ]) ; | ||
457 | - sp:where ([ sp:object | ||
458 | - [ sp:varName "contextRef"^^xsd:string | ||
459 | - ] ; | ||
460 | - sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | ||
461 | - sp:subject spin:_this | ||
462 | - ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
463 | - sp:predicate rdf:type ; | ||
464 | - sp:subject | ||
465 | - [ sp:varName "contextRef"^^xsd:string | ||
466 | - ] | ||
467 | - ] [ sp:object | ||
468 | [ sp:varName "dateStart"^^xsd:string | 372 | [ sp:varName "dateStart"^^xsd:string |
469 | ] ; | 373 | ] ; |
470 | sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | 374 | sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; |
471 | sp:subject | 375 | sp:subject |
472 | [ sp:varName "contextRef"^^xsd:string | 376 | [ sp:varName "contextRef"^^xsd:string |
473 | ] | 377 | ] |
474 | - ] [ sp:object | 378 | + ]) |
475 | - [ sp:varName "dateEnd"^^xsd:string | ||
476 | - ] ; | ||
477 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
478 | - sp:subject | ||
479 | - [ sp:varName "contextRef"^^xsd:string | ||
480 | - ] | ||
481 | - ] [ rdf:type sp:Bind ; | ||
482 | - sp:expression | ||
483 | - [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ; | ||
484 | - sp:arg1 [ sp:varName "dateStart"^^xsd:string | ||
485 | - ] ; | ||
486 | - sp:arg2 [ sp:varName "dateEnd"^^xsd:string | ||
487 | - ] | ||
488 | - ] ; | ||
489 | - sp:variable | ||
490 | - [ sp:varName "intervalIdentifier"^^xsd:string | ||
491 | - ] | ||
492 | ]) | 379 | ]) |
493 | ] ; | 380 | ] ; |
494 | spin:rule | 381 | spin:rule |
495 | [ rdf:type sp:Construct ; | 382 | [ rdf:type sp:Construct ; |
496 | - rdfs:comment "STEP 10001n Create the ProductionReport - extract the name from productionOperation/installation"^^xsd:string ; | 383 | + rdfs:comment "STEP 10001o Create the ProductionReport - extract the name from productVolume/installation"^^xsd:string ; |
497 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; | 384 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; |
498 | sp:predicate rdf:type ; | 385 | sp:predicate rdf:type ; |
499 | sp:subject | 386 | sp:subject |
... | @@ -511,6 +398,31 @@ | ... | @@ -511,6 +398,31 @@ |
511 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | 398 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; |
512 | sp:subject spin:_this | 399 | sp:subject spin:_this |
513 | ] [ sp:object | 400 | ] [ sp:object |
401 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
402 | + ] ; | ||
403 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
404 | + sp:subject spin:_this | ||
405 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productVolume> ; | ||
406 | + sp:predicate rdf:type ; | ||
407 | + sp:subject | ||
408 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
409 | + ] | ||
410 | + ] [ sp:object | ||
411 | + [ sp:varName "installationRef"^^xsd:string | ||
412 | + ] ; | ||
413 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
414 | + sp:subject | ||
415 | + [ sp:varName "productVolumeRef"^^xsd:string | ||
416 | + ] | ||
417 | + ] [ sp:object | ||
418 | + [ sp:varName "name"^^xsd:string | ||
419 | + ] ; | ||
420 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
421 | + sp:subject | ||
422 | + [ sp:varName "installationRef"^^xsd:string | ||
423 | + ] | ||
424 | + ] [ rdf:type sp:NotExists ; | ||
425 | + sp:elements ([ sp:object | ||
514 | [ sp:varName "productionOperationRef"^^xsd:string | 426 | [ sp:varName "productionOperationRef"^^xsd:string |
515 | ] ; | 427 | ] ; |
516 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | 428 | sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; |
... | @@ -534,6 +446,7 @@ | ... | @@ -534,6 +446,7 @@ |
534 | sp:subject | 446 | sp:subject |
535 | [ sp:varName "installationRef"^^xsd:string | 447 | [ sp:varName "installationRef"^^xsd:string |
536 | ] | 448 | ] |
449 | + ]) | ||
537 | ] [ rdf:type sp:NotExists ; | 450 | ] [ rdf:type sp:NotExists ; |
538 | sp:elements ([ sp:object | 451 | sp:elements ([ sp:object |
539 | [ sp:varName "contextRef"^^xsd:string | 452 | [ sp:varName "contextRef"^^xsd:string |
... | @@ -562,17 +475,18 @@ | ... | @@ -562,17 +475,18 @@ |
562 | ]) | 475 | ]) |
563 | ] [ rdf:type sp:Bind ; | 476 | ] [ rdf:type sp:Bind ; |
564 | sp:expression | 477 | sp:expression |
565 | - [ rdf:type ep-spin-lib:normalizeString ; | 478 | + [ rdf:type spl:object ; |
566 | - sp:arg1 [ sp:varName "name"^^xsd:string | 479 | + sp:arg1 [ sp:varName "installationRef"^^xsd:string |
567 | - ] | 480 | + ] ; |
481 | + sp:arg2 rdfs:label | ||
568 | ] ; | 482 | ] ; |
569 | sp:variable | 483 | sp:variable |
570 | - [ sp:varName "normalizedName"^^xsd:string | 484 | + [ sp:varName "normalizedInstallationName"^^xsd:string |
571 | ] | 485 | ] |
572 | ] [ rdf:type sp:Bind ; | 486 | ] [ rdf:type sp:Bind ; |
573 | sp:expression | 487 | sp:expression |
574 | [ rdf:type ep-mpr-spin-lib:buildProductionReportURI ; | 488 | [ rdf:type ep-mpr-spin-lib:buildProductionReportURI ; |
575 | - sp:arg1 [ sp:varName "normalizedName"^^xsd:string | 489 | + sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string |
576 | ] ; | 490 | ] ; |
577 | sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string | 491 | sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string |
578 | ] | 492 | ] |
... | @@ -695,7 +609,7 @@ | ... | @@ -695,7 +609,7 @@ |
695 | ] ; | 609 | ] ; |
696 | spin:rule | 610 | spin:rule |
697 | [ rdf:type sp:Construct ; | 611 | [ rdf:type sp:Construct ; |
698 | - rdfs:comment "STEP 10001m Create the ProductionReport - extract the name from context/installation"^^xsd:string ; | 612 | + rdfs:comment "STEP 10001n Create the ProductionReport - extract the name from productionOperation/installation"^^xsd:string ; |
699 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; | 613 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/production-report#ProductionReport> ; |
700 | sp:predicate rdf:type ; | 614 | sp:predicate rdf:type ; |
701 | sp:subject | 615 | sp:subject |
... | @@ -713,6 +627,24 @@ | ... | @@ -713,6 +627,24 @@ |
713 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | 627 | sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; |
714 | sp:subject spin:_this | 628 | sp:subject spin:_this |
715 | ] [ sp:object | 629 | ] [ sp:object |
630 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
631 | + ] ; | ||
632 | + sp:predicate <http://www.epim.no/schemas/mprml/1#objectRef> ; | ||
633 | + sp:subject spin:_this | ||
634 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_productionOperation> ; | ||
635 | + sp:predicate rdf:type ; | ||
636 | + sp:subject | ||
637 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
638 | + ] | ||
639 | + ] [ sp:object | ||
640 | + [ sp:varName "installationRef"^^xsd:string | ||
641 | + ] ; | ||
642 | + sp:predicate <http://www.epim.no/schemas/mprml/1#installationRef> ; | ||
643 | + sp:subject | ||
644 | + [ sp:varName "productionOperationRef"^^xsd:string | ||
645 | + ] | ||
646 | + ] [ rdf:type sp:NotExists ; | ||
647 | + sp:elements ([ sp:object | ||
716 | [ sp:varName "contextRef"^^xsd:string | 648 | [ sp:varName "contextRef"^^xsd:string |
717 | ] ; | 649 | ] ; |
718 | sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | 650 | sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; |
... | @@ -736,19 +668,21 @@ | ... | @@ -736,19 +668,21 @@ |
736 | sp:subject | 668 | sp:subject |
737 | [ sp:varName "installationRef"^^xsd:string | 669 | [ sp:varName "installationRef"^^xsd:string |
738 | ] | 670 | ] |
671 | + ]) | ||
739 | ] [ rdf:type sp:Bind ; | 672 | ] [ rdf:type sp:Bind ; |
740 | sp:expression | 673 | sp:expression |
741 | - [ rdf:type ep-spin-lib:normalizeString ; | 674 | + [ rdf:type spl:object ; |
742 | - sp:arg1 [ sp:varName "name"^^xsd:string | 675 | + sp:arg1 [ sp:varName "installationRef"^^xsd:string |
743 | - ] | 676 | + ] ; |
677 | + sp:arg2 rdfs:label | ||
744 | ] ; | 678 | ] ; |
745 | sp:variable | 679 | sp:variable |
746 | - [ sp:varName "normalizedName"^^xsd:string | 680 | + [ sp:varName "normalizedInstallationName"^^xsd:string |
747 | ] | 681 | ] |
748 | ] [ rdf:type sp:Bind ; | 682 | ] [ rdf:type sp:Bind ; |
749 | sp:expression | 683 | sp:expression |
750 | [ rdf:type ep-mpr-spin-lib:buildProductionReportURI ; | 684 | [ rdf:type ep-mpr-spin-lib:buildProductionReportURI ; |
751 | - sp:arg1 [ sp:varName "normalizedName"^^xsd:string | 685 | + sp:arg1 [ sp:varName "normalizedInstallationName"^^xsd:string |
752 | ] ; | 686 | ] ; |
753 | sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string | 687 | sp:arg2 [ sp:varName "intervalIdentifier"^^xsd:string |
754 | ] | 688 | ] |
... | @@ -757,6 +691,61 @@ | ... | @@ -757,6 +691,61 @@ |
757 | [ sp:varName "productionReport"^^xsd:string | 691 | [ sp:varName "productionReport"^^xsd:string |
758 | ] | 692 | ] |
759 | ]) | 693 | ]) |
694 | + ] ; | ||
695 | + spin:rule | ||
696 | + [ rdf:type sp:Construct ; | ||
697 | + rdfs:comment "STEP 10001b Create the interval identifier - date and dateEnd from context"^^xsd:string ; | ||
698 | + sp:templates ([ sp:object | ||
699 | + [ sp:varName "intervalIdentifier"^^xsd:string | ||
700 | + ] ; | ||
701 | + sp:predicate <http://www.reportinghub.no/ep/schema/production-core#intervalIdentifier> ; | ||
702 | + sp:subject spin:_this | ||
703 | + ]) ; | ||
704 | + sp:where ([ sp:object | ||
705 | + [ sp:varName "contextRef"^^xsd:string | ||
706 | + ] ; | ||
707 | + sp:predicate <http://www.epim.no/schemas/mprml/1#contextRef> ; | ||
708 | + sp:subject spin:_this | ||
709 | + ] [ sp:object <http://www.epim.no/schemas/mprml/1#Obj_report> ; | ||
710 | + sp:predicate rdf:type ; | ||
711 | + sp:subject | ||
712 | + [ sp:varName "contextRef"^^xsd:string | ||
713 | + ] | ||
714 | + ] [ sp:object | ||
715 | + [ sp:varName "date"^^xsd:string | ||
716 | + ] ; | ||
717 | + sp:predicate <http://www.epim.no/schemas/mprml/1#date> ; | ||
718 | + sp:subject | ||
719 | + [ sp:varName "contextRef"^^xsd:string | ||
720 | + ] | ||
721 | + ] [ rdf:type sp:NotExists ; | ||
722 | + sp:elements ([ sp:object | ||
723 | + [ sp:varName "dateStart"^^xsd:string | ||
724 | + ] ; | ||
725 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | ||
726 | + sp:subject | ||
727 | + [ sp:varName "contextRef"^^xsd:string | ||
728 | + ] | ||
729 | + ]) | ||
730 | + ] [ sp:object | ||
731 | + [ sp:varName "dateEnd"^^xsd:string | ||
732 | + ] ; | ||
733 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
734 | + sp:subject | ||
735 | + [ sp:varName "contextRef"^^xsd:string | ||
736 | + ] | ||
737 | + ] [ rdf:type sp:Bind ; | ||
738 | + sp:expression | ||
739 | + [ rdf:type ep-mpr-spin-lib:buildIntervalIdentifier ; | ||
740 | + sp:arg1 [ sp:varName "date"^^xsd:string | ||
741 | + ] ; | ||
742 | + sp:arg2 [ sp:varName "dateEnd"^^xsd:string | ||
743 | + ] | ||
744 | + ] ; | ||
745 | + sp:variable | ||
746 | + [ sp:varName "intervalIdentifier"^^xsd:string | ||
747 | + ] | ||
748 | + ]) | ||
760 | ] . | 749 | ] . |
761 | 750 | ||
762 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> | 751 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productionReport-v1.0> | ... | ... |
-
Please register or login to post a comment