Showing
7 changed files
with
785 additions
and
69 deletions
This diff could not be displayed because it is too large.
... | @@ -23,7 +23,7 @@ | ... | @@ -23,7 +23,7 @@ |
23 | 23 | ||
24 | <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> | 24 | <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> |
25 | rdf:type owl:Ontology ; | 25 | rdf:type owl:Ontology ; |
26 | - owl:imports <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.reportinghub.no/ep/schema/1.0/production-activity> , <http://www.reportinghub.no/ep/schema/1.0/production-equipment> , <http://www.reportinghub.no/ep/spin/1.1/lib> ; | 26 | + owl:imports <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production-equipment> , <http://www.reportinghub.no/ep/schema/1.0/production-activity> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.epim.no/schemas/mprml/1> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> ; |
27 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 27 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
28 | 28 | ||
29 | ep-mpr-spin-lib:Function | 29 | ep-mpr-spin-lib:Function |
... | @@ -2826,6 +2826,79 @@ ep-mpr-spin-lib:selectMassScale | ... | @@ -2826,6 +2826,79 @@ ep-mpr-spin-lib:selectMassScale |
2826 | ]) | 2826 | ]) |
2827 | ] . | 2827 | ] . |
2828 | 2828 | ||
2829 | +ep-mpr-spin-lib:selectMeasuredQualityType | ||
2830 | + rdf:type spin:Function ; | ||
2831 | + rdfs:label "select MeasuredQualityType"^^xsd:string ; | ||
2832 | + rdfs:subClassOf ep-mpr-spin-lib:Function ; | ||
2833 | + spin:body | ||
2834 | + [ rdf:type sp:Select ; | ||
2835 | + sp:resultVariables ([ sp:varName "measuredQualityType"^^xsd:string | ||
2836 | + ]) ; | ||
2837 | + sp:where ([ rdf:type sp:Bind ; | ||
2838 | + sp:expression | ||
2839 | + [ rdf:type sp:if ; | ||
2840 | + sp:arg1 [ rdf:type sp:eq ; | ||
2841 | + sp:arg1 spin:_arg1 ; | ||
2842 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#VS_badcalibration> | ||
2843 | + ] ; | ||
2844 | + sp:arg2 <http://www.reportinghub.no/ep/schema/core#MeasuredWithABadlyCalibratedSensor> ; | ||
2845 | + sp:arg3 [ rdf:type sp:if ; | ||
2846 | + sp:arg1 [ rdf:type sp:eq ; | ||
2847 | + sp:arg1 spin:_arg1 ; | ||
2848 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#VS_rangelimit> | ||
2849 | + ] ; | ||
2850 | + sp:arg2 <http://www.reportinghub.no/ep/schema/core#MeasuredWithASensorThatIsNearTheLimitOfItsRange> ; | ||
2851 | + sp:arg3 [ rdf:type sp:if ; | ||
2852 | + sp:arg1 [ rdf:type sp:eq ; | ||
2853 | + sp:arg1 spin:_arg1 ; | ||
2854 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#VS_questionable> | ||
2855 | + ] ; | ||
2856 | + sp:arg2 <http://www.reportinghub.no/ep/schema/core#QuestionablyMeasured> ; | ||
2857 | + sp:arg3 [ rdf:type sp:if ; | ||
2858 | + sp:arg1 [ rdf:type sp:eq ; | ||
2859 | + sp:arg1 spin:_arg1 ; | ||
2860 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#VS_devicefailure> | ||
2861 | + ] ; | ||
2862 | + sp:arg2 <http://www.reportinghub.no/ep/schema/core#InvalidlyMeasuredBecauseOfDeviceFailure> ; | ||
2863 | + sp:arg3 [ rdf:type sp:if ; | ||
2864 | + sp:arg1 [ rdf:type sp:eq ; | ||
2865 | + sp:arg1 spin:_arg1 ; | ||
2866 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#VS_sensorfailure> | ||
2867 | + ] ; | ||
2868 | + sp:arg2 <http://www.reportinghub.no/ep/schema/core#InvalidlyMeasuredBecauseOfSensorFailure> ; | ||
2869 | + sp:arg3 [ rdf:type sp:if ; | ||
2870 | + sp:arg1 [ rdf:type sp:eq ; | ||
2871 | + sp:arg1 spin:_arg1 ; | ||
2872 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#VS_commfailure> | ||
2873 | + ] ; | ||
2874 | + sp:arg2 <http://www.reportinghub.no/ep/schema/core#InvalidlyMeasuredBecauseOfCommunicationsFailure> ; | ||
2875 | + sp:arg3 [ rdf:type sp:if ; | ||
2876 | + sp:arg1 [ rdf:type sp:eq ; | ||
2877 | + sp:arg1 spin:_arg1 ; | ||
2878 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#VS_timeout> | ||
2879 | + ] ; | ||
2880 | + sp:arg2 <http://www.reportinghub.no/ep/schema/core#InvalidlyMeasuredBecauseTheSensorHasNotReturnedDataInTime> ; | ||
2881 | + sp:arg3 [ rdf:type sp:if ; | ||
2882 | + sp:arg1 [ rdf:type sp:eq ; | ||
2883 | + sp:arg1 spin:_arg1 ; | ||
2884 | + sp:arg2 <http://www.epim.no/schemas/mprml/1#VS_unknown> | ||
2885 | + ] ; | ||
2886 | + sp:arg2 <http://www.reportinghub.no/ep/schema/core#InvalidlyMeasured> ; | ||
2887 | + sp:arg3 <http://www.reportinghub.no/ep/schema/core#PhysicalThing> | ||
2888 | + ] | ||
2889 | + ] | ||
2890 | + ] | ||
2891 | + ] | ||
2892 | + ] | ||
2893 | + ] | ||
2894 | + ] | ||
2895 | + ] ; | ||
2896 | + sp:variable | ||
2897 | + [ sp:varName "measuredQualityType"^^xsd:string | ||
2898 | + ] | ||
2899 | + ]) | ||
2900 | + ] . | ||
2901 | + | ||
2829 | ep-mpr-spin-lib:selectMolarVolumeScale | 2902 | ep-mpr-spin-lib:selectMolarVolumeScale |
2830 | rdf:type spin:Function ; | 2903 | rdf:type spin:Function ; |
2831 | rdfs:subClassOf ep-mpr-spin-lib:Function ; | 2904 | rdfs:subClassOf ep-mpr-spin-lib:Function ; | ... | ... |
... | @@ -2030,25 +2030,173 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; | ... | @@ -2030,25 +2030,173 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; |
2030 | ]) | 2030 | ]) |
2031 | ] . | 2031 | ] . |
2032 | 2032 | ||
2033 | +<http://www.epim.no/schemas/mprml/1#VolumeFlowRateQualifiedMeasure> | ||
2034 | + spin:rule | ||
2035 | + [ rdf:type sp:Construct ; | ||
2036 | + rdfs:comment "STEP 90180b Process flow rate for a flow - status not supplied"^^xsd:string ; | ||
2037 | + sp:templates ([ sp:object _:b37 ; | ||
2038 | + sp:predicate rdf:type ; | ||
2039 | + sp:subject | ||
2040 | + [ sp:varName "flow"^^xsd:string | ||
2041 | + ] | ||
2042 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#VolumetricFlowRate> ; | ||
2043 | + sp:predicate rdf:type ; | ||
2044 | + sp:subject _:b37 | ||
2045 | + ] [ sp:object | ||
2046 | + [ sp:varName "realVolumeFlowRate"^^xsd:string | ||
2047 | + ] ; | ||
2048 | + sp:predicate | ||
2049 | + [ sp:varName "volumeFlowRateScale"^^xsd:string | ||
2050 | + ] ; | ||
2051 | + sp:subject _:b37 | ||
2052 | + ]) ; | ||
2053 | + sp:where ([ sp:object spin:_this ; | ||
2054 | + sp:predicate <http://www.epim.no/schemas/mprml/1#flowRateRef> ; | ||
2055 | + sp:subject | ||
2056 | + [ sp:varName "target"^^xsd:string | ||
2057 | + ] | ||
2058 | + ] [ sp:object | ||
2059 | + [ sp:varName "target"^^xsd:string | ||
2060 | + ] ; | ||
2061 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
2062 | + sp:subject | ||
2063 | + [ sp:varName "flow"^^xsd:string | ||
2064 | + ] | ||
2065 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ; | ||
2066 | + sp:predicate rdf:type ; | ||
2067 | + sp:subject | ||
2068 | + [ sp:varName "flow"^^xsd:string | ||
2069 | + ] | ||
2070 | + ] [ sp:object | ||
2071 | + [ sp:varName "realVolumeFlowRate"^^xsd:string | ||
2072 | + ] ; | ||
2073 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
2074 | + sp:subject spin:_this | ||
2075 | + ] [ sp:object | ||
2076 | + [ sp:varName "uomVolumeFlowRate"^^xsd:string | ||
2077 | + ] ; | ||
2078 | + sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ; | ||
2079 | + sp:subject spin:_this | ||
2080 | + ] [ rdf:type sp:Bind ; | ||
2081 | + sp:expression | ||
2082 | + [ rdf:type ep-mpr-spin-lib:selectVolumeFlowRateScale ; | ||
2083 | + sp:arg1 [ sp:varName "uomVolumeFlowRate"^^xsd:string | ||
2084 | + ] | ||
2085 | + ] ; | ||
2086 | + sp:variable | ||
2087 | + [ sp:varName "volumeFlowRateScale"^^xsd:string | ||
2088 | + ] | ||
2089 | + ] [ rdf:type sp:NotExists ; | ||
2090 | + sp:elements ([ sp:object | ||
2091 | + [ sp:varName "statusRef"^^xsd:string | ||
2092 | + ] ; | ||
2093 | + sp:predicate <http://www.epim.no/schemas/mprml/1#statusRef> ; | ||
2094 | + sp:subject spin:_this | ||
2095 | + ]) | ||
2096 | + ]) | ||
2097 | + ] ; | ||
2098 | + spin:rule | ||
2099 | + [ rdf:type sp:Construct ; | ||
2100 | + rdfs:comment "STEP 90180a Process flow rate for a flow - status supplied"^^xsd:string ; | ||
2101 | + sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ; | ||
2102 | + sp:predicate rdf:type ; | ||
2103 | + sp:subject _:b38 | ||
2104 | + ] [ sp:object | ||
2105 | + [ sp:varName "flow"^^xsd:string | ||
2106 | + ] ; | ||
2107 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
2108 | + sp:subject _:b38 | ||
2109 | + ] [ sp:object | ||
2110 | + [ sp:varName "measuredQualityType"^^xsd:string | ||
2111 | + ] ; | ||
2112 | + sp:predicate rdf:type ; | ||
2113 | + sp:subject _:b38 | ||
2114 | + ] [ sp:object _:b39 ; | ||
2115 | + sp:predicate rdf:type ; | ||
2116 | + sp:subject _:b38 | ||
2117 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#VolumetricFlowRate> ; | ||
2118 | + sp:predicate rdf:type ; | ||
2119 | + sp:subject _:b39 | ||
2120 | + ] [ sp:object | ||
2121 | + [ sp:varName "realVolumeFlowRate"^^xsd:string | ||
2122 | + ] ; | ||
2123 | + sp:predicate | ||
2124 | + [ sp:varName "volumeFlowRateScale"^^xsd:string | ||
2125 | + ] ; | ||
2126 | + sp:subject _:b39 | ||
2127 | + ]) ; | ||
2128 | + sp:where ([ sp:object spin:_this ; | ||
2129 | + sp:predicate <http://www.epim.no/schemas/mprml/1#flowRateRef> ; | ||
2130 | + sp:subject | ||
2131 | + [ sp:varName "target"^^xsd:string | ||
2132 | + ] | ||
2133 | + ] [ sp:object | ||
2134 | + [ sp:varName "target"^^xsd:string | ||
2135 | + ] ; | ||
2136 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
2137 | + sp:subject | ||
2138 | + [ sp:varName "flow"^^xsd:string | ||
2139 | + ] | ||
2140 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ; | ||
2141 | + sp:predicate rdf:type ; | ||
2142 | + sp:subject | ||
2143 | + [ sp:varName "flow"^^xsd:string | ||
2144 | + ] | ||
2145 | + ] [ sp:object | ||
2146 | + [ sp:varName "realVolumeFlowRate"^^xsd:string | ||
2147 | + ] ; | ||
2148 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
2149 | + sp:subject spin:_this | ||
2150 | + ] [ sp:object | ||
2151 | + [ sp:varName "uomVolumeFlowRate"^^xsd:string | ||
2152 | + ] ; | ||
2153 | + sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ; | ||
2154 | + sp:subject spin:_this | ||
2155 | + ] [ rdf:type sp:Bind ; | ||
2156 | + sp:expression | ||
2157 | + [ rdf:type ep-mpr-spin-lib:selectVolumeFlowRateScale ; | ||
2158 | + sp:arg1 [ sp:varName "uomVolumeFlowRate"^^xsd:string | ||
2159 | + ] | ||
2160 | + ] ; | ||
2161 | + sp:variable | ||
2162 | + [ sp:varName "volumeFlowRateScale"^^xsd:string | ||
2163 | + ] | ||
2164 | + ] [ sp:object | ||
2165 | + [ sp:varName "statusRef"^^xsd:string | ||
2166 | + ] ; | ||
2167 | + sp:predicate <http://www.epim.no/schemas/mprml/1#statusRef> ; | ||
2168 | + sp:subject spin:_this | ||
2169 | + ] [ rdf:type sp:Bind ; | ||
2170 | + sp:expression | ||
2171 | + [ rdf:type ep-mpr-spin-lib:selectMeasuredQualityType ; | ||
2172 | + sp:arg1 [ sp:varName "statusRef"^^xsd:string | ||
2173 | + ] | ||
2174 | + ] ; | ||
2175 | + sp:variable | ||
2176 | + [ sp:varName "measuredQualityType"^^xsd:string | ||
2177 | + ] | ||
2178 | + ]) | ||
2179 | + ] . | ||
2180 | + | ||
2033 | <http://www.epim.no/schemas/mprml/1#VolumeMeasure> | 2181 | <http://www.epim.no/schemas/mprml/1#VolumeMeasure> |
2034 | spin:rule | 2182 | spin:rule |
2035 | [ rdf:type sp:Construct ; | 2183 | [ rdf:type sp:Construct ; |
2036 | rdfs:comment "STEP 90071a Process volume for a quantity of material - creating volume if necessary"^^xsd:string ; | 2184 | rdfs:comment "STEP 90071a Process volume for a quantity of material - creating volume if necessary"^^xsd:string ; |
2037 | - sp:templates ([ sp:object _:b37 ; | 2185 | + sp:templates ([ sp:object _:b40 ; |
2038 | sp:predicate rdf:type ; | 2186 | sp:predicate rdf:type ; |
2039 | sp:subject | 2187 | sp:subject |
2040 | [ sp:varName "quantityOfMaterial"^^xsd:string | 2188 | [ sp:varName "quantityOfMaterial"^^xsd:string |
2041 | ] | 2189 | ] |
2042 | ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; | 2190 | ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; |
2043 | sp:predicate rdf:type ; | 2191 | sp:predicate rdf:type ; |
2044 | - sp:subject _:b37 | 2192 | + sp:subject _:b40 |
2045 | ] [ sp:object | 2193 | ] [ sp:object |
2046 | [ sp:varName "realVolume"^^xsd:string | 2194 | [ sp:varName "realVolume"^^xsd:string |
2047 | ] ; | 2195 | ] ; |
2048 | sp:predicate | 2196 | sp:predicate |
2049 | [ sp:varName "volumeScale"^^xsd:string | 2197 | [ sp:varName "volumeScale"^^xsd:string |
2050 | ] ; | 2198 | ] ; |
2051 | - sp:subject _:b37 | 2199 | + sp:subject _:b40 |
2052 | ]) ; | 2200 | ]) ; |
2053 | sp:where ([ sp:object spin:_this ; | 2201 | sp:where ([ sp:object spin:_this ; |
2054 | sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ; | 2202 | sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ; |
... | @@ -2196,21 +2344,21 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; | ... | @@ -2196,21 +2344,21 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; |
2196 | spin:rule | 2344 | spin:rule |
2197 | [ rdf:type sp:Construct ; | 2345 | [ rdf:type sp:Construct ; |
2198 | rdfs:comment "STEP 90072b Process volume at standard temperature pressure for a quantity of material"^^xsd:string ; | 2346 | rdfs:comment "STEP 90072b Process volume at standard temperature pressure for a quantity of material"^^xsd:string ; |
2199 | - sp:templates ([ sp:object _:b38 ; | 2347 | + sp:templates ([ sp:object _:b41 ; |
2200 | sp:predicate rdf:type ; | 2348 | sp:predicate rdf:type ; |
2201 | sp:subject | 2349 | sp:subject |
2202 | [ sp:varName "stdQuantityOfMaterial"^^xsd:string | 2350 | [ sp:varName "stdQuantityOfMaterial"^^xsd:string |
2203 | ] | 2351 | ] |
2204 | ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; | 2352 | ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; |
2205 | sp:predicate rdf:type ; | 2353 | sp:predicate rdf:type ; |
2206 | - sp:subject _:b38 | 2354 | + sp:subject _:b41 |
2207 | ] [ sp:object | 2355 | ] [ sp:object |
2208 | [ sp:varName "realVolume"^^xsd:string | 2356 | [ sp:varName "realVolume"^^xsd:string |
2209 | ] ; | 2357 | ] ; |
2210 | sp:predicate | 2358 | sp:predicate |
2211 | [ sp:varName "volumeScale"^^xsd:string | 2359 | [ sp:varName "volumeScale"^^xsd:string |
2212 | ] ; | 2360 | ] ; |
2213 | - sp:subject _:b38 | 2361 | + sp:subject _:b41 |
2214 | ]) ; | 2362 | ]) ; |
2215 | sp:where ([ sp:object spin:_this ; | 2363 | sp:where ([ sp:object spin:_this ; |
2216 | sp:predicate <http://www.epim.no/schemas/mprml/1#volumeStdTempPresRef> ; | 2364 | sp:predicate <http://www.epim.no/schemas/mprml/1#volumeStdTempPresRef> ; |
... | @@ -2339,19 +2487,19 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; | ... | @@ -2339,19 +2487,19 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; |
2339 | spin:rule | 2487 | spin:rule |
2340 | [ rdf:type sp:Construct ; | 2488 | [ rdf:type sp:Construct ; |
2341 | rdfs:comment "STEP 90070b Ensure that a quantity of material is derived from the target - flow does not have quantity of material"^^xsd:string ; | 2489 | rdfs:comment "STEP 90070b Ensure that a quantity of material is derived from the target - flow does not have quantity of material"^^xsd:string ; |
2342 | - sp:templates ([ sp:object _:b39 ; | 2490 | + sp:templates ([ sp:object _:b42 ; |
2343 | sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ; | 2491 | sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ; |
2344 | sp:subject | 2492 | sp:subject |
2345 | [ sp:varName "flow"^^xsd:string | 2493 | [ sp:varName "flow"^^xsd:string |
2346 | ] | 2494 | ] |
2347 | ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; | 2495 | ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; |
2348 | sp:predicate rdf:type ; | 2496 | sp:predicate rdf:type ; |
2349 | - sp:subject _:b39 | 2497 | + sp:subject _:b42 |
2350 | ] [ sp:object | 2498 | ] [ sp:object |
2351 | [ sp:varName "target"^^xsd:string | 2499 | [ sp:varName "target"^^xsd:string |
2352 | ] ; | 2500 | ] ; |
2353 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 2501 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
2354 | - sp:subject _:b39 | 2502 | + sp:subject _:b42 |
2355 | ]) ; | 2503 | ]) ; |
2356 | sp:where ([ rdf:type sp:Exists ; | 2504 | sp:where ([ rdf:type sp:Exists ; |
2357 | sp:elements ([ rdf:type sp:Union ; | 2505 | sp:elements ([ rdf:type sp:Union ; |
... | @@ -2409,22 +2557,22 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; | ... | @@ -2409,22 +2557,22 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; |
2409 | rdfs:comment "STEP 90072a Create a temporal part at standard temperature pressure if necessary"^^xsd:string ; | 2557 | rdfs:comment "STEP 90072a Create a temporal part at standard temperature pressure if necessary"^^xsd:string ; |
2410 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterialInAStandardState> ; | 2558 | sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterialInAStandardState> ; |
2411 | sp:predicate rdf:type ; | 2559 | sp:predicate rdf:type ; |
2412 | - sp:subject _:b40 | 2560 | + sp:subject _:b43 |
2413 | ] [ sp:object | 2561 | ] [ sp:object |
2414 | [ sp:varName "quantityOfMaterial"^^xsd:string | 2562 | [ sp:varName "quantityOfMaterial"^^xsd:string |
2415 | ] ; | 2563 | ] ; |
2416 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | 2564 | sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; |
2417 | - sp:subject _:b40 | 2565 | + sp:subject _:b43 |
2418 | ] [ sp:object | 2566 | ] [ sp:object |
2419 | [ sp:varName "standardTemperature"^^xsd:string | 2567 | [ sp:varName "standardTemperature"^^xsd:string |
2420 | ] ; | 2568 | ] ; |
2421 | sp:predicate rdf:type ; | 2569 | sp:predicate rdf:type ; |
2422 | - sp:subject _:b40 | 2570 | + sp:subject _:b43 |
2423 | ] [ sp:object | 2571 | ] [ sp:object |
2424 | [ sp:varName "standardPressure"^^xsd:string | 2572 | [ sp:varName "standardPressure"^^xsd:string |
2425 | ] ; | 2573 | ] ; |
2426 | sp:predicate rdf:type ; | 2574 | sp:predicate rdf:type ; |
2427 | - sp:subject _:b40 | 2575 | + sp:subject _:b43 |
2428 | ]) ; | 2576 | ]) ; |
2429 | sp:where ([ sp:object spin:_this ; | 2577 | sp:where ([ sp:object spin:_this ; |
2430 | sp:predicate <http://www.epim.no/schemas/mprml/1#volumeStdTempPresRef> ; | 2578 | sp:predicate <http://www.epim.no/schemas/mprml/1#volumeStdTempPresRef> ; |
... | @@ -2504,50 +2652,54 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; | ... | @@ -2504,50 +2652,54 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; |
2504 | <http://www.epim.no/schemas/mprml/1#VolumeQualifiedMeasure> | 2652 | <http://www.epim.no/schemas/mprml/1#VolumeQualifiedMeasure> |
2505 | spin:rule | 2653 | spin:rule |
2506 | [ rdf:type sp:Construct ; | 2654 | [ rdf:type sp:Construct ; |
2507 | - rdfs:comment "STEP 90071a Process volume for a flow - creating a quantity of material if necessary"^^xsd:string ; | 2655 | + rdfs:comment "STEP 90171d Process volume for a quantity of material - volume for not for a specified state - no status exists - volume exists"^^xsd:string ; |
2508 | - sp:templates ([ sp:object _:b41 ; | 2656 | + sp:templates ([ sp:object |
2509 | - sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ; | ||
2510 | - sp:subject | ||
2511 | - [ sp:varName "flow"^^xsd:string | ||
2512 | - ] | ||
2513 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; | ||
2514 | - sp:predicate rdf:type ; | ||
2515 | - sp:subject _:b41 | ||
2516 | - ] [ sp:object | ||
2517 | - [ sp:varName "target"^^xsd:string | ||
2518 | - ] ; | ||
2519 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
2520 | - sp:subject _:b41 | ||
2521 | - ] [ sp:object _:b42 ; | ||
2522 | - sp:predicate rdf:type ; | ||
2523 | - sp:subject _:b41 | ||
2524 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; | ||
2525 | - sp:predicate rdf:type ; | ||
2526 | - sp:subject _:b42 | ||
2527 | - ] [ sp:object | ||
2528 | [ sp:varName "realVolume"^^xsd:string | 2657 | [ sp:varName "realVolume"^^xsd:string |
2529 | ] ; | 2658 | ] ; |
2530 | sp:predicate | 2659 | sp:predicate |
2531 | [ sp:varName "volumeScale"^^xsd:string | 2660 | [ sp:varName "volumeScale"^^xsd:string |
2532 | ] ; | 2661 | ] ; |
2533 | - sp:subject _:b42 | 2662 | + sp:subject |
2663 | + [ sp:varName "volume"^^xsd:string | ||
2664 | + ] | ||
2534 | ]) ; | 2665 | ]) ; |
2535 | sp:where ([ sp:object spin:_this ; | 2666 | sp:where ([ sp:object spin:_this ; |
2536 | sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ; | 2667 | sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ; |
2537 | sp:subject | 2668 | sp:subject |
2538 | [ sp:varName "target"^^xsd:string | 2669 | [ sp:varName "target"^^xsd:string |
2539 | ] | 2670 | ] |
2671 | + ] [ rdf:type sp:NotExists ; | ||
2672 | + sp:elements ([ sp:object | ||
2673 | + [ sp:varName "target"^^xsd:string | ||
2674 | + ] ; | ||
2675 | + sp:predicate <http://www.epim.no/schemas/mprml/1#volumeValueRef> ; | ||
2676 | + sp:subject | ||
2677 | + [ sp:varName "somethingRef"^^xsd:string | ||
2678 | + ] | ||
2679 | + ]) | ||
2540 | ] [ sp:object | 2680 | ] [ sp:object |
2541 | [ sp:varName "target"^^xsd:string | 2681 | [ sp:varName "target"^^xsd:string |
2542 | ] ; | 2682 | ] ; |
2543 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 2683 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
2544 | sp:subject | 2684 | sp:subject |
2545 | - [ sp:varName "flow"^^xsd:string | 2685 | + [ sp:varName "quantityOfMaterial"^^xsd:string |
2546 | ] | 2686 | ] |
2547 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ; | 2687 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; |
2548 | sp:predicate rdf:type ; | 2688 | sp:predicate rdf:type ; |
2549 | sp:subject | 2689 | sp:subject |
2550 | - [ sp:varName "flow"^^xsd:string | 2690 | + [ sp:varName "quantityOfMaterial"^^xsd:string |
2691 | + ] | ||
2692 | + ] [ sp:object | ||
2693 | + [ sp:varName "volume"^^xsd:string | ||
2694 | + ] ; | ||
2695 | + sp:predicate rdf:type ; | ||
2696 | + sp:subject | ||
2697 | + [ sp:varName "quantityOfMaterial"^^xsd:string | ||
2698 | + ] | ||
2699 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; | ||
2700 | + sp:predicate rdf:type ; | ||
2701 | + sp:subject | ||
2702 | + [ sp:varName "volume"^^xsd:string | ||
2551 | ] | 2703 | ] |
2552 | ] [ rdf:type sp:NotExists ; | 2704 | ] [ rdf:type sp:NotExists ; |
2553 | sp:elements ([ sp:object | 2705 | sp:elements ([ sp:object |
... | @@ -2555,12 +2707,12 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; | ... | @@ -2555,12 +2707,12 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; |
2555 | ] ; | 2707 | ] ; |
2556 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 2708 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
2557 | sp:subject | 2709 | sp:subject |
2558 | - [ sp:varName "quantityOfMaterialx"^^xsd:string | 2710 | + [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string |
2559 | ] | 2711 | ] |
2560 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; | 2712 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion> ; |
2561 | sp:predicate rdf:type ; | 2713 | sp:predicate rdf:type ; |
2562 | sp:subject | 2714 | sp:subject |
2563 | - [ sp:varName "quantityOfMaterialx"^^xsd:string | 2715 | + [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string |
2564 | ] | 2716 | ] |
2565 | ]) | 2717 | ]) |
2566 | ] [ sp:object | 2718 | ] [ sp:object |
... | @@ -2582,32 +2734,59 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; | ... | @@ -2582,32 +2734,59 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; |
2582 | sp:variable | 2734 | sp:variable |
2583 | [ sp:varName "volumeScale"^^xsd:string | 2735 | [ sp:varName "volumeScale"^^xsd:string |
2584 | ] | 2736 | ] |
2737 | + ] [ rdf:type sp:NotExists ; | ||
2738 | + sp:elements ([ sp:object | ||
2739 | + [ sp:varName "statusRef"^^xsd:string | ||
2740 | + ] ; | ||
2741 | + sp:predicate <http://www.epim.no/schemas/mprml/1#statusRef> ; | ||
2742 | + sp:subject spin:_this | ||
2743 | + ]) | ||
2585 | ]) | 2744 | ]) |
2586 | ] ; | 2745 | ] ; |
2587 | spin:rule | 2746 | spin:rule |
2588 | [ rdf:type sp:Construct ; | 2747 | [ rdf:type sp:Construct ; |
2589 | - rdfs:comment "STEP 90070a Process volume for a quantity of material"^^xsd:string ; | 2748 | + rdfs:comment "STEP 90171c Process volume for a quantity of material - volume for not for a specified state - status exists - create a new state and volume and associate status with that state"^^xsd:string ; |
2590 | - sp:templates ([ sp:object _:b43 ; | 2749 | + sp:templates ([ sp:object |
2591 | - sp:predicate rdf:type ; | ||
2592 | - sp:subject | ||
2593 | [ sp:varName "quantityOfMaterial"^^xsd:string | 2750 | [ sp:varName "quantityOfMaterial"^^xsd:string |
2594 | - ] | 2751 | + ] ; |
2752 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
2753 | + sp:subject _:b44 | ||
2754 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; | ||
2755 | + sp:predicate rdf:type ; | ||
2756 | + sp:subject _:b44 | ||
2757 | + ] [ sp:object | ||
2758 | + [ sp:varName "measuredQualityType"^^xsd:string | ||
2759 | + ] ; | ||
2760 | + sp:predicate rdf:type ; | ||
2761 | + sp:subject _:b44 | ||
2762 | + ] [ sp:object _:b45 ; | ||
2763 | + sp:predicate rdf:type ; | ||
2764 | + sp:subject _:b44 | ||
2595 | ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; | 2765 | ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; |
2596 | sp:predicate rdf:type ; | 2766 | sp:predicate rdf:type ; |
2597 | - sp:subject _:b43 | 2767 | + sp:subject _:b45 |
2598 | ] [ sp:object | 2768 | ] [ sp:object |
2599 | [ sp:varName "realVolume"^^xsd:string | 2769 | [ sp:varName "realVolume"^^xsd:string |
2600 | ] ; | 2770 | ] ; |
2601 | sp:predicate | 2771 | sp:predicate |
2602 | [ sp:varName "volumeScale"^^xsd:string | 2772 | [ sp:varName "volumeScale"^^xsd:string |
2603 | ] ; | 2773 | ] ; |
2604 | - sp:subject _:b43 | 2774 | + sp:subject _:b45 |
2605 | ]) ; | 2775 | ]) ; |
2606 | sp:where ([ sp:object spin:_this ; | 2776 | sp:where ([ sp:object spin:_this ; |
2607 | sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ; | 2777 | sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ; |
2608 | sp:subject | 2778 | sp:subject |
2609 | [ sp:varName "target"^^xsd:string | 2779 | [ sp:varName "target"^^xsd:string |
2610 | ] | 2780 | ] |
2781 | + ] [ rdf:type sp:NotExists ; | ||
2782 | + sp:elements ([ sp:object | ||
2783 | + [ sp:varName "target"^^xsd:string | ||
2784 | + ] ; | ||
2785 | + sp:predicate <http://www.epim.no/schemas/mprml/1#volumeValueRef> ; | ||
2786 | + sp:subject | ||
2787 | + [ sp:varName "somethingRef"^^xsd:string | ||
2788 | + ] | ||
2789 | + ]) | ||
2611 | ] [ sp:object | 2790 | ] [ sp:object |
2612 | [ sp:varName "target"^^xsd:string | 2791 | [ sp:varName "target"^^xsd:string |
2613 | ] ; | 2792 | ] ; |
... | @@ -2620,20 +2799,6 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; | ... | @@ -2620,20 +2799,6 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; |
2620 | sp:subject | 2799 | sp:subject |
2621 | [ sp:varName "quantityOfMaterial"^^xsd:string | 2800 | [ sp:varName "quantityOfMaterial"^^xsd:string |
2622 | ] | 2801 | ] |
2623 | - ] [ rdf:type sp:NotExists ; | ||
2624 | - sp:elements ([ sp:object | ||
2625 | - [ sp:varName "target"^^xsd:string | ||
2626 | - ] ; | ||
2627 | - sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
2628 | - sp:subject | ||
2629 | - [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string | ||
2630 | - ] | ||
2631 | - ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ClassOfMaterialWithMassCriterion> ; | ||
2632 | - sp:predicate rdf:type ; | ||
2633 | - sp:subject | ||
2634 | - [ sp:varName "classOfMaterialWithMassCriterion"^^xsd:string | ||
2635 | - ] | ||
2636 | - ]) | ||
2637 | ] [ sp:object | 2802 | ] [ sp:object |
2638 | [ sp:varName "realVolume"^^xsd:string | 2803 | [ sp:varName "realVolume"^^xsd:string |
2639 | ] ; | 2804 | ] ; |
... | @@ -2653,6 +2818,484 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; | ... | @@ -2653,6 +2818,484 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; |
2653 | sp:variable | 2818 | sp:variable |
2654 | [ sp:varName "volumeScale"^^xsd:string | 2819 | [ sp:varName "volumeScale"^^xsd:string |
2655 | ] | 2820 | ] |
2821 | + ] [ sp:object | ||
2822 | + [ sp:varName "statusRef"^^xsd:string | ||
2823 | + ] ; | ||
2824 | + sp:predicate <http://www.epim.no/schemas/mprml/1#statusRef> ; | ||
2825 | + sp:subject spin:_this | ||
2826 | + ] [ rdf:type sp:Bind ; | ||
2827 | + sp:expression | ||
2828 | + [ rdf:type ep-mpr-spin-lib:selectMeasuredQualityType ; | ||
2829 | + sp:arg1 [ sp:varName "statusRef"^^xsd:string | ||
2830 | + ] | ||
2831 | + ] ; | ||
2832 | + sp:variable | ||
2833 | + [ sp:varName "measuredQualityType"^^xsd:string | ||
2834 | + ] | ||
2835 | + ]) | ||
2836 | + ] ; | ||
2837 | + spin:rule | ||
2838 | + [ rdf:type sp:Construct ; | ||
2839 | + rdfs:comment "STEP 90171b Process volume for a quantity of material - creating volume if necessary - volume for a specified state, so associate status with that state"^^xsd:string ; | ||
2840 | + sp:templates ([ sp:object _:b46 ; | ||
2841 | + sp:predicate rdf:type ; | ||
2842 | + sp:subject | ||
2843 | + [ sp:varName "quantityOfMaterial"^^xsd:string | ||
2844 | + ] | ||
2845 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; | ||
2846 | + sp:predicate rdf:type ; | ||
2847 | + sp:subject _:b46 | ||
2848 | + ] [ sp:object | ||
2849 | + [ sp:varName "realVolume"^^xsd:string | ||
2850 | + ] ; | ||
2851 | + sp:predicate | ||
2852 | + [ sp:varName "volumeScale"^^xsd:string | ||
2853 | + ] ; | ||
2854 | + sp:subject _:b46 | ||
2855 | + ] [ sp:object | ||
2856 | + [ sp:varName "measuredQualityType"^^xsd:string | ||
2857 | + ] ; | ||
2858 | + sp:predicate rdf:type ; | ||
2859 | + sp:subject | ||
2860 | + [ sp:varName "quantityOfMaterial"^^xsd:string | ||
2861 | + ] | ||
2862 | + ]) ; | ||
2863 | + sp:where ([ sp:object | ||
2864 | + [ sp:varName "target"^^xsd:string | ||
2865 | + ] ; | ||
2866 | + sp:predicate <http://www.epim.no/schemas/mprml/1#volumeValueRef> ; | ||
2867 | + sp:subject | ||
2868 | + [ sp:varName "somethingRef"^^xsd:string | ||
2869 | + ] | ||
2870 | + ] [ sp:object spin:_this ; | ||
2871 | + sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ; | ||
2872 | + sp:subject | ||
2873 | + [ sp:varName "target"^^xsd:string | ||
2874 | + ] | ||
2875 | + ] [ sp:object | ||
2876 | + [ sp:varName "target"^^xsd:string | ||
2877 | + ] ; | ||
2878 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
2879 | + sp:subject | ||
2880 | + [ sp:varName "quantityOfMaterial"^^xsd:string | ||
2881 | + ] | ||
2882 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; | ||
2883 | + sp:predicate rdf:type ; | ||
2884 | + sp:subject | ||
2885 | + [ sp:varName "quantityOfMaterial"^^xsd:string | ||
2886 | + ] | ||
2887 | + ] [ rdf:type sp:NotExists ; | ||
2888 | + sp:elements ([ sp:object | ||
2889 | + [ sp:varName "volume"^^xsd:string | ||
2890 | + ] ; | ||
2891 | + sp:predicate rdf:type ; | ||
2892 | + sp:subject | ||
2893 | + [ sp:varName "quantityOfMaterial"^^xsd:string | ||
2894 | + ] | ||
2895 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; | ||
2896 | + sp:predicate rdf:type ; | ||
2897 | + sp:subject | ||
2898 | + [ sp:varName "volume"^^xsd:string | ||
2899 | + ] | ||
2900 | + ]) | ||
2901 | + ] [ sp:object | ||
2902 | + [ sp:varName "realVolume"^^xsd:string | ||
2903 | + ] ; | ||
2904 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
2905 | + sp:subject spin:_this | ||
2906 | + ] [ sp:object | ||
2907 | + [ sp:varName "uomVolume"^^xsd:string | ||
2908 | + ] ; | ||
2909 | + sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ; | ||
2910 | + sp:subject spin:_this | ||
2911 | + ] [ rdf:type sp:Bind ; | ||
2912 | + sp:expression | ||
2913 | + [ rdf:type ep-mpr-spin-lib:selectVolumeScale ; | ||
2914 | + sp:arg1 [ sp:varName "uomVolume"^^xsd:string | ||
2915 | + ] | ||
2916 | + ] ; | ||
2917 | + sp:variable | ||
2918 | + [ sp:varName "volumeScale"^^xsd:string | ||
2919 | + ] | ||
2920 | + ] [ rdf:type sp:Optional ; | ||
2921 | + sp:elements ([ sp:object | ||
2922 | + [ sp:varName "statusRef"^^xsd:string | ||
2923 | + ] ; | ||
2924 | + sp:predicate <http://www.epim.no/schemas/mprml/1#statusRef> ; | ||
2925 | + sp:subject spin:_this | ||
2926 | + ] [ rdf:type sp:Bind ; | ||
2927 | + sp:expression | ||
2928 | + [ rdf:type ep-mpr-spin-lib:selectMeasuredQualityType ; | ||
2929 | + sp:arg1 [ sp:varName "statusRef"^^xsd:string | ||
2930 | + ] | ||
2931 | + ] ; | ||
2932 | + sp:variable | ||
2933 | + [ sp:varName "measuredQualityType"^^xsd:string | ||
2934 | + ] | ||
2935 | + ]) | ||
2936 | + ]) | ||
2937 | + ] ; | ||
2938 | + spin:rule | ||
2939 | + [ rdf:type sp:Construct ; | ||
2940 | + rdfs:comment "STEP 90171e Process volume for a quantity of material - volume for not for a specified state - no status exists - volume does not exist"^^xsd:string ; | ||
2941 | + sp:templates ([ sp:object _:b47 ; | ||
2942 | + sp:predicate rdf:type ; | ||
2943 | + sp:subject | ||
2944 | + [ sp:varName "quantityOfMaterial"^^xsd:string | ||
2945 | + ] | ||
2946 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; | ||
2947 | + sp:predicate rdf:type ; | ||
2948 | + sp:subject _:b47 | ||
2949 | + ] [ sp:object | ||
2950 | + [ sp:varName "realVolume"^^xsd:string | ||
2951 | + ] ; | ||
2952 | + sp:predicate | ||
2953 | + [ sp:varName "volumeScale"^^xsd:string | ||
2954 | + ] ; | ||
2955 | + sp:subject _:b47 | ||
2956 | + ]) ; | ||
2957 | + sp:where ([ sp:object spin:_this ; | ||
2958 | + sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ; | ||
2959 | + sp:subject | ||
2960 | + [ sp:varName "target"^^xsd:string | ||
2961 | + ] | ||
2962 | + ] [ rdf:type sp:NotExists ; | ||
2963 | + sp:elements ([ sp:object | ||
2964 | + [ sp:varName "target"^^xsd:string | ||
2965 | + ] ; | ||
2966 | + sp:predicate <http://www.epim.no/schemas/mprml/1#volumeValueRef> ; | ||
2967 | + sp:subject | ||
2968 | + [ sp:varName "somethingRef"^^xsd:string | ||
2969 | + ] | ||
2970 | + ]) | ||
2971 | + ] [ sp:object | ||
2972 | + [ sp:varName "target"^^xsd:string | ||
2973 | + ] ; | ||
2974 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
2975 | + sp:subject | ||
2976 | + [ sp:varName "quantityOfMaterial"^^xsd:string | ||
2977 | + ] | ||
2978 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; | ||
2979 | + sp:predicate rdf:type ; | ||
2980 | + sp:subject | ||
2981 | + [ sp:varName "quantityOfMaterial"^^xsd:string | ||
2982 | + ] | ||
2983 | + ] [ rdf:type sp:NotExists ; | ||
2984 | + sp:elements ([ sp:object | ||
2985 | + [ sp:varName "volume"^^xsd:string | ||
2986 | + ] ; | ||
2987 | + sp:predicate rdf:type ; | ||
2988 | + sp:subject | ||
2989 | + [ sp:varName "quantityOfMaterial"^^xsd:string | ||
2990 | + ] | ||
2991 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; | ||
2992 | + sp:predicate rdf:type ; | ||
2993 | + sp:subject | ||
2994 | + [ sp:varName "volume"^^xsd:string | ||
2995 | + ] | ||
2996 | + ]) | ||
2997 | + ] [ sp:object | ||
2998 | + [ sp:varName "realVolume"^^xsd:string | ||
2999 | + ] ; | ||
3000 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
3001 | + sp:subject spin:_this | ||
3002 | + ] [ sp:object | ||
3003 | + [ sp:varName "uomVolume"^^xsd:string | ||
3004 | + ] ; | ||
3005 | + sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ; | ||
3006 | + sp:subject spin:_this | ||
3007 | + ] [ rdf:type sp:Bind ; | ||
3008 | + sp:expression | ||
3009 | + [ rdf:type ep-mpr-spin-lib:selectVolumeScale ; | ||
3010 | + sp:arg1 [ sp:varName "uomVolume"^^xsd:string | ||
3011 | + ] | ||
3012 | + ] ; | ||
3013 | + sp:variable | ||
3014 | + [ sp:varName "volumeScale"^^xsd:string | ||
3015 | + ] | ||
3016 | + ] [ rdf:type sp:NotExists ; | ||
3017 | + sp:elements ([ sp:object | ||
3018 | + [ sp:varName "statusRef"^^xsd:string | ||
3019 | + ] ; | ||
3020 | + sp:predicate <http://www.epim.no/schemas/mprml/1#statusRef> ; | ||
3021 | + sp:subject spin:_this | ||
3022 | + ]) | ||
3023 | + ]) | ||
3024 | + ] ; | ||
3025 | + spin:rule | ||
3026 | + [ rdf:type sp:Construct ; | ||
3027 | + rdfs:comment "STEP 90171a Process volume for a quantity of material - volume exists - volume for a specified state, so associate status with that state"^^xsd:string ; | ||
3028 | + sp:templates ([ sp:object | ||
3029 | + [ sp:varName "realVolume"^^xsd:string | ||
3030 | + ] ; | ||
3031 | + sp:predicate | ||
3032 | + [ sp:varName "volumeScale"^^xsd:string | ||
3033 | + ] ; | ||
3034 | + sp:subject | ||
3035 | + [ sp:varName "volume"^^xsd:string | ||
3036 | + ] | ||
3037 | + ] [ sp:object | ||
3038 | + [ sp:varName "measuredQualityType"^^xsd:string | ||
3039 | + ] ; | ||
3040 | + sp:predicate rdf:type ; | ||
3041 | + sp:subject | ||
3042 | + [ sp:varName "quantityOfMaterial"^^xsd:string | ||
3043 | + ] | ||
3044 | + ]) ; | ||
3045 | + sp:where ([ sp:object | ||
3046 | + [ sp:varName "target"^^xsd:string | ||
3047 | + ] ; | ||
3048 | + sp:predicate <http://www.epim.no/schemas/mprml/1#volumeValueRef> ; | ||
3049 | + sp:subject | ||
3050 | + [ sp:varName "somethingRef"^^xsd:string | ||
3051 | + ] | ||
3052 | + ] [ sp:object spin:_this ; | ||
3053 | + sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ; | ||
3054 | + sp:subject | ||
3055 | + [ sp:varName "target"^^xsd:string | ||
3056 | + ] | ||
3057 | + ] [ sp:object | ||
3058 | + [ sp:varName "target"^^xsd:string | ||
3059 | + ] ; | ||
3060 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
3061 | + sp:subject | ||
3062 | + [ sp:varName "quantityOfMaterial"^^xsd:string | ||
3063 | + ] | ||
3064 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; | ||
3065 | + sp:predicate rdf:type ; | ||
3066 | + sp:subject | ||
3067 | + [ sp:varName "quantityOfMaterial"^^xsd:string | ||
3068 | + ] | ||
3069 | + ] [ sp:object | ||
3070 | + [ sp:varName "volume"^^xsd:string | ||
3071 | + ] ; | ||
3072 | + sp:predicate rdf:type ; | ||
3073 | + sp:subject | ||
3074 | + [ sp:varName "quantityOfMaterial"^^xsd:string | ||
3075 | + ] | ||
3076 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; | ||
3077 | + sp:predicate rdf:type ; | ||
3078 | + sp:subject | ||
3079 | + [ sp:varName "volume"^^xsd:string | ||
3080 | + ] | ||
3081 | + ] [ sp:object | ||
3082 | + [ sp:varName "realVolume"^^xsd:string | ||
3083 | + ] ; | ||
3084 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
3085 | + sp:subject spin:_this | ||
3086 | + ] [ sp:object | ||
3087 | + [ sp:varName "uomVolume"^^xsd:string | ||
3088 | + ] ; | ||
3089 | + sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ; | ||
3090 | + sp:subject spin:_this | ||
3091 | + ] [ rdf:type sp:Bind ; | ||
3092 | + sp:expression | ||
3093 | + [ rdf:type ep-mpr-spin-lib:selectVolumeScale ; | ||
3094 | + sp:arg1 [ sp:varName "uomVolume"^^xsd:string | ||
3095 | + ] | ||
3096 | + ] ; | ||
3097 | + sp:variable | ||
3098 | + [ sp:varName "volumeScale"^^xsd:string | ||
3099 | + ] | ||
3100 | + ] [ rdf:type sp:Optional ; | ||
3101 | + sp:elements ([ sp:object | ||
3102 | + [ sp:varName "statusRef"^^xsd:string | ||
3103 | + ] ; | ||
3104 | + sp:predicate <http://www.epim.no/schemas/mprml/1#statusRef> ; | ||
3105 | + sp:subject spin:_this | ||
3106 | + ] [ rdf:type sp:Bind ; | ||
3107 | + sp:expression | ||
3108 | + [ rdf:type ep-mpr-spin-lib:selectMeasuredQualityType ; | ||
3109 | + sp:arg1 [ sp:varName "statusRef"^^xsd:string | ||
3110 | + ] | ||
3111 | + ] ; | ||
3112 | + sp:variable | ||
3113 | + [ sp:varName "measuredQualityType"^^xsd:string | ||
3114 | + ] | ||
3115 | + ]) | ||
3116 | + ]) | ||
3117 | + ] ; | ||
3118 | + spin:rule | ||
3119 | + [ rdf:type sp:Construct ; | ||
3120 | + rdfs:comment "STEP 90170 Process volume for a flow - creating a quantity of material if necessary"^^xsd:string ; | ||
3121 | + sp:templates ([ sp:object _:b48 ; | ||
3122 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ; | ||
3123 | + sp:subject | ||
3124 | + [ sp:varName "flow"^^xsd:string | ||
3125 | + ] | ||
3126 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; | ||
3127 | + sp:predicate rdf:type ; | ||
3128 | + sp:subject _:b48 | ||
3129 | + ] [ sp:object | ||
3130 | + [ sp:varName "target"^^xsd:string | ||
3131 | + ] ; | ||
3132 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
3133 | + sp:subject _:b48 | ||
3134 | + ]) ; | ||
3135 | + sp:where ([ rdf:type sp:Exists ; | ||
3136 | + sp:elements ([ rdf:type sp:Union ; | ||
3137 | + sp:elements (([ sp:object spin:_this ; | ||
3138 | + sp:predicate <http://www.epim.no/schemas/mprml/1#volumeRef> ; | ||
3139 | + sp:subject | ||
3140 | + [ sp:varName "target"^^xsd:string | ||
3141 | + ] | ||
3142 | + ]) ([ sp:object spin:_this ; | ||
3143 | + sp:predicate <http://www.epim.no/schemas/mprml/1#volumeStdRef> ; | ||
3144 | + sp:subject | ||
3145 | + [ sp:varName "target"^^xsd:string | ||
3146 | + ] | ||
3147 | + ])) | ||
3148 | + ]) | ||
3149 | + ] [ sp:object | ||
3150 | + [ sp:varName "target"^^xsd:string | ||
3151 | + ] ; | ||
3152 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
3153 | + sp:subject | ||
3154 | + [ sp:varName "flow"^^xsd:string | ||
3155 | + ] | ||
3156 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ; | ||
3157 | + sp:predicate rdf:type ; | ||
3158 | + sp:subject | ||
3159 | + [ sp:varName "flow"^^xsd:string | ||
3160 | + ] | ||
3161 | + ] [ rdf:type sp:NotExists ; | ||
3162 | + sp:elements ([ sp:object | ||
3163 | + [ sp:varName "target"^^xsd:string | ||
3164 | + ] ; | ||
3165 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
3166 | + sp:subject | ||
3167 | + [ sp:varName "quantityOfMaterialx"^^xsd:string | ||
3168 | + ] | ||
3169 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; | ||
3170 | + sp:predicate rdf:type ; | ||
3171 | + sp:subject | ||
3172 | + [ sp:varName "quantityOfMaterialx"^^xsd:string | ||
3173 | + ] | ||
3174 | + ]) | ||
3175 | + ]) | ||
3176 | + ] ; | ||
3177 | + spin:rule | ||
3178 | + [ rdf:type sp:Construct ; | ||
3179 | + rdfs:comment "STEP 90172 Process volume at standard conditions for a quantity of material - create a new state and volume and associate status with that state"^^xsd:string ; | ||
3180 | + sp:templates ([ sp:object | ||
3181 | + [ sp:varName "quantityOfMaterial"^^xsd:string | ||
3182 | + ] ; | ||
3183 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
3184 | + sp:subject _:b49 | ||
3185 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; | ||
3186 | + sp:predicate rdf:type ; | ||
3187 | + sp:subject _:b49 | ||
3188 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterialInAStandardState> ; | ||
3189 | + sp:predicate rdf:type ; | ||
3190 | + sp:subject _:b49 | ||
3191 | + ] [ sp:object | ||
3192 | + [ sp:varName "standardTemperature"^^xsd:string | ||
3193 | + ] ; | ||
3194 | + sp:predicate rdf:type ; | ||
3195 | + sp:subject _:b49 | ||
3196 | + ] [ sp:object | ||
3197 | + [ sp:varName "standardPressure"^^xsd:string | ||
3198 | + ] ; | ||
3199 | + sp:predicate rdf:type ; | ||
3200 | + sp:subject _:b49 | ||
3201 | + ] [ sp:object | ||
3202 | + [ sp:varName "measuredQualityType"^^xsd:string | ||
3203 | + ] ; | ||
3204 | + sp:predicate rdf:type ; | ||
3205 | + sp:subject _:b49 | ||
3206 | + ] [ sp:object _:b50 ; | ||
3207 | + sp:predicate rdf:type ; | ||
3208 | + sp:subject _:b49 | ||
3209 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; | ||
3210 | + sp:predicate rdf:type ; | ||
3211 | + sp:subject _:b50 | ||
3212 | + ] [ sp:object | ||
3213 | + [ sp:varName "realVolume"^^xsd:string | ||
3214 | + ] ; | ||
3215 | + sp:predicate | ||
3216 | + [ sp:varName "volumeScale"^^xsd:string | ||
3217 | + ] ; | ||
3218 | + sp:subject _:b50 | ||
3219 | + ]) ; | ||
3220 | + sp:where ([ sp:object spin:_this ; | ||
3221 | + sp:predicate <http://www.epim.no/schemas/mprml/1#volumeStdRef> ; | ||
3222 | + sp:subject | ||
3223 | + [ sp:varName "target"^^xsd:string | ||
3224 | + ] | ||
3225 | + ] [ rdf:type sp:Optional ; | ||
3226 | + sp:elements ([ sp:object | ||
3227 | + [ sp:varName "standardTempPresRef"^^xsd:string | ||
3228 | + ] ; | ||
3229 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#standardTempPres> ; | ||
3230 | + sp:subject | ||
3231 | + [ sp:varName "target"^^xsd:string | ||
3232 | + ] | ||
3233 | + ]) | ||
3234 | + ] [ sp:object | ||
3235 | + [ sp:varName "target"^^xsd:string | ||
3236 | + ] ; | ||
3237 | + sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | ||
3238 | + sp:subject | ||
3239 | + [ sp:varName "quantityOfMaterial"^^xsd:string | ||
3240 | + ] | ||
3241 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; | ||
3242 | + sp:predicate rdf:type ; | ||
3243 | + sp:subject | ||
3244 | + [ sp:varName "quantityOfMaterial"^^xsd:string | ||
3245 | + ] | ||
3246 | + ] [ sp:object | ||
3247 | + [ sp:varName "realVolume"^^xsd:string | ||
3248 | + ] ; | ||
3249 | + sp:predicate <http://www.linkedmodel.org/schema/dtype#value> ; | ||
3250 | + sp:subject spin:_this | ||
3251 | + ] [ sp:object | ||
3252 | + [ sp:varName "uomVolume"^^xsd:string | ||
3253 | + ] ; | ||
3254 | + sp:predicate <http://www.epim.no/schemas/mprml/1#uomRef> ; | ||
3255 | + sp:subject spin:_this | ||
3256 | + ] [ rdf:type sp:Bind ; | ||
3257 | + sp:expression | ||
3258 | + [ rdf:type ep-mpr-spin-lib:selectVolumeScale ; | ||
3259 | + sp:arg1 [ sp:varName "uomVolume"^^xsd:string | ||
3260 | + ] | ||
3261 | + ] ; | ||
3262 | + sp:variable | ||
3263 | + [ sp:varName "volumeScale"^^xsd:string | ||
3264 | + ] | ||
3265 | + ] [ rdf:type sp:Optional ; | ||
3266 | + sp:elements ([ sp:object | ||
3267 | + [ sp:varName "statusRef"^^xsd:string | ||
3268 | + ] ; | ||
3269 | + sp:predicate <http://www.epim.no/schemas/mprml/1#statusRef> ; | ||
3270 | + sp:subject spin:_this | ||
3271 | + ] [ rdf:type sp:Bind ; | ||
3272 | + sp:expression | ||
3273 | + [ rdf:type ep-mpr-spin-lib:selectMeasuredQualityType ; | ||
3274 | + sp:arg1 [ sp:varName "statusRef"^^xsd:string | ||
3275 | + ] | ||
3276 | + ] ; | ||
3277 | + sp:variable | ||
3278 | + [ sp:varName "measuredQualityType"^^xsd:string | ||
3279 | + ] | ||
3280 | + ]) | ||
3281 | + ] [ rdf:type sp:Bind ; | ||
3282 | + sp:expression | ||
3283 | + [ rdf:type ep-mpr-spin-lib:selectStandardTempPres-Temperature ; | ||
3284 | + sp:arg1 [ sp:varName "standardTempPresRef"^^xsd:string | ||
3285 | + ] | ||
3286 | + ] ; | ||
3287 | + sp:variable | ||
3288 | + [ sp:varName "standardTemperature"^^xsd:string | ||
3289 | + ] | ||
3290 | + ] [ rdf:type sp:Bind ; | ||
3291 | + sp:expression | ||
3292 | + [ rdf:type ep-mpr-spin-lib:selectStandardTempPres-Pressure ; | ||
3293 | + sp:arg1 [ sp:varName "standardTempPresRef"^^xsd:string | ||
3294 | + ] | ||
3295 | + ] ; | ||
3296 | + sp:variable | ||
3297 | + [ sp:varName "standardPressure"^^xsd:string | ||
3298 | + ] | ||
2656 | ]) | 3299 | ]) |
2657 | ] . | 3300 | ] . |
2658 | 3301 | ||
... | @@ -2660,21 +3303,21 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; | ... | @@ -2660,21 +3303,21 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; |
2660 | spin:rule | 3303 | spin:rule |
2661 | [ rdf:type sp:Construct ; | 3304 | [ rdf:type sp:Construct ; |
2662 | rdfs:comment "STEP 90031 Process work for a quantity of material"^^xsd:string ; | 3305 | rdfs:comment "STEP 90031 Process work for a quantity of material"^^xsd:string ; |
2663 | - sp:templates ([ sp:object _:b44 ; | 3306 | + sp:templates ([ sp:object _:b51 ; |
2664 | sp:predicate rdf:type ; | 3307 | sp:predicate rdf:type ; |
2665 | sp:subject | 3308 | sp:subject |
2666 | [ sp:varName "quantityOfMaterial"^^xsd:string | 3309 | [ sp:varName "quantityOfMaterial"^^xsd:string |
2667 | ] | 3310 | ] |
2668 | ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Work> ; | 3311 | ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Work> ; |
2669 | sp:predicate rdf:type ; | 3312 | sp:predicate rdf:type ; |
2670 | - sp:subject _:b44 | 3313 | + sp:subject _:b51 |
2671 | ] [ sp:object | 3314 | ] [ sp:object |
2672 | [ sp:varName "realWork"^^xsd:string | 3315 | [ sp:varName "realWork"^^xsd:string |
2673 | ] ; | 3316 | ] ; |
2674 | sp:predicate | 3317 | sp:predicate |
2675 | [ sp:varName "workScale"^^xsd:string | 3318 | [ sp:varName "workScale"^^xsd:string |
2676 | ] ; | 3319 | ] ; |
2677 | - sp:subject _:b44 | 3320 | + sp:subject _:b51 |
2678 | ]) ; | 3321 | ]) ; |
2679 | sp:where ([ sp:object spin:_this ; | 3322 | sp:where ([ sp:object spin:_this ; |
2680 | sp:predicate <http://www.epim.no/schemas/mprml/1#workRef> ; | 3323 | sp:predicate <http://www.epim.no/schemas/mprml/1#workRef> ; |
... | @@ -2784,19 +3427,19 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; | ... | @@ -2784,19 +3427,19 @@ except where the quantity of material is derived from a flow"""^^xsd:string ; |
2784 | spin:rule | 3427 | spin:rule |
2785 | [ rdf:type sp:Construct ; | 3428 | [ rdf:type sp:Construct ; |
2786 | rdfs:comment "STEP 90030b Ensure that a quantity of material is derived from the target - flow does not have quantity of material"^^xsd:string ; | 3429 | rdfs:comment "STEP 90030b Ensure that a quantity of material is derived from the target - flow does not have quantity of material"^^xsd:string ; |
2787 | - sp:templates ([ sp:object _:b45 ; | 3430 | + sp:templates ([ sp:object _:b52 ; |
2788 | sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ; | 3431 | sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ; |
2789 | sp:subject | 3432 | sp:subject |
2790 | [ sp:varName "flow"^^xsd:string | 3433 | [ sp:varName "flow"^^xsd:string |
2791 | ] | 3434 | ] |
2792 | ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; | 3435 | ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ; |
2793 | sp:predicate rdf:type ; | 3436 | sp:predicate rdf:type ; |
2794 | - sp:subject _:b45 | 3437 | + sp:subject _:b52 |
2795 | ] [ sp:object | 3438 | ] [ sp:object |
2796 | [ sp:varName "target"^^xsd:string | 3439 | [ sp:varName "target"^^xsd:string |
2797 | ] ; | 3440 | ] ; |
2798 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; | 3441 | sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#derivedFrom> ; |
2799 | - sp:subject _:b45 | 3442 | + sp:subject _:b52 |
2800 | ]) ; | 3443 | ]) ; |
2801 | sp:where ([ rdf:type sp:Exists ; | 3444 | sp:where ([ rdf:type sp:Exists ; |
2802 | sp:elements ([ sp:object spin:_this ; | 3445 | sp:elements ([ sp:object spin:_this ; | ... | ... |
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
-
Please register or login to post a comment