Showing
3 changed files
with
761 additions
and
244 deletions
| ... | @@ -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.reportinghub.no/ep/schema/1.0/activity> , <http://www.epim.no/schemas/mprml/1> ; | 18 | + owl:imports <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <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:FunctionalProperty , owl:DatatypeProperty . | 52 | + rdf:type owl:DatatypeProperty , owl:FunctionalProperty . |
| 53 | 53 | ||
| 54 | transhelp:flowingStateMapsToMPREnumeration | 54 | transhelp:flowingStateMapsToMPREnumeration |
| 55 | - rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ; | 55 | + rdf:type owl:InverseFunctionalProperty , owl:ObjectProperty ; |
| 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 | ||
| ... | @@ -71,43 +71,46 @@ transhelp:hasEquivalentInRDL | ... | @@ -71,43 +71,46 @@ transhelp:hasEquivalentInRDL |
| 71 | rdfs:label "has equivalent in RDL"^^xsd:string . | 71 | rdfs:label "has equivalent in RDL"^^xsd:string . |
| 72 | 72 | ||
| 73 | transhelp:interval | 73 | transhelp:interval |
| 74 | - rdf:type owl:FunctionalProperty , owl:DatatypeProperty . | 74 | + rdf:type owl:DatatypeProperty , owl:FunctionalProperty . |
| 75 | 75 | ||
| 76 | transhelp:intervalEnd | 76 | transhelp:intervalEnd |
| 77 | - rdf:type owl:FunctionalProperty , owl:DatatypeProperty . | 77 | + rdf:type owl:DatatypeProperty , owl:FunctionalProperty . |
| 78 | 78 | ||
| 79 | transhelp:intervalIdentifier | 79 | transhelp:intervalIdentifier |
| 80 | - rdf:type owl:FunctionalProperty , owl:DatatypeProperty . | 80 | + rdf:type owl:DatatypeProperty , owl:FunctionalProperty . |
| 81 | 81 | ||
| 82 | transhelp:intervalStart | 82 | transhelp:intervalStart |
| 83 | - rdf:type owl:FunctionalProperty , owl:DatatypeProperty . | 83 | + rdf:type owl:DatatypeProperty , owl:FunctionalProperty . |
| 84 | 84 | ||
| 85 | transhelp:label | 85 | transhelp:label |
| 86 | - rdf:type owl:FunctionalProperty , owl:DatatypeProperty . | 86 | + rdf:type owl:DatatypeProperty , owl:FunctionalProperty . |
| 87 | 87 | ||
| 88 | transhelp:mapsTo | 88 | transhelp:mapsTo |
| 89 | rdf:type rdf:Property . | 89 | rdf:type rdf:Property . |
| 90 | 90 | ||
| 91 | transhelp:materialClassMapsToMPREnumeration | 91 | transhelp:materialClassMapsToMPREnumeration |
| 92 | - rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ; | 92 | + rdf:type owl:InverseFunctionalProperty , owl:ObjectProperty ; |
| 93 | rdfs:label "material class maps to MPR enumeration"^^xsd:string ; | 93 | rdfs:label "material class maps to MPR enumeration"^^xsd:string ; |
| 94 | rdfs:subPropertyOf transhelp:mapsTo . | 94 | rdfs:subPropertyOf transhelp:mapsTo . |
| 95 | 95 | ||
| 96 | +transhelp:necessaryIntervalString | ||
| 97 | + rdf:type owl:DatatypeProperty . | ||
| 98 | + | ||
| 96 | transhelp:nominalInstant | 99 | transhelp:nominalInstant |
| 97 | - rdf:type owl:FunctionalProperty , owl:DatatypeProperty . | 100 | + rdf:type owl:DatatypeProperty , owl:FunctionalProperty . |
| 98 | 101 | ||
| 99 | transhelp:propertyMapsToMPREnumeration | 102 | transhelp:propertyMapsToMPREnumeration |
| 100 | - rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ; | 103 | + rdf:type owl:InverseFunctionalProperty , owl:ObjectProperty ; |
| 101 | rdfs:label "property maps to MPR enumeration"^^xsd:string ; | 104 | rdfs:label "property maps to MPR enumeration"^^xsd:string ; |
| 102 | rdfs:subPropertyOf transhelp:mapsTo . | 105 | rdfs:subPropertyOf transhelp:mapsTo . |
| 103 | 106 | ||
| 104 | transhelp:quantitySpaceMapsToClassOfScale | 107 | transhelp:quantitySpaceMapsToClassOfScale |
| 105 | - rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty , owl:FunctionalProperty ; | 108 | + rdf:type owl:FunctionalProperty , owl:InverseFunctionalProperty , owl:ObjectProperty ; |
| 106 | rdfs:label "quantity space maps to class of scale"^^xsd:string ; | 109 | rdfs:label "quantity space maps to class of scale"^^xsd:string ; |
| 107 | rdfs:subPropertyOf transhelp:mapsTo . | 110 | rdfs:subPropertyOf transhelp:mapsTo . |
| 108 | 111 | ||
| 109 | transhelp:rangeOfPropertyMapsToMPREnumeration | 112 | transhelp:rangeOfPropertyMapsToMPREnumeration |
| 110 | - rdf:type owl:InverseFunctionalProperty , owl:ObjectProperty ; | 113 | + rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ; |
| 111 | rdfs:label "range of property maps to MPR enumeration"^^xsd:string ; | 114 | rdfs:label "range of property maps to MPR enumeration"^^xsd:string ; |
| 112 | rdfs:subPropertyOf transhelp:mapsTo . | 115 | rdfs:subPropertyOf transhelp:mapsTo . |
| 113 | 116 | ... | ... |
This diff could not be displayed because it is too large.
| ... | @@ -6,134 +6,582 @@ | ... | @@ -6,134 +6,582 @@ |
| 6 | # imports: http://www.reportinghub.no/ep/transform/transform-helper-schema | 6 | # imports: http://www.reportinghub.no/ep/transform/transform-helper-schema |
| 7 | 7 | ||
| 8 | @prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeParameterSet-v1.1.1#> . | 8 | @prefix : <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolumeParameterSet-v1.1.1#> . |
| 9 | +@prefix afn: <http://jena.hpl.hp.com/ARQ/function#> . | ||
| 10 | +@prefix arg: <http://spinrdf.org/arg#> . | ||
| 9 | @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 fn: <http://www.w3.org/2005/xpath-functions#> . | ||
| 10 | @prefix owl: <http://www.w3.org/2002/07/owl#> . | 13 | @prefix owl: <http://www.w3.org/2002/07/owl#> . |
| 11 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | 14 | @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . |
| 12 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | 15 | @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . |
| 16 | +@prefix smf: <http://topbraid.org/sparqlmotionfunctions#> . | ||
| 13 | @prefix sp: <http://spinrdf.org/sp#> . | 17 | @prefix sp: <http://spinrdf.org/sp#> . |
| 14 | @prefix spin: <http://spinrdf.org/spin#> . | 18 | @prefix spin: <http://spinrdf.org/spin#> . |
| 15 | @prefix spl: <http://spinrdf.org/spl#> . | 19 | @prefix spl: <http://spinrdf.org/spl#> . |
| 16 | @prefix unnamed: <http://www.reportinghub.no/ep/schema/1.0/unnamed#> . | 20 | @prefix unnamed: <http://www.reportinghub.no/ep/schema/1.0/unnamed#> . |
| 17 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | 21 | @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . |
| 18 | 22 | ||
| 19 | -<http://www.epim.no/schemas/mprml/1#Cs_productVolumeParameterSet> | 23 | +<http://www.epim.no/schemas/mprml/1#Cs_productVolumeFacility> |
| 20 | spin:rule | 24 | spin:rule |
| 21 | [ rdf:type sp:Construct ; | 25 | [ rdf:type sp:Construct ; |
| 22 | - rdfs:comment "STEP 80004 Set flowing or not-flowing state"^^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 spin:_this ; | ||
| 28 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 29 | + sp:subject | ||
| 30 | + [ sp:varName "classOfSpatialPart"^^xsd:string | ||
| 31 | + ] | ||
| 32 | + ]) ; | ||
| 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 ; | ||
| 39 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 40 | + sp:subject | ||
| 41 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 42 | + ] | ||
| 43 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
| 44 | + sp:predicate rdf:type ; | ||
| 45 | + sp:subject | ||
| 46 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 47 | + ] | ||
| 48 | + ] [ sp:object | ||
| 49 | + [ sp:varName "nameRef"^^xsd:string | ||
| 50 | + ] ; | ||
| 51 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | ||
| 52 | + sp:subject | ||
| 53 | + [ sp:varName "parameterSetRef"^^xsd:string | ||
| 54 | + ] | ||
| 55 | + ] [ sp:object | ||
| 56 | + [ sp:varName "nameRef"^^xsd:string | ||
| 57 | + ] ; | ||
| 58 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ; | ||
| 59 | + sp:subject | ||
| 60 | + [ sp:varName "classOfSpatialPart"^^xsd:string | ||
| 61 | + ] | ||
| 62 | + ] [ rdf:type sp:NotExists ; | ||
| 63 | + sp:elements ([ sp:object | ||
| 64 | + [ sp:varName "classOfSpatialPart"^^xsd:string | ||
| 65 | + ] ; | ||
| 66 | + sp:predicate rdf:type ; | ||
| 67 | + sp:subject | ||
| 68 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 69 | + ] | ||
| 70 | + ]) | ||
| 71 | + ]) | ||
| 72 | + ] ; | ||
| 73 | + spin:rule | ||
| 74 | + [ rdf:type sp:Construct ; | ||
| 75 | + rdfs:comment "STEP 80000b Create the spatial parts for the parameter set properties."^^xsd:string ; | ||
| 23 | sp:templates ([ sp:object | 76 | sp:templates ([ sp:object |
| 24 | - [ sp:varName "flowingStateType"^^xsd:string | 77 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 25 | ] ; | 78 | ] ; |
| 79 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; | ||
| 80 | + sp:subject _:b1 | ||
| 81 | + ] [ sp:object | ||
| 82 | + [ sp:varName "classOfSpatialPart"^^xsd:string | ||
| 83 | + ] ; | ||
| 84 | + sp:predicate rdf:type ; | ||
| 85 | + sp:subject _:b1 | ||
| 86 | + ] [ sp:object | ||
| 87 | + [ sp:varName "startedAt"^^xsd:string | ||
| 88 | + ] ; | ||
| 89 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
| 90 | + sp:subject _:b1 | ||
| 91 | + ] [ sp:object | ||
| 92 | + [ sp:varName "finishedAt"^^xsd:string | ||
| 93 | + ] ; | ||
| 94 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 95 | + sp:subject _:b1 | ||
| 96 | + ]) ; | ||
| 97 | + sp:where ([ sp:object spin:_this ; | ||
| 98 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 99 | + sp:subject | ||
| 100 | + [ sp:varName "classOfSpatialPart"^^xsd:string | ||
| 101 | + ] | ||
| 102 | + ] [ sp:object owl:Class ; | ||
| 103 | + sp:predicate rdf:type ; | ||
| 104 | + sp:subject | ||
| 105 | + [ sp:varName "classOfSpatialPart"^^xsd:string | ||
| 106 | + ] | ||
| 107 | + ] [ sp:object spin:_this ; | ||
| 108 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 109 | + sp:subject | ||
| 110 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 111 | + ] | ||
| 112 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
| 26 | sp:predicate rdf:type ; | 113 | sp:predicate rdf:type ; |
| 27 | sp:subject | 114 | sp:subject |
| 28 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 115 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 29 | ] | 116 | ] |
| 117 | + ] [ rdf:type sp:Optional ; | ||
| 118 | + sp:elements ([ sp:object | ||
| 119 | + [ sp:varName "startedAt"^^xsd:string | ||
| 120 | + ] ; | ||
| 121 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
| 122 | + sp:subject | ||
| 123 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 124 | + ] | ||
| 125 | + ]) | ||
| 126 | + ] [ rdf:type sp:Optional ; | ||
| 127 | + sp:elements ([ sp:object | ||
| 128 | + [ sp:varName "finishedAt"^^xsd:string | ||
| 129 | + ] ; | ||
| 130 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 131 | + sp:subject | ||
| 132 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 133 | + ] | ||
| 134 | + ]) | ||
| 135 | + ]) | ||
| 136 | + ] . | ||
| 137 | + | ||
| 138 | +<http://www.epim.no/schemas/mprml/1#Cs_productVolumeParameterSet> | ||
| 139 | + spin:rule | ||
| 140 | + [ rdf:type sp:Construct ; | ||
| 141 | + rdfs:comment "STEP 80002a Create temporal part of parameterSet facility corresponding to the nominal time, if necessary"^^xsd:string ; | ||
| 142 | + sp:templates ([ sp:object | ||
| 143 | + [ sp:varName "classOfParameterSetFacility"^^xsd:string | ||
| 144 | + ] ; | ||
| 145 | + sp:predicate rdf:type ; | ||
| 146 | + sp:subject _:b2 | ||
| 147 | + ] [ sp:object | ||
| 148 | + [ sp:varName "dTim"^^xsd:string | ||
| 149 | + ] ; | ||
| 150 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; | ||
| 151 | + sp:subject _:b2 | ||
| 152 | + ] [ sp:object | ||
| 153 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 154 | + ] ; | ||
| 155 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 156 | + sp:subject _:b2 | ||
| 157 | + ] [ sp:object | ||
| 158 | + [ sp:varName "parameterRef"^^xsd:string | ||
| 159 | + ] ; | ||
| 160 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 161 | + sp:subject _:b2 | ||
| 30 | ]) ; | 162 | ]) ; |
| 31 | - sp:where ([ sp:object | 163 | + sp:where ([ sp:object spin:_this ; |
| 164 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 165 | + sp:subject | ||
| 166 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 167 | + ] | ||
| 168 | + ] [ sp:object | ||
| 169 | + [ sp:varName "classOfParameterSetFacility"^^xsd:string | ||
| 170 | + ] ; | ||
| 171 | + sp:predicate rdf:type ; | ||
| 172 | + sp:subject | ||
| 173 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 174 | + ] | ||
| 175 | + ] [ sp:object | ||
| 32 | [ sp:varName "parameterRef"^^xsd:string | 176 | [ sp:varName "parameterRef"^^xsd:string |
| 33 | ] ; | 177 | ] ; |
| 34 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | 178 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
| 35 | sp:subject spin:_this | 179 | sp:subject spin:_this |
| 36 | ] [ sp:object | 180 | ] [ sp:object |
| 181 | + [ sp:varName "dTim"^^xsd:string | ||
| 182 | + ] ; | ||
| 183 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ; | ||
| 184 | + sp:subject | ||
| 37 | [ sp:varName "parameterRef"^^xsd:string | 185 | [ sp:varName "parameterRef"^^xsd:string |
| 186 | + ] | ||
| 187 | + ] [ rdf:type sp:NotExists ; | ||
| 188 | + sp:elements ([ sp:object | ||
| 189 | + [ sp:varName "dTim"^^xsd:string | ||
| 38 | ] ; | 190 | ] ; |
| 39 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 191 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; |
| 40 | sp:subject | 192 | sp:subject |
| 41 | - [ sp:varName "temporalPartOfASpatialPart"^^xsd:string | 193 | + [ sp:varName "parameterFacility"^^xsd:string |
| 42 | ] | 194 | ] |
| 43 | ] [ sp:object | 195 | ] [ sp:object |
| 44 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 196 | + [ sp:varName "parameterSetFacility"^^xsd:string |
| 45 | ] ; | 197 | ] ; |
| 46 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; | 198 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 199 | + sp:subject | ||
| 200 | + [ sp:varName "parameterFacility"^^xsd:string | ||
| 201 | + ] | ||
| 202 | + ]) | ||
| 203 | + ]) | ||
| 204 | + ] ; | ||
| 205 | + spin:rule | ||
| 206 | + [ rdf:type sp:Construct ; | ||
| 207 | + rdfs:comment "STEP 80002b Find existing temporal part of parameterSet facility corresponding to the nominal time"^^xsd:string ; | ||
| 208 | + sp:templates ([ sp:object | ||
| 209 | + [ sp:varName "parameterRef"^^xsd:string | ||
| 210 | + ] ; | ||
| 211 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 47 | sp:subject | 212 | sp:subject |
| 48 | - [ sp:varName "temporalPartOfASpatialPart"^^xsd:string | 213 | + [ sp:varName "parameterFacility"^^xsd:string |
| 214 | + ] | ||
| 215 | + ]) ; | ||
| 216 | + sp:where ([ sp:object spin:_this ; | ||
| 217 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 218 | + sp:subject | ||
| 219 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 49 | ] | 220 | ] |
| 50 | ] [ sp:object | 221 | ] [ sp:object |
| 51 | - [ sp:varName "nameRef"^^xsd:string | 222 | + [ sp:varName "parameterRef"^^xsd:string |
| 52 | ] ; | 223 | ] ; |
| 53 | - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | 224 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
| 54 | sp:subject spin:_this | 225 | sp:subject spin:_this |
| 55 | ] [ sp:object | 226 | ] [ sp:object |
| 56 | - [ sp:varName "nameRef"^^xsd:string | 227 | + [ sp:varName "dTim"^^xsd:string |
| 57 | ] ; | 228 | ] ; |
| 58 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#flowingStateMapsToMPREnumeration> ; | 229 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ; |
| 59 | sp:subject | 230 | sp:subject |
| 60 | - [ sp:varName "flowingStateType"^^xsd:string | 231 | + [ sp:varName "parameterRef"^^xsd:string |
| 232 | + ] | ||
| 233 | + ] [ sp:object | ||
| 234 | + [ sp:varName "dTim"^^xsd:string | ||
| 235 | + ] ; | ||
| 236 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; | ||
| 237 | + sp:subject | ||
| 238 | + [ sp:varName "parameterFacility"^^xsd:string | ||
| 239 | + ] | ||
| 240 | + ] [ sp:object | ||
| 241 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 242 | + ] ; | ||
| 243 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 244 | + sp:subject | ||
| 245 | + [ sp:varName "parameterFacility"^^xsd:string | ||
| 61 | ] | 246 | ] |
| 62 | ]) | 247 | ]) |
| 63 | ] ; | 248 | ] ; |
| 64 | spin:rule | 249 | spin:rule |
| 65 | [ rdf:type sp:Construct ; | 250 | [ rdf:type sp:Construct ; |
| 66 | - rdfs:comment "STEP 80002a Measurement qualifier specified"^^xsd:string ; | 251 | + rdfs:comment "STEP 80003a Create list of necessary temporal parts of parameterSet facility corresponding to the start and end"^^xsd:string ; |
| 67 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ; | 252 | + sp:templates ([ sp:object |
| 68 | - sp:predicate rdf:type ; | 253 | + [ sp:varName "intervalString"^^xsd:string |
| 254 | + ] ; | ||
| 255 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#necessaryIntervalString> ; | ||
| 256 | + sp:subject | ||
| 257 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 258 | + ] | ||
| 259 | + ]) ; | ||
| 260 | + sp:where ([ sp:object spin:_this ; | ||
| 261 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 69 | sp:subject | 262 | sp:subject |
| 70 | - [ sp:varName "temporalPart"^^xsd:string | 263 | + [ sp:varName "parameterSetFacility"^^xsd:string |
| 71 | ] | 264 | ] |
| 72 | ] [ sp:object | 265 | ] [ sp:object |
| 73 | - [ sp:varName "measuredQualityType"^^xsd:string | 266 | + [ sp:varName "classOfParameterSetFacility"^^xsd:string |
| 74 | ] ; | 267 | ] ; |
| 75 | sp:predicate rdf:type ; | 268 | sp:predicate rdf:type ; |
| 76 | sp:subject | 269 | sp:subject |
| 77 | - [ sp:varName "temporalPart"^^xsd:string | 270 | + [ sp:varName "parameterSetFacility"^^xsd:string |
| 271 | + ] | ||
| 272 | + ] [ sp:object | ||
| 273 | + [ sp:varName "parameterRef"^^xsd:string | ||
| 274 | + ] ; | ||
| 275 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | ||
| 276 | + sp:subject spin:_this | ||
| 277 | + ] [ sp:object | ||
| 278 | + [ sp:varName "intervalStart"^^xsd:string | ||
| 279 | + ] ; | ||
| 280 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | ||
| 281 | + sp:subject | ||
| 282 | + [ sp:varName "parameterRef"^^xsd:string | ||
| 283 | + ] | ||
| 284 | + ] [ sp:object | ||
| 285 | + [ sp:varName "intervalEnd"^^xsd:string | ||
| 286 | + ] ; | ||
| 287 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; | ||
| 288 | + sp:subject | ||
| 289 | + [ sp:varName "parameterRef"^^xsd:string | ||
| 290 | + ] | ||
| 291 | + ] [ rdf:type sp:NotExists ; | ||
| 292 | + sp:elements ([ sp:object | ||
| 293 | + [ sp:varName "intervalStart"^^xsd:string | ||
| 294 | + ] ; | ||
| 295 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
| 296 | + sp:subject | ||
| 297 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 298 | + ] | ||
| 299 | + ] [ sp:object | ||
| 300 | + [ sp:varName "intervalEnd"^^xsd:string | ||
| 301 | + ] ; | ||
| 302 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 303 | + sp:subject | ||
| 304 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 305 | + ] | ||
| 306 | + ]) | ||
| 307 | + ] [ rdf:type sp:Bind ; | ||
| 308 | + sp:expression | ||
| 309 | + [ rdf:type fn:concat ; | ||
| 310 | + sp:arg1 [ sp:varName "intervalStart"^^xsd:string | ||
| 311 | + ] ; | ||
| 312 | + sp:arg2 "$" ; | ||
| 313 | + sp:arg3 [ sp:varName "intervalEnd"^^xsd:string | ||
| 314 | + ] | ||
| 315 | + ] ; | ||
| 316 | + sp:variable | ||
| 317 | + [ sp:varName "intervalString"^^xsd:string | ||
| 318 | + ] | ||
| 319 | + ]) | ||
| 320 | + ] ; | ||
| 321 | + spin:rule | ||
| 322 | + [ rdf:type sp:Construct ; | ||
| 323 | + rdfs:comment "STEP 80001a Regularise start and end times - time specified by parameter element"^^xsd:string ; | ||
| 324 | + sp:templates ([ sp:object | ||
| 325 | + [ sp:varName "start1"^^xsd:string | ||
| 326 | + ] ; | ||
| 327 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | ||
| 328 | + sp:subject | ||
| 329 | + [ sp:varName "parameterRef"^^xsd:string | ||
| 330 | + ] | ||
| 331 | + ] [ sp:object | ||
| 332 | + [ sp:varName "start2"^^xsd:string | ||
| 333 | + ] ; | ||
| 334 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | ||
| 335 | + sp:subject | ||
| 336 | + [ sp:varName "parameterRef"^^xsd:string | ||
| 337 | + ] | ||
| 338 | + ] [ sp:object | ||
| 339 | + [ sp:varName "end1"^^xsd:string | ||
| 340 | + ] ; | ||
| 341 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; | ||
| 342 | + sp:subject | ||
| 343 | + [ sp:varName "parameterRef"^^xsd:string | ||
| 344 | + ] | ||
| 345 | + ] [ sp:object | ||
| 346 | + [ sp:varName "end2"^^xsd:string | ||
| 347 | + ] ; | ||
| 348 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; | ||
| 349 | + sp:subject | ||
| 350 | + [ sp:varName "parameterRef"^^xsd:string | ||
| 78 | ] | 351 | ] |
| 79 | ]) ; | 352 | ]) ; |
| 80 | sp:where ([ sp:object | 353 | sp:where ([ sp:object |
| 81 | - [ sp:varName "qualifierRef"^^xsd:string | 354 | + [ sp:varName "parameterRef"^^xsd:string |
| 82 | ] ; | 355 | ] ; |
| 83 | - sp:predicate <http://www.epim.no/schemas/mprml/1#qualifierRef> ; | 356 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
| 84 | sp:subject spin:_this | 357 | sp:subject spin:_this |
| 358 | + ] [ rdf:type sp:Optional ; | ||
| 359 | + sp:elements ([ sp:object | ||
| 360 | + [ sp:varName "dTimStart"^^xsd:string | ||
| 361 | + ] ; | ||
| 362 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; | ||
| 363 | + sp:subject | ||
| 364 | + [ sp:varName "parameterRef"^^xsd:string | ||
| 365 | + ] | ||
| 366 | + ]) | ||
| 367 | + ] [ rdf:type sp:Optional ; | ||
| 368 | + sp:elements ([ sp:object | ||
| 369 | + [ sp:varName "dTimEnd"^^xsd:string | ||
| 370 | + ] ; | ||
| 371 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | ||
| 372 | + sp:subject | ||
| 373 | + [ sp:varName "parameterRef"^^xsd:string | ||
| 374 | + ] | ||
| 375 | + ]) | ||
| 376 | + ] [ rdf:type sp:Optional ; | ||
| 377 | + sp:elements ([ sp:object | ||
| 378 | + [ sp:varName "dateStart"^^xsd:string | ||
| 379 | + ] ; | ||
| 380 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | ||
| 381 | + sp:subject | ||
| 382 | + [ sp:varName "parameterRef"^^xsd:string | ||
| 383 | + ] | ||
| 384 | + ]) | ||
| 385 | + ] [ rdf:type sp:Optional ; | ||
| 386 | + sp:elements ([ sp:object | ||
| 387 | + [ sp:varName "dateEnd"^^xsd:string | ||
| 388 | + ] ; | ||
| 389 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | ||
| 390 | + sp:subject | ||
| 391 | + [ sp:varName "parameterRef"^^xsd:string | ||
| 392 | + ] | ||
| 393 | + ]) | ||
| 394 | + ] [ rdf:type sp:Bind ; | ||
| 395 | + sp:expression | ||
| 396 | + [ rdf:type smf:cast ; | ||
| 397 | + arg:datatype xsd:string ; | ||
| 398 | + sp:arg1 [ sp:varName "dTimStart"^^xsd:string | ||
| 399 | + ] | ||
| 400 | + ] ; | ||
| 401 | + sp:variable | ||
| 402 | + [ sp:varName "start1"^^xsd:string | ||
| 403 | + ] | ||
| 404 | + ] [ rdf:type sp:Bind ; | ||
| 405 | + sp:expression | ||
| 406 | + [ rdf:type smf:cast ; | ||
| 407 | + arg:datatype xsd:string ; | ||
| 408 | + sp:arg1 [ sp:varName "dateStart"^^xsd:string | ||
| 409 | + ] | ||
| 410 | + ] ; | ||
| 411 | + sp:variable | ||
| 412 | + [ sp:varName "start2"^^xsd:string | ||
| 413 | + ] | ||
| 414 | + ] [ rdf:type sp:Bind ; | ||
| 415 | + sp:expression | ||
| 416 | + [ rdf:type smf:cast ; | ||
| 417 | + arg:datatype xsd:string ; | ||
| 418 | + sp:arg1 [ sp:varName "dTimEnd"^^xsd:string | ||
| 419 | + ] | ||
| 420 | + ] ; | ||
| 421 | + sp:variable | ||
| 422 | + [ sp:varName "end1"^^xsd:string | ||
| 423 | + ] | ||
| 424 | + ] [ rdf:type sp:Bind ; | ||
| 425 | + sp:expression | ||
| 426 | + [ rdf:type smf:cast ; | ||
| 427 | + arg:datatype xsd:string ; | ||
| 428 | + sp:arg1 [ sp:varName "dateEnd"^^xsd:string | ||
| 429 | + ] | ||
| 430 | + ] ; | ||
| 431 | + sp:variable | ||
| 432 | + [ sp:varName "end2"^^xsd:string | ||
| 433 | + ] | ||
| 434 | + ]) | ||
| 435 | + ] ; | ||
| 436 | + spin:rule | ||
| 437 | + [ rdf:type sp:Construct ; | ||
| 438 | + rdfs:comment "STEP 80003c Assign temporal parts of parameterSet facility to parameter elements"^^xsd:string ; | ||
| 439 | + sp:templates ([ sp:object | ||
| 440 | + [ sp:varName "parameterRef"^^xsd:string | ||
| 441 | + ] ; | ||
| 442 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 443 | + sp:subject | ||
| 444 | + [ sp:varName "parameterFacility"^^xsd:string | ||
| 445 | + ] | ||
| 446 | + ] [ sp:object "80003c" ; | ||
| 447 | + sp:predicate rdfs:label ; | ||
| 448 | + sp:subject | ||
| 449 | + [ sp:varName "parameterFacility"^^xsd:string | ||
| 450 | + ] | ||
| 451 | + ]) ; | ||
| 452 | + sp:where ([ sp:object spin:_this ; | ||
| 453 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 454 | + sp:subject | ||
| 455 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 456 | + ] | ||
| 457 | + ] [ sp:object | ||
| 458 | + [ sp:varName "classOfParameterSetFacility"^^xsd:string | ||
| 459 | + ] ; | ||
| 460 | + sp:predicate rdf:type ; | ||
| 461 | + sp:subject | ||
| 462 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 463 | + ] | ||
| 464 | + ] [ sp:object | ||
| 465 | + [ sp:varName "classOfParameterSetFacility"^^xsd:string | ||
| 466 | + ] ; | ||
| 467 | + sp:predicate rdf:type ; | ||
| 468 | + sp:subject | ||
| 469 | + [ sp:varName "parameterFacility"^^xsd:string | ||
| 470 | + ] | ||
| 471 | + ] [ sp:object | ||
| 472 | + [ sp:varName "intervalStartString"^^xsd:string | ||
| 473 | + ] ; | ||
| 474 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
| 475 | + sp:subject | ||
| 476 | + [ sp:varName "parameterFacility"^^xsd:string | ||
| 477 | + ] | ||
| 478 | + ] [ sp:object | ||
| 479 | + [ sp:varName "intervalEndString"^^xsd:string | ||
| 480 | + ] ; | ||
| 481 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | ||
| 482 | + sp:subject | ||
| 483 | + [ sp:varName "parameterFacility"^^xsd:string | ||
| 484 | + ] | ||
| 485 | + ] [ sp:object | ||
| 486 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 487 | + ] ; | ||
| 488 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
| 489 | + sp:subject | ||
| 490 | + [ sp:varName "parameterFacility"^^xsd:string | ||
| 491 | + ] | ||
| 85 | ] [ sp:object | 492 | ] [ sp:object |
| 86 | [ sp:varName "parameterRef"^^xsd:string | 493 | [ sp:varName "parameterRef"^^xsd:string |
| 87 | ] ; | 494 | ] ; |
| 88 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | 495 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
| 89 | sp:subject spin:_this | 496 | sp:subject spin:_this |
| 90 | ] [ sp:object | 497 | ] [ sp:object |
| 498 | + [ sp:varName "intervalStart"^^xsd:string | ||
| 499 | + ] ; | ||
| 500 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; | ||
| 501 | + sp:subject | ||
| 91 | [ sp:varName "parameterRef"^^xsd:string | 502 | [ sp:varName "parameterRef"^^xsd:string |
| 503 | + ] | ||
| 504 | + ] [ sp:object | ||
| 505 | + [ sp:varName "intervalEnd"^^xsd:string | ||
| 92 | ] ; | 506 | ] ; |
| 93 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 507 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; |
| 94 | sp:subject | 508 | sp:subject |
| 95 | - [ sp:varName "temporalPart"^^xsd:string | 509 | + [ sp:varName "parameterRef"^^xsd:string |
| 96 | ] | 510 | ] |
| 97 | ] [ rdf:type sp:Bind ; | 511 | ] [ rdf:type sp:Bind ; |
| 98 | sp:expression | 512 | sp:expression |
| 99 | - [ rdf:type ep-mpr-spin-lib:selectMeasuredQualityType ; | 513 | + [ rdf:type smf:cast ; |
| 100 | - sp:arg1 [ sp:varName "qualifierRef"^^xsd:string | 514 | + arg:datatype xsd:string ; |
| 515 | + sp:arg1 [ sp:varName "intervalStart"^^xsd:string | ||
| 101 | ] | 516 | ] |
| 102 | ] ; | 517 | ] ; |
| 103 | sp:variable | 518 | sp:variable |
| 104 | - [ sp:varName "measuredQualityType"^^xsd:string | 519 | + [ sp:varName "intervalStartString"^^xsd:string |
| 520 | + ] | ||
| 521 | + ] [ rdf:type sp:Bind ; | ||
| 522 | + sp:expression | ||
| 523 | + [ rdf:type smf:cast ; | ||
| 524 | + arg:datatype xsd:string ; | ||
| 525 | + sp:arg1 [ sp:varName "intervalEnd"^^xsd:string | ||
| 526 | + ] | ||
| 527 | + ] ; | ||
| 528 | + sp:variable | ||
| 529 | + [ sp:varName "intervalEndString"^^xsd:string | ||
| 105 | ] | 530 | ] |
| 106 | ]) | 531 | ]) |
| 107 | ] ; | 532 | ] ; |
| 108 | spin:rule | 533 | spin:rule |
| 109 | [ rdf:type sp:Construct ; | 534 | [ rdf:type sp:Construct ; |
| 110 | - rdfs:comment "STEP 80001a Create temporal parts corresponding to the parameter period"^^xsd:string ; | 535 | + rdfs:comment "STEP 80006 Set flowing or not-flowing state"^^xsd:string ; |
| 111 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | 536 | + sp:templates ([ sp:object |
| 537 | + [ sp:varName "flowingStateType"^^xsd:string | ||
| 538 | + ] ; | ||
| 112 | sp:predicate rdf:type ; | 539 | sp:predicate rdf:type ; |
| 113 | - sp:subject _:b1 | 540 | + sp:subject |
| 114 | - ] [ sp:object | ||
| 115 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 541 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 542 | + ] | ||
| 543 | + ]) ; | ||
| 544 | + sp:where ([ sp:object | ||
| 545 | + [ sp:varName "parameterRef"^^xsd:string | ||
| 116 | ] ; | 546 | ] ; |
| 117 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 547 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
| 118 | - sp:subject _:b1 | 548 | + sp:subject spin:_this |
| 119 | ] [ sp:object | 549 | ] [ sp:object |
| 120 | - [ sp:varName "spatialPart"^^xsd:string | 550 | + [ sp:varName "parameterRef"^^xsd:string |
| 121 | ] ; | 551 | ] ; |
| 122 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 552 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 123 | - sp:subject _:b2 | 553 | + sp:subject |
| 554 | + [ sp:varName "parameterFacility"^^xsd:string | ||
| 555 | + ] | ||
| 124 | ] [ sp:object | 556 | ] [ sp:object |
| 125 | - [ sp:varName "classOfSpatialPart"^^xsd:string | 557 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 126 | ] ; | 558 | ] ; |
| 127 | - sp:predicate rdf:type ; | ||
| 128 | - sp:subject _:b2 | ||
| 129 | - ] [ sp:object _:b1 ; | ||
| 130 | sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; | 559 | sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; |
| 131 | - sp:subject _:b2 | 560 | + sp:subject |
| 561 | + [ sp:varName "parameterFacility"^^xsd:string | ||
| 562 | + ] | ||
| 132 | ] [ sp:object | 563 | ] [ sp:object |
| 133 | - [ sp:varName "parameterRef"^^xsd:string | 564 | + [ sp:varName "nameRef"^^xsd:string |
| 565 | + ] ; | ||
| 566 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | ||
| 567 | + sp:subject spin:_this | ||
| 568 | + ] [ sp:object | ||
| 569 | + [ sp:varName "nameRef"^^xsd:string | ||
| 134 | ] ; | 570 | ] ; |
| 571 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#flowingStateMapsToMPREnumeration> ; | ||
| 572 | + sp:subject | ||
| 573 | + [ sp:varName "flowingStateType"^^xsd:string | ||
| 574 | + ] | ||
| 575 | + ]) | ||
| 576 | + ] ; | ||
| 577 | + spin:rule | ||
| 578 | + [ rdf:type sp:Construct ; | ||
| 579 | + rdfs:comment "STEP 80000c Create the spatial parts that have the parameterSet property"^^xsd:string ; | ||
| 580 | + sp:templates ([ sp:object spin:_this ; | ||
| 135 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 581 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 136 | - sp:subject _:b2 | 582 | + sp:subject |
| 583 | + [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string | ||
| 584 | + ] | ||
| 137 | ]) ; | 585 | ]) ; |
| 138 | sp:where ([ sp:object spin:_this ; | 586 | sp:where ([ sp:object spin:_this ; |
| 139 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterSetRef> ; | 587 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterSetRef> ; |
| ... | @@ -152,10 +600,19 @@ | ... | @@ -152,10 +600,19 @@ |
| 152 | sp:subject | 600 | sp:subject |
| 153 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 601 | [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 154 | ] | 602 | ] |
| 155 | - ] [ sp:object spin:_this ; | 603 | + ] [ sp:object |
| 156 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 604 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 605 | + ] ; | ||
| 606 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; | ||
| 157 | sp:subject | 607 | sp:subject |
| 158 | - [ sp:varName "spatialPart"^^xsd:string | 608 | + [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string |
| 609 | + ] | ||
| 610 | + ] [ sp:object | ||
| 611 | + [ sp:varName "classOfSpatialPart"^^xsd:string | ||
| 612 | + ] ; | ||
| 613 | + sp:predicate rdf:type ; | ||
| 614 | + sp:subject | ||
| 615 | + [ sp:varName "spatialPartOfATemporalPartOfAProductionFacility"^^xsd:string | ||
| 159 | ] | 616 | ] |
| 160 | ] [ sp:object | 617 | ] [ sp:object |
| 161 | [ sp:varName "nameRef"^^xsd:string | 618 | [ sp:varName "nameRef"^^xsd:string |
| ... | @@ -169,38 +626,95 @@ | ... | @@ -169,38 +626,95 @@ |
| 169 | sp:subject | 626 | sp:subject |
| 170 | [ sp:varName "classOfSpatialPart"^^xsd:string | 627 | [ sp:varName "classOfSpatialPart"^^xsd:string |
| 171 | ] | 628 | ] |
| 629 | + ] [ rdf:type sp:NotExists ; | ||
| 630 | + sp:elements ([ sp:object | ||
| 631 | + [ sp:varName "classOfSpatialPart"^^xsd:string | ||
| 632 | + ] ; | ||
| 633 | + sp:predicate rdf:type ; | ||
| 634 | + sp:subject | ||
| 635 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 636 | + ] | ||
| 637 | + ]) | ||
| 638 | + ]) | ||
| 639 | + ] ; | ||
| 640 | + spin:rule | ||
| 641 | + [ rdf:type sp:Construct ; | ||
| 642 | + rdfs:comment "STEP 80004a Measurement qualifier specified"^^xsd:string ; | ||
| 643 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ; | ||
| 644 | + sp:predicate rdf:type ; | ||
| 645 | + sp:subject | ||
| 646 | + [ sp:varName "parameterFacility"^^xsd:string | ||
| 647 | + ] | ||
| 648 | + ] [ sp:object | ||
| 649 | + [ sp:varName "measuredQualityType"^^xsd:string | ||
| 650 | + ] ; | ||
| 651 | + sp:predicate rdf:type ; | ||
| 652 | + sp:subject | ||
| 653 | + [ sp:varName "parameterFacility"^^xsd:string | ||
| 654 | + ] | ||
| 655 | + ]) ; | ||
| 656 | + sp:where ([ sp:object | ||
| 657 | + [ sp:varName "qualifierRef"^^xsd:string | ||
| 658 | + ] ; | ||
| 659 | + sp:predicate <http://www.epim.no/schemas/mprml/1#qualifierRef> ; | ||
| 660 | + sp:subject spin:_this | ||
| 172 | ] [ sp:object | 661 | ] [ sp:object |
| 173 | [ sp:varName "parameterRef"^^xsd:string | 662 | [ sp:varName "parameterRef"^^xsd:string |
| 174 | ] ; | 663 | ] ; |
| 175 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | 664 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
| 176 | sp:subject spin:_this | 665 | sp:subject spin:_this |
| 177 | - ] [ rdf:type sp:Exists ; | 666 | + ] [ sp:object |
| 178 | - sp:elements ([ rdf:type sp:Union ; | 667 | + [ sp:varName "parameterRef"^^xsd:string |
| 179 | - sp:elements (([ sp:object | ||
| 180 | - [ sp:varName "dTim"^^xsd:string | ||
| 181 | ] ; | 668 | ] ; |
| 182 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ; | 669 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 183 | sp:subject | 670 | sp:subject |
| 184 | - [ sp:varName "parameterRef"^^xsd:string | 671 | + [ sp:varName "parameterFacility"^^xsd:string |
| 672 | + ] | ||
| 673 | + ] [ rdf:type sp:Bind ; | ||
| 674 | + sp:expression | ||
| 675 | + [ rdf:type ep-mpr-spin-lib:selectMeasuredQualityType ; | ||
| 676 | + sp:arg1 [ sp:varName "qualifierRef"^^xsd:string | ||
| 185 | ] | 677 | ] |
| 186 | - ]) ([ sp:object | ||
| 187 | - [ sp:varName "dTimStart"^^xsd:string | ||
| 188 | ] ; | 678 | ] ; |
| 189 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; | 679 | + sp:variable |
| 680 | + [ sp:varName "measuredQualityType"^^xsd:string | ||
| 681 | + ] | ||
| 682 | + ]) | ||
| 683 | + ] ; | ||
| 684 | + spin:rule | ||
| 685 | + [ rdf:type sp:Construct ; | ||
| 686 | + rdfs:comment "STEP 80001c Regularise start and end times - end time inherited from temporal part of production facility"^^xsd:string ; | ||
| 687 | + sp:templates ([ sp:object | ||
| 688 | + [ sp:varName "end"^^xsd:string | ||
| 689 | + ] ; | ||
| 690 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; | ||
| 190 | sp:subject | 691 | sp:subject |
| 191 | [ sp:varName "parameterRef"^^xsd:string | 692 | [ sp:varName "parameterRef"^^xsd:string |
| 192 | ] | 693 | ] |
| 193 | - ]) ([ sp:object | 694 | + ]) ; |
| 194 | - [ sp:varName "dTimEnd"^^xsd:string | 695 | + sp:where ([ sp:object spin:_this ; |
| 696 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 697 | + sp:subject | ||
| 698 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 699 | + ] | ||
| 700 | + ] [ sp:object | ||
| 701 | + [ sp:varName "finishedAt"^^xsd:string | ||
| 195 | ] ; | 702 | ] ; |
| 196 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | 703 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
| 197 | sp:subject | 704 | sp:subject |
| 198 | - [ sp:varName "parameterRef"^^xsd:string | 705 | + [ sp:varName "parameterSetFacility"^^xsd:string |
| 199 | ] | 706 | ] |
| 200 | - ]) ([ sp:object | 707 | + ] [ sp:object |
| 201 | - [ sp:varName "dateStart"^^xsd:string | 708 | + [ sp:varName "parameterRef"^^xsd:string |
| 709 | + ] ; | ||
| 710 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | ||
| 711 | + sp:subject spin:_this | ||
| 712 | + ] [ rdf:type sp:NotExists ; | ||
| 713 | + sp:elements ([ rdf:type sp:Union ; | ||
| 714 | + sp:elements (([ sp:object | ||
| 715 | + [ sp:varName "dTimEnd"^^xsd:string | ||
| 202 | ] ; | 716 | ] ; |
| 203 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | 717 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; |
| 204 | sp:subject | 718 | sp:subject |
| 205 | [ sp:varName "parameterRef"^^xsd:string | 719 | [ sp:varName "parameterRef"^^xsd:string |
| 206 | ] | 720 | ] |
| ... | @@ -213,79 +727,85 @@ | ... | @@ -213,79 +727,85 @@ |
| 213 | ] | 727 | ] |
| 214 | ])) | 728 | ])) |
| 215 | ]) | 729 | ]) |
| 730 | + ] [ rdf:type sp:Bind ; | ||
| 731 | + sp:expression | ||
| 732 | + [ rdf:type smf:cast ; | ||
| 733 | + arg:datatype xsd:string ; | ||
| 734 | + sp:arg1 [ sp:varName "finishedAt"^^xsd:string | ||
| 735 | + ] | ||
| 736 | + ] ; | ||
| 737 | + sp:variable | ||
| 738 | + [ sp:varName "end"^^xsd:string | ||
| 739 | + ] | ||
| 216 | ]) | 740 | ]) |
| 217 | ] ; | 741 | ] ; |
| 218 | spin:rule | 742 | spin:rule |
| 219 | [ rdf:type sp:Construct ; | 743 | [ rdf:type sp:Construct ; |
| 220 | - rdfs:comment "STEP 80001c No temporal part corresponding to the parameter period is necessary"^^xsd:string ; | 744 | + rdfs:comment "STEP 80003d No temporal part of the parameterSetFacility is required"^^xsd:string ; |
| 221 | sp:templates ([ sp:object | 745 | sp:templates ([ sp:object |
| 222 | [ sp:varName "parameterRef"^^xsd:string | 746 | [ sp:varName "parameterRef"^^xsd:string |
| 223 | ] ; | 747 | ] ; |
| 224 | 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> ; |
| 225 | sp:subject | 749 | sp:subject |
| 226 | - [ sp:varName "spatialPart"^^xsd:string | 750 | + [ sp:varName "parameterSetFacility"^^xsd:string |
| 227 | ] | 751 | ] |
| 228 | ]) ; | 752 | ]) ; |
| 229 | sp:where ([ sp:object spin:_this ; | 753 | sp:where ([ sp:object spin:_this ; |
| 230 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 754 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 231 | sp:subject | 755 | sp:subject |
| 232 | - [ sp:varName "spatialPart"^^xsd:string | 756 | + [ sp:varName "parameterSetFacility"^^xsd:string |
| 757 | + ] | ||
| 758 | + ] [ sp:object | ||
| 759 | + [ sp:varName "classOfParameterSetFacility"^^xsd:string | ||
| 760 | + ] ; | ||
| 761 | + sp:predicate rdf:type ; | ||
| 762 | + sp:subject | ||
| 763 | + [ sp:varName "parameterSetFacility"^^xsd:string | ||
| 233 | ] | 764 | ] |
| 234 | ] [ sp:object | 765 | ] [ sp:object |
| 235 | [ sp:varName "parameterRef"^^xsd:string | 766 | [ sp:varName "parameterRef"^^xsd:string |
| 236 | ] ; | 767 | ] ; |
| 237 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | 768 | sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
| 238 | sp:subject spin:_this | 769 | sp:subject spin:_this |
| 239 | - ] [ rdf:type sp:NotExists ; | 770 | + ] [ sp:object |
| 240 | - sp:elements ([ rdf:type sp:Union ; | 771 | + [ sp:varName "intervalStart"^^xsd:string |
| 241 | - sp:elements (([ sp:object | ||
| 242 | - [ sp:varName "dTim"^^xsd:string | ||
| 243 | - ] ; | ||
| 244 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ; | ||
| 245 | - sp:subject | ||
| 246 | - [ sp:varName "parameterRef"^^xsd:string | ||
| 247 | - ] | ||
| 248 | - ]) ([ sp:object | ||
| 249 | - [ sp:varName "dTimStart"^^xsd:string | ||
| 250 | ] ; | 772 | ] ; |
| 251 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; | 773 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; |
| 252 | sp:subject | 774 | sp:subject |
| 253 | [ sp:varName "parameterRef"^^xsd:string | 775 | [ sp:varName "parameterRef"^^xsd:string |
| 254 | ] | 776 | ] |
| 255 | - ]) ([ sp:object | 777 | + ] [ sp:object |
| 256 | - [ sp:varName "dTimEnd"^^xsd:string | 778 | + [ sp:varName "intervalEnd"^^xsd:string |
| 257 | ] ; | 779 | ] ; |
| 258 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | 780 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalEnd> ; |
| 259 | sp:subject | 781 | sp:subject |
| 260 | [ sp:varName "parameterRef"^^xsd:string | 782 | [ sp:varName "parameterRef"^^xsd:string |
| 261 | ] | 783 | ] |
| 262 | - ]) ([ sp:object | 784 | + ] [ sp:object |
| 263 | - [ sp:varName "dateStart"^^xsd:string | 785 | + [ sp:varName "intervalStart"^^xsd:string |
| 264 | ] ; | 786 | ] ; |
| 265 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | 787 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
| 266 | sp:subject | 788 | sp:subject |
| 267 | - [ sp:varName "parameterRef"^^xsd:string | 789 | + [ sp:varName "parameterSetFacility"^^xsd:string |
| 268 | ] | 790 | ] |
| 269 | - ]) ([ sp:object | 791 | + ] [ sp:object |
| 270 | - [ sp:varName "dateEnd"^^xsd:string | 792 | + [ sp:varName "intervalEnd"^^xsd:string |
| 271 | ] ; | 793 | ] ; |
| 272 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | 794 | + sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
| 273 | sp:subject | 795 | sp:subject |
| 274 | - [ sp:varName "parameterRef"^^xsd:string | 796 | + [ sp:varName "parameterSetFacility"^^xsd:string |
| 275 | ] | 797 | ] |
| 276 | - ])) | ||
| 277 | - ]) | ||
| 278 | ]) | 798 | ]) |
| 279 | ] ; | 799 | ] ; |
| 280 | spin:rule | 800 | spin:rule |
| 281 | [ rdf:type sp:Construct ; | 801 | [ rdf:type sp:Construct ; |
| 282 | - rdfs:comment "STEP 80003 Assign parameter value"^^xsd:string ; | 802 | + rdfs:comment "STEP 80005 Assign parameter value"^^xsd:string ; |
| 283 | sp:templates ([ sp:object _:b3 ; | 803 | sp:templates ([ sp:object _:b3 ; |
| 284 | sp:predicate | 804 | sp:predicate |
| 285 | [ sp:varName "propertyType"^^xsd:string | 805 | [ sp:varName "propertyType"^^xsd:string |
| 286 | ] ; | 806 | ] ; |
| 287 | sp:subject | 807 | sp:subject |
| 288 | - [ sp:varName "temporalPart"^^xsd:string | 808 | + [ sp:varName "parameterFacility"^^xsd:string |
| 289 | ] | 809 | ] |
| 290 | ] [ sp:object | 810 | ] [ sp:object |
| 291 | [ sp:varName "quantityType"^^xsd:string | 811 | [ sp:varName "quantityType"^^xsd:string |
| ... | @@ -329,7 +849,7 @@ | ... | @@ -329,7 +849,7 @@ |
| 329 | ] ; | 849 | ] ; |
| 330 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 850 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 331 | sp:subject | 851 | sp:subject |
| 332 | - [ sp:varName "temporalPart"^^xsd:string | 852 | + [ sp:varName "parameterFacility"^^xsd:string |
| 333 | ] | 853 | ] |
| 334 | ] [ sp:object | 854 | ] [ sp:object |
| 335 | [ sp:varName "measureValueRef"^^xsd:string | 855 | [ sp:varName "measureValueRef"^^xsd:string |
| ... | @@ -367,224 +887,218 @@ | ... | @@ -367,224 +887,218 @@ |
| 367 | ] ; | 887 | ] ; |
| 368 | spin:rule | 888 | spin:rule |
| 369 | [ rdf:type sp:Construct ; | 889 | [ rdf:type sp:Construct ; |
| 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 ; | 890 | + rdfs:comment "STEP 80004b Measurement qualifier not specified"^^xsd:string ; |
| 371 | - sp:templates ([ sp:object | 891 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ; |
| 372 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 373 | - ] ; | ||
| 374 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; | ||
| 375 | - sp:subject _:b4 | ||
| 376 | - ] [ sp:object | ||
| 377 | - [ sp:varName "classOfSpatialPart"^^xsd:string | ||
| 378 | - ] ; | ||
| 379 | sp:predicate rdf:type ; | 892 | sp:predicate rdf:type ; |
| 380 | - sp:subject _:b4 | ||
| 381 | - ] [ sp:object spin:_this ; | ||
| 382 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 383 | - sp:subject _:b4 | ||
| 384 | - ]) ; | ||
| 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 | - ] ; | ||
| 393 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 394 | sp:subject | 893 | sp:subject |
| 395 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 894 | + [ sp:varName "parameterFacility"^^xsd:string |
| 396 | ] | 895 | ] |
| 397 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | 896 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#ValidlyMeasuredState> ; |
| 398 | sp:predicate rdf:type ; | 897 | sp:predicate rdf:type ; |
| 399 | sp:subject | 898 | sp:subject |
| 400 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 899 | + [ sp:varName "parameterFacility"^^xsd:string |
| 401 | ] | 900 | ] |
| 901 | + ]) ; | ||
| 902 | + sp:where ([ rdf:type sp:NotExists ; | ||
| 903 | + sp:elements ([ sp:object | ||
| 904 | + [ sp:varName "qualifierRef"^^xsd:string | ||
| 905 | + ] ; | ||
| 906 | + sp:predicate <http://www.epim.no/schemas/mprml/1#qualifierRef> ; | ||
| 907 | + sp:subject spin:_this | ||
| 908 | + ]) | ||
| 402 | ] [ sp:object | 909 | ] [ sp:object |
| 403 | - [ sp:varName "nameRef"^^xsd:string | 910 | + [ sp:varName "parameterRef"^^xsd:string |
| 404 | ] ; | 911 | ] ; |
| 405 | - sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; | 912 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
| 406 | sp:subject spin:_this | 913 | sp:subject spin:_this |
| 407 | ] [ sp:object | 914 | ] [ sp:object |
| 408 | - [ sp:varName "nameRef"^^xsd:string | 915 | + [ sp:varName "parameterRef"^^xsd:string |
| 409 | ] ; | 916 | ] ; |
| 410 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ; | 917 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 411 | sp:subject | 918 | sp:subject |
| 412 | - [ sp:varName "classOfSpatialPart"^^xsd:string | 919 | + [ sp:varName "parameterFacility"^^xsd:string |
| 413 | ] | 920 | ] |
| 414 | ]) | 921 | ]) |
| 415 | ] ; | 922 | ] ; |
| 416 | spin:rule | 923 | spin:rule |
| 417 | [ rdf:type sp:Construct ; | 924 | [ rdf:type sp:Construct ; |
| 418 | - rdfs:comment "STEP 80001b Set the times for the temporal part corresponding to the parameter period"^^xsd:string ; | 925 | + rdfs:comment "STEP 80001b Regularise start and end times - start time inherited from temporal part of production facility"^^xsd:string ; |
| 419 | sp:templates ([ sp:object | 926 | sp:templates ([ sp:object |
| 420 | - [ sp:varName "dTim"^^xsd:string | 927 | + [ sp:varName "start"^^xsd:string |
| 421 | ] ; | 928 | ] ; |
| 422 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; | 929 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#intervalStart> ; |
| 423 | sp:subject | 930 | sp:subject |
| 424 | - [ sp:varName "temporalPartOfASpatialPart"^^xsd:string | 931 | + [ sp:varName "parameterRef"^^xsd:string |
| 425 | ] | 932 | ] |
| 426 | - ] [ sp:object | 933 | + ]) ; |
| 427 | - [ sp:varName "dTimStart"^^xsd:string | 934 | + sp:where ([ sp:object spin:_this ; |
| 428 | - ] ; | 935 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 429 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | ||
| 430 | sp:subject | 936 | sp:subject |
| 431 | - [ sp:varName "temporalPartOfASpatialPart"^^xsd:string | 937 | + [ sp:varName "parameterSetFacility"^^xsd:string |
| 432 | ] | 938 | ] |
| 433 | ] [ sp:object | 939 | ] [ sp:object |
| 434 | - [ sp:varName "dateStart"^^xsd:string | 940 | + [ sp:varName "startedAt"^^xsd:string |
| 435 | ] ; | 941 | ] ; |
| 436 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 942 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
| 437 | sp:subject | 943 | sp:subject |
| 438 | - [ sp:varName "temporalPartOfASpatialPart"^^xsd:string | 944 | + [ sp:varName "parameterSetFacility"^^xsd:string |
| 439 | ] | 945 | ] |
| 440 | ] [ sp:object | 946 | ] [ sp:object |
| 441 | - [ sp:varName "dTimEnd"^^xsd:string | 947 | + [ sp:varName "parameterRef"^^xsd:string |
| 442 | ] ; | 948 | ] ; |
| 443 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 949 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; |
| 444 | - sp:subject | 950 | + sp:subject spin:_this |
| 445 | - [ sp:varName "temporalPartOfASpatialPart"^^xsd:string | 951 | + ] [ rdf:type sp:NotExists ; |
| 446 | - ] | 952 | + sp:elements ([ rdf:type sp:Union ; |
| 447 | - ] [ sp:object | 953 | + sp:elements (([ sp:object |
| 448 | - [ sp:varName "dateEnd"^^xsd:string | 954 | + [ sp:varName "dTimStart"^^xsd:string |
| 449 | ] ; | 955 | ] ; |
| 450 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 956 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; |
| 451 | sp:subject | 957 | sp:subject |
| 452 | - [ sp:varName "temporalPartOfASpatialPart"^^xsd:string | 958 | + [ sp:varName "parameterRef"^^xsd:string |
| 453 | ] | 959 | ] |
| 454 | - ] [ sp:object | 960 | + ]) ([ sp:object |
| 455 | - [ sp:varName "dTim"^^xsd:string | 961 | + [ sp:varName "dateStart"^^xsd:string |
| 456 | ] ; | 962 | ] ; |
| 457 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#nominallyAt> ; | 963 | + sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; |
| 458 | sp:subject | 964 | sp:subject |
| 459 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 965 | + [ sp:varName "parameterRef"^^xsd:string |
| 966 | + ] | ||
| 967 | + ])) | ||
| 968 | + ]) | ||
| 969 | + ] [ rdf:type sp:Bind ; | ||
| 970 | + sp:expression | ||
| 971 | + [ rdf:type smf:cast ; | ||
| 972 | + arg:datatype xsd:string ; | ||
| 973 | + sp:arg1 [ sp:varName "startedAt"^^xsd:string | ||
| 460 | ] | 974 | ] |
| 461 | - ] [ sp:object | ||
| 462 | - [ sp:varName "dTimStart"^^xsd:string | ||
| 463 | ] ; | 975 | ] ; |
| 464 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 976 | + sp:variable |
| 465 | - sp:subject | 977 | + [ sp:varName "start"^^xsd:string |
| 466 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 467 | ] | 978 | ] |
| 979 | + ]) | ||
| 980 | + ] ; | ||
| 981 | + spin:rule | ||
| 982 | + [ rdf:type sp:Construct ; | ||
| 983 | + rdfs:comment "STEP 80003b Create temporal parts of parameterSet facility corresponding to the start and end without duplicates"^^xsd:string ; | ||
| 984 | + sp:templates ([ sp:object | ||
| 985 | + [ sp:varName "classOfParameterSetFacility"^^xsd:string | ||
| 986 | + ] ; | ||
| 987 | + sp:predicate rdf:type ; | ||
| 988 | + sp:subject _:b4 | ||
| 468 | ] [ sp:object | 989 | ] [ sp:object |
| 469 | - [ sp:varName "dateStart"^^xsd:string | 990 | + [ sp:varName "intervalStart"^^xsd:string |
| 470 | ] ; | 991 | ] ; |
| 471 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; | 992 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#startedAt> ; |
| 472 | - sp:subject | 993 | + sp:subject _:b4 |
| 473 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 474 | - ] | ||
| 475 | ] [ sp:object | 994 | ] [ sp:object |
| 476 | - [ sp:varName "dTimEnd"^^xsd:string | 995 | + [ sp:varName "intervalEnd"^^xsd:string |
| 477 | ] ; | 996 | ] ; |
| 478 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 997 | sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; |
| 479 | - sp:subject | 998 | + sp:subject _:b4 |
| 480 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 481 | - ] | ||
| 482 | ] [ sp:object | 999 | ] [ sp:object |
| 483 | - [ sp:varName "dateEnd"^^xsd:string | 1000 | + [ sp:varName "parameterSetFacility"^^xsd:string |
| 484 | ] ; | 1001 | ] ; |
| 485 | - sp:predicate <http://www.reportinghub.no/ep/schema/activity#finishedAt> ; | 1002 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
| 486 | - sp:subject | 1003 | + sp:subject _:b4 |
| 487 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 488 | - ] | ||
| 489 | ]) ; | 1004 | ]) ; |
| 490 | - sp:where ([ sp:object | 1005 | + sp:where ([ sp:object spin:_this ; |
| 491 | - [ sp:varName "parameterRef"^^xsd:string | ||
| 492 | - ] ; | ||
| 493 | - sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | ||
| 494 | - sp:subject spin:_this | ||
| 495 | - ] [ sp:object | ||
| 496 | - [ sp:varName "parameterRef"^^xsd:string | ||
| 497 | - ] ; | ||
| 498 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 1006 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 499 | sp:subject | 1007 | sp:subject |
| 500 | - [ sp:varName "temporalPartOfASpatialPart"^^xsd:string | 1008 | + [ sp:varName "parameterSetFacility"^^xsd:string |
| 501 | ] | 1009 | ] |
| 502 | ] [ sp:object | 1010 | ] [ sp:object |
| 503 | - [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | 1011 | + [ sp:varName "classOfParameterSetFacility"^^xsd:string |
| 504 | ] ; | 1012 | ] ; |
| 505 | - sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ; | 1013 | + sp:predicate rdf:type ; |
| 506 | sp:subject | 1014 | sp:subject |
| 507 | - [ sp:varName "temporalPartOfASpatialPart"^^xsd:string | 1015 | + [ sp:varName "parameterSetFacility"^^xsd:string |
| 508 | ] | 1016 | ] |
| 509 | - ] [ rdf:type sp:Optional ; | 1017 | + ] [ sp:object |
| 510 | - sp:elements ([ sp:object | 1018 | + [ sp:varName "intervalString"^^xsd:string |
| 511 | - [ sp:varName "dTim"^^xsd:string | ||
| 512 | ] ; | 1019 | ] ; |
| 513 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTim> ; | 1020 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#necessaryIntervalString> ; |
| 514 | sp:subject | 1021 | sp:subject |
| 515 | - [ sp:varName "parameterRef"^^xsd:string | 1022 | + [ sp:varName "parameterSetFacility"^^xsd:string |
| 516 | ] | 1023 | ] |
| 517 | - ]) | 1024 | + ] [ rdf:type sp:Bind ; |
| 518 | - ] [ rdf:type sp:Optional ; | 1025 | + sp:expression |
| 519 | - sp:elements ([ sp:object | 1026 | + [ rdf:type afn:substr ; |
| 520 | - [ sp:varName "dTimStart"^^xsd:string | 1027 | + sp:arg1 [ sp:varName "intervalString"^^xsd:string |
| 521 | ] ; | 1028 | ] ; |
| 522 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimStart> ; | 1029 | + sp:arg2 0 ; |
| 523 | - sp:subject | 1030 | + sp:arg3 [ rdf:type smf:indexOf ; |
| 524 | - [ sp:varName "parameterRef"^^xsd:string | 1031 | + sp:arg1 [ sp:varName "intervalString"^^xsd:string |
| 1032 | + ] ; | ||
| 1033 | + sp:arg2 "$" | ||
| 525 | ] | 1034 | ] |
| 526 | - ]) | ||
| 527 | - ] [ rdf:type sp:Optional ; | ||
| 528 | - sp:elements ([ sp:object | ||
| 529 | - [ sp:varName "dTimEnd"^^xsd:string | ||
| 530 | ] ; | 1035 | ] ; |
| 531 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dTimEnd> ; | 1036 | + sp:variable |
| 532 | - sp:subject | 1037 | + [ sp:varName "intervalStart"^^xsd:string |
| 533 | - [ sp:varName "parameterRef"^^xsd:string | ||
| 534 | ] | 1038 | ] |
| 535 | - ]) | 1039 | + ] [ rdf:type sp:Bind ; |
| 536 | - ] [ rdf:type sp:Optional ; | 1040 | + sp:expression |
| 537 | - sp:elements ([ sp:object | 1041 | + [ rdf:type afn:substr ; |
| 538 | - [ sp:varName "dateStart"^^xsd:string | 1042 | + sp:arg1 [ rdf:type afn:substr ; |
| 1043 | + sp:arg1 [ sp:varName "intervalString"^^xsd:string | ||
| 539 | ] ; | 1044 | ] ; |
| 540 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateStart> ; | 1045 | + sp:arg2 [ rdf:type smf:indexOf ; |
| 541 | - sp:subject | 1046 | + sp:arg1 [ sp:varName "intervalString"^^xsd:string |
| 542 | - [ sp:varName "parameterRef"^^xsd:string | 1047 | + ] ; |
| 1048 | + sp:arg2 "$" | ||
| 543 | ] | 1049 | ] |
| 544 | - ]) | ||
| 545 | - ] [ rdf:type sp:Optional ; | ||
| 546 | - sp:elements ([ sp:object | ||
| 547 | - [ sp:varName "dateEnd"^^xsd:string | ||
| 548 | ] ; | 1050 | ] ; |
| 549 | - sp:predicate <http://www.epim.no/schemas/mprml/1#dateEnd> ; | 1051 | + sp:arg2 1 |
| 550 | - sp:subject | 1052 | + ] ; |
| 551 | - [ sp:varName "parameterRef"^^xsd:string | 1053 | + sp:variable |
| 1054 | + [ sp:varName "intervalEnd"^^xsd:string | ||
| 552 | ] | 1055 | ] |
| 553 | ]) | 1056 | ]) |
| 554 | - ]) | ||
| 555 | ] ; | 1057 | ] ; |
| 556 | spin:rule | 1058 | spin:rule |
| 557 | [ rdf:type sp:Construct ; | 1059 | [ rdf:type sp:Construct ; |
| 558 | - rdfs:comment "STEP 80002b Measurement qualifier not specified"^^xsd:string ; | 1060 | + rdfs:comment "STEP 80000d The whole production facility has the parameterSet property"^^xsd:string ; |
| 559 | - sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/core#MeasuredState> ; | 1061 | + sp:templates ([ sp:object spin:_this ; |
| 560 | - sp:predicate rdf:type ; | 1062 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
| 561 | sp:subject | 1063 | sp:subject |
| 562 | - [ sp:varName "temporalPart"^^xsd:string | 1064 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 563 | ] | 1065 | ] |
| 564 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#ValidlyMeasuredState> ; | 1066 | + ]) ; |
| 1067 | + sp:where ([ sp:object spin:_this ; | ||
| 1068 | + sp:predicate <http://www.epim.no/schemas/mprml/1#parameterSetRef> ; | ||
| 1069 | + sp:subject | ||
| 1070 | + [ sp:varName "facilityRef"^^xsd:string | ||
| 1071 | + ] | ||
| 1072 | + ] [ sp:object | ||
| 1073 | + [ sp:varName "facilityRef"^^xsd:string | ||
| 1074 | + ] ; | ||
| 1075 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
| 1076 | + sp:subject | ||
| 1077 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string | ||
| 1078 | + ] | ||
| 1079 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ; | ||
| 565 | sp:predicate rdf:type ; | 1080 | sp:predicate rdf:type ; |
| 566 | sp:subject | 1081 | sp:subject |
| 567 | - [ sp:varName "temporalPart"^^xsd:string | 1082 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 568 | ] | 1083 | ] |
| 569 | - ]) ; | 1084 | + ] [ sp:object |
| 570 | - sp:where ([ rdf:type sp:NotExists ; | 1085 | + [ sp:varName "nameRef"^^xsd:string |
| 571 | - sp:elements ([ sp:object | ||
| 572 | - [ sp:varName "qualifierRef"^^xsd:string | ||
| 573 | ] ; | 1086 | ] ; |
| 574 | - sp:predicate <http://www.epim.no/schemas/mprml/1#qualifierRef> ; | 1087 | + sp:predicate <http://www.epim.no/schemas/mprml/1#nameRef> ; |
| 575 | sp:subject spin:_this | 1088 | sp:subject spin:_this |
| 576 | - ]) | ||
| 577 | ] [ sp:object | 1089 | ] [ sp:object |
| 578 | - [ sp:varName "parameterRef"^^xsd:string | 1090 | + [ sp:varName "nameRef"^^xsd:string |
| 579 | ] ; | 1091 | ] ; |
| 580 | - sp:predicate <http://www.epim.no/schemas/mprml/1#parameterRef> ; | 1092 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#domainOfPropertyMapsToMPREnumeration> ; |
| 581 | - sp:subject spin:_this | 1093 | + sp:subject |
| 1094 | + [ sp:varName "classOfProductionFacility"^^xsd:string | ||
| 1095 | + ] | ||
| 582 | ] [ sp:object | 1096 | ] [ sp:object |
| 583 | - [ sp:varName "parameterRef"^^xsd:string | 1097 | + [ sp:varName "classOfProductionFacility"^^xsd:string |
| 584 | ] ; | 1098 | ] ; |
| 585 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 1099 | + sp:predicate rdf:type ; |
| 586 | sp:subject | 1100 | sp:subject |
| 587 | - [ sp:varName "temporalPart"^^xsd:string | 1101 | + [ sp:varName "temporalPartOfAProductionFacility"^^xsd:string |
| 588 | ] | 1102 | ] |
| 589 | ]) | 1103 | ]) |
| 590 | ] . | 1104 | ] . | ... | ... |
-
Please register or login to post a comment