David Price

First property working

......@@ -3,6 +3,7 @@
# imports: http://www.reportinghub.no/ep/mpr/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/schema/1.0/production
# imports: http://www.reportinghub.no/ep/spin/1.1/lib
# imports: http://www.reportinghub.no/ep/spin/prod-property
# imports: http://www.reportinghub.no/spin/rh
@prefix dpr-tables: <http://www.reportinghub.no/ep/spin/dpr-tables#> .
......@@ -20,7 +21,7 @@
<http://www.reportinghub.no/ep/spin/dpr-tables>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/spin/rh> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://spinrdf.org/spin> ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/production> , <http://www.reportinghub.no/ep/spin/1.1/lib> , <http://www.reportinghub.no/ep/spin/prod-property> , <http://www.reportinghub.no/spin/rh> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
dpr-tables:ExportVolumes
......
This diff could not be displayed because it is too large.
# baseURI: http://www.reportinghub.no/ep/spin/prod-property
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/schema/1.0/erhfacts
# imports: http://www.reportinghub.no/ep/schema/1.0/production
@prefix ep-report: <http://www.reportinghub.no/ep/schema/report#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix prod-property: <http://www.reportinghub.no/ep/spin/prod-property#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sp: <http://spinrdf.org/sp#> .
@prefix spin: <http://spinrdf.org/spin#> .
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/schema/flow#reportedFlowMaterial>
rdf:type spin:MagicProperty , owl:ObjectProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
rdfs:label "report end flow material"^^xsd:string ;
rdfs:range <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
rdfs:subClassOf spin:MagicProperties ;
spin:body
[ rdf:type sp:Select ;
sp:distinct "true"^^xsd:boolean ;
sp:resultVariables ([ sp:varName "quantityofmaterialinaspecifiedstate"^^xsd:string
]) ;
sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
sp:predicate rdf:type ;
sp:subject spin:_arg1
] [ sp:object
[ sp:varName "productionFlowMixedPart"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasMixedPart> ;
sp:subject spin:_arg1
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowMixedPart"^^xsd:string
]
] [ sp:object
[ sp:varName "productFlowInMonthMaterial"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#materialThatFlows> ;
sp:subject
[ sp:varName "productionFlowMixedPart"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productFlowInMonthMaterial"^^xsd:string
]
] [ sp:object
[ sp:varName "productFlowInMonthMaterial"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "quantityofmaterialinaspecifiedstate"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityofmaterialinaspecifiedstate"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterialInASpecifiedState> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "quantityofmaterialinaspecifiedstate"^^xsd:string
]
])
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "the flow that has part the material"^^xsd:string ;
spl:predicate sp:arg1 ;
spl:valueType <http://www.reportinghub.no/ep/schema/flow#ProductionFlow>
] ;
spin:returnType <http://www.reportinghub.no/ep/schema/material#QuantityOfMaterial> .
ep-report:reportsOnFlow
rdf:type spin:MagicProperty , owl:ObjectProperty ;
rdfs:domain ep-report:ProductionReport ;
rdfs:label "reports on flow"^^xsd:string ;
rdfs:range <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
rdfs:subClassOf spin:MagicProperties ;
spin:body
[ rdf:type sp:Select ;
sp:distinct "true"^^xsd:boolean ;
sp:resultVariables ([ sp:varName "productionFlow"^^xsd:string
]) ;
sp:where ([ sp:object ep-report:ProductionReport ;
sp:predicate rdf:type ;
sp:subject spin:_arg1
] [ sp:object
[ sp:varName "productionReport"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "productVolumeReport"^^xsd:string
]
] [ sp:object ep-report:ProductVolumeReport ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productVolumeReport"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowNetwork"^^xsd:string
] ;
sp:predicate ep-report:reportOn ;
sp:subject
[ sp:varName "productVolumeReport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetwork> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowNetwork"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlow"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#hasNetworkPart> ;
sp:subject
[ sp:varName "productionFlowNetwork"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlow"^^xsd:string
]
])
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "the report that contains flows"^^xsd:string ;
spl:predicate sp:arg1 ;
spl:valueType ep-report:ProductionReport
] ;
spin:returnType <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> .
<http://www.reportinghub.no/ep/spin/prod-property>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/erhfacts> , <http://www.reportinghub.no/ep/schema/1.0/production> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
# baseURI: null
@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix visual: <http://topbraid.org/visual#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
[] rdf:type inference:Configuration ;
composite:child
[ rdf:type <http://spinrdf.org/spin#TopSPIN> ;
composite:index "0"^^xsd:int
] .
......@@ -177,10 +177,13 @@ OPTIONAL {
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:WellProductionFlows" />
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:WellProductionFlows_1" />
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:Cargo" />
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:Cargo_1" />
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:CargoOwnership" />
......
# baseURI: http://www.reportinghub.no/test/dpr2/testcase/TEST_dpr2-xml-ingest
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/data/erh
# imports: http://www.reportinghub.no/ep/spin/prod-property
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector
# imports: http://www.reportinghub.no/np/data/npd
......@@ -16,5 +17,5 @@
<http://www.reportinghub.no/test/dpr2/testcase/TEST_dpr2-xml-ingest>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/data/erh> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> , <http://www.reportinghub.no/np/data/npd> ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/data/erh> , <http://www.reportinghub.no/ep/spin/prod-property> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> , <http://www.reportinghub.no/np/data/npd> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
......@@ -2,6 +2,7 @@
# imports: http://spinrdf.org/spin
# imports: http://www.epim.no/schemas/mprml/1
# imports: http://www.reportinghub.no/data/erh
# imports: http://www.reportinghub.no/ep/spin/prod-property
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector
# imports: http://www.reportinghub.no/np/data/npd
......@@ -18,5 +19,5 @@
<http://www.reportinghub.no/test/mpr/TEST_mpr-xml-ingest>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/data/erh> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> , <http://www.reportinghub.no/np/data/npd> ;
owl:imports <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/data/erh> , <http://www.reportinghub.no/ep/spin/prod-property> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> , <http://www.reportinghub.no/np/data/npd> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......