David Price

Merge branch 'master' into mprspinwork

...@@ -519,3 +519,21 @@ ep-well:TemporalPartOfAWellBore ...@@ -519,3 +519,21 @@ ep-well:TemporalPartOfAWellBore
519 519
520 ep-well:WellGroup 520 ep-well:WellGroup
521 rdf:type owl:Class . 521 rdf:type owl:Class .
522 +
523 +ep-prodwell:WellHead-flowingConditions
524 + rdf:type ep-prodwell:WellHeadFlowingConditionsType , owl:Class ;
525 + rdfs:comment "wellhead that is in flowing conditions"^^xsd:string ;
526 + rdfs:label "well head - flowing conditions"^^xsd:string ;
527 + rdfs:subClassOf ep-well:WellHead .
528 +
529 +ep-prodwell:WellHead-nonflowingConditions
530 + rdf:type ep-prodwell:WellHeadFlowingConditionsType , owl:Class ;
531 + rdfs:comment "wellhead that is in nonflowing conditions"^^xsd:string ;
532 + rdfs:label "well head - nonflowing conditions"^^xsd:string ;
533 + rdfs:subClassOf ep-well:WellHead .
534 +
535 +ep-prodwell:WellHeadFlowingConditionsType
536 + rdf:type rdfs:Class ;
537 + rdfs:comment "class that consists of subclasses of wellhead according to whether it is flowing or non-flowing"^^xsd:string ;
538 + rdfs:label "well flowing conditions type"^^xsd:string ;
539 + rdfs:subClassOf owl:Class .
......
...@@ -15,12 +15,12 @@ ...@@ -15,12 +15,12 @@
15 15
16 <http://www.reportinghub.no/ep/schema/1.0/unnamed> 16 <http://www.reportinghub.no/ep/schema/1.0/unnamed>
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#Pressure> 21 <http://www.reportinghub.no/ep/schema/core#Pressure>
22 transhelp:rangeOfPropertyMapsToMPREnumeration 22 transhelp:rangeOfPropertyMapsToMPREnumeration
23 - <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> . 23 + <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> .
24 24
25 <http://www.reportinghub.no/ep/schema/core#Temperature> 25 <http://www.reportinghub.no/ep/schema/core#Temperature>
26 transhelp:rangeOfPropertyMapsToMPREnumeration 26 transhelp:rangeOfPropertyMapsToMPREnumeration
...@@ -28,19 +28,27 @@ ...@@ -28,19 +28,27 @@
28 28
29 <http://www.reportinghub.no/ep/schema/equipment#Casing> 29 <http://www.reportinghub.no/ep/schema/equipment#Casing>
30 transhelp:domainOfPropertyMapsToMPREnumeration 30 transhelp:domainOfPropertyMapsToMPREnumeration
31 - <http://www.epim.no/schemas/mprml/1#FP_casingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_casingpressure> . 31 + <http://www.epim.no/schemas/mprml/1#FP_casingpressure> , <http://www.epim.no/schemas/mprml/1#FP_casingtemperature> .
32 32
33 <http://www.reportinghub.no/ep/schema/equipment#Tubing> 33 <http://www.reportinghub.no/ep/schema/equipment#Tubing>
34 transhelp:domainOfPropertyMapsToMPREnumeration 34 transhelp:domainOfPropertyMapsToMPREnumeration
35 - <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> . 35 + <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> .
36 +
37 +<http://www.reportinghub.no/ep/schema/production-well#WellHead-flowingConditions>
38 + transhelp:flowingStateMapsToMPREnumeration
39 + <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> .
40 +
41 +<http://www.reportinghub.no/ep/schema/production-well#WellHead-nonflowingConditions>
42 + transhelp:flowingStateMapsToMPREnumeration
43 + <http://www.epim.no/schemas/mprml/1#FP_tubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_tubingtemperature> .
36 44
37 <http://www.reportinghub.no/ep/schema/production-well#WellHeadDownStreamChokeValve> 45 <http://www.reportinghub.no/ep/schema/production-well#WellHeadDownStreamChokeValve>
38 transhelp:domainOfPropertyMapsToMPREnumeration 46 transhelp:domainOfPropertyMapsToMPREnumeration
39 - <http://www.epim.no/schemas/mprml/1#FP_wellheadtemperatureDSCT> , <http://www.epim.no/schemas/mprml/1#FP_wellheadpressureDSCP> . 47 + <http://www.epim.no/schemas/mprml/1#FP_wellheadpressureDSCP> , <http://www.epim.no/schemas/mprml/1#FP_wellheadtemperatureDSCT> .
40 48
41 <http://www.reportinghub.no/ep/schema/well#WellBoreBottom> 49 <http://www.reportinghub.no/ep/schema/well#WellBoreBottom>
42 transhelp:domainOfPropertyMapsToMPREnumeration 50 transhelp:domainOfPropertyMapsToMPREnumeration
43 - <http://www.epim.no/schemas/mprml/1#FP_bottomholepressure> , <http://www.epim.no/schemas/mprml/1#FP_bottomholetemperature> . 51 + <http://www.epim.no/schemas/mprml/1#FP_bottomholetemperature> , <http://www.epim.no/schemas/mprml/1#FP_bottomholepressure> .
44 52
45 <http://www.reportinghub.no/ep/schema/well#WellHead> 53 <http://www.reportinghub.no/ep/schema/well#WellHead>
46 transhelp:domainOfPropertyMapsToMPREnumeration 54 transhelp:domainOfPropertyMapsToMPREnumeration
...@@ -48,4 +56,4 @@ ...@@ -48,4 +56,4 @@
48 56
49 rdf:type 57 rdf:type
50 transhelp:propertyMapsToMPREnumeration 58 transhelp:propertyMapsToMPREnumeration
51 - <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_flowingtubingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_wellheadtemperatureDSCT> , <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_flowingtubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_casingpressure> , <http://www.epim.no/schemas/mprml/1#FP_wellheadtemperature> , <http://www.epim.no/schemas/mprml/1#FP_wellheadpressureDSCP> . 59 + <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_flowingtubingtemperature> , <http://www.epim.no/schemas/mprml/1#FP_wellheadtemperatureDSCT> , <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_flowingtubingpressure> , <http://www.epim.no/schemas/mprml/1#FP_casingpressure> , <http://www.epim.no/schemas/mprml/1#FP_wellheadpressureDSCP> , <http://www.epim.no/schemas/mprml/1#FP_wellheadtemperature> .
......
...@@ -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://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://spinrdf.org/spin> ; 18 + owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <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 transhelp:buildRdlURI 21 transhelp:buildRdlURI
...@@ -44,12 +44,17 @@ transhelp:derivedFrom ...@@ -44,12 +44,17 @@ transhelp:derivedFrom
44 rdf:type owl:ObjectProperty . 44 rdf:type owl:ObjectProperty .
45 45
46 transhelp:domainOfPropertyMapsToMPREnumeration 46 transhelp:domainOfPropertyMapsToMPREnumeration
47 - rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ; 47 + rdf:type owl:InverseFunctionalProperty , owl:ObjectProperty ;
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 +
54 +transhelp:flowingStateMapsToMPREnumeration
55 + rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ;
56 + rdfs:label "flowing state maps to MPR enumeration"^^xsd:string ;
57 + rdfs:subPropertyOf transhelp:mapsTo .
53 58
54 transhelp:forComment 59 transhelp:forComment
55 rdf:type owl:ObjectProperty ; 60 rdf:type owl:ObjectProperty ;
...@@ -66,43 +71,43 @@ transhelp:hasEquivalentInRDL ...@@ -66,43 +71,43 @@ transhelp:hasEquivalentInRDL
66 rdfs:label "has equivalent in RDL"^^xsd:string . 71 rdfs:label "has equivalent in RDL"^^xsd:string .
67 72
68 transhelp:interval 73 transhelp:interval
69 - rdf:type owl:DatatypeProperty , owl:FunctionalProperty . 74 + rdf:type owl:FunctionalProperty , owl:DatatypeProperty .
70 75
71 transhelp:intervalEnd 76 transhelp:intervalEnd
72 - rdf:type owl:DatatypeProperty , owl:FunctionalProperty . 77 + rdf:type owl:FunctionalProperty , owl:DatatypeProperty .
73 78
74 transhelp:intervalIdentifier 79 transhelp:intervalIdentifier
75 - rdf:type owl:DatatypeProperty , owl:FunctionalProperty . 80 + rdf:type owl:FunctionalProperty , owl:DatatypeProperty .
76 81
77 transhelp:intervalStart 82 transhelp:intervalStart
78 - rdf:type owl:DatatypeProperty , owl:FunctionalProperty . 83 + rdf:type owl:FunctionalProperty , owl:DatatypeProperty .
79 84
80 transhelp:label 85 transhelp:label
81 - rdf:type owl:DatatypeProperty , owl:FunctionalProperty . 86 + rdf:type owl:FunctionalProperty , owl:DatatypeProperty .
82 87
83 transhelp:mapsTo 88 transhelp:mapsTo
84 rdf:type rdf:Property . 89 rdf:type rdf:Property .
85 90
86 transhelp:materialClassMapsToMPREnumeration 91 transhelp:materialClassMapsToMPREnumeration
87 - rdf:type owl:InverseFunctionalProperty , owl:ObjectProperty ; 92 + rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ;
88 rdfs:label "material class maps to MPR enumeration"^^xsd:string ; 93 rdfs:label "material class maps to MPR enumeration"^^xsd:string ;
89 rdfs:subPropertyOf transhelp:mapsTo . 94 rdfs:subPropertyOf transhelp:mapsTo .
90 95
91 transhelp:nominalInstant 96 transhelp:nominalInstant
92 - rdf:type owl:DatatypeProperty , owl:FunctionalProperty . 97 + rdf:type owl:FunctionalProperty , owl:DatatypeProperty .
93 98
94 transhelp:propertyMapsToMPREnumeration 99 transhelp:propertyMapsToMPREnumeration
95 - rdf:type owl:InverseFunctionalProperty , owl:ObjectProperty ; 100 + rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ;
96 rdfs:label "property maps to MPR enumeration"^^xsd:string ; 101 rdfs:label "property maps to MPR enumeration"^^xsd:string ;
97 rdfs:subPropertyOf transhelp:mapsTo . 102 rdfs:subPropertyOf transhelp:mapsTo .
98 103
99 transhelp:quantitySpaceMapsToClassOfScale 104 transhelp:quantitySpaceMapsToClassOfScale
100 - rdf:type owl:FunctionalProperty , owl:InverseFunctionalProperty , owl:ObjectProperty ; 105 + rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty , owl:FunctionalProperty ;
101 rdfs:label "quantity space maps to class of scale"^^xsd:string ; 106 rdfs:label "quantity space maps to class of scale"^^xsd:string ;
102 rdfs:subPropertyOf transhelp:mapsTo . 107 rdfs:subPropertyOf transhelp:mapsTo .
103 108
104 transhelp:rangeOfPropertyMapsToMPREnumeration 109 transhelp:rangeOfPropertyMapsToMPREnumeration
105 - rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ; 110 + rdf:type owl:InverseFunctionalProperty , owl:ObjectProperty ;
106 rdfs:label "range of property maps to MPR enumeration"^^xsd:string ; 111 rdfs:label "range of property maps to MPR enumeration"^^xsd:string ;
107 rdfs:subPropertyOf transhelp:mapsTo . 112 rdfs:subPropertyOf transhelp:mapsTo .
108 113
......
...@@ -19,26 +19,16 @@ ...@@ -19,26 +19,16 @@
19 <http://www.epim.no/schemas/mprml/1#Cs_productVolumeParameterSet> 19 <http://www.epim.no/schemas/mprml/1#Cs_productVolumeParameterSet>
20 spin:rule 20 spin:rule
21 [ rdf:type sp:Construct ; 21 [ rdf:type sp:Construct ;
22 - rdfs:comment "STEP 80002b Measurement qualifier not specified"^^xsd:string ; 22 + rdfs:comment "STEP 80004 Set flowing or not-flowing state"^^xsd:string ;
23 - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ; 23 + sp:templates ([ sp:object
24 - sp:predicate rdf:type ; 24 + [ sp:varName "flowingStateType"^^xsd:string
25 - sp:subject 25 + ] ;
26 - [ sp:varName "temporalPart"^^xsd:string
27 - ]
28 - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#ValidlyMeasuredState> ;
29 sp:predicate rdf:type ; 26 sp:predicate rdf:type ;
30 sp:subject 27 sp:subject
31 - [ sp:varName "temporalPart"^^xsd:string 28 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
32 ] 29 ]
33 ]) ; 30 ]) ;
34 - sp:where ([ rdf:type sp:NotExists ; 31 + sp:where ([ sp:object
35 - sp:elements ([ sp:object
36 - [ sp:varName "qualifierRef"^^xsd:string
37 - ] ;
38 - sp:predicate <http://www.epim.no/schemas/mprml/1#qualifierRef> ;
39 - sp:subject spin:_this
40 - ])
41 - ] [ sp:object
42 [ sp:varName "parameterRef"^^xsd:string 32 [ sp:varName "parameterRef"^^xsd:string
43 ] ; 33 ] ;
44 sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; 34 sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ;
...@@ -48,7 +38,26 @@ ...@@ -48,7 +38,26 @@
48 ] ; 38 ] ;
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 "temporalPart"^^xsd:string 41 + [ sp:varName "temporalPartOfASpatialPart"^^xsd:string
42 + ]
43 + ] [ sp:object
44 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
45 + ] ;
46 + sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
47 + sp:subject
48 + [ sp:varName "temporalPartOfASpatialPart"^^xsd:string
49 + ]
50 + ] [ sp:object
51 + [ sp:varName "nameRef"^^xsd:string
52 + ] ;
53 + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
54 + sp:subject spin:_this
55 + ] [ sp:object
56 + [ sp:varName "nameRef"^^xsd:string
57 + ] ;
58 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#flowingStateMapsToMPREnumeration> ;
59 + sp:subject
60 + [ sp:varName "flowingStateType"^^xsd:string
52 ] 61 ]
53 ]) 62 ])
54 ] ; 63 ] ;
...@@ -98,44 +107,57 @@ ...@@ -98,44 +107,57 @@
98 ] ; 107 ] ;
99 spin:rule 108 spin:rule
100 [ rdf:type sp:Construct ; 109 [ rdf:type sp:Construct ;
101 - rdfs:comment "STEP 80001b Set the times for the temporal part corresponding to the parameter period"^^xsd:string ; 110 + rdfs:comment "STEP 80001a Create temporal parts corresponding to the parameter period"^^xsd:string ;
102 - sp:templates ([ sp:object 111 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
103 - [ sp:varName "dTim"^^xsd:string 112 + sp:predicate rdf:type ;
113 + sp:subject _:b1
114 + ] [ sp:object
115 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
104 ] ; 116 ] ;
105 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; 117 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
106 - sp:subject 118 + sp:subject _:b1
107 - [ sp:varName "temporalPart"^^xsd:string
108 - ]
109 ] [ sp:object 119 ] [ sp:object
110 - [ sp:varName "dTimStart"^^xsd:string 120 + [ sp:varName "spatialPart"^^xsd:string
111 ] ; 121 ] ;
112 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 122 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
113 - sp:subject 123 + sp:subject _:b2
114 - [ sp:varName "temporalPart"^^xsd:string
115 - ]
116 ] [ sp:object 124 ] [ sp:object
117 - [ sp:varName "dateStart"^^xsd:string 125 + [ sp:varName "classOfSpatialPart"^^xsd:string
118 ] ; 126 ] ;
119 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; 127 + sp:predicate rdf:type ;
120 - sp:subject 128 + sp:subject _:b2
121 - [ sp:varName "temporalPart"^^xsd:string 129 + ] [ sp:object _:b1 ;
122 - ] 130 + sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
131 + sp:subject _:b2
123 ] [ sp:object 132 ] [ sp:object
124 - [ sp:varName "dTimEnd"^^xsd:string 133 + [ sp:varName "parameterRef"^^xsd:string
125 ] ; 134 ] ;
126 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 135 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
136 + sp:subject _:b2
137 + ]) ;
138 + sp:where ([ sp:object spin:_this ;
139 + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterSetRef> ;
127 sp:subject 140 sp:subject
128 - [ sp:varName "temporalPart"^^xsd:string 141 + [ sp:varName "facilityRef"^^xsd:string
129 ] 142 ]
130 ] [ sp:object 143 ] [ sp:object
131 - [ sp:varName "dateEnd"^^xsd:string 144 + [ sp:varName "facilityRef"^^xsd:string
132 ] ; 145 ] ;
133 - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; 146 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
134 sp:subject 147 sp:subject
135 - [ sp:varName "temporalPart"^^xsd:string 148 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
136 ] 149 ]
137 - ]) ; 150 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
138 - sp:where ([ sp:object 151 + sp:predicate rdf:type ;
152 + sp:subject
153 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
154 + ]
155 + ] [ sp:object spin:_this ;
156 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
157 + sp:subject
158 + [ sp:varName "spatialPart"^^xsd:string
159 + ]
160 + ] [ sp:object
139 [ sp:varName "nameRef"^^xsd:string 161 [ sp:varName "nameRef"^^xsd:string
140 ] ; 162 ] ;
141 sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; 163 sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ;
...@@ -152,57 +174,44 @@ ...@@ -152,57 +174,44 @@
152 ] ; 174 ] ;
153 sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; 175 sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ;
154 sp:subject spin:_this 176 sp:subject spin:_this
155 - ] [ sp:object 177 + ] [ rdf:type sp:Exists ;
156 - [ sp:varName "parameterRef"^^xsd:string 178 + sp:elements ([ rdf:type sp:Union ;
157 - ] ; 179 + sp:elements (([ sp:object
158 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
159 - sp:subject
160 - [ sp:varName "temporalPart"^^xsd:string
161 - ]
162 - ] [ rdf:type sp:Optional ;
163 - sp:elements ([ sp:object
164 [ sp:varName "dTim"^^xsd:string 180 [ sp:varName "dTim"^^xsd:string
165 ] ; 181 ] ;
166 sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ; 182 sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ;
167 sp:subject 183 sp:subject
168 [ sp:varName "parameterRef"^^xsd:string 184 [ sp:varName "parameterRef"^^xsd:string
169 ] 185 ]
170 - ]) 186 + ]) ([ sp:object
171 - ] [ rdf:type sp:Optional ;
172 - sp:elements ([ sp:object
173 [ sp:varName "dTimStart"^^xsd:string 187 [ sp:varName "dTimStart"^^xsd:string
174 ] ; 188 ] ;
175 sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; 189 sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ;
176 sp:subject 190 sp:subject
177 [ sp:varName "parameterRef"^^xsd:string 191 [ sp:varName "parameterRef"^^xsd:string
178 ] 192 ]
179 - ]) 193 + ]) ([ sp:object
180 - ] [ rdf:type sp:Optional ;
181 - sp:elements ([ sp:object
182 [ sp:varName "dTimEnd"^^xsd:string 194 [ sp:varName "dTimEnd"^^xsd:string
183 ] ; 195 ] ;
184 sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; 196 sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ;
185 sp:subject 197 sp:subject
186 [ sp:varName "parameterRef"^^xsd:string 198 [ sp:varName "parameterRef"^^xsd:string
187 ] 199 ]
188 - ]) 200 + ]) ([ sp:object
189 - ] [ rdf:type sp:Optional ;
190 - sp:elements ([ sp:object
191 [ sp:varName "dateStart"^^xsd:string 201 [ sp:varName "dateStart"^^xsd:string
192 ] ; 202 ] ;
193 sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; 203 sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
194 sp:subject 204 sp:subject
195 [ sp:varName "parameterRef"^^xsd:string 205 [ sp:varName "parameterRef"^^xsd:string
196 ] 206 ]
197 - ]) 207 + ]) ([ sp:object
198 - ] [ rdf:type sp:Optional ;
199 - sp:elements ([ sp:object
200 [ sp:varName "dateEnd"^^xsd:string 208 [ sp:varName "dateEnd"^^xsd:string
201 ] ; 209 ] ;
202 sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; 210 sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
203 sp:subject 211 sp:subject
204 [ sp:varName "parameterRef"^^xsd:string 212 [ sp:varName "parameterRef"^^xsd:string
205 ] 213 ]
214 + ]))
206 ]) 215 ])
207 ]) 216 ])
208 ] ; 217 ] ;
...@@ -271,7 +280,7 @@ ...@@ -271,7 +280,7 @@
271 spin:rule 280 spin:rule
272 [ rdf:type sp:Construct ; 281 [ rdf:type sp:Construct ;
273 rdfs:comment "STEP 80003 Assign parameter value"^^xsd:string ; 282 rdfs:comment "STEP 80003 Assign parameter value"^^xsd:string ;
274 - sp:templates ([ sp:object _:b1 ; 283 + sp:templates ([ sp:object _:b3 ;
275 sp:predicate 284 sp:predicate
276 [ sp:varName "propertyType"^^xsd:string 285 [ sp:varName "propertyType"^^xsd:string
277 ] ; 286 ] ;
...@@ -282,14 +291,14 @@ ...@@ -282,14 +291,14 @@
282 [ sp:varName "quantityType"^^xsd:string 291 [ sp:varName "quantityType"^^xsd:string
283 ] ; 292 ] ;
284 sp:predicate rdf:type ; 293 sp:predicate rdf:type ;
285 - sp:subject _:b1 294 + sp:subject _:b3
286 ] [ sp:object 295 ] [ sp:object
287 [ sp:varName "measureValue"^^xsd:string 296 [ sp:varName "measureValue"^^xsd:string
288 ] ; 297 ] ;
289 sp:predicate 298 sp:predicate
290 [ sp:varName "measureScale"^^xsd:string 299 [ sp:varName "measureScale"^^xsd:string
291 ] ; 300 ] ;
292 - sp:subject _:b1 301 + sp:subject _:b3
293 ]) ; 302 ]) ;
294 sp:where ([ sp:object 303 sp:where ([ sp:object
295 [ sp:varName "nameRef"^^xsd:string 304 [ sp:varName "nameRef"^^xsd:string
...@@ -358,27 +367,37 @@ ...@@ -358,27 +367,37 @@
358 ] ; 367 ] ;
359 spin:rule 368 spin:rule
360 [ rdf:type sp:Construct ; 369 [ rdf:type sp:Construct ;
361 - rdfs:comment "STEP 80001a Create temporal part corresponding to the parameter period"^^xsd:string ; 370 + rdfs:comment "STEP 80000 Create the object that has the parameterSet property - either for all of its life or for a temporal part"^^xsd:string ;
362 sp:templates ([ sp:object 371 sp:templates ([ sp:object
363 - [ sp:varName "spatialPart"^^xsd:string 372 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
364 ] ; 373 ] ;
365 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 374 + sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
366 - sp:subject _:b2 375 + sp:subject _:b4
367 ] [ sp:object 376 ] [ sp:object
368 [ sp:varName "classOfSpatialPart"^^xsd:string 377 [ sp:varName "classOfSpatialPart"^^xsd:string
369 ] ; 378 ] ;
370 sp:predicate rdf:type ; 379 sp:predicate rdf:type ;
371 - sp:subject _:b2 380 + sp:subject _:b4
372 - ] [ sp:object 381 + ] [ sp:object spin:_this ;
373 - [ sp:varName "parameterRef"^^xsd:string
374 - ] ;
375 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 382 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
376 - sp:subject _:b2 383 + sp:subject _:b4
377 ]) ; 384 ]) ;
378 sp:where ([ sp:object spin:_this ; 385 sp:where ([ sp:object spin:_this ;
386 + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterSetRef> ;
387 + sp:subject
388 + [ sp:varName "facilityRef"^^xsd:string
389 + ]
390 + ] [ sp:object
391 + [ sp:varName "facilityRef"^^xsd:string
392 + ] ;
379 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; 393 sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
380 sp:subject 394 sp:subject
381 - [ sp:varName "spatialPart"^^xsd:string 395 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
396 + ]
397 + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
398 + sp:predicate rdf:type ;
399 + sp:subject
400 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
382 ] 401 ]
383 ] [ sp:object 402 ] [ sp:object
384 [ sp:varName "nameRef"^^xsd:string 403 [ sp:varName "nameRef"^^xsd:string
...@@ -392,97 +411,180 @@ ...@@ -392,97 +411,180 @@
392 sp:subject 411 sp:subject
393 [ sp:varName "classOfSpatialPart"^^xsd:string 412 [ sp:varName "classOfSpatialPart"^^xsd:string
394 ] 413 ]
414 + ])
415 + ] ;
416 + spin:rule
417 + [ rdf:type sp:Construct ;
418 + rdfs:comment "STEP 80001b Set the times for the temporal part corresponding to the parameter period"^^xsd:string ;
419 + sp:templates ([ sp:object
420 + [ sp:varName "dTim"^^xsd:string
421 + ] ;
422 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
423 + sp:subject
424 + [ sp:varName "temporalPartOfASpatialPart"^^xsd:string
425 + ]
426 + ] [ sp:object
427 + [ sp:varName "dTimStart"^^xsd:string
428 + ] ;
429 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
430 + sp:subject
431 + [ sp:varName "temporalPartOfASpatialPart"^^xsd:string
432 + ]
433 + ] [ sp:object
434 + [ sp:varName "dateStart"^^xsd:string
435 + ] ;
436 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
437 + sp:subject
438 + [ sp:varName "temporalPartOfASpatialPart"^^xsd:string
439 + ]
440 + ] [ sp:object
441 + [ sp:varName "dTimEnd"^^xsd:string
442 + ] ;
443 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
444 + sp:subject
445 + [ sp:varName "temporalPartOfASpatialPart"^^xsd:string
446 + ]
447 + ] [ sp:object
448 + [ sp:varName "dateEnd"^^xsd:string
449 + ] ;
450 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
451 + sp:subject
452 + [ sp:varName "temporalPartOfASpatialPart"^^xsd:string
453 + ]
454 + ] [ sp:object
455 + [ sp:varName "dTim"^^xsd:string
456 + ] ;
457 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ;
458 + sp:subject
459 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
460 + ]
461 + ] [ sp:object
462 + [ sp:varName "dTimStart"^^xsd:string
463 + ] ;
464 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
465 + sp:subject
466 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
467 + ]
468 + ] [ sp:object
469 + [ sp:varName "dateStart"^^xsd:string
470 + ] ;
471 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ;
472 + sp:subject
473 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
474 + ]
395 ] [ sp:object 475 ] [ sp:object
476 + [ sp:varName "dTimEnd"^^xsd:string
477 + ] ;
478 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
479 + sp:subject
480 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
481 + ]
482 + ] [ sp:object
483 + [ sp:varName "dateEnd"^^xsd:string
484 + ] ;
485 + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ;
486 + sp:subject
487 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
488 + ]
489 + ]) ;
490 + sp:where ([ sp:object
396 [ sp:varName "parameterRef"^^xsd:string 491 [ sp:varName "parameterRef"^^xsd:string
397 ] ; 492 ] ;
398 sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; 493 sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ;
399 sp:subject spin:_this 494 sp:subject spin:_this
400 - ] [ rdf:type sp:Exists ; 495 + ] [ sp:object
401 - sp:elements ([ rdf:type sp:Union ; 496 + [ sp:varName "parameterRef"^^xsd:string
402 - sp:elements (([ sp:object 497 + ] ;
498 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
499 + sp:subject
500 + [ sp:varName "temporalPartOfASpatialPart"^^xsd:string
501 + ]
502 + ] [ sp:object
503 + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
504 + ] ;
505 + sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
506 + sp:subject
507 + [ sp:varName "temporalPartOfASpatialPart"^^xsd:string
508 + ]
509 + ] [ rdf:type sp:Optional ;
510 + sp:elements ([ sp:object
403 [ sp:varName "dTim"^^xsd:string 511 [ sp:varName "dTim"^^xsd:string
404 ] ; 512 ] ;
405 sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ; 513 sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ;
406 sp:subject 514 sp:subject
407 [ sp:varName "parameterRef"^^xsd:string 515 [ sp:varName "parameterRef"^^xsd:string
408 ] 516 ]
409 - ]) ([ sp:object 517 + ])
518 + ] [ rdf:type sp:Optional ;
519 + sp:elements ([ sp:object
410 [ sp:varName "dTimStart"^^xsd:string 520 [ sp:varName "dTimStart"^^xsd:string
411 ] ; 521 ] ;
412 sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; 522 sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ;
413 sp:subject 523 sp:subject
414 [ sp:varName "parameterRef"^^xsd:string 524 [ sp:varName "parameterRef"^^xsd:string
415 ] 525 ]
416 - ]) ([ sp:object 526 + ])
527 + ] [ rdf:type sp:Optional ;
528 + sp:elements ([ sp:object
417 [ sp:varName "dTimEnd"^^xsd:string 529 [ sp:varName "dTimEnd"^^xsd:string
418 ] ; 530 ] ;
419 sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; 531 sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ;
420 sp:subject 532 sp:subject
421 [ sp:varName "parameterRef"^^xsd:string 533 [ sp:varName "parameterRef"^^xsd:string
422 ] 534 ]
423 - ]) ([ sp:object 535 + ])
536 + ] [ rdf:type sp:Optional ;
537 + sp:elements ([ sp:object
424 [ sp:varName "dateStart"^^xsd:string 538 [ sp:varName "dateStart"^^xsd:string
425 ] ; 539 ] ;
426 sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; 540 sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ;
427 sp:subject 541 sp:subject
428 [ sp:varName "parameterRef"^^xsd:string 542 [ sp:varName "parameterRef"^^xsd:string
429 ] 543 ]
430 - ]) ([ sp:object 544 + ])
545 + ] [ rdf:type sp:Optional ;
546 + sp:elements ([ sp:object
431 [ sp:varName "dateEnd"^^xsd:string 547 [ sp:varName "dateEnd"^^xsd:string
432 ] ; 548 ] ;
433 sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; 549 sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ;
434 sp:subject 550 sp:subject
435 [ sp:varName "parameterRef"^^xsd:string 551 [ sp:varName "parameterRef"^^xsd:string
436 ] 552 ]
437 - ]))
438 ]) 553 ])
439 ]) 554 ])
440 ] ; 555 ] ;
441 spin:rule 556 spin:rule
442 [ rdf:type sp:Construct ; 557 [ rdf:type sp:Construct ;
443 - rdfs:comment "STEP 80000 Create the object that has the parameterSet property - either for all of its life or for a temporal part"^^xsd:string ; 558 + rdfs:comment "STEP 80002b Measurement qualifier not specified"^^xsd:string ;
444 - sp:templates ([ sp:object 559 + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ;
445 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
446 - ] ;
447 - sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
448 - sp:subject _:b3
449 - ] [ sp:object
450 - [ sp:varName "classOfSpatialPart"^^xsd:string
451 - ] ;
452 sp:predicate rdf:type ; 560 sp:predicate rdf:type ;
453 - sp:subject _:b3
454 - ] [ sp:object spin:_this ;
455 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
456 - sp:subject _:b3
457 - ]) ;
458 - sp:where ([ sp:object spin:_this ;
459 - sp:predicate <http://www.epim.no/schemas/mprml/1#parameterSetRef> ;
460 sp:subject 561 sp:subject
461 - [ sp:varName "facilityRef"^^xsd:string 562 + [ sp:varName "temporalPart"^^xsd:string
462 - ]
463 - ] [ sp:object
464 - [ sp:varName "facilityRef"^^xsd:string
465 - ] ;
466 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
467 - sp:subject
468 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string
469 ] 563 ]
470 - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; 564 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#ValidlyMeasuredState> ;
471 sp:predicate rdf:type ; 565 sp:predicate rdf:type ;
472 sp:subject 566 sp:subject
473 - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string 567 + [ sp:varName "temporalPart"^^xsd:string
474 ] 568 ]
569 + ]) ;
570 + sp:where ([ rdf:type sp:NotExists ;
571 + sp:elements ([ sp:object
572 + [ sp:varName "qualifierRef"^^xsd:string
573 + ] ;
574 + sp:predicate <http://www.epim.no/schemas/mprml/1#qualifierRef> ;
575 + sp:subject spin:_this
576 + ])
475 ] [ sp:object 577 ] [ sp:object
476 - [ sp:varName "nameRef"^^xsd:string 578 + [ sp:varName "parameterRef"^^xsd:string
477 ] ; 579 ] ;
478 - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; 580 + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ;
479 sp:subject spin:_this 581 sp:subject spin:_this
480 ] [ sp:object 582 ] [ sp:object
481 - [ sp:varName "nameRef"^^xsd:string 583 + [ sp:varName "parameterRef"^^xsd:string
482 ] ; 584 ] ;
483 - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ; 585 + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ;
484 sp:subject 586 sp:subject
485 - [ sp:varName "classOfSpatialPart"^^xsd:string 587 + [ sp:varName "temporalPart"^^xsd:string
486 ] 588 ]
487 ]) 589 ])
488 ] . 590 ] .
......