Showing
2 changed files
with
360 additions
and
2 deletions
... | @@ -19,7 +19,7 @@ | ... | @@ -19,7 +19,7 @@ |
19 | 19 | ||
20 | <http://www.reportinghub.no/ep/spin/mpr-tables> | 20 | <http://www.reportinghub.no/ep/spin/mpr-tables> |
21 | rdf:type owl:Ontology ; | 21 | rdf:type owl:Ontology ; |
22 | - owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> ; | 22 | + owl:imports <http://www.reportinghub.no/ep/transform/transform-helper-schema> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://spinrdf.org/spin> ; |
23 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . | 23 | owl:versionInfo "Created with TopBraid Composer"^^xsd:string . |
24 | 24 | ||
25 | mpr-tables:Cargo | 25 | mpr-tables:Cargo |
... | @@ -1490,6 +1490,7 @@ mpr-tables:ProductionInventory | ... | @@ -1490,6 +1490,7 @@ mpr-tables:ProductionInventory |
1490 | [ rdf:type sp:Select ; | 1490 | [ rdf:type sp:Select ; |
1491 | sp:resultVariables ([ sp:varName "wholeName"^^xsd:string | 1491 | sp:resultVariables ([ sp:varName "wholeName"^^xsd:string |
1492 | ] [ sp:varName "wholeTypeName"^^xsd:string | 1492 | ] [ sp:varName "wholeTypeName"^^xsd:string |
1493 | + ] [ sp:varName "piTypeName"^^xsd:string | ||
1493 | ] [ sp:varName "massValueString"^^xsd:string | 1494 | ] [ sp:varName "massValueString"^^xsd:string |
1494 | ] [ sp:varName "volumeValueString"^^xsd:string | 1495 | ] [ sp:varName "volumeValueString"^^xsd:string |
1495 | ] [ sp:varName "densityValueString"^^xsd:string | 1496 | ] [ sp:varName "densityValueString"^^xsd:string |
... | @@ -1788,10 +1789,364 @@ mpr-tables:ProductionInventory | ... | @@ -1788,10 +1789,364 @@ mpr-tables:ProductionInventory |
1788 | sp:subject | 1789 | sp:subject |
1789 | [ sp:varName "piWhole"^^xsd:string | 1790 | [ sp:varName "piWhole"^^xsd:string |
1790 | ] | 1791 | ] |
1792 | + ] [ rdf:type sp:Optional ; | ||
1793 | + sp:elements ([ sp:object | ||
1794 | + [ sp:varName "piType"^^xsd:string | ||
1795 | + ] ; | ||
1796 | + sp:predicate rdf:type ; | ||
1797 | + sp:subject | ||
1798 | + [ sp:varName "piWhole"^^xsd:string | ||
1799 | + ] | ||
1800 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryMaterialType> ; | ||
1801 | + sp:predicate rdf:type ; | ||
1802 | + sp:subject | ||
1803 | + [ sp:varName "piType"^^xsd:string | ||
1804 | + ] | ||
1805 | + ] [ sp:object | ||
1806 | + [ sp:varName "piTypeName"^^xsd:string | ||
1807 | + ] ; | ||
1808 | + sp:predicate rdfs:label ; | ||
1809 | + sp:subject | ||
1810 | + [ sp:varName "piType"^^xsd:string | ||
1811 | + ] | ||
1812 | + ]) | ||
1813 | + ]) | ||
1814 | + ]) | ||
1815 | + ] ; | ||
1816 | + rhspin:tableHeaders ("Flow Name"^^xsd:string "Material Type"^^xsd:string "Type"^^xsd:string "Mass"^^xsd:string "Volume"^^xsd:string "Density"^^xsd:string) . | ||
1817 | + | ||
1818 | +mpr-tables:ProductionInventoryOwnership | ||
1819 | + rdf:type rhspin:TableTemplate ; | ||
1820 | + rdfs:label "Production Inventory Ownership"^^xsd:string ; | ||
1821 | + rdfs:subClassOf rhspin:MPRGTableTemplates ; | ||
1822 | + spin:body | ||
1823 | + [ rdf:type sp:Select ; | ||
1824 | + sp:resultVariables ([ sp:varName "wholeName"^^xsd:string | ||
1825 | + ] [ sp:varName "wholeTypeName"^^xsd:string | ||
1826 | + ] [ sp:varName "piTypeName"^^xsd:string | ||
1827 | + ] [ sp:varName "massValueString"^^xsd:string | ||
1828 | + ] [ sp:varName "volumeValueString"^^xsd:string | ||
1829 | + ] [ sp:varName "densityValueString"^^xsd:string | ||
1830 | + ]) ; | ||
1831 | + sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; | ||
1832 | + sp:predicate rdf:type ; | ||
1833 | + sp:subject | ||
1834 | + [ sp:varName "productionReport"^^xsd:string | ||
1835 | + ] | ||
1836 | + ] [ sp:object | ||
1837 | + [ sp:varName "productionReport"^^xsd:string | ||
1838 | + ] ; | ||
1839 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ; | ||
1840 | + sp:subject | ||
1841 | + [ sp:varName "productVolumeReport"^^xsd:string | ||
1842 | + ] | ||
1843 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ; | ||
1844 | + sp:predicate rdf:type ; | ||
1845 | + sp:subject | ||
1846 | + [ sp:varName "productVolumeReport"^^xsd:string | ||
1847 | + ] | ||
1848 | + ] [ sp:object | ||
1849 | + [ sp:varName "productionInventorysInPeriod"^^xsd:string | ||
1850 | + ] ; | ||
1851 | + sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ; | ||
1852 | + sp:subject | ||
1853 | + [ sp:varName "productVolumeReport"^^xsd:string | ||
1854 | + ] | ||
1855 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ; | ||
1856 | + sp:predicate rdf:type ; | ||
1857 | + sp:subject | ||
1858 | + [ sp:varName "productionInventorysInPeriod"^^xsd:string | ||
1859 | + ] | ||
1860 | + ] [ sp:object | ||
1861 | + [ sp:varName "productionInventoryInPeriod"^^xsd:string | ||
1862 | + ] ; | ||
1863 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#hasSpatialPart> ; | ||
1864 | + sp:subject | ||
1865 | + [ sp:varName "productionInventorysInPeriod"^^xsd:string | ||
1866 | + ] | ||
1867 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventory> ; | ||
1868 | + sp:predicate rdf:type ; | ||
1869 | + sp:subject | ||
1870 | + [ sp:varName "productionInventoryInPeriod"^^xsd:string | ||
1871 | + ] | ||
1872 | + ] [ sp:object | ||
1873 | + [ sp:varName "component"^^xsd:string | ||
1874 | + ] ; | ||
1875 | + sp:predicate <http://www.reportinghub.no/ep/schema/material#hasComponent> ; | ||
1876 | + sp:subject | ||
1877 | + [ sp:varName "productionInventoryInPeriod"^^xsd:string | ||
1878 | + ] | ||
1879 | + ] [ sp:object | ||
1880 | + [ sp:varName "component"^^xsd:string | ||
1881 | + ] ; | ||
1882 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
1883 | + sp:subject | ||
1884 | + [ sp:varName "monthobject"^^xsd:string | ||
1885 | + ] | ||
1886 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ObjectThatLastsOneMonth> ; | ||
1887 | + sp:predicate rdf:type ; | ||
1888 | + sp:subject | ||
1889 | + [ sp:varName "monthobject"^^xsd:string | ||
1890 | + ] | ||
1891 | + ] [ sp:object | ||
1892 | + [ sp:varName "materialInventory"^^xsd:string | ||
1893 | + ] ; | ||
1894 | + sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialInInventory> ; | ||
1895 | + sp:subject | ||
1896 | + [ sp:varName "monthobject"^^xsd:string | ||
1897 | + ] | ||
1898 | + ] [ rdf:type sp:Optional ; | ||
1899 | + sp:elements ([ sp:object | ||
1900 | + [ sp:varName "materialQuantityValue"^^xsd:string | ||
1901 | + ] ; | ||
1902 | + sp:predicate rdf:type ; | ||
1903 | + sp:subject | ||
1904 | + [ sp:varName "materialInventory"^^xsd:string | ||
1905 | + ] | ||
1906 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Mass> ; | ||
1907 | + sp:predicate rdf:type ; | ||
1908 | + sp:subject | ||
1909 | + [ sp:varName "materialQuantityValue"^^xsd:string | ||
1910 | + ] | ||
1911 | + ] [ sp:object | ||
1912 | + [ sp:varName "materialValue"^^xsd:string | ||
1913 | + ] ; | ||
1914 | + sp:predicate | ||
1915 | + [ sp:varName "materialProperty"^^xsd:string | ||
1916 | + ] ; | ||
1917 | + sp:subject | ||
1918 | + [ sp:varName "materialQuantityValue"^^xsd:string | ||
1919 | + ] | ||
1920 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Scale> ; | ||
1921 | + sp:predicate rdf:type ; | ||
1922 | + sp:subject | ||
1923 | + [ sp:varName "materialProperty"^^xsd:string | ||
1924 | + ] | ||
1925 | + ] [ sp:object | ||
1926 | + [ sp:varName "materialPropertyName"^^xsd:string | ||
1927 | + ] ; | ||
1928 | + sp:predicate rdfs:label ; | ||
1929 | + sp:subject | ||
1930 | + [ sp:varName "materialProperty"^^xsd:string | ||
1931 | + ] | ||
1932 | + ] [ sp:object | ||
1933 | + [ sp:varName "materialQuantity"^^xsd:string | ||
1934 | + ] ; | ||
1935 | + sp:predicate rdf:type ; | ||
1936 | + sp:subject | ||
1937 | + [ sp:varName "materialQuantityValue"^^xsd:string | ||
1938 | + ] | ||
1939 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#PropertySpace> ; | ||
1940 | + sp:predicate rdf:type ; | ||
1941 | + sp:subject | ||
1942 | + [ sp:varName "materialQuantity"^^xsd:string | ||
1943 | + ] | ||
1944 | + ] [ rdf:type sp:Bind ; | ||
1945 | + sp:expression | ||
1946 | + [ rdf:type fn:concat ; | ||
1947 | + sp:arg1 [ rdf:type spif:decimalFormat ; | ||
1948 | + arg:number | ||
1949 | + [ sp:varName "materialValue"^^xsd:string | ||
1950 | + ] ; | ||
1951 | + arg:pattern "#.##" | ||
1952 | + ] ; | ||
1953 | + sp:arg2 " " ; | ||
1954 | + sp:arg3 [ sp:varName "materialPropertyName"^^xsd:string | ||
1955 | + ] | ||
1956 | + ] ; | ||
1957 | + sp:variable | ||
1958 | + [ sp:varName "massValueString"^^xsd:string | ||
1959 | + ] | ||
1960 | + ]) | ||
1961 | + ] [ rdf:type sp:Optional ; | ||
1962 | + sp:elements ([ sp:object | ||
1963 | + [ sp:varName "materialInventory"^^xsd:string | ||
1964 | + ] ; | ||
1965 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
1966 | + sp:subject | ||
1967 | + [ sp:varName "stateOfMaterialInventoryVolume"^^xsd:string | ||
1968 | + ] | ||
1969 | + ] [ sp:object | ||
1970 | + [ sp:varName "volumeQuantityValue"^^xsd:string | ||
1971 | + ] ; | ||
1972 | + sp:predicate rdf:type ; | ||
1973 | + sp:subject | ||
1974 | + [ sp:varName "stateOfMaterialInventoryVolume"^^xsd:string | ||
1975 | + ] | ||
1976 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ; | ||
1977 | + sp:predicate rdf:type ; | ||
1978 | + sp:subject | ||
1979 | + [ sp:varName "volumeQuantityValue"^^xsd:string | ||
1980 | + ] | ||
1981 | + ] [ sp:object | ||
1982 | + [ sp:varName "volumeValue"^^xsd:string | ||
1983 | + ] ; | ||
1984 | + sp:predicate | ||
1985 | + [ sp:varName "volumePredicate"^^xsd:string | ||
1986 | + ] ; | ||
1987 | + sp:subject | ||
1988 | + [ sp:varName "volumeQuantityValue"^^xsd:string | ||
1989 | + ] | ||
1990 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Scale> ; | ||
1991 | + sp:predicate rdf:type ; | ||
1992 | + sp:subject | ||
1993 | + [ sp:varName "volumePredicate"^^xsd:string | ||
1994 | + ] | ||
1995 | + ] [ sp:object | ||
1996 | + [ sp:varName "volumeUnit"^^xsd:string | ||
1997 | + ] ; | ||
1998 | + sp:predicate rdfs:label ; | ||
1999 | + sp:subject | ||
2000 | + [ sp:varName "volumePredicate"^^xsd:string | ||
2001 | + ] | ||
2002 | + ] [ rdf:type sp:Bind ; | ||
2003 | + sp:expression | ||
2004 | + [ rdf:type fn:concat ; | ||
2005 | + sp:arg1 [ rdf:type spif:decimalFormat ; | ||
2006 | + arg:number | ||
2007 | + [ sp:varName "volumeValue"^^xsd:string | ||
2008 | + ] ; | ||
2009 | + arg:pattern "#.##" | ||
2010 | + ] ; | ||
2011 | + sp:arg2 " " ; | ||
2012 | + sp:arg3 [ sp:varName "volumeUnit"^^xsd:string | ||
2013 | + ] | ||
2014 | + ] ; | ||
2015 | + sp:variable | ||
2016 | + [ sp:varName "volumeValueString"^^xsd:string | ||
2017 | + ] | ||
2018 | + ]) | ||
2019 | + ] [ rdf:type sp:Optional ; | ||
2020 | + sp:elements ([ sp:object | ||
2021 | + [ sp:varName "materialInventory"^^xsd:string | ||
2022 | + ] ; | ||
2023 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
2024 | + sp:subject | ||
2025 | + [ sp:varName "stateOfMaterialInventoryDensity"^^xsd:string | ||
2026 | + ] | ||
2027 | + ] [ sp:object | ||
2028 | + [ sp:varName "densityQuantityValue"^^xsd:string | ||
2029 | + ] ; | ||
2030 | + sp:predicate rdf:type ; | ||
2031 | + sp:subject | ||
2032 | + [ sp:varName "stateOfMaterialInventoryDensity"^^xsd:string | ||
2033 | + ] | ||
2034 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Density> ; | ||
2035 | + sp:predicate rdf:type ; | ||
2036 | + sp:subject | ||
2037 | + [ sp:varName "densityQuantityValue"^^xsd:string | ||
2038 | + ] | ||
2039 | + ] [ sp:object | ||
2040 | + [ sp:varName "densityValue"^^xsd:string | ||
2041 | + ] ; | ||
2042 | + sp:predicate | ||
2043 | + [ sp:varName "densityPredicate"^^xsd:string | ||
2044 | + ] ; | ||
2045 | + sp:subject | ||
2046 | + [ sp:varName "densityQuantityValue"^^xsd:string | ||
2047 | + ] | ||
2048 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Scale> ; | ||
2049 | + sp:predicate rdf:type ; | ||
2050 | + sp:subject | ||
2051 | + [ sp:varName "densityPredicate"^^xsd:string | ||
2052 | + ] | ||
2053 | + ] [ sp:object | ||
2054 | + [ sp:varName "densityUnit"^^xsd:string | ||
2055 | + ] ; | ||
2056 | + sp:predicate rdfs:label ; | ||
2057 | + sp:subject | ||
2058 | + [ sp:varName "densityPredicate"^^xsd:string | ||
2059 | + ] | ||
2060 | + ] [ rdf:type sp:Bind ; | ||
2061 | + sp:expression | ||
2062 | + [ rdf:type fn:concat ; | ||
2063 | + sp:arg1 [ rdf:type spif:decimalFormat ; | ||
2064 | + arg:number | ||
2065 | + [ sp:varName "densityValue"^^xsd:string | ||
2066 | + ] ; | ||
2067 | + arg:pattern "#.##" | ||
2068 | + ] ; | ||
2069 | + sp:arg2 " " ; | ||
2070 | + sp:arg3 [ sp:varName "densityUnit"^^xsd:string | ||
2071 | + ] | ||
2072 | + ] ; | ||
2073 | + sp:variable | ||
2074 | + [ sp:varName "densityValueString"^^xsd:string | ||
2075 | + ] | ||
2076 | + ]) | ||
2077 | + ] [ rdf:type sp:Optional ; | ||
2078 | + sp:elements ([ sp:object | ||
2079 | + [ sp:varName "piPart"^^xsd:string | ||
2080 | + ] ; | ||
2081 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
2082 | + sp:subject | ||
2083 | + [ sp:varName "monthobject"^^xsd:string | ||
2084 | + ] | ||
2085 | + ] [ sp:object | ||
2086 | + [ sp:varName "piWholeMaterial"^^xsd:string | ||
2087 | + ] ; | ||
2088 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; | ||
2089 | + sp:subject | ||
2090 | + [ sp:varName "piPart"^^xsd:string | ||
2091 | + ] | ||
2092 | + ] [ sp:object | ||
2093 | + [ sp:varName "wholeType"^^xsd:string | ||
2094 | + ] ; | ||
2095 | + sp:predicate rdf:type ; | ||
2096 | + sp:subject | ||
2097 | + [ sp:varName "piWholeMaterial"^^xsd:string | ||
2098 | + ] | ||
2099 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductMaterialType> ; | ||
2100 | + sp:predicate rdf:type ; | ||
2101 | + sp:subject | ||
2102 | + [ sp:varName "wholeType"^^xsd:string | ||
2103 | + ] | ||
2104 | + ] [ sp:object | ||
2105 | + [ sp:varName "wholeTypeName"^^xsd:string | ||
2106 | + ] ; | ||
2107 | + sp:predicate rdfs:label ; | ||
2108 | + sp:subject | ||
2109 | + [ sp:varName "wholeType"^^xsd:string | ||
2110 | + ] | ||
2111 | + ] [ sp:object | ||
2112 | + [ sp:varName "piWholeMaterial"^^xsd:string | ||
2113 | + ] ; | ||
2114 | + sp:predicate <http://www.reportinghub.no/ep/schema/material#hasComponent> ; | ||
2115 | + sp:subject | ||
2116 | + [ sp:varName "piWhole"^^xsd:string | ||
2117 | + ] | ||
2118 | + ] [ sp:object | ||
2119 | + [ sp:varName "wholeName"^^xsd:string | ||
2120 | + ] ; | ||
2121 | + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ; | ||
2122 | + sp:subject | ||
2123 | + [ sp:varName "piWhole"^^xsd:string | ||
2124 | + ] | ||
2125 | + ] [ rdf:type sp:Optional ; | ||
2126 | + sp:elements ([ sp:object | ||
2127 | + [ sp:varName "piType"^^xsd:string | ||
2128 | + ] ; | ||
2129 | + sp:predicate rdf:type ; | ||
2130 | + sp:subject | ||
2131 | + [ sp:varName "piWhole"^^xsd:string | ||
2132 | + ] | ||
2133 | + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionInventoryMaterialType> ; | ||
2134 | + sp:predicate rdf:type ; | ||
2135 | + sp:subject | ||
2136 | + [ sp:varName "piType"^^xsd:string | ||
2137 | + ] | ||
2138 | + ] [ sp:object | ||
2139 | + [ sp:varName "piTypeName"^^xsd:string | ||
2140 | + ] ; | ||
2141 | + sp:predicate rdfs:label ; | ||
2142 | + sp:subject | ||
2143 | + [ sp:varName "piType"^^xsd:string | ||
2144 | + ] | ||
2145 | + ]) | ||
1791 | ]) | 2146 | ]) |
1792 | ]) | 2147 | ]) |
1793 | ] ; | 2148 | ] ; |
1794 | - rhspin:tableHeaders ("Material"^^xsd:string "Material Type"^^xsd:string "Mass"^^xsd:string "Volume"^^xsd:string "Density"^^xsd:string) . | 2149 | + rhspin:tableHeaders ("Flow Name"^^xsd:string "Material Type"^^xsd:string "Type"^^xsd:string "Mass"^^xsd:string "Volume"^^xsd:string "Density"^^xsd:string) . |
1795 | 2150 | ||
1796 | mpr-tables:WellProductionFlows | 2151 | mpr-tables:WellProductionFlows |
1797 | rdf:type rhspin:TableTemplate ; | 2152 | rdf:type rhspin:TableTemplate ; | ... | ... |
... | @@ -181,6 +181,9 @@ OPTIONAL { | ... | @@ -181,6 +181,9 @@ OPTIONAL { |
181 | 181 | ||
182 | <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionInventory" /> | 182 | <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionInventory" /> |
183 | 183 | ||
184 | + <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionInventoryOwnership" /> | ||
185 | + | ||
186 | + | ||
184 | 187 | ||
185 | 188 | ||
186 | </ui:group> | 189 | </ui:group> | ... | ... |
-
Please register or login to post a comment