Showing
4 changed files
with
601 additions
and
396 deletions
... | @@ -12,7 +12,7 @@ | ... | @@ -12,7 +12,7 @@ |
12 | 12 | ||
13 | <http://www.reportinghub.no/ep/schema/1.0/production-facility> | 13 | <http://www.reportinghub.no/ep/schema/1.0/production-facility> |
14 | rdf:type owl:Ontology ; | 14 | rdf:type owl:Ontology ; |
15 | - owl:imports <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/production-well> ; | 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> ; |
16 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 16 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
17 | 17 | ||
18 | <http://www.reportinghub.no/ep/schema/equipment#Compressor> | 18 | <http://www.reportinghub.no/ep/schema/equipment#Compressor> |
... | @@ -73,56 +73,56 @@ | ... | @@ -73,56 +73,56 @@ |
73 | rdf:type ep-prodfac:ReportingFacilityType . | 73 | rdf:type ep-prodfac:ReportingFacilityType . |
74 | 74 | ||
75 | <http://www.reportinghub.no/ep/schema/facility#averageHighestThirdWaveHeight> | 75 | <http://www.reportinghub.no/ep/schema/facility#averageHighestThirdWaveHeight> |
76 | - rdf:type owl:ObjectProperty , ep-core:Class_of_indirect_property , owl:FunctionalProperty ; | 76 | + rdf:type owl:FunctionalProperty , ep-core:Class_of_indirect_property , owl:ObjectProperty ; |
77 | rdfs:comment "length that is the average of the higher 1/3 of the wave heights passing during a sample period (typically 20 to 30 minutes) (source: MPR-XSD)"^^xsd:string ; | 77 | rdfs:comment "length that is the average of the higher 1/3 of the wave heights passing during a sample period (typically 20 to 30 minutes) (source: MPR-XSD)"^^xsd:string ; |
78 | rdfs:domain <http://www.reportinghub.no/ep/schema/facility#SurfaceWaves> ; | 78 | rdfs:domain <http://www.reportinghub.no/ep/schema/facility#SurfaceWaves> ; |
79 | rdfs:label "average highest third wave height"^^xsd:string ; | 79 | rdfs:label "average highest third wave height"^^xsd:string ; |
80 | rdfs:range ep-core:Length . | 80 | rdfs:range ep-core:Length . |
81 | 81 | ||
82 | <http://www.reportinghub.no/ep/schema/facility#averageWaveHeight> | 82 | <http://www.reportinghub.no/ep/schema/facility#averageWaveHeight> |
83 | - 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 ; |
84 | rdfs:comment "length that is the average height of surface waves"^^xsd:string ; | 84 | rdfs:comment "length that is the average height of surface waves"^^xsd:string ; |
85 | rdfs:domain <http://www.reportinghub.no/ep/schema/facility#SurfaceWaves> ; | 85 | rdfs:domain <http://www.reportinghub.no/ep/schema/facility#SurfaceWaves> ; |
86 | rdfs:label "average wave height"^^xsd:string ; | 86 | rdfs:label "average wave height"^^xsd:string ; |
87 | rdfs:range ep-core:Length . | 87 | rdfs:range ep-core:Length . |
88 | 88 | ||
89 | <http://www.reportinghub.no/ep/schema/facility#cloudCeilingHeight> | 89 | <http://www.reportinghub.no/ep/schema/facility#cloudCeilingHeight> |
90 | - rdf:type owl:ObjectProperty , ep-core:Class_of_indirect_property , owl:FunctionalProperty ; | 90 | + rdf:type owl:FunctionalProperty , ep-core:Class_of_indirect_property , owl:ObjectProperty ; |
91 | rdfs:comment "length that is the height of the cloud ceiling"^^xsd:string ; | 91 | rdfs:comment "length that is the height of the cloud ceiling"^^xsd:string ; |
92 | rdfs:domain <http://www.reportinghub.no/ep/schema/facility#CloudCover> ; | 92 | rdfs:domain <http://www.reportinghub.no/ep/schema/facility#CloudCover> ; |
93 | rdfs:label "cloud ceiling height"^^xsd:string ; | 93 | rdfs:label "cloud ceiling height"^^xsd:string ; |
94 | rdfs:range ep-core:Length . | 94 | rdfs:range ep-core:Length . |
95 | 95 | ||
96 | <http://www.reportinghub.no/ep/schema/facility#facilityOperator> | 96 | <http://www.reportinghub.no/ep/schema/facility#facilityOperator> |
97 | - rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ; | 97 | + rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ; |
98 | rdfs:comment "organization that operates a facility"^^xsd:string ; | 98 | rdfs:comment "organization that operates a facility"^^xsd:string ; |
99 | rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ; | 99 | rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ; |
100 | rdfs:label "facility operator"^^xsd:string ; | 100 | rdfs:label "facility operator"^^xsd:string ; |
101 | rdfs:range <http://www.reportinghub.no/ep/schema/organization#Organization> . | 101 | rdfs:range <http://www.reportinghub.no/ep/schema/organization#Organization> . |
102 | 102 | ||
103 | <http://www.reportinghub.no/ep/schema/facility#maximumWaveHeight> | 103 | <http://www.reportinghub.no/ep/schema/facility#maximumWaveHeight> |
104 | - rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ; | 104 | + rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ; |
105 | rdfs:comment "length that is the maximum height of surface waves"^^xsd:string ; | 105 | rdfs:comment "length that is the maximum height of surface waves"^^xsd:string ; |
106 | rdfs:domain <http://www.reportinghub.no/ep/schema/facility#SurfaceWaves> ; | 106 | rdfs:domain <http://www.reportinghub.no/ep/schema/facility#SurfaceWaves> ; |
107 | rdfs:label "maximum wave height"^^xsd:string ; | 107 | rdfs:label "maximum wave height"^^xsd:string ; |
108 | rdfs:range ep-core:Length . | 108 | rdfs:range ep-core:Length . |
109 | 109 | ||
110 | <http://www.reportinghub.no/ep/schema/facility#surfaceWavePeriod> | 110 | <http://www.reportinghub.no/ep/schema/facility#surfaceWavePeriod> |
111 | - rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ; | 111 | + rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ; |
112 | rdfs:comment "time duration that is the period of surface waves"^^xsd:string ; | 112 | rdfs:comment "time duration that is the period of surface waves"^^xsd:string ; |
113 | rdfs:domain <http://www.reportinghub.no/ep/schema/facility#SurfaceWaves> ; | 113 | rdfs:domain <http://www.reportinghub.no/ep/schema/facility#SurfaceWaves> ; |
114 | rdfs:label "period"^^xsd:string ; | 114 | rdfs:label "period"^^xsd:string ; |
115 | rdfs:range ep-core:TimeDuration . | 115 | rdfs:range ep-core:TimeDuration . |
116 | 116 | ||
117 | <http://www.reportinghub.no/ep/schema/facility#visibility> | 117 | <http://www.reportinghub.no/ep/schema/facility#visibility> |
118 | - rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ; | 118 | + rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ; |
119 | rdfs:comment "length that is the maximum distance at which things can be seen through surrounding air"^^xsd:string ; | 119 | rdfs:comment "length that is the maximum distance at which things can be seen through surrounding air"^^xsd:string ; |
120 | rdfs:domain <http://www.reportinghub.no/ep/schema/facility#SurroundingAir> ; | 120 | rdfs:domain <http://www.reportinghub.no/ep/schema/facility#SurroundingAir> ; |
121 | rdfs:label "visibility"^^xsd:string ; | 121 | rdfs:label "visibility"^^xsd:string ; |
122 | rdfs:range ep-core:Length . | 122 | rdfs:range ep-core:Length . |
123 | 123 | ||
124 | <http://www.reportinghub.no/ep/schema/facility#windChillTemperature> | 124 | <http://www.reportinghub.no/ep/schema/facility#windChillTemperature> |
125 | - rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ; | 125 | + rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ; |
126 | rdfs:comment "temperature that is the wind chill temperature of surrounding air"^^xsd:string ; | 126 | rdfs:comment "temperature that is the wind chill temperature of surrounding air"^^xsd:string ; |
127 | rdfs:domain <http://www.reportinghub.no/ep/schema/facility#SurroundingAir> ; | 127 | rdfs:domain <http://www.reportinghub.no/ep/schema/facility#SurroundingAir> ; |
128 | rdfs:label "wind chill temperature"^^xsd:string ; | 128 | rdfs:label "wind chill temperature"^^xsd:string ; |
... | @@ -143,12 +143,23 @@ | ... | @@ -143,12 +143,23 @@ |
143 | <http://www.reportinghub.no/ep/schema/production-equipment#FlowMeter> | 143 | <http://www.reportinghub.no/ep/schema/production-equipment#FlowMeter> |
144 | rdfs:label "flow meter"^^xsd:string . | 144 | rdfs:label "flow meter"^^xsd:string . |
145 | 145 | ||
146 | +ep-prodfac:AvailableFacility | ||
147 | + rdf:type ep-prodfac:FacilityAvailabilityType , owl:Class ; | ||
148 | + rdfs:label "available facility"^^xsd:string ; | ||
149 | + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> ; | ||
150 | + owl:disjointWith ep-prodfac:UnavailableFacility . | ||
151 | + | ||
146 | ep-prodfac:Boat | 152 | ep-prodfac:Boat |
147 | rdf:type owl:Class ; | 153 | rdf:type owl:Class ; |
148 | rdfs:comment "facility that is a boat"^^xsd:string ; | 154 | rdfs:comment "facility that is a boat"^^xsd:string ; |
149 | rdfs:label "boat"^^xsd:string ; | 155 | rdfs:label "boat"^^xsd:string ; |
150 | rdfs:subClassOf ep-prodfac:ShipOrBoat . | 156 | rdfs:subClassOf ep-prodfac:ShipOrBoat . |
151 | 157 | ||
158 | +ep-prodfac:FacilityAvailabilityType | ||
159 | + rdf:type rdfs:Class ; | ||
160 | + rdfs:label "facility availability type"^^xsd:string ; | ||
161 | + rdfs:subClassOf owl:Class . | ||
162 | + | ||
152 | ep-prodfac:Field-area | 163 | ep-prodfac:Field-area |
153 | rdf:type owl:Class ; | 164 | rdf:type owl:Class ; |
154 | rdfs:comment "part of the surface of the earth that is the area of ground above a field (source: MPR-XSD)"^^xsd:string ; | 165 | rdfs:comment "part of the surface of the earth that is the area of ground above a field (source: MPR-XSD)"^^xsd:string ; |
... | @@ -236,6 +247,12 @@ ep-prodfac:TrunkLine | ... | @@ -236,6 +247,12 @@ ep-prodfac:TrunkLine |
236 | rdfs:label "trunk line"^^xsd:string ; | 247 | rdfs:label "trunk line"^^xsd:string ; |
237 | rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> . | 248 | rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> . |
238 | 249 | ||
250 | +ep-prodfac:UnavailableFacility | ||
251 | + rdf:type ep-prodfac:FacilityAvailabilityType , owl:Class ; | ||
252 | + rdfs:label "unavailable facility"^^xsd:string ; | ||
253 | + rdfs:subClassOf <http://www.reportinghub.no/ep/schema/facility#Facility> ; | ||
254 | + owl:disjointWith ep-prodfac:AvailableFacility . | ||
255 | + | ||
239 | ep-prodfac:numberOfBedsAvailable | 256 | ep-prodfac:numberOfBedsAvailable |
240 | rdf:type owl:DatatypeProperty ; | 257 | rdf:type owl:DatatypeProperty ; |
241 | rdfs:comment "number of beds available on a facility"^^xsd:string ; | 258 | rdfs:comment "number of beds available on a facility"^^xsd:string ; |
... | @@ -243,12 +260,30 @@ ep-prodfac:numberOfBedsAvailable | ... | @@ -243,12 +260,30 @@ ep-prodfac:numberOfBedsAvailable |
243 | rdfs:range xsd:integer . | 260 | rdfs:range xsd:integer . |
244 | 261 | ||
245 | ep-prodfac:operatingTime | 262 | ep-prodfac:operatingTime |
246 | - rdf:type owl:ObjectProperty , owl:FunctionalProperty , ep-core:Class_of_indirect_property ; | 263 | + rdf:type ep-core:Class_of_indirect_property , owl:FunctionalProperty , owl:ObjectProperty ; |
247 | rdfs:comment "time duration that is the operating time of a temporal part of a facility"^^xsd:string ; | 264 | rdfs:comment "time duration that is the operating time of a temporal part of a facility"^^xsd:string ; |
248 | rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ; | 265 | rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ; |
249 | rdfs:label "operating time"^^xsd:string ; | 266 | rdfs:label "operating time"^^xsd:string ; |
250 | rdfs:range ep-core:TimeDuration . | 267 | rdfs:range ep-core:TimeDuration . |
251 | 268 | ||
269 | +ep-prodfac:scheduledTimeUnavailable | ||
270 | + rdf:type owl:ObjectProperty , ep-core:Class_of_indirect_property , owl:FunctionalProperty ; | ||
271 | + rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ; | ||
272 | + rdfs:label "scheduled time unavailable"^^xsd:string ; | ||
273 | + rdfs:range ep-core:TimeDuration . | ||
274 | + | ||
275 | +ep-prodfac:shutDownSequenceNumber | ||
276 | + rdf:type owl:DatatypeProperty ; | ||
277 | + rdfs:comment "shut down sequence number"^^xsd:string ; | ||
278 | + rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ; | ||
279 | + rdfs:range xsd:integer . | ||
280 | + | ||
281 | +ep-prodfac:timeAvailable | ||
282 | + rdf:type owl:ObjectProperty , ep-core:Class_of_indirect_property , owl:FunctionalProperty ; | ||
283 | + rdfs:domain <http://www.reportinghub.no/ep/schema/facility#Facility> ; | ||
284 | + rdfs:label "time available"^^xsd:string ; | ||
285 | + rdfs:range ep-core:TimeDuration . | ||
286 | + | ||
252 | <http://www.reportinghub.no/ep/schema/well#Cluster> | 287 | <http://www.reportinghub.no/ep/schema/well#Cluster> |
253 | rdf:type ep-prodfac:ReportingFacilityType . | 288 | rdf:type ep-prodfac:ReportingFacilityType . |
254 | 289 | ... | ... |
... | @@ -15,12 +15,12 @@ | ... | @@ -15,12 +15,12 @@ |
15 | 15 | ||
16 | <http://www.reportinghub.no/ep/schema/1.0/property-maps-to-mpr-enumeration> | 16 | <http://www.reportinghub.no/ep/schema/1.0/property-maps-to-mpr-enumeration> |
17 | rdf:type owl:Ontology ; | 17 | rdf:type owl:Ontology ; |
18 | - owl:imports <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://spinrdf.org/spin> ; | 18 | + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://www.epim.no/schemas/mprml/1> ; |
19 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 19 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
20 | 20 | ||
21 | <http://www.reportinghub.no/ep/schema/core#Density> | 21 | <http://www.reportinghub.no/ep/schema/core#Density> |
22 | transhelp:rangeOfPropertyMapsToMPREnumeration | 22 | transhelp:rangeOfPropertyMapsToMPREnumeration |
23 | - <http://www.epim.no/schemas/mprml/1#FP_density> , <http://www.epim.no/schemas/mprml/1#FP_linedensity> . | 23 | + <http://www.epim.no/schemas/mprml/1#FP_linedensity> , <http://www.epim.no/schemas/mprml/1#FP_density> . |
24 | 24 | ||
25 | <http://www.reportinghub.no/ep/schema/core#Frequency> | 25 | <http://www.reportinghub.no/ep/schema/core#Frequency> |
26 | transhelp:rangeOfPropertyMapsToMPREnumeration | 26 | transhelp:rangeOfPropertyMapsToMPREnumeration |
... | @@ -28,15 +28,19 @@ | ... | @@ -28,15 +28,19 @@ |
28 | 28 | ||
29 | <http://www.reportinghub.no/ep/schema/core#Pressure> | 29 | <http://www.reportinghub.no/ep/schema/core#Pressure> |
30 | transhelp:rangeOfPropertyMapsToMPREnumeration | 30 | transhelp:rangeOfPropertyMapsToMPREnumeration |
31 | - <http://www.epim.no/schemas/mprml/1#FP_wellheadpressure> , <http://www.epim.no/schemas/mprml/1#FP_annuluspressure> , <http://www.epim.no/schemas/mprml/1#FP_bottomholepressure> , <http://www.epim.no/schemas/mprml/1#FP_casingpressure> , <http://www.epim.no/schemas/mprml/1#FP_flowingtubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_pressure> , <http://www.epim.no/schemas/mprml/1#FP_tubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_wellheadpressureDSCP> . | 31 | + <http://www.epim.no/schemas/mprml/1#FP_wellheadpressureDSCP> , <http://www.epim.no/schemas/mprml/1#FP_tubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_pressure> , <http://www.epim.no/schemas/mprml/1#FP_flowingtubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_casingpressure> , <http://www.epim.no/schemas/mprml/1#FP_bottomholepressure> , <http://www.epim.no/schemas/mprml/1#FP_annuluspressure> , <http://www.epim.no/schemas/mprml/1#FP_wellheadpressure> . |
32 | 32 | ||
33 | <http://www.reportinghub.no/ep/schema/core#Temperature> | 33 | <http://www.reportinghub.no/ep/schema/core#Temperature> |
34 | transhelp:rangeOfPropertyMapsToMPREnumeration | 34 | transhelp:rangeOfPropertyMapsToMPREnumeration |
35 | - <http://www.epim.no/schemas/mprml/1#FP_wellheadtemperature> , <http://www.epim.no/schemas/mprml/1#FP_bottomholetemperature> , <http://www.epim.no/schemas/mprml/1#FP_casingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_flowingtubingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_temperature> , <http://www.epim.no/schemas/mprml/1#FP_tubingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_wellheadtemperatureDSCT> . | 35 | + <http://www.epim.no/schemas/mprml/1#FP_wellheadtemperatureDSCT> , <http://www.epim.no/schemas/mprml/1#FP_tubingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_temperature> , <http://www.epim.no/schemas/mprml/1#FP_flowingtubingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_casingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_bottomholetemperature> , <http://www.epim.no/schemas/mprml/1#FP_wellheadtemperature> . |
36 | + | ||
37 | +<http://www.reportinghub.no/ep/schema/core#TimeDuration> | ||
38 | + transhelp:rangeOfPropertyMapsToMPREnumeration | ||
39 | + <http://www.epim.no/schemas/mprml/1#FP_scheduleddowntime> , <http://www.epim.no/schemas/mprml/1#FP_facilityuptime> . | ||
36 | 40 | ||
37 | <http://www.reportinghub.no/ep/schema/equipment#Casing> | 41 | <http://www.reportinghub.no/ep/schema/equipment#Casing> |
38 | transhelp:domainOfPropertyMapsToMPREnumeration | 42 | transhelp:domainOfPropertyMapsToMPREnumeration |
39 | - <http://www.epim.no/schemas/mprml/1#FP_casingpressure> , <http://www.epim.no/schemas/mprml/1#FP_casingtemperature> . | 43 | + <http://www.epim.no/schemas/mprml/1#FP_casingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_casingpressure> . |
40 | 44 | ||
41 | <http://www.reportinghub.no/ep/schema/equipment#Compressor> | 45 | <http://www.reportinghub.no/ep/schema/equipment#Compressor> |
42 | transhelp:domainOfPropertyMapsToMPREnumeration | 46 | transhelp:domainOfPropertyMapsToMPREnumeration |
... | @@ -44,11 +48,35 @@ | ... | @@ -44,11 +48,35 @@ |
44 | 48 | ||
45 | <http://www.reportinghub.no/ep/schema/equipment#Tubing> | 49 | <http://www.reportinghub.no/ep/schema/equipment#Tubing> |
46 | transhelp:domainOfPropertyMapsToMPREnumeration | 50 | transhelp:domainOfPropertyMapsToMPREnumeration |
47 | - <http://www.epim.no/schemas/mprml/1#FP_tubingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_tubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_flowingtubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_flowingtubingtemperature> . | 51 | + <http://www.epim.no/schemas/mprml/1#FP_flowingtubingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_flowingtubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_tubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_tubingtemperature> . |
52 | + | ||
53 | +<http://www.reportinghub.no/ep/schema/facility#Facility> | ||
54 | + transhelp:domainOfPropertyMapsToMPREnumeration | ||
55 | + <http://www.epim.no/schemas/mprml/1#FP_shutdownorder> , <http://www.epim.no/schemas/mprml/1#FP_scheduleddowntime> , <http://www.epim.no/schemas/mprml/1#FP_facilityuptime> , <http://www.epim.no/schemas/mprml/1#FP_available> . | ||
48 | 56 | ||
49 | <http://www.reportinghub.no/ep/schema/flow#Flow> | 57 | <http://www.reportinghub.no/ep/schema/flow#Flow> |
50 | transhelp:domainOfPropertyMapsToMPREnumeration | 58 | transhelp:domainOfPropertyMapsToMPREnumeration |
51 | - <http://www.epim.no/schemas/mprml/1#FP_density> , <http://www.epim.no/schemas/mprml/1#FP_linedensity> , <http://www.epim.no/schemas/mprml/1#FP_pressure> , <http://www.epim.no/schemas/mprml/1#FP_temperature> . | 59 | + <http://www.epim.no/schemas/mprml/1#FP_temperature> , <http://www.epim.no/schemas/mprml/1#FP_pressure> , <http://www.epim.no/schemas/mprml/1#FP_linedensity> , <http://www.epim.no/schemas/mprml/1#FP_density> . |
60 | + | ||
61 | +<http://www.reportinghub.no/ep/schema/production-facility#AvailableFacility> | ||
62 | + transhelp:valueOfPropertyMapsToMPRString | ||
63 | + "true"^^xsd:string . | ||
64 | + | ||
65 | +<http://www.reportinghub.no/ep/schema/production-facility#UnavailableFacility> | ||
66 | + transhelp:valueOfPropertyMapsToMPRString | ||
67 | + "false"^^xsd:string . | ||
68 | + | ||
69 | +<http://www.reportinghub.no/ep/schema/production-facility#scheduledTimeUnavailable> | ||
70 | + transhelp:propertyMapsToMPREnumeration | ||
71 | + <http://www.epim.no/schemas/mprml/1#FP_scheduleddowntime> . | ||
72 | + | ||
73 | +<http://www.reportinghub.no/ep/schema/production-facility#shutDownSequenceNumber> | ||
74 | + transhelp:propertyMapsToMPREnumeration | ||
75 | + <http://www.epim.no/schemas/mprml/1#FP_shutdownorder> . | ||
76 | + | ||
77 | +<http://www.reportinghub.no/ep/schema/production-facility#timeAvailable> | ||
78 | + transhelp:propertyMapsToMPREnumeration | ||
79 | + <http://www.epim.no/schemas/mprml/1#FP_facilityuptime> . | ||
52 | 80 | ||
53 | <http://www.reportinghub.no/ep/schema/production-well#Annulus> | 81 | <http://www.reportinghub.no/ep/schema/production-well#Annulus> |
54 | transhelp:domainOfPropertyMapsToMPREnumeration | 82 | transhelp:domainOfPropertyMapsToMPREnumeration |
... | @@ -56,24 +84,24 @@ | ... | @@ -56,24 +84,24 @@ |
56 | 84 | ||
57 | <http://www.reportinghub.no/ep/schema/production-well#WellHead-flowingConditions> | 85 | <http://www.reportinghub.no/ep/schema/production-well#WellHead-flowingConditions> |
58 | transhelp:flowingStateMapsToMPREnumeration | 86 | transhelp:flowingStateMapsToMPREnumeration |
59 | - <http://www.epim.no/schemas/mprml/1#FP_casingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_casingpressure> , <http://www.epim.no/schemas/mprml/1#FP_flowingtubingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_flowingtubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_wellheadpressure> . | 87 | + <http://www.epim.no/schemas/mprml/1#FP_wellheadpressure> , <http://www.epim.no/schemas/mprml/1#FP_flowingtubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_flowingtubingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_casingpressure> , <http://www.epim.no/schemas/mprml/1#FP_casingtemperature> . |
60 | 88 | ||
61 | <http://www.reportinghub.no/ep/schema/production-well#WellHead-nonflowingConditions> | 89 | <http://www.reportinghub.no/ep/schema/production-well#WellHead-nonflowingConditions> |
62 | transhelp:flowingStateMapsToMPREnumeration | 90 | transhelp:flowingStateMapsToMPREnumeration |
63 | - <http://www.epim.no/schemas/mprml/1#FP_tubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_tubingtemperature> . | 91 | + <http://www.epim.no/schemas/mprml/1#FP_tubingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_tubingpressure> . |
64 | 92 | ||
65 | <http://www.reportinghub.no/ep/schema/production-well#WellHeadDownStreamChokeValve> | 93 | <http://www.reportinghub.no/ep/schema/production-well#WellHeadDownStreamChokeValve> |
66 | transhelp:domainOfPropertyMapsToMPREnumeration | 94 | transhelp:domainOfPropertyMapsToMPREnumeration |
67 | - <http://www.epim.no/schemas/mprml/1#FP_wellheadpressureDSCP> , <http://www.epim.no/schemas/mprml/1#FP_wellheadtemperatureDSCT> . | 95 | + <http://www.epim.no/schemas/mprml/1#FP_wellheadtemperatureDSCT> , <http://www.epim.no/schemas/mprml/1#FP_wellheadpressureDSCP> . |
68 | 96 | ||
69 | <http://www.reportinghub.no/ep/schema/well#WellBoreBottom> | 97 | <http://www.reportinghub.no/ep/schema/well#WellBoreBottom> |
70 | transhelp:domainOfPropertyMapsToMPREnumeration | 98 | transhelp:domainOfPropertyMapsToMPREnumeration |
71 | - <http://www.epim.no/schemas/mprml/1#FP_bottomholetemperature> , <http://www.epim.no/schemas/mprml/1#FP_bottomholepressure> . | 99 | + <http://www.epim.no/schemas/mprml/1#FP_bottomholepressure> , <http://www.epim.no/schemas/mprml/1#FP_bottomholetemperature> . |
72 | 100 | ||
73 | <http://www.reportinghub.no/ep/schema/well#WellHead> | 101 | <http://www.reportinghub.no/ep/schema/well#WellHead> |
74 | transhelp:domainOfPropertyMapsToMPREnumeration | 102 | transhelp:domainOfPropertyMapsToMPREnumeration |
75 | - <http://www.epim.no/schemas/mprml/1#FP_wellheadtemperature> , <http://www.epim.no/schemas/mprml/1#FP_wellheadpressure> . | 103 | + <http://www.epim.no/schemas/mprml/1#FP_wellheadpressure> , <http://www.epim.no/schemas/mprml/1#FP_wellheadtemperature> . |
76 | 104 | ||
77 | rdf:type | 105 | rdf:type |
78 | transhelp:propertyMapsToMPREnumeration | 106 | transhelp:propertyMapsToMPREnumeration |
79 | - <http://www.epim.no/schemas/mprml/1#FP_wellheadpressure> , <http://www.epim.no/schemas/mprml/1#FP_casingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_tubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_bottomholetemperature> , <http://www.epim.no/schemas/mprml/1#FP_flowingtubingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_wellheadtemperatureDSCT> , <http://www.epim.no/schemas/mprml/1#FP_annuluspressure> , <http://www.epim.no/schemas/mprml/1#FP_temperature> , <http://www.epim.no/schemas/mprml/1#FP_pressure> , <http://www.epim.no/schemas/mprml/1#FP_tubingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_bottomholepressure> , <http://www.epim.no/schemas/mprml/1#FP_reciprocatingspeed> , <http://www.epim.no/schemas/mprml/1#FP_flowingtubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_casingpressure> , <http://www.epim.no/schemas/mprml/1#FP_density> , <http://www.epim.no/schemas/mprml/1#FP_linedensity> , <http://www.epim.no/schemas/mprml/1#FP_wellheadpressureDSCP> , <http://www.epim.no/schemas/mprml/1#FP_wellheadtemperature> . | 107 | + <http://www.epim.no/schemas/mprml/1#FP_wellheadpressure> , <http://www.epim.no/schemas/mprml/1#FP_casingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_tubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_bottomholetemperature> , <http://www.epim.no/schemas/mprml/1#FP_flowingtubingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_wellheadtemperatureDSCT> , <http://www.epim.no/schemas/mprml/1#FP_available> , <http://www.epim.no/schemas/mprml/1#FP_annuluspressure> , <http://www.epim.no/schemas/mprml/1#FP_temperature> , <http://www.epim.no/schemas/mprml/1#FP_pressure> , <http://www.epim.no/schemas/mprml/1#FP_tubingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_bottomholepressure> , <http://www.epim.no/schemas/mprml/1#FP_reciprocatingspeed> , <http://www.epim.no/schemas/mprml/1#FP_flowingtubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_casingpressure> , <http://www.epim.no/schemas/mprml/1#FP_linedensity> , <http://www.epim.no/schemas/mprml/1#FP_density> , <http://www.epim.no/schemas/mprml/1#FP_wellheadtemperature> , <http://www.epim.no/schemas/mprml/1#FP_wellheadpressureDSCP> . | ... | ... |
... | @@ -15,7 +15,7 @@ | ... | @@ -15,7 +15,7 @@ |
15 | <http://www.reportinghub.no/ep/transform/transform-helper-schema> | 15 | <http://www.reportinghub.no/ep/transform/transform-helper-schema> |
16 | rdf:type owl:Ontology ; | 16 | rdf:type owl:Ontology ; |
17 | rdfs:comment "The Transform Helper Schema is the set of properties and classes used for the creation of temporary data used as part of the ERH transformations. All instances of classes and uses of these properties is deleted before the triples are stored in the RDF database."^^xsd:string ; | 17 | rdfs:comment "The Transform Helper Schema is the set of properties and classes used for the creation of temporary data used as part of the ERH transformations. All instances of classes and uses of these properties is deleted before the triples are stored in the RDF database."^^xsd:string ; |
18 | - owl:imports <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/schema/1.0/activity> ; | 18 | + owl:imports <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> ; |
19 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 19 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
20 | 20 | ||
21 | transhelp:buildRdlURI | 21 | transhelp:buildRdlURI |
... | @@ -44,15 +44,15 @@ transhelp:derivedFrom | ... | @@ -44,15 +44,15 @@ transhelp:derivedFrom |
44 | rdf:type owl:ObjectProperty . | 44 | rdf:type owl:ObjectProperty . |
45 | 45 | ||
46 | transhelp:domainOfPropertyMapsToMPREnumeration | 46 | transhelp:domainOfPropertyMapsToMPREnumeration |
47 | - rdf:type owl:InverseFunctionalProperty , owl:ObjectProperty ; | 47 | + rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ; |
48 | rdfs:label "domain of property maps to MPR enumeration"^^xsd:string ; | 48 | rdfs:label "domain of property maps to MPR enumeration"^^xsd:string ; |
49 | rdfs:subPropertyOf transhelp:mapsTo . | 49 | rdfs:subPropertyOf transhelp:mapsTo . |
50 | 50 | ||
51 | transhelp:facilityIdentifier | 51 | transhelp:facilityIdentifier |
52 | - rdf:type owl:DatatypeProperty , owl:FunctionalProperty . | 52 | + rdf:type owl:FunctionalProperty , owl:DatatypeProperty . |
53 | 53 | ||
54 | transhelp:flowingStateMapsToMPREnumeration | 54 | transhelp:flowingStateMapsToMPREnumeration |
55 | - rdf:type owl:InverseFunctionalProperty , owl:ObjectProperty ; | 55 | + rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ; |
56 | rdfs:label "flowing state maps to MPR enumeration"^^xsd:string ; | 56 | rdfs:label "flowing state maps to MPR enumeration"^^xsd:string ; |
57 | rdfs:subPropertyOf transhelp:mapsTo . | 57 | rdfs:subPropertyOf transhelp:mapsTo . |
58 | 58 | ||
... | @@ -74,25 +74,25 @@ transhelp:hasEquivalentInRDL | ... | @@ -74,25 +74,25 @@ transhelp:hasEquivalentInRDL |
74 | rdfs:label "has equivalent in RDL"^^xsd:string . | 74 | rdfs:label "has equivalent in RDL"^^xsd:string . |
75 | 75 | ||
76 | transhelp:interval | 76 | transhelp:interval |
77 | - rdf:type owl:DatatypeProperty , owl:FunctionalProperty . | 77 | + rdf:type owl:FunctionalProperty , owl:DatatypeProperty . |
78 | 78 | ||
79 | transhelp:intervalEnd | 79 | transhelp:intervalEnd |
80 | - rdf:type owl:DatatypeProperty , owl:FunctionalProperty . | 80 | + rdf:type owl:FunctionalProperty , owl:DatatypeProperty . |
81 | 81 | ||
82 | transhelp:intervalIdentifier | 82 | transhelp:intervalIdentifier |
83 | - rdf:type owl:DatatypeProperty , owl:FunctionalProperty . | 83 | + rdf:type owl:FunctionalProperty , owl:DatatypeProperty . |
84 | 84 | ||
85 | transhelp:intervalStart | 85 | transhelp:intervalStart |
86 | - rdf:type owl:DatatypeProperty , owl:FunctionalProperty . | 86 | + rdf:type owl:FunctionalProperty , owl:DatatypeProperty . |
87 | 87 | ||
88 | transhelp:label | 88 | transhelp:label |
89 | - rdf:type owl:DatatypeProperty , owl:FunctionalProperty . | 89 | + rdf:type owl:FunctionalProperty , owl:DatatypeProperty . |
90 | 90 | ||
91 | transhelp:mapsTo | 91 | transhelp:mapsTo |
92 | rdf:type rdf:Property . | 92 | rdf:type rdf:Property . |
93 | 93 | ||
94 | transhelp:materialClassMapsToMPREnumeration | 94 | transhelp:materialClassMapsToMPREnumeration |
95 | - rdf:type owl:InverseFunctionalProperty , owl:ObjectProperty ; | 95 | + rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ; |
96 | rdfs:label "material class maps to MPR enumeration"^^xsd:string ; | 96 | rdfs:label "material class maps to MPR enumeration"^^xsd:string ; |
97 | rdfs:subPropertyOf transhelp:mapsTo . | 97 | rdfs:subPropertyOf transhelp:mapsTo . |
98 | 98 | ||
... | @@ -100,25 +100,25 @@ transhelp:necessaryIntervalString | ... | @@ -100,25 +100,25 @@ transhelp:necessaryIntervalString |
100 | rdf:type owl:DatatypeProperty . | 100 | rdf:type owl:DatatypeProperty . |
101 | 101 | ||
102 | transhelp:nominalInstant | 102 | transhelp:nominalInstant |
103 | - rdf:type owl:DatatypeProperty , owl:FunctionalProperty . | 103 | + rdf:type owl:FunctionalProperty , owl:DatatypeProperty . |
104 | 104 | ||
105 | transhelp:propertyMapsToMPREnumeration | 105 | transhelp:propertyMapsToMPREnumeration |
106 | - rdf:type owl:InverseFunctionalProperty , owl:ObjectProperty ; | 106 | + rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ; |
107 | rdfs:label "property maps to MPR enumeration"^^xsd:string ; | 107 | rdfs:label "property maps to MPR enumeration"^^xsd:string ; |
108 | rdfs:subPropertyOf transhelp:mapsTo . | 108 | rdfs:subPropertyOf transhelp:mapsTo . |
109 | 109 | ||
110 | transhelp:quantitySpaceMapsToClassOfScale | 110 | transhelp:quantitySpaceMapsToClassOfScale |
111 | - rdf:type owl:FunctionalProperty , owl:InverseFunctionalProperty , owl:ObjectProperty ; | 111 | + rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty , owl:FunctionalProperty ; |
112 | rdfs:label "quantity space maps to class of scale"^^xsd:string ; | 112 | rdfs:label "quantity space maps to class of scale"^^xsd:string ; |
113 | rdfs:subPropertyOf transhelp:mapsTo . | 113 | rdfs:subPropertyOf transhelp:mapsTo . |
114 | 114 | ||
115 | transhelp:rangeOfPropertyMapsToMPREnumeration | 115 | transhelp:rangeOfPropertyMapsToMPREnumeration |
116 | - rdf:type owl:InverseFunctionalProperty , owl:ObjectProperty ; | 116 | + rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ; |
117 | rdfs:label "range of property maps to MPR enumeration"^^xsd:string ; | 117 | rdfs:label "range of property maps to MPR enumeration"^^xsd:string ; |
118 | rdfs:subPropertyOf transhelp:mapsTo . | 118 | rdfs:subPropertyOf transhelp:mapsTo . |
119 | 119 | ||
120 | transhelp:scaleMapsToMPREnumeration | 120 | transhelp:scaleMapsToMPREnumeration |
121 | - rdf:type owl:InverseFunctionalProperty , owl:ObjectProperty ; | 121 | + rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ; |
122 | rdfs:label "scale maps to MPR enumeration"^^xsd:string ; | 122 | rdfs:label "scale maps to MPR enumeration"^^xsd:string ; |
123 | rdfs:subPropertyOf transhelp:mapsTo . | 123 | rdfs:subPropertyOf transhelp:mapsTo . |
124 | 124 | ||
... | @@ -131,3 +131,8 @@ transhelp:typeOfPartCommentedOn | ... | @@ -131,3 +131,8 @@ transhelp:typeOfPartCommentedOn |
131 | rdfs:comment "Used to pass an argument to Cs_datedComment"^^xsd:string ; | 131 | rdfs:comment "Used to pass an argument to Cs_datedComment"^^xsd:string ; |
132 | rdfs:domain owl:Class ; | 132 | rdfs:domain owl:Class ; |
133 | rdfs:label "type of part commented on"^^xsd:string . | 133 | rdfs:label "type of part commented on"^^xsd:string . |
134 | + | ||
135 | +transhelp:valueOfPropertyMapsToMPRString | ||
136 | + rdf:type owl:DatatypeProperty ; | ||
137 | + rdfs:label "value of property maps to MPR string"^^xsd:string ; | ||
138 | + rdfs:subPropertyOf transhelp:mapsTo . | ... | ... |
... | @@ -9,6 +9,7 @@ | ... | @@ -9,6 +9,7 @@ |
9 | @prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . | 9 | @prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . |
10 | @prefix arg: <http://spinrdf.org/arg#> . | 10 | @prefix arg: <http://spinrdf.org/arg#> . |
11 | @prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> . | 11 | @prefix ep-mpr-spin-lib: <http://www.reportinghub.no/ep/mpr/spin/1.1/lib#> . |
12 | +@prefix erhfacts: <http://www.reportinghub.no/ep/schema/1.0/erhfacts#> . | ||
12 | @prefix fn: <http://www.w3.org/2005/xpath-functions#> . | 13 | @prefix fn: <http://www.w3.org/2005/xpath-functions#> . |
13 | @prefix owl: <http://www.w3.org/2002/07/owl#> . | 14 | @prefix owl: <http://www.w3.org/2002/07/owl#> . |
14 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 15 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
... | @@ -17,35 +18,24 @@ | ... | @@ -17,35 +18,24 @@ |
17 | @prefix sp: <http://spinrdf.org/sp#> . | 18 | @prefix sp: <http://spinrdf.org/sp#> . |
18 | @prefix spin: <http://spinrdf.org/spin#> . | 19 | @prefix spin: <http://spinrdf.org/spin#> . |
19 | @prefix spl: <http://spinrdf.org/spl#> . | 20 | @prefix spl: <http://spinrdf.org/spl#> . |
20 | -@prefix erhfacts: <http://www.reportinghub.no/ep/schema/1.0/erhfacts#> . | ||
21 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | 21 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
22 | 22 | ||
23 | <http://www.epim.no/schemas/mprml/1#Cs_productVolumeFacility> | 23 | <http://www.epim.no/schemas/mprml/1#Cs_productVolumeFacility> |
24 | spin:rule | 24 | spin:rule |
25 | [ rdf:type sp:Construct ; | 25 | [ rdf:type sp:Construct ; |
26 | - rdfs:comment "STEP 80003b Create temporal parts of parameterSet facility corresponding to the start and end without duplicates"^^xsd:string ; | 26 | + rdfs:comment "STEP 80000a Find the classes of spatial part that need to be created for the parameter set properties."^^xsd:string ; |
27 | - sp:templates ([ sp:object | 27 | + sp:templates ([ sp:object spin:_this ; |
28 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
29 | + sp:subject | ||
28 | [ sp:varName "classOfSpatialPart"^^xsd:string | 30 | [ sp:varName "classOfSpatialPart"^^xsd:string |
29 | - ] ; | 31 | + ] |
30 | - sp:predicate rdf:type ; | ||
31 | - sp:subject _:b1 | ||
32 | - ] [ sp:object | ||
33 | - [ sp:varName "intervalStart"^^xsd:string | ||
34 | - ] ; | ||
35 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
36 | - sp:subject _:b1 | ||
37 | - ] [ sp:object | ||
38 | - [ sp:varName "intervalEnd"^^xsd:string | ||
39 | - ] ; | ||
40 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
41 | - sp:subject _:b1 | ||
42 | - ] [ sp:object | ||
43 | - [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string | ||
44 | - ] ; | ||
45 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
46 | - sp:subject _:b1 | ||
47 | ]) ; | 32 | ]) ; |
48 | - sp:where ([ sp:object spin:_this ; | 33 | + sp:where ([ sp:object |
34 | + [ sp:varName "parameterSetRef"^^xsd:string | ||
35 | + ] ; | ||
36 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterSetRef> ; | ||
37 | + sp:subject spin:_this | ||
38 | + ] [ sp:object spin:_this ; | ||
49 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 39 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
50 | sp:subject | 40 | sp:subject |
51 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 41 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
... | @@ -56,59 +46,29 @@ | ... | @@ -56,59 +46,29 @@ |
56 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 46 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
57 | ] | 47 | ] |
58 | ] [ sp:object | 48 | ] [ sp:object |
59 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 49 | + [ sp:varName "nameRef"^^xsd:string |
60 | ] ; | 50 | ] ; |
61 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; | 51 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; |
62 | sp:subject | 52 | sp:subject |
63 | - [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string | 53 | + [ sp:varName "parameterSetRef"^^xsd:string |
64 | ] | 54 | ] |
65 | ] [ sp:object | 55 | ] [ sp:object |
66 | - [ sp:varName "classOfSpatialPart"^^xsd:string | 56 | + [ sp:varName "nameRef"^^xsd:string |
67 | ] ; | 57 | ] ; |
68 | - sp:predicate rdf:type ; | 58 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ; |
69 | sp:subject | 59 | sp:subject |
70 | - [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string | 60 | + [ sp:varName "classOfSpatialPart"^^xsd:string |
71 | ] | 61 | ] |
72 | - ] [ sp:object | 62 | + ] [ rdf:type sp:NotExists ; |
73 | - [ sp:varName "intervalString"^^xsd:string | 63 | + sp:elements ([ sp:object |
64 | + [ sp:varName "classOfSpatialPart"^^xsd:string | ||
74 | ] ; | 65 | ] ; |
75 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#necessaryIntervalString> ; | 66 | + sp:predicate rdf:type ; |
76 | sp:subject | 67 | sp:subject |
77 | - [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string | 68 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
78 | - ] | ||
79 | - ] [ rdf:type sp:Bind ; | ||
80 | - sp:expression | ||
81 | - [ rdf:type afn:substr ; | ||
82 | - sp:arg1 [ sp:varName "intervalString"^^xsd:string | ||
83 | - ] ; | ||
84 | - sp:arg2 0 ; | ||
85 | - sp:arg3 [ rdf:type smf:indexOf ; | ||
86 | - sp:arg1 [ sp:varName "intervalString"^^xsd:string | ||
87 | - ] ; | ||
88 | - sp:arg2 "$" | ||
89 | - ] | ||
90 | - ] ; | ||
91 | - sp:variable | ||
92 | - [ sp:varName "intervalStart"^^xsd:string | ||
93 | - ] | ||
94 | - ] [ rdf:type sp:Bind ; | ||
95 | - sp:expression | ||
96 | - [ rdf:type afn:substr ; | ||
97 | - sp:arg1 [ rdf:type afn:substr ; | ||
98 | - sp:arg1 [ sp:varName "intervalString"^^xsd:string | ||
99 | - ] ; | ||
100 | - sp:arg2 [ rdf:type smf:indexOf ; | ||
101 | - sp:arg1 [ sp:varName "intervalString"^^xsd:string | ||
102 | - ] ; | ||
103 | - sp:arg2 "$" | ||
104 | - ] | ||
105 | - ] ; | ||
106 | - sp:arg2 1 | ||
107 | - ] ; | ||
108 | - sp:variable | ||
109 | - [ sp:varName "intervalEnd"^^xsd:string | ||
110 | ] | 69 | ] |
111 | ]) | 70 | ]) |
71 | + ]) | ||
112 | ] ; | 72 | ] ; |
113 | spin:rule | 73 | spin:rule |
114 | [ rdf:type sp:Construct ; | 74 | [ rdf:type sp:Construct ; |
... | @@ -117,22 +77,22 @@ | ... | @@ -117,22 +77,22 @@ |
117 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 77 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
118 | ] ; | 78 | ] ; |
119 | sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; | 79 | sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; |
120 | - sp:subject _:b2 | 80 | + sp:subject _:b1 |
121 | ] [ sp:object | 81 | ] [ sp:object |
122 | [ sp:varName "classOfSpatialPart"^^xsd:string | 82 | [ sp:varName "classOfSpatialPart"^^xsd:string |
123 | ] ; | 83 | ] ; |
124 | sp:predicate rdf:type ; | 84 | sp:predicate rdf:type ; |
125 | - sp:subject _:b2 | 85 | + sp:subject _:b1 |
126 | ] [ sp:object | 86 | ] [ sp:object |
127 | [ sp:varName "startedAt"^^xsd:string | 87 | [ sp:varName "startedAt"^^xsd:string |
128 | ] ; | 88 | ] ; |
129 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 89 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
130 | - sp:subject _:b2 | 90 | + sp:subject _:b1 |
131 | ] [ sp:object | 91 | ] [ sp:object |
132 | [ sp:varName "finishedAt"^^xsd:string | 92 | [ sp:varName "finishedAt"^^xsd:string |
133 | ] ; | 93 | ] ; |
134 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 94 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
135 | - sp:subject _:b2 | 95 | + sp:subject _:b1 |
136 | ]) ; | 96 | ]) ; |
137 | sp:where ([ sp:object spin:_this ; | 97 | sp:where ([ sp:object spin:_this ; |
138 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 98 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
... | @@ -176,19 +136,29 @@ | ... | @@ -176,19 +136,29 @@ |
176 | ] ; | 136 | ] ; |
177 | spin:rule | 137 | spin:rule |
178 | [ rdf:type sp:Construct ; | 138 | [ rdf:type sp:Construct ; |
179 | - rdfs:comment "STEP 80000a Find the classes of spatial part that need to be created for the parameter set properties."^^xsd:string ; | 139 | + rdfs:comment "STEP 80003b Create temporal parts of parameterSet facility corresponding to the start and end without duplicates"^^xsd:string ; |
180 | - sp:templates ([ sp:object spin:_this ; | 140 | + sp:templates ([ sp:object |
181 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
182 | - sp:subject | ||
183 | [ sp:varName "classOfSpatialPart"^^xsd:string | 141 | [ sp:varName "classOfSpatialPart"^^xsd:string |
184 | - ] | ||
185 | - ]) ; | ||
186 | - sp:where ([ sp:object | ||
187 | - [ sp:varName "parameterSetRef"^^xsd:string | ||
188 | ] ; | 142 | ] ; |
189 | - sp:predicate <http://www.epim.no/schemas/mprml/1#parameterSetRef> ; | 143 | + sp:predicate rdf:type ; |
190 | - sp:subject spin:_this | 144 | + sp:subject _:b2 |
191 | - ] [ sp:object spin:_this ; | 145 | + ] [ sp:object |
146 | + [ sp:varName "intervalStart"^^xsd:string | ||
147 | + ] ; | ||
148 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
149 | + sp:subject _:b2 | ||
150 | + ] [ sp:object | ||
151 | + [ sp:varName "intervalEnd"^^xsd:string | ||
152 | + ] ; | ||
153 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
154 | + sp:subject _:b2 | ||
155 | + ] [ sp:object | ||
156 | + [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string | ||
157 | + ] ; | ||
158 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
159 | + sp:subject _:b2 | ||
160 | + ]) ; | ||
161 | + sp:where ([ sp:object spin:_this ; | ||
192 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 162 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
193 | sp:subject | 163 | sp:subject |
194 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 164 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
... | @@ -199,41 +169,71 @@ | ... | @@ -199,41 +169,71 @@ |
199 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 169 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
200 | ] | 170 | ] |
201 | ] [ sp:object | 171 | ] [ sp:object |
202 | - [ sp:varName "nameRef"^^xsd:string | 172 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
203 | ] ; | 173 | ] ; |
204 | - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | 174 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; |
205 | sp:subject | 175 | sp:subject |
206 | - [ sp:varName "parameterSetRef"^^xsd:string | 176 | + [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string |
207 | ] | 177 | ] |
208 | ] [ sp:object | 178 | ] [ sp:object |
209 | - [ sp:varName "nameRef"^^xsd:string | 179 | + [ sp:varName "classOfSpatialPart"^^xsd:string |
210 | ] ; | 180 | ] ; |
211 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ; | 181 | + sp:predicate rdf:type ; |
212 | sp:subject | 182 | sp:subject |
213 | - [ sp:varName "classOfSpatialPart"^^xsd:string | 183 | + [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string |
214 | ] | 184 | ] |
215 | - ] [ rdf:type sp:NotExists ; | 185 | + ] [ sp:object |
216 | - sp:elements ([ sp:object | 186 | + [ sp:varName "intervalString"^^xsd:string |
217 | - [ sp:varName "classOfSpatialPart"^^xsd:string | ||
218 | ] ; | 187 | ] ; |
219 | - sp:predicate rdf:type ; | 188 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#necessaryIntervalString> ; |
220 | sp:subject | 189 | sp:subject |
221 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 190 | + [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string |
191 | + ] | ||
192 | + ] [ rdf:type sp:Bind ; | ||
193 | + sp:expression | ||
194 | + [ rdf:type afn:substr ; | ||
195 | + sp:arg1 [ sp:varName "intervalString"^^xsd:string | ||
196 | + ] ; | ||
197 | + sp:arg2 0 ; | ||
198 | + sp:arg3 [ rdf:type smf:indexOf ; | ||
199 | + sp:arg1 [ sp:varName "intervalString"^^xsd:string | ||
200 | + ] ; | ||
201 | + sp:arg2 "$" | ||
202 | + ] | ||
203 | + ] ; | ||
204 | + sp:variable | ||
205 | + [ sp:varName "intervalStart"^^xsd:string | ||
206 | + ] | ||
207 | + ] [ rdf:type sp:Bind ; | ||
208 | + sp:expression | ||
209 | + [ rdf:type afn:substr ; | ||
210 | + sp:arg1 [ rdf:type afn:substr ; | ||
211 | + sp:arg1 [ sp:varName "intervalString"^^xsd:string | ||
212 | + ] ; | ||
213 | + sp:arg2 [ rdf:type smf:indexOf ; | ||
214 | + sp:arg1 [ sp:varName "intervalString"^^xsd:string | ||
215 | + ] ; | ||
216 | + sp:arg2 "$" | ||
217 | + ] | ||
218 | + ] ; | ||
219 | + sp:arg2 1 | ||
220 | + ] ; | ||
221 | + sp:variable | ||
222 | + [ sp:varName "intervalEnd"^^xsd:string | ||
222 | ] | 223 | ] |
223 | - ]) | ||
224 | ]) | 224 | ]) |
225 | ] . | 225 | ] . |
226 | 226 | ||
227 | <http://www.epim.no/schemas/mprml/1#Cs_productVolumeParameterSet> | 227 | <http://www.epim.no/schemas/mprml/1#Cs_productVolumeParameterSet> |
228 | spin:rule | 228 | spin:rule |
229 | [ rdf:type sp:Construct ; | 229 | [ rdf:type sp:Construct ; |
230 | - rdfs:comment "STEP 80003d No temporal part of the parameterSetFacility is required"^^xsd:string ; | 230 | + rdfs:comment "STEP 80002b Find existing temporal part of parameterSet facility corresponding to the nominal time"^^xsd:string ; |
231 | sp:templates ([ sp:object | 231 | sp:templates ([ sp:object |
232 | [ sp:varName "parameterRef"^^xsd:string | 232 | [ sp:varName "parameterRef"^^xsd:string |
233 | ] ; | 233 | ] ; |
234 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 234 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
235 | sp:subject | 235 | sp:subject |
236 | - [ sp:varName "parameterSetFacility"^^xsd:string | 236 | + [ sp:varName "parameterFacility"^^xsd:string |
237 | ] | 237 | ] |
238 | ]) ; | 238 | ]) ; |
239 | sp:where ([ sp:object spin:_this ; | 239 | sp:where ([ sp:object spin:_this ; |
... | @@ -242,68 +242,58 @@ | ... | @@ -242,68 +242,58 @@ |
242 | [ sp:varName "parameterSetFacility"^^xsd:string | 242 | [ sp:varName "parameterSetFacility"^^xsd:string |
243 | ] | 243 | ] |
244 | ] [ sp:object | 244 | ] [ sp:object |
245 | - [ sp:varName "classOfParameterSetFacility"^^xsd:string | ||
246 | - ] ; | ||
247 | - sp:predicate rdf:type ; | ||
248 | - sp:subject | ||
249 | - [ sp:varName "parameterSetFacility"^^xsd:string | ||
250 | - ] | ||
251 | - ] [ sp:object | ||
252 | [ sp:varName "parameterRef"^^xsd:string | 245 | [ sp:varName "parameterRef"^^xsd:string |
253 | ] ; | 246 | ] ; |
254 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | 247 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
255 | sp:subject spin:_this | 248 | sp:subject spin:_this |
256 | ] [ sp:object | 249 | ] [ sp:object |
257 | - [ sp:varName "intervalStart"^^xsd:string | 250 | + [ sp:varName "dTim"^^xsd:string |
258 | ] ; | 251 | ] ; |
259 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | 252 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ; |
260 | sp:subject | 253 | sp:subject |
261 | [ sp:varName "parameterRef"^^xsd:string | 254 | [ sp:varName "parameterRef"^^xsd:string |
262 | ] | 255 | ] |
263 | ] [ sp:object | 256 | ] [ sp:object |
264 | - [ sp:varName "intervalEnd"^^xsd:string | 257 | + [ sp:varName "dTim"^^xsd:string |
265 | ] ; | 258 | ] ; |
266 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; | 259 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; |
267 | sp:subject | 260 | sp:subject |
268 | - [ sp:varName "parameterRef"^^xsd:string | 261 | + [ sp:varName "parameterFacility"^^xsd:string |
269 | ] | 262 | ] |
270 | ] [ sp:object | 263 | ] [ sp:object |
271 | - [ sp:varName "intervalStart"^^xsd:string | ||
272 | - ] ; | ||
273 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
274 | - sp:subject | ||
275 | [ sp:varName "parameterSetFacility"^^xsd:string | 264 | [ sp:varName "parameterSetFacility"^^xsd:string |
276 | - ] | ||
277 | - ] [ sp:object | ||
278 | - [ sp:varName "intervalEnd"^^xsd:string | ||
279 | ] ; | 265 | ] ; |
280 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 266 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
281 | sp:subject | 267 | sp:subject |
282 | - [ sp:varName "parameterSetFacility"^^xsd:string | 268 | + [ sp:varName "parameterFacility"^^xsd:string |
283 | ] | 269 | ] |
284 | ]) | 270 | ]) |
285 | ] ; | 271 | ] ; |
286 | spin:rule | 272 | spin:rule |
287 | [ rdf:type sp:Construct ; | 273 | [ rdf:type sp:Construct ; |
288 | - rdfs:comment "STEP 80004b Measurement qualifier not specified"^^xsd:string ; | 274 | + rdfs:comment "STEP 80005b Assign parameter value - integer"^^xsd:string ; |
289 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ; | 275 | + sp:templates ([ sp:object |
290 | - sp:predicate rdf:type ; | 276 | + [ sp:varName "integerValue"^^xsd:string |
291 | - sp:subject | 277 | + ] ; |
292 | - [ sp:varName "parameterFacility"^^xsd:string | 278 | + sp:predicate |
293 | - ] | 279 | + [ sp:varName "propertyType"^^xsd:string |
294 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#ValidlyMeasuredState> ; | 280 | + ] ; |
295 | - sp:predicate rdf:type ; | ||
296 | sp:subject | 281 | sp:subject |
297 | [ sp:varName "parameterFacility"^^xsd:string | 282 | [ sp:varName "parameterFacility"^^xsd:string |
298 | ] | 283 | ] |
299 | ]) ; | 284 | ]) ; |
300 | - sp:where ([ rdf:type sp:NotExists ; | 285 | + sp:where ([ sp:object |
301 | - sp:elements ([ sp:object | 286 | + [ sp:varName "nameRef"^^xsd:string |
302 | - [ sp:varName "qualifierRef"^^xsd:string | ||
303 | ] ; | 287 | ] ; |
304 | - sp:predicate <http://www.epim.no/schemas/mprml/1#qualifierRef> ; | 288 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; |
305 | sp:subject spin:_this | 289 | sp:subject spin:_this |
306 | - ]) | 290 | + ] [ sp:object |
291 | + [ sp:varName "nameRef"^^xsd:string | ||
292 | + ] ; | ||
293 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#propertyMapsToMPREnumeration> ; | ||
294 | + sp:subject | ||
295 | + [ sp:varName "propertyType"^^xsd:string | ||
296 | + ] | ||
307 | ] [ sp:object | 297 | ] [ sp:object |
308 | [ sp:varName "parameterRef"^^xsd:string | 298 | [ sp:varName "parameterRef"^^xsd:string |
309 | ] ; | 299 | ] ; |
... | @@ -316,31 +306,32 @@ | ... | @@ -316,31 +306,32 @@ |
316 | sp:subject | 306 | sp:subject |
317 | [ sp:varName "parameterFacility"^^xsd:string | 307 | [ sp:varName "parameterFacility"^^xsd:string |
318 | ] | 308 | ] |
309 | + ] [ sp:object | ||
310 | + [ sp:varName "integerValueRef"^^xsd:string | ||
311 | + ] ; | ||
312 | + sp:predicate <http://www.epim.no/schemas/mprml/1#integerValueRef> ; | ||
313 | + sp:subject | ||
314 | + [ sp:varName "parameterRef"^^xsd:string | ||
315 | + ] | ||
316 | + ] [ sp:object | ||
317 | + [ sp:varName "integerValue"^^xsd:string | ||
318 | + ] ; | ||
319 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
320 | + sp:subject | ||
321 | + [ sp:varName "integerValueRef"^^xsd:string | ||
322 | + ] | ||
319 | ]) | 323 | ]) |
320 | ] ; | 324 | ] ; |
321 | spin:rule | 325 | spin:rule |
322 | [ rdf:type sp:Construct ; | 326 | [ rdf:type sp:Construct ; |
323 | - rdfs:comment "STEP 80002a Create temporal part of parameterSet facility corresponding to the nominal time, if necessary"^^xsd:string ; | 327 | + rdfs:comment "STEP 80001b Regularise start and end times - start time inherited from temporal part of production facility"^^xsd:string ; |
324 | sp:templates ([ sp:object | 328 | sp:templates ([ sp:object |
325 | - [ sp:varName "classOfParameterSetFacility"^^xsd:string | 329 | + [ sp:varName "startString"^^xsd:string |
326 | ] ; | 330 | ] ; |
327 | - sp:predicate rdf:type ; | 331 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; |
328 | - sp:subject _:b3 | 332 | + sp:subject |
329 | - ] [ sp:object | ||
330 | - [ sp:varName "dTim"^^xsd:string | ||
331 | - ] ; | ||
332 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; | ||
333 | - sp:subject _:b3 | ||
334 | - ] [ sp:object | ||
335 | - [ sp:varName "parameterSetFacility"^^xsd:string | ||
336 | - ] ; | ||
337 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
338 | - sp:subject _:b3 | ||
339 | - ] [ sp:object | ||
340 | [ sp:varName "parameterRef"^^xsd:string | 333 | [ sp:varName "parameterRef"^^xsd:string |
341 | - ] ; | 334 | + ] |
342 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
343 | - sp:subject _:b3 | ||
344 | ]) ; | 335 | ]) ; |
345 | sp:where ([ sp:object spin:_this ; | 336 | sp:where ([ sp:object spin:_this ; |
346 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 337 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
... | @@ -348,57 +339,93 @@ | ... | @@ -348,57 +339,93 @@ |
348 | [ sp:varName "parameterSetFacility"^^xsd:string | 339 | [ sp:varName "parameterSetFacility"^^xsd:string |
349 | ] | 340 | ] |
350 | ] [ sp:object | 341 | ] [ sp:object |
351 | - [ sp:varName "classOfParameterSetFacility"^^xsd:string | 342 | + [ sp:varName "startedAt"^^xsd:string |
352 | ] ; | 343 | ] ; |
353 | - sp:predicate rdf:type ; | 344 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
354 | sp:subject | 345 | sp:subject |
355 | [ sp:varName "parameterSetFacility"^^xsd:string | 346 | [ sp:varName "parameterSetFacility"^^xsd:string |
356 | ] | 347 | ] |
348 | + ] [ rdf:type sp:Bind ; | ||
349 | + sp:expression | ||
350 | + [ rdf:type smf:cast ; | ||
351 | + arg:datatype xsd:string ; | ||
352 | + sp:arg1 [ sp:varName "startedAt"^^xsd:string | ||
353 | + ] | ||
354 | + ] ; | ||
355 | + sp:variable | ||
356 | + [ sp:varName "startString"^^xsd:string | ||
357 | + ] | ||
357 | ] [ sp:object | 358 | ] [ sp:object |
358 | [ sp:varName "parameterRef"^^xsd:string | 359 | [ sp:varName "parameterRef"^^xsd:string |
359 | ] ; | 360 | ] ; |
360 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | 361 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
361 | sp:subject spin:_this | 362 | sp:subject spin:_this |
362 | - ] [ sp:object | ||
363 | - [ sp:varName "dTim"^^xsd:string | ||
364 | - ] ; | ||
365 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ; | ||
366 | - sp:subject | ||
367 | - [ sp:varName "parameterRef"^^xsd:string | ||
368 | - ] | ||
369 | ] [ rdf:type sp:NotExists ; | 363 | ] [ rdf:type sp:NotExists ; |
370 | - sp:elements ([ sp:object | 364 | + sp:elements ([ rdf:type sp:Union ; |
371 | - [ sp:varName "dTim"^^xsd:string | 365 | + sp:elements (([ sp:object |
366 | + [ sp:varName "dTimStart"^^xsd:string | ||
372 | ] ; | 367 | ] ; |
373 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; | 368 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; |
374 | sp:subject | 369 | sp:subject |
375 | - [ sp:varName "parameterFacility"^^xsd:string | 370 | + [ sp:varName "parameterRef"^^xsd:string |
376 | ] | 371 | ] |
377 | - ] [ sp:object | 372 | + ]) ([ sp:object |
378 | - [ sp:varName "parameterSetFacility"^^xsd:string | 373 | + [ sp:varName "dateStart"^^xsd:string |
379 | ] ; | 374 | ] ; |
380 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 375 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; |
381 | sp:subject | 376 | sp:subject |
382 | - [ sp:varName "parameterFacility"^^xsd:string | 377 | + [ sp:varName "parameterRef"^^xsd:string |
383 | ] | 378 | ] |
379 | + ])) | ||
384 | ]) | 380 | ]) |
385 | ]) | 381 | ]) |
386 | ] ; | 382 | ] ; |
387 | spin:rule | 383 | spin:rule |
388 | [ rdf:type sp:Construct ; | 384 | [ rdf:type sp:Construct ; |
389 | - rdfs:comment "STEP 80002b Find existing temporal part of parameterSet facility corresponding to the nominal time"^^xsd:string ; | 385 | + rdfs:comment "STEP 80005a Assign parameter value - member of a property space"^^xsd:string ; |
390 | - sp:templates ([ sp:object | 386 | + sp:templates ([ sp:object _:b3 ; |
391 | - [ sp:varName "parameterRef"^^xsd:string | 387 | + sp:predicate |
388 | + [ sp:varName "propertyType"^^xsd:string | ||
392 | ] ; | 389 | ] ; |
393 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
394 | sp:subject | 390 | sp:subject |
395 | [ sp:varName "parameterFacility"^^xsd:string | 391 | [ sp:varName "parameterFacility"^^xsd:string |
396 | ] | 392 | ] |
393 | + ] [ sp:object | ||
394 | + [ sp:varName "quantityType"^^xsd:string | ||
395 | + ] ; | ||
396 | + sp:predicate rdf:type ; | ||
397 | + sp:subject _:b3 | ||
398 | + ] [ sp:object | ||
399 | + [ sp:varName "measureValue"^^xsd:string | ||
400 | + ] ; | ||
401 | + sp:predicate | ||
402 | + [ sp:varName "measureScale"^^xsd:string | ||
403 | + ] ; | ||
404 | + sp:subject _:b3 | ||
397 | ]) ; | 405 | ]) ; |
398 | - sp:where ([ sp:object spin:_this ; | 406 | + sp:where ([ sp:object |
399 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 407 | + [ sp:varName "nameRef"^^xsd:string |
408 | + ] ; | ||
409 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | ||
410 | + sp:subject spin:_this | ||
411 | + ] [ sp:object | ||
412 | + [ sp:varName "nameRef"^^xsd:string | ||
413 | + ] ; | ||
414 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#propertyMapsToMPREnumeration> ; | ||
400 | sp:subject | 415 | sp:subject |
401 | - [ sp:varName "parameterSetFacility"^^xsd:string | 416 | + [ sp:varName "propertyType"^^xsd:string |
417 | + ] | ||
418 | + ] [ sp:object | ||
419 | + [ sp:varName "nameRef"^^xsd:string | ||
420 | + ] ; | ||
421 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#rangeOfPropertyMapsToMPREnumeration> ; | ||
422 | + sp:subject | ||
423 | + [ sp:varName "quantityType"^^xsd:string | ||
424 | + ] | ||
425 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#PropertySpace> ; | ||
426 | + sp:predicate rdf:type ; | ||
427 | + sp:subject | ||
428 | + [ sp:varName "quantityType"^^xsd:string | ||
402 | ] | 429 | ] |
403 | ] [ sp:object | 430 | ] [ sp:object |
404 | [ sp:varName "parameterRef"^^xsd:string | 431 | [ sp:varName "parameterRef"^^xsd:string |
... | @@ -406,35 +433,49 @@ | ... | @@ -406,35 +433,49 @@ |
406 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | 433 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
407 | sp:subject spin:_this | 434 | sp:subject spin:_this |
408 | ] [ sp:object | 435 | ] [ sp:object |
409 | - [ sp:varName "dTim"^^xsd:string | 436 | + [ sp:varName "parameterRef"^^xsd:string |
410 | ] ; | 437 | ] ; |
411 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ; | 438 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
439 | + sp:subject | ||
440 | + [ sp:varName "parameterFacility"^^xsd:string | ||
441 | + ] | ||
442 | + ] [ sp:object | ||
443 | + [ sp:varName "measureValueRef"^^xsd:string | ||
444 | + ] ; | ||
445 | + sp:predicate <http://www.epim.no/schemas/mprml/1#measureValueRef> ; | ||
412 | sp:subject | 446 | sp:subject |
413 | [ sp:varName "parameterRef"^^xsd:string | 447 | [ sp:varName "parameterRef"^^xsd:string |
414 | ] | 448 | ] |
415 | ] [ sp:object | 449 | ] [ sp:object |
416 | - [ sp:varName "dTim"^^xsd:string | 450 | + [ sp:varName "measureValue"^^xsd:string |
417 | ] ; | 451 | ] ; |
418 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; | 452 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
419 | sp:subject | 453 | sp:subject |
420 | - [ sp:varName "parameterFacility"^^xsd:string | 454 | + [ sp:varName "measureValueRef"^^xsd:string |
421 | ] | 455 | ] |
422 | ] [ sp:object | 456 | ] [ sp:object |
423 | - [ sp:varName "parameterSetFacility"^^xsd:string | 457 | + [ sp:varName "measureUom"^^xsd:string |
424 | ] ; | 458 | ] ; |
425 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 459 | + sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ; |
426 | sp:subject | 460 | sp:subject |
427 | - [ sp:varName "parameterFacility"^^xsd:string | 461 | + [ sp:varName "measureValueRef"^^xsd:string |
462 | + ] | ||
463 | + ] [ sp:object | ||
464 | + [ sp:varName "measureUom"^^xsd:string | ||
465 | + ] ; | ||
466 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#scaleMapsToMPREnumeration> ; | ||
467 | + sp:subject | ||
468 | + [ sp:varName "measureScale"^^xsd:string | ||
428 | ] | 469 | ] |
429 | ]) | 470 | ]) |
430 | ] ; | 471 | ] ; |
431 | spin:rule | 472 | spin:rule |
432 | [ rdf:type sp:Construct ; | 473 | [ rdf:type sp:Construct ; |
433 | - rdfs:comment "STEP 80000d The whole production facility has the parameterSet property"^^xsd:string ; | 474 | + rdfs:comment "STEP 80000a Create the spatial parts that have the parameterSet property"^^xsd:string ; |
434 | sp:templates ([ sp:object spin:_this ; | 475 | sp:templates ([ sp:object spin:_this ; |
435 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 476 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
436 | sp:subject | 477 | sp:subject |
437 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 478 | + [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string |
438 | ] | 479 | ] |
439 | ]) ; | 480 | ]) ; |
440 | sp:where ([ sp:object spin:_this ; | 481 | sp:where ([ sp:object spin:_this ; |
... | @@ -455,6 +496,20 @@ | ... | @@ -455,6 +496,20 @@ |
455 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 496 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
456 | ] | 497 | ] |
457 | ] [ sp:object | 498 | ] [ sp:object |
499 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
500 | + ] ; | ||
501 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; | ||
502 | + sp:subject | ||
503 | + [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string | ||
504 | + ] | ||
505 | + ] [ sp:object | ||
506 | + [ sp:varName "classOfSpatialPart"^^xsd:string | ||
507 | + ] ; | ||
508 | + sp:predicate rdf:type ; | ||
509 | + sp:subject | ||
510 | + [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string | ||
511 | + ] | ||
512 | + ] [ sp:object | ||
458 | [ sp:varName "nameRef"^^xsd:string | 513 | [ sp:varName "nameRef"^^xsd:string |
459 | ] ; | 514 | ] ; |
460 | sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | 515 | sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; |
... | @@ -464,39 +519,38 @@ | ... | @@ -464,39 +519,38 @@ |
464 | ] ; | 519 | ] ; |
465 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ; | 520 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ; |
466 | sp:subject | 521 | sp:subject |
467 | - [ sp:varName "classOfProductionFacility"^^xsd:string | 522 | + [ sp:varName "classOfSpatialPart"^^xsd:string |
468 | ] | 523 | ] |
469 | - ] [ sp:object | 524 | + ] [ rdf:type sp:NotExists ; |
470 | - [ sp:varName "classOfProductionFacility"^^xsd:string | 525 | + sp:elements ([ sp:object |
526 | + [ sp:varName "nameRef"^^xsd:string | ||
527 | + ] ; | ||
528 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ; | ||
529 | + sp:subject <http://www.reportinghub.no/ep/schema/facility#Facility> | ||
530 | + ]) | ||
531 | + ] [ rdf:type sp:NotExists ; | ||
532 | + sp:elements ([ sp:object | ||
533 | + [ sp:varName "classOfSpatialPart"^^xsd:string | ||
471 | ] ; | 534 | ] ; |
472 | sp:predicate rdf:type ; | 535 | sp:predicate rdf:type ; |
473 | sp:subject | 536 | sp:subject |
474 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 537 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
475 | ] | 538 | ] |
476 | ]) | 539 | ]) |
540 | + ]) | ||
477 | ] ; | 541 | ] ; |
478 | spin:rule | 542 | spin:rule |
479 | [ rdf:type sp:Construct ; | 543 | [ rdf:type sp:Construct ; |
480 | - rdfs:comment "STEP 80005 Assign parameter value"^^xsd:string ; | 544 | + rdfs:comment "STEP 80005c Assign parameter value - string mapped to class"^^xsd:string ; |
481 | - sp:templates ([ sp:object _:b4 ; | 545 | + sp:templates ([ sp:object |
546 | + [ sp:varName "classOfFacility"^^xsd:string | ||
547 | + ] ; | ||
482 | sp:predicate | 548 | sp:predicate |
483 | [ sp:varName "propertyType"^^xsd:string | 549 | [ sp:varName "propertyType"^^xsd:string |
484 | ] ; | 550 | ] ; |
485 | sp:subject | 551 | sp:subject |
486 | [ sp:varName "parameterFacility"^^xsd:string | 552 | [ sp:varName "parameterFacility"^^xsd:string |
487 | ] | 553 | ] |
488 | - ] [ sp:object | ||
489 | - [ sp:varName "quantityType"^^xsd:string | ||
490 | - ] ; | ||
491 | - sp:predicate rdf:type ; | ||
492 | - sp:subject _:b4 | ||
493 | - ] [ sp:object | ||
494 | - [ sp:varName "measureValue"^^xsd:string | ||
495 | - ] ; | ||
496 | - sp:predicate | ||
497 | - [ sp:varName "measureScale"^^xsd:string | ||
498 | - ] ; | ||
499 | - sp:subject _:b4 | ||
500 | ]) ; | 554 | ]) ; |
501 | sp:where ([ sp:object | 555 | sp:where ([ sp:object |
502 | [ sp:varName "nameRef"^^xsd:string | 556 | [ sp:varName "nameRef"^^xsd:string |
... | @@ -514,9 +568,7 @@ | ... | @@ -514,9 +568,7 @@ |
514 | [ sp:varName "nameRef"^^xsd:string | 568 | [ sp:varName "nameRef"^^xsd:string |
515 | ] ; | 569 | ] ; |
516 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#rangeOfPropertyMapsToMPREnumeration> ; | 570 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#rangeOfPropertyMapsToMPREnumeration> ; |
517 | - sp:subject | 571 | + sp:subject <http://www.reportinghub.no/ep/schema/production-facility#FacilityAvailabilityType> |
518 | - [ sp:varName "quantityType"^^xsd:string | ||
519 | - ] | ||
520 | ] [ sp:object | 572 | ] [ sp:object |
521 | [ sp:varName "parameterRef"^^xsd:string | 573 | [ sp:varName "parameterRef"^^xsd:string |
522 | ] ; | 574 | ] ; |
... | @@ -530,44 +582,81 @@ | ... | @@ -530,44 +582,81 @@ |
530 | [ sp:varName "parameterFacility"^^xsd:string | 582 | [ sp:varName "parameterFacility"^^xsd:string |
531 | ] | 583 | ] |
532 | ] [ sp:object | 584 | ] [ sp:object |
533 | - [ sp:varName "measureValueRef"^^xsd:string | 585 | + [ sp:varName "stringValueRef"^^xsd:string |
534 | ] ; | 586 | ] ; |
535 | - sp:predicate <http://www.epim.no/schemas/mprml/1#measureValueRef> ; | 587 | + sp:predicate <http://www.epim.no/schemas/mprml/1#stringValueRef> ; |
536 | sp:subject | 588 | sp:subject |
537 | [ sp:varName "parameterRef"^^xsd:string | 589 | [ sp:varName "parameterRef"^^xsd:string |
538 | ] | 590 | ] |
539 | ] [ sp:object | 591 | ] [ sp:object |
540 | - [ sp:varName "measureValue"^^xsd:string | 592 | + [ sp:varName "stringValue"^^xsd:string |
541 | ] ; | 593 | ] ; |
542 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | 594 | sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; |
543 | sp:subject | 595 | sp:subject |
544 | - [ sp:varName "measureValueRef"^^xsd:string | 596 | + [ sp:varName "stringValueRef"^^xsd:string |
545 | ] | 597 | ] |
546 | ] [ sp:object | 598 | ] [ sp:object |
547 | - [ sp:varName "measureUom"^^xsd:string | 599 | + [ sp:varName "stringValue"^^xsd:string |
548 | ] ; | 600 | ] ; |
549 | - sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ; | 601 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#valueOfPropertyMapsToMPRString> ; |
550 | sp:subject | 602 | sp:subject |
551 | - [ sp:varName "measureValueRef"^^xsd:string | 603 | + [ sp:varName "classOfFacility"^^xsd:string |
604 | + ] | ||
605 | + ]) | ||
606 | + ] ; | ||
607 | + spin:rule | ||
608 | + [ rdf:type sp:Construct ; | ||
609 | + rdfs:comment "STEP 80004a Measurement qualifier specified"^^xsd:string ; | ||
610 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ; | ||
611 | + sp:predicate rdf:type ; | ||
612 | + sp:subject | ||
613 | + [ sp:varName "parameterFacility"^^xsd:string | ||
552 | ] | 614 | ] |
553 | ] [ sp:object | 615 | ] [ sp:object |
554 | - [ sp:varName "measureUom"^^xsd:string | 616 | + [ sp:varName "measuredQualityType"^^xsd:string |
555 | ] ; | 617 | ] ; |
556 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#scaleMapsToMPREnumeration> ; | 618 | + sp:predicate rdf:type ; |
557 | sp:subject | 619 | sp:subject |
558 | - [ sp:varName "measureScale"^^xsd:string | 620 | + [ sp:varName "parameterFacility"^^xsd:string |
621 | + ] | ||
622 | + ]) ; | ||
623 | + sp:where ([ sp:object | ||
624 | + [ sp:varName "qualifierRef"^^xsd:string | ||
625 | + ] ; | ||
626 | + sp:predicate <http://www.epim.no/schemas/mprml/1#qualifierRef> ; | ||
627 | + sp:subject spin:_this | ||
628 | + ] [ sp:object | ||
629 | + [ sp:varName "parameterRef"^^xsd:string | ||
630 | + ] ; | ||
631 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | ||
632 | + sp:subject spin:_this | ||
633 | + ] [ sp:object | ||
634 | + [ sp:varName "parameterRef"^^xsd:string | ||
635 | + ] ; | ||
636 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
637 | + sp:subject | ||
638 | + [ sp:varName "parameterFacility"^^xsd:string | ||
639 | + ] | ||
640 | + ] [ rdf:type sp:Bind ; | ||
641 | + sp:expression | ||
642 | + [ rdf:type ep-mpr-spin-lib:selectMeasuredQualityType ; | ||
643 | + sp:arg1 [ sp:varName "qualifierRef"^^xsd:string | ||
644 | + ] | ||
645 | + ] ; | ||
646 | + sp:variable | ||
647 | + [ sp:varName "measuredQualityType"^^xsd:string | ||
559 | ] | 648 | ] |
560 | ]) | 649 | ]) |
561 | ] ; | 650 | ] ; |
562 | spin:rule | 651 | spin:rule |
563 | [ rdf:type sp:Construct ; | 652 | [ rdf:type sp:Construct ; |
564 | - rdfs:comment "STEP 80001b Regularise start and end times - start time inherited from temporal part of production facility"^^xsd:string ; | 653 | + rdfs:comment "STEP 80003a Create list of necessary temporal parts of parameterSet facility corresponding to the start and end"^^xsd:string ; |
565 | sp:templates ([ sp:object | 654 | sp:templates ([ sp:object |
566 | - [ sp:varName "startString"^^xsd:string | 655 | + [ sp:varName "intervalString"^^xsd:string |
567 | ] ; | 656 | ] ; |
568 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | 657 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#necessaryIntervalString> ; |
569 | sp:subject | 658 | sp:subject |
570 | - [ sp:varName "parameterRef"^^xsd:string | 659 | + [ sp:varName "parameterSetFacility"^^xsd:string |
571 | ] | 660 | ] |
572 | ]) ; | 661 | ]) ; |
573 | sp:where ([ sp:object spin:_this ; | 662 | sp:where ([ sp:object spin:_this ; |
... | @@ -576,119 +665,136 @@ | ... | @@ -576,119 +665,136 @@ |
576 | [ sp:varName "parameterSetFacility"^^xsd:string | 665 | [ sp:varName "parameterSetFacility"^^xsd:string |
577 | ] | 666 | ] |
578 | ] [ sp:object | 667 | ] [ sp:object |
579 | - [ sp:varName "startedAt"^^xsd:string | 668 | + [ sp:varName "classOfParameterSetFacility"^^xsd:string |
580 | ] ; | 669 | ] ; |
581 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 670 | + sp:predicate rdf:type ; |
582 | sp:subject | 671 | sp:subject |
583 | [ sp:varName "parameterSetFacility"^^xsd:string | 672 | [ sp:varName "parameterSetFacility"^^xsd:string |
584 | ] | 673 | ] |
585 | - ] [ rdf:type sp:Bind ; | ||
586 | - sp:expression | ||
587 | - [ rdf:type smf:cast ; | ||
588 | - arg:datatype xsd:string ; | ||
589 | - sp:arg1 [ sp:varName "startedAt"^^xsd:string | ||
590 | - ] | ||
591 | - ] ; | ||
592 | - sp:variable | ||
593 | - [ sp:varName "startString"^^xsd:string | ||
594 | - ] | ||
595 | ] [ sp:object | 674 | ] [ sp:object |
596 | [ sp:varName "parameterRef"^^xsd:string | 675 | [ sp:varName "parameterRef"^^xsd:string |
597 | ] ; | 676 | ] ; |
598 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | 677 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
599 | sp:subject spin:_this | 678 | sp:subject spin:_this |
600 | - ] [ rdf:type sp:NotExists ; | 679 | + ] [ sp:object |
601 | - sp:elements ([ rdf:type sp:Union ; | 680 | + [ sp:varName "intervalStart"^^xsd:string |
602 | - sp:elements (([ sp:object | ||
603 | - [ sp:varName "dTimStart"^^xsd:string | ||
604 | ] ; | 681 | ] ; |
605 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; | 682 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; |
606 | sp:subject | 683 | sp:subject |
607 | [ sp:varName "parameterRef"^^xsd:string | 684 | [ sp:varName "parameterRef"^^xsd:string |
608 | ] | 685 | ] |
609 | - ]) ([ sp:object | 686 | + ] [ sp:object |
610 | - [ sp:varName "dateStart"^^xsd:string | 687 | + [ sp:varName "intervalEnd"^^xsd:string |
611 | ] ; | 688 | ] ; |
612 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | 689 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; |
613 | sp:subject | 690 | sp:subject |
614 | [ sp:varName "parameterRef"^^xsd:string | 691 | [ sp:varName "parameterRef"^^xsd:string |
615 | - ] | 692 | + ] |
616 | - ])) | 693 | + ] [ rdf:type sp:NotExists ; |
617 | - ]) | 694 | + sp:elements ([ sp:object |
618 | - ]) | 695 | + [ sp:varName "intervalStart"^^xsd:string |
696 | + ] ; | ||
697 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
698 | + sp:subject | ||
699 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
700 | + ] | ||
701 | + ] [ sp:object | ||
702 | + [ sp:varName "intervalEnd"^^xsd:string | ||
703 | + ] ; | ||
704 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
705 | + sp:subject | ||
706 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
707 | + ] | ||
708 | + ]) | ||
709 | + ] [ rdf:type sp:Bind ; | ||
710 | + sp:expression | ||
711 | + [ rdf:type fn:concat ; | ||
712 | + sp:arg1 [ sp:varName "intervalStart"^^xsd:string | ||
713 | + ] ; | ||
714 | + sp:arg2 "$" ; | ||
715 | + sp:arg3 [ sp:varName "intervalEnd"^^xsd:string | ||
716 | + ] | ||
717 | + ] ; | ||
718 | + sp:variable | ||
719 | + [ sp:varName "intervalString"^^xsd:string | ||
720 | + ] | ||
721 | + ]) | ||
722 | + ] ; | ||
723 | + spin:rule | ||
724 | + [ rdf:type sp:Construct ; | ||
725 | + rdfs:comment "STEP 80002a Create temporal part of parameterSet facility corresponding to the nominal time, if necessary"^^xsd:string ; | ||
726 | + sp:templates ([ sp:object | ||
727 | + [ sp:varName "classOfParameterSetFacility"^^xsd:string | ||
728 | + ] ; | ||
729 | + sp:predicate rdf:type ; | ||
730 | + sp:subject _:b4 | ||
731 | + ] [ sp:object | ||
732 | + [ sp:varName "dTim"^^xsd:string | ||
733 | + ] ; | ||
734 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; | ||
735 | + sp:subject _:b4 | ||
736 | + ] [ sp:object | ||
737 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
738 | + ] ; | ||
739 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
740 | + sp:subject _:b4 | ||
741 | + ] [ sp:object | ||
742 | + [ sp:varName "parameterRef"^^xsd:string | ||
619 | ] ; | 743 | ] ; |
620 | - spin:rule | ||
621 | - [ rdf:type sp:Construct ; | ||
622 | - rdfs:comment "STEP 80000c Create the spatial parts that have the parameterSet property"^^xsd:string ; | ||
623 | - sp:templates ([ sp:object spin:_this ; | ||
624 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 744 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
625 | - sp:subject | 745 | + sp:subject _:b4 |
626 | - [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string | ||
627 | - ] | ||
628 | ]) ; | 746 | ]) ; |
629 | sp:where ([ sp:object spin:_this ; | 747 | sp:where ([ sp:object spin:_this ; |
630 | - sp:predicate <http://www.epim.no/schemas/mprml/1#parameterSetRef> ; | ||
631 | - sp:subject | ||
632 | - [ sp:varName "facilityRef"^^xsd:string | ||
633 | - ] | ||
634 | - ] [ sp:object | ||
635 | - [ sp:varName "facilityRef"^^xsd:string | ||
636 | - ] ; | ||
637 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 748 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
638 | sp:subject | 749 | sp:subject |
639 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 750 | + [ sp:varName "parameterSetFacility"^^xsd:string |
640 | - ] | ||
641 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
642 | - sp:predicate rdf:type ; | ||
643 | - sp:subject | ||
644 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
645 | - ] | ||
646 | - ] [ sp:object | ||
647 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
648 | - ] ; | ||
649 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; | ||
650 | - sp:subject | ||
651 | - [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string | ||
652 | ] | 751 | ] |
653 | ] [ sp:object | 752 | ] [ sp:object |
654 | - [ sp:varName "classOfSpatialPart"^^xsd:string | 753 | + [ sp:varName "classOfParameterSetFacility"^^xsd:string |
655 | ] ; | 754 | ] ; |
656 | sp:predicate rdf:type ; | 755 | sp:predicate rdf:type ; |
657 | sp:subject | 756 | sp:subject |
658 | - [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string | 757 | + [ sp:varName "parameterSetFacility"^^xsd:string |
659 | ] | 758 | ] |
660 | ] [ sp:object | 759 | ] [ sp:object |
661 | - [ sp:varName "nameRef"^^xsd:string | 760 | + [ sp:varName "parameterRef"^^xsd:string |
662 | ] ; | 761 | ] ; |
663 | - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | 762 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
664 | sp:subject spin:_this | 763 | sp:subject spin:_this |
665 | ] [ sp:object | 764 | ] [ sp:object |
666 | - [ sp:varName "nameRef"^^xsd:string | 765 | + [ sp:varName "dTim"^^xsd:string |
667 | ] ; | 766 | ] ; |
668 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ; | 767 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ; |
669 | sp:subject | 768 | sp:subject |
670 | - [ sp:varName "classOfSpatialPart"^^xsd:string | 769 | + [ sp:varName "parameterRef"^^xsd:string |
671 | ] | 770 | ] |
672 | ] [ rdf:type sp:NotExists ; | 771 | ] [ rdf:type sp:NotExists ; |
673 | sp:elements ([ sp:object | 772 | sp:elements ([ sp:object |
674 | - [ sp:varName "classOfSpatialPart"^^xsd:string | 773 | + [ sp:varName "dTim"^^xsd:string |
675 | ] ; | 774 | ] ; |
676 | - sp:predicate rdf:type ; | 775 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; |
677 | sp:subject | 776 | sp:subject |
678 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 777 | + [ sp:varName "parameterFacility"^^xsd:string |
778 | + ] | ||
779 | + ] [ sp:object | ||
780 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
781 | + ] ; | ||
782 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
783 | + sp:subject | ||
784 | + [ sp:varName "parameterFacility"^^xsd:string | ||
679 | ] | 785 | ] |
680 | ]) | 786 | ]) |
681 | ]) | 787 | ]) |
682 | ] ; | 788 | ] ; |
683 | spin:rule | 789 | spin:rule |
684 | [ rdf:type sp:Construct ; | 790 | [ rdf:type sp:Construct ; |
685 | - rdfs:comment "STEP 80003c Assign temporal parts of parameterSet facility to parameter elements"^^xsd:string ; | 791 | + rdfs:comment "STEP 80003d No temporal part of the parameterSetFacility is required"^^xsd:string ; |
686 | sp:templates ([ sp:object | 792 | sp:templates ([ sp:object |
687 | [ sp:varName "parameterRef"^^xsd:string | 793 | [ sp:varName "parameterRef"^^xsd:string |
688 | ] ; | 794 | ] ; |
689 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 795 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
690 | sp:subject | 796 | sp:subject |
691 | - [ sp:varName "parameterFacility"^^xsd:string | 797 | + [ sp:varName "parameterSetFacility"^^xsd:string |
692 | ] | 798 | ] |
693 | ]) ; | 799 | ]) ; |
694 | sp:where ([ sp:object spin:_this ; | 800 | sp:where ([ sp:object spin:_this ; |
... | @@ -704,56 +810,83 @@ | ... | @@ -704,56 +810,83 @@ |
704 | [ sp:varName "parameterSetFacility"^^xsd:string | 810 | [ sp:varName "parameterSetFacility"^^xsd:string |
705 | ] | 811 | ] |
706 | ] [ sp:object | 812 | ] [ sp:object |
707 | - [ sp:varName "classOfParameterSetFacility"^^xsd:string | 813 | + [ sp:varName "parameterRef"^^xsd:string |
708 | ] ; | 814 | ] ; |
709 | - sp:predicate rdf:type ; | 815 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
816 | + sp:subject spin:_this | ||
817 | + ] [ sp:object | ||
818 | + [ sp:varName "intervalStart"^^xsd:string | ||
819 | + ] ; | ||
820 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | ||
710 | sp:subject | 821 | sp:subject |
711 | - [ sp:varName "parameterFacility"^^xsd:string | 822 | + [ sp:varName "parameterRef"^^xsd:string |
823 | + ] | ||
824 | + ] [ sp:object | ||
825 | + [ sp:varName "intervalEnd"^^xsd:string | ||
826 | + ] ; | ||
827 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; | ||
828 | + sp:subject | ||
829 | + [ sp:varName "parameterRef"^^xsd:string | ||
712 | ] | 830 | ] |
713 | ] [ sp:object | 831 | ] [ sp:object |
714 | [ sp:varName "intervalStart"^^xsd:string | 832 | [ sp:varName "intervalStart"^^xsd:string |
715 | ] ; | 833 | ] ; |
716 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 834 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
717 | sp:subject | 835 | sp:subject |
718 | - [ sp:varName "parameterFacility"^^xsd:string | 836 | + [ sp:varName "parameterSetFacility"^^xsd:string |
719 | ] | 837 | ] |
720 | ] [ sp:object | 838 | ] [ sp:object |
721 | [ sp:varName "intervalEnd"^^xsd:string | 839 | [ sp:varName "intervalEnd"^^xsd:string |
722 | ] ; | 840 | ] ; |
723 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 841 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
724 | sp:subject | 842 | sp:subject |
725 | - [ sp:varName "parameterFacility"^^xsd:string | ||
726 | - ] | ||
727 | - ] [ sp:object | ||
728 | [ sp:varName "parameterSetFacility"^^xsd:string | 843 | [ sp:varName "parameterSetFacility"^^xsd:string |
844 | + ] | ||
845 | + ]) | ||
729 | ] ; | 846 | ] ; |
730 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 847 | + spin:rule |
848 | + [ rdf:type sp:Construct ; | ||
849 | + rdfs:comment "STEP 80004b Measurement qualifier not specified"^^xsd:string ; | ||
850 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ; | ||
851 | + sp:predicate rdf:type ; | ||
852 | + sp:subject | ||
853 | + [ sp:varName "parameterFacility"^^xsd:string | ||
854 | + ] | ||
855 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#ValidlyMeasuredState> ; | ||
856 | + sp:predicate rdf:type ; | ||
731 | sp:subject | 857 | sp:subject |
732 | [ sp:varName "parameterFacility"^^xsd:string | 858 | [ sp:varName "parameterFacility"^^xsd:string |
733 | ] | 859 | ] |
860 | + ]) ; | ||
861 | + sp:where ([ rdf:type sp:NotExists ; | ||
862 | + sp:elements ([ sp:object | ||
863 | + [ sp:varName "qualifierRef"^^xsd:string | ||
864 | + ] ; | ||
865 | + sp:predicate <http://www.epim.no/schemas/mprml/1#qualifierRef> ; | ||
866 | + sp:subject spin:_this | ||
867 | + ]) | ||
734 | ] [ sp:object | 868 | ] [ sp:object |
735 | [ sp:varName "parameterRef"^^xsd:string | 869 | [ sp:varName "parameterRef"^^xsd:string |
736 | ] ; | 870 | ] ; |
737 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | 871 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
738 | sp:subject spin:_this | 872 | sp:subject spin:_this |
739 | ] [ sp:object | 873 | ] [ sp:object |
740 | - [ sp:varName "intervalStart"^^xsd:string | ||
741 | - ] ; | ||
742 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | ||
743 | - sp:subject | ||
744 | [ sp:varName "parameterRef"^^xsd:string | 874 | [ sp:varName "parameterRef"^^xsd:string |
745 | - ] | ||
746 | - ] [ sp:object | ||
747 | - [ sp:varName "intervalEnd"^^xsd:string | ||
748 | ] ; | 875 | ] ; |
749 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; | 876 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
750 | sp:subject | 877 | sp:subject |
751 | - [ sp:varName "parameterRef"^^xsd:string | 878 | + [ sp:varName "parameterFacility"^^xsd:string |
752 | ] | 879 | ] |
753 | ]) | 880 | ]) |
754 | ] ; | 881 | ] ; |
755 | spin:rule | 882 | spin:rule |
756 | [ rdf:type sp:Construct ; | 883 | [ rdf:type sp:Construct ; |
884 | + rdfs:comment "STEP 80003b Create temporal parts of parameterSet facility corresponding to the start and end without duplicates - moved to a rule on Cs_productVolumeFacility"^^xsd:string ; | ||
885 | + sp:templates () ; | ||
886 | + sp:where () | ||
887 | + ] ; | ||
888 | + spin:rule | ||
889 | + [ rdf:type sp:Construct ; | ||
757 | rdfs:comment "STEP 80001a Regularise start and end times - time specified by parameter element"^^xsd:string ; | 890 | rdfs:comment "STEP 80001a Regularise start and end times - time specified by parameter element"^^xsd:string ; |
758 | sp:templates ([ sp:object | 891 | sp:templates ([ sp:object |
759 | [ sp:varName "dTimStartString"^^xsd:string | 892 | [ sp:varName "dTimStartString"^^xsd:string |
... | @@ -927,123 +1060,127 @@ | ... | @@ -927,123 +1060,127 @@ |
927 | ] ; | 1060 | ] ; |
928 | spin:rule | 1061 | spin:rule |
929 | [ rdf:type sp:Construct ; | 1062 | [ rdf:type sp:Construct ; |
930 | - rdfs:comment "STEP 80003a Create list of necessary temporal parts of parameterSet facility corresponding to the start and end"^^xsd:string ; | 1063 | + rdfs:comment "STEP 80000b The whole production facility has the parameterSet property"^^xsd:string ; |
931 | - sp:templates ([ sp:object | 1064 | + sp:templates ([ sp:object spin:_this ; |
932 | - [ sp:varName "intervalString"^^xsd:string | 1065 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
933 | - ] ; | ||
934 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#necessaryIntervalString> ; | ||
935 | sp:subject | 1066 | sp:subject |
936 | - [ sp:varName "parameterSetFacility"^^xsd:string | 1067 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
937 | ] | 1068 | ] |
938 | ]) ; | 1069 | ]) ; |
939 | sp:where ([ sp:object spin:_this ; | 1070 | sp:where ([ sp:object spin:_this ; |
940 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 1071 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterSetRef> ; |
941 | sp:subject | 1072 | sp:subject |
942 | - [ sp:varName "parameterSetFacility"^^xsd:string | 1073 | + [ sp:varName "facilityRef"^^xsd:string |
943 | ] | 1074 | ] |
944 | ] [ sp:object | 1075 | ] [ sp:object |
945 | - [ sp:varName "classOfParameterSetFacility"^^xsd:string | 1076 | + [ sp:varName "facilityRef"^^xsd:string |
946 | ] ; | 1077 | ] ; |
1078 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
1079 | + sp:subject | ||
1080 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
1081 | + ] | ||
1082 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
947 | sp:predicate rdf:type ; | 1083 | sp:predicate rdf:type ; |
948 | sp:subject | 1084 | sp:subject |
949 | - [ sp:varName "parameterSetFacility"^^xsd:string | 1085 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
950 | ] | 1086 | ] |
951 | ] [ sp:object | 1087 | ] [ sp:object |
952 | - [ sp:varName "parameterRef"^^xsd:string | 1088 | + [ sp:varName "nameRef"^^xsd:string |
953 | ] ; | 1089 | ] ; |
954 | - sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | 1090 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; |
955 | sp:subject spin:_this | 1091 | sp:subject spin:_this |
956 | ] [ sp:object | 1092 | ] [ sp:object |
957 | - [ sp:varName "intervalStart"^^xsd:string | 1093 | + [ sp:varName "nameRef"^^xsd:string |
958 | ] ; | 1094 | ] ; |
959 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | 1095 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ; |
960 | sp:subject | 1096 | sp:subject |
961 | - [ sp:varName "parameterRef"^^xsd:string | 1097 | + [ sp:varName "classOfProductionFacility"^^xsd:string |
962 | ] | 1098 | ] |
963 | - ] [ sp:object | 1099 | + ] [ rdf:type sp:Union ; |
964 | - [ sp:varName "intervalEnd"^^xsd:string | 1100 | + sp:elements (([ sp:object |
1101 | + [ sp:varName "classOfProductionFacility"^^xsd:string | ||
965 | ] ; | 1102 | ] ; |
966 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; | 1103 | + sp:predicate rdf:type ; |
967 | sp:subject | 1104 | sp:subject |
968 | - [ sp:varName "parameterRef"^^xsd:string | 1105 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
969 | ] | 1106 | ] |
970 | - ] [ rdf:type sp:NotExists ; | 1107 | + ]) ([ sp:object |
971 | - sp:elements ([ sp:object | 1108 | + [ sp:varName "nameRef"^^xsd:string |
972 | - [ sp:varName "intervalStart"^^xsd:string | ||
973 | ] ; | 1109 | ] ; |
974 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 1110 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ; |
1111 | + sp:subject <http://www.reportinghub.no/ep/schema/facility#Facility> | ||
1112 | + ])) | ||
1113 | + ]) | ||
1114 | + ] ; | ||
1115 | + spin:rule | ||
1116 | + [ rdf:type sp:Construct ; | ||
1117 | + rdfs:comment "STEP 80003c Assign temporal parts of parameterSet facility to parameter elements"^^xsd:string ; | ||
1118 | + sp:templates ([ sp:object | ||
1119 | + [ sp:varName "parameterRef"^^xsd:string | ||
1120 | + ] ; | ||
1121 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
1122 | + sp:subject | ||
1123 | + [ sp:varName "parameterFacility"^^xsd:string | ||
1124 | + ] | ||
1125 | + ]) ; | ||
1126 | + sp:where ([ sp:object spin:_this ; | ||
1127 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
975 | sp:subject | 1128 | sp:subject |
976 | [ sp:varName "parameterSetFacility"^^xsd:string | 1129 | [ sp:varName "parameterSetFacility"^^xsd:string |
977 | ] | 1130 | ] |
978 | ] [ sp:object | 1131 | ] [ sp:object |
979 | - [ sp:varName "intervalEnd"^^xsd:string | 1132 | + [ sp:varName "classOfParameterSetFacility"^^xsd:string |
980 | ] ; | 1133 | ] ; |
981 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 1134 | + sp:predicate rdf:type ; |
982 | sp:subject | 1135 | sp:subject |
983 | [ sp:varName "parameterSetFacility"^^xsd:string | 1136 | [ sp:varName "parameterSetFacility"^^xsd:string |
984 | ] | 1137 | ] |
985 | - ]) | 1138 | + ] [ sp:object |
986 | - ] [ rdf:type sp:Bind ; | 1139 | + [ sp:varName "classOfParameterSetFacility"^^xsd:string |
987 | - sp:expression | ||
988 | - [ rdf:type fn:concat ; | ||
989 | - sp:arg1 [ sp:varName "intervalStart"^^xsd:string | ||
990 | ] ; | 1140 | ] ; |
991 | - sp:arg2 "$" ; | 1141 | + sp:predicate rdf:type ; |
992 | - sp:arg3 [ sp:varName "intervalEnd"^^xsd:string | 1142 | + sp:subject |
1143 | + [ sp:varName "parameterFacility"^^xsd:string | ||
993 | ] | 1144 | ] |
1145 | + ] [ sp:object | ||
1146 | + [ sp:varName "intervalStart"^^xsd:string | ||
994 | ] ; | 1147 | ] ; |
995 | - sp:variable | 1148 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
996 | - [ sp:varName "intervalString"^^xsd:string | 1149 | + sp:subject |
1150 | + [ sp:varName "parameterFacility"^^xsd:string | ||
997 | ] | 1151 | ] |
998 | - ]) | 1152 | + ] [ sp:object |
999 | - ] ; | 1153 | + [ sp:varName "intervalEnd"^^xsd:string |
1000 | - spin:rule | ||
1001 | - [ rdf:type sp:Construct ; | ||
1002 | - rdfs:comment "STEP 80003b Create temporal parts of parameterSet facility corresponding to the start and end without duplicates - moved to a rule on Cs_productVolumeFacility"^^xsd:string ; | ||
1003 | - sp:templates () ; | ||
1004 | - sp:where () | ||
1005 | ] ; | 1154 | ] ; |
1006 | - spin:rule | 1155 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
1007 | - [ rdf:type sp:Construct ; | ||
1008 | - rdfs:comment "STEP 80004a Measurement qualifier specified"^^xsd:string ; | ||
1009 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ; | ||
1010 | - sp:predicate rdf:type ; | ||
1011 | sp:subject | 1156 | sp:subject |
1012 | [ sp:varName "parameterFacility"^^xsd:string | 1157 | [ sp:varName "parameterFacility"^^xsd:string |
1013 | ] | 1158 | ] |
1014 | ] [ sp:object | 1159 | ] [ sp:object |
1015 | - [ sp:varName "measuredQualityType"^^xsd:string | 1160 | + [ sp:varName "parameterSetFacility"^^xsd:string |
1016 | ] ; | 1161 | ] ; |
1017 | - sp:predicate rdf:type ; | 1162 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
1018 | sp:subject | 1163 | sp:subject |
1019 | [ sp:varName "parameterFacility"^^xsd:string | 1164 | [ sp:varName "parameterFacility"^^xsd:string |
1020 | ] | 1165 | ] |
1021 | - ]) ; | ||
1022 | - sp:where ([ sp:object | ||
1023 | - [ sp:varName "qualifierRef"^^xsd:string | ||
1024 | - ] ; | ||
1025 | - sp:predicate <http://www.epim.no/schemas/mprml/1#qualifierRef> ; | ||
1026 | - sp:subject spin:_this | ||
1027 | ] [ sp:object | 1166 | ] [ sp:object |
1028 | [ sp:varName "parameterRef"^^xsd:string | 1167 | [ sp:varName "parameterRef"^^xsd:string |
1029 | ] ; | 1168 | ] ; |
1030 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | 1169 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
1031 | sp:subject spin:_this | 1170 | sp:subject spin:_this |
1032 | ] [ sp:object | 1171 | ] [ sp:object |
1033 | - [ sp:varName "parameterRef"^^xsd:string | 1172 | + [ sp:varName "intervalStart"^^xsd:string |
1034 | ] ; | 1173 | ] ; |
1035 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 1174 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; |
1036 | sp:subject | 1175 | sp:subject |
1037 | - [ sp:varName "parameterFacility"^^xsd:string | 1176 | + [ sp:varName "parameterRef"^^xsd:string |
1038 | - ] | ||
1039 | - ] [ rdf:type sp:Bind ; | ||
1040 | - sp:expression | ||
1041 | - [ rdf:type ep-mpr-spin-lib:selectMeasuredQualityType ; | ||
1042 | - sp:arg1 [ sp:varName "qualifierRef"^^xsd:string | ||
1043 | ] | 1177 | ] |
1178 | + ] [ sp:object | ||
1179 | + [ sp:varName "intervalEnd"^^xsd:string | ||
1044 | ] ; | 1180 | ] ; |
1045 | - sp:variable | 1181 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; |
1046 | - [ sp:varName "measuredQualityType"^^xsd:string | 1182 | + sp:subject |
1183 | + [ sp:varName "parameterRef"^^xsd:string | ||
1047 | ] | 1184 | ] |
1048 | ]) | 1185 | ]) |
1049 | ] ; | 1186 | ] ; |
... | @@ -1094,5 +1231,5 @@ | ... | @@ -1094,5 +1231,5 @@ |
1094 | 1231 | ||
1095 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeParameterSet-v1.1.1> | 1232 | <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeParameterSet-v1.1.1> |
1096 | rdf:type owl:Ontology ; | 1233 | rdf:type owl:Ontology ; |
1097 | - owl:imports <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://www.reportinghub.no/ep/schema/1.0/erhfacts> ; | 1234 | + owl:imports <http://www.reportinghub.no/ep/schema/1.0/erhfacts> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> ; |
1098 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 1235 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | ... | ... |
-
Please register or login to post a comment