David Price

Production Inventory Ownership working in report now.

...@@ -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://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> ; 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> ;
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
...@@ -1821,12 +1821,9 @@ mpr-tables:ProductionInventoryOwnership ...@@ -1821,12 +1821,9 @@ mpr-tables:ProductionInventoryOwnership
1821 rdfs:subClassOf rhspin:MPRGTableTemplates ; 1821 rdfs:subClassOf rhspin:MPRGTableTemplates ;
1822 spin:body 1822 spin:body
1823 [ rdf:type sp:Select ; 1823 [ rdf:type sp:Select ;
1824 - sp:resultVariables ([ sp:varName "wholeName"^^xsd:string 1824 + sp:resultVariables ([ sp:varName "facilityName"^^xsd:string
1825 - ] [ sp:varName "wholeTypeName"^^xsd:string 1825 + ] [ sp:varName "ownedVolumeValue"^^xsd:string
1826 - ] [ sp:varName "piTypeName"^^xsd:string 1826 + ] [ sp:varName "owningOrgName"^^xsd:string
1827 - ] [ sp:varName "massValueString"^^xsd:string
1828 - ] [ sp:varName "volumeValueString"^^xsd:string
1829 - ] [ sp:varName "densityValueString"^^xsd:string
1830 ]) ; 1827 ]) ;
1831 sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ; 1828 sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
1832 sp:predicate rdf:type ; 1829 sp:predicate rdf:type ;
...@@ -1870,6 +1867,13 @@ mpr-tables:ProductionInventoryOwnership ...@@ -1870,6 +1867,13 @@ mpr-tables:ProductionInventoryOwnership
1870 [ sp:varName "productionInventoryInPeriod"^^xsd:string 1867 [ sp:varName "productionInventoryInPeriod"^^xsd:string
1871 ] 1868 ]
1872 ] [ sp:object 1869 ] [ sp:object
1870 + [ sp:varName "productionInventoryWhole"^^xsd:string
1871 + ] ;
1872 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
1873 + sp:subject
1874 + [ sp:varName "productionInventoryInPeriod"^^xsd:string
1875 + ]
1876 + ] [ sp:object
1873 [ sp:varName "component"^^xsd:string 1877 [ sp:varName "component"^^xsd:string
1874 ] ; 1878 ] ;
1875 sp:predicate <http://www.reportinghub.no/ep/schema/material#hasComponent> ; 1879 sp:predicate <http://www.reportinghub.no/ep/schema/material#hasComponent> ;
...@@ -1895,258 +1899,126 @@ mpr-tables:ProductionInventoryOwnership ...@@ -1895,258 +1899,126 @@ mpr-tables:ProductionInventoryOwnership
1895 sp:subject 1899 sp:subject
1896 [ sp:varName "monthobject"^^xsd:string 1900 [ sp:varName "monthobject"^^xsd:string
1897 ] 1901 ]
1902 + ] [ sp:object
1903 + [ sp:varName "piPart"^^xsd:string
1904 + ] ;
1905 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
1906 + sp:subject
1907 + [ sp:varName "monthobject"^^xsd:string
1908 + ]
1909 + ] [ sp:object
1910 + [ sp:varName "piWholeMaterial"^^xsd:string
1911 + ] ;
1912 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
1913 + sp:subject
1914 + [ sp:varName "piPart"^^xsd:string
1915 + ]
1916 + ] [ sp:object
1917 + [ sp:varName "piWholeMaterial"^^xsd:string
1918 + ] ;
1919 + sp:predicate <http://www.reportinghub.no/ep/schema/material#hasComponent> ;
1920 + sp:subject
1921 + [ sp:varName "piWhole"^^xsd:string
1922 + ]
1923 + ] [ sp:object
1924 + [ sp:varName "facilityName"^^xsd:string
1925 + ] ;
1926 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
1927 + sp:subject
1928 + [ sp:varName "piWhole"^^xsd:string
1929 + ]
1930 + ] [ sp:object
1931 + [ sp:varName "monthobject"^^xsd:string
1932 + ] ;
1933 + sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
1934 + sp:subject
1935 + [ sp:varName "ownedPartOfMonthObject"^^xsd:string
1936 + ]
1937 + ] [ sp:object
1938 + [ sp:varName "ownedMaterialInventory"^^xsd:string
1939 + ] ;
1940 + sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialInInventory> ;
1941 + sp:subject
1942 + [ sp:varName "ownedPartOfMonthObject"^^xsd:string
1943 + ]
1944 + ] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductInventoryClosingBalance> ;
1945 + sp:predicate rdf:type ;
1946 + sp:subject
1947 + [ sp:varName "ownedPartOfMonthObject"^^xsd:string
1948 + ]
1949 + ] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
1950 + sp:predicate rdf:type ;
1951 + sp:subject
1952 + [ sp:varName "ownedMaterialInventory"^^xsd:string
1953 + ]
1954 + ] [ sp:object
1955 + [ sp:varName "ownedMaterialInventory"^^xsd:string
1956 + ] ;
1957 + sp:predicate <http://www.reportinghub.no/ep/schema/core#spatialPartOf> ;
1958 + sp:subject
1959 + [ sp:varName "spatialPartOfMaterialInventory"^^xsd:string
1960 + ]
1961 + ] [ sp:object
1962 + [ sp:varName "spatialPartOfMaterialInventory"^^xsd:string
1963 + ] ;
1964 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
1965 + sp:subject
1966 + [ sp:varName "ownedQuantity"^^xsd:string
1967 + ]
1968 + ] [ sp:object
1969 + [ sp:varName "ownedQuantityType"^^xsd:string
1970 + ] ;
1971 + sp:predicate rdf:type ;
1972 + sp:subject
1973 + [ sp:varName "ownedQuantity"^^xsd:string
1974 + ]
1975 + ] [ sp:object <http://www.reportinghub.no/ep/schema/core#Volume> ;
1976 + sp:predicate rdf:type ;
1977 + sp:subject
1978 + [ sp:varName "ownedQuantityType"^^xsd:string
1979 + ]
1980 + ] [ sp:object
1981 + [ sp:varName "ownedVolumeValue"^^xsd:string
1982 + ] ;
1983 + sp:predicate <http://www.reportinghub.no/ep/schema/core#metre3> ;
1984 + sp:subject
1985 + [ sp:varName "ownedQuantityType"^^xsd:string
1986 + ]
1987 + ] [ sp:object
1988 + [ sp:varName "partOfOrg"^^xsd:string
1989 + ] ;
1990 + sp:predicate <http://www.reportinghub.no/ep/schema/organization#owner> ;
1991 + sp:subject
1992 + [ sp:varName "spatialPartOfMaterialInventory"^^xsd:string
1993 + ]
1994 + ] [ sp:object
1995 + [ sp:varName "owningOrg"^^xsd:string
1996 + ] ;
1997 + sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
1998 + sp:subject
1999 + [ sp:varName "partOfOrg"^^xsd:string
2000 + ]
1898 ] [ rdf:type sp:Optional ; 2001 ] [ rdf:type sp:Optional ;
1899 sp:elements ([ sp:object 2002 sp:elements ([ sp:object
1900 - [ sp:varName "materialQuantityValue"^^xsd:string 2003 + [ sp:varName "owningOrgName"^^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 ] ; 2004 ] ;
2056 - sp:predicate rdfs:label ; 2005 + sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
2057 sp:subject 2006 sp:subject
2058 - [ sp:varName "densityPredicate"^^xsd:string 2007 + [ sp:varName "owningOrg"^^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 ] 2008 ]
2076 ]) 2009 ])
2077 ] [ rdf:type sp:Optional ; 2010 ] [ rdf:type sp:Optional ;
2078 sp:elements ([ sp:object 2011 sp:elements ([ sp:object
2079 - [ sp:varName "piPart"^^xsd:string 2012 + [ sp:varName "owningOrgName"^^xsd:string
2080 ] ; 2013 ] ;
2081 - sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ; 2014 + sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
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 2015 sp:subject
2123 - [ sp:varName "piWhole"^^xsd:string 2016 + [ sp:varName "owningOrg"^^xsd:string
2124 ] 2017 ]
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 - ])
2146 ]) 2018 ])
2147 ]) 2019 ])
2148 ] ; 2020 ] ;
2149 - rhspin:tableHeaders ("Flow Name"^^xsd:string "Material Type"^^xsd:string "Type"^^xsd:string "Mass"^^xsd:string "Volume"^^xsd:string "Density"^^xsd:string) . 2021 + rhspin:tableHeaders ("Facility"^^xsd:string "Volume"^^xsd:string "Owner"^^xsd:string) .
2150 2022
2151 mpr-tables:WellProductionFlows 2023 mpr-tables:WellProductionFlows
2152 rdf:type rhspin:TableTemplate ; 2024 rdf:type rhspin:TableTemplate ;
......