David Price

more test cases, work on mrp tables and magic properties continues for MPRG

......@@ -13,6 +13,54 @@
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/schema/flow#flowInOutFacility>
rdf:type spin:MagicProperty , owl:DatatypeProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
rdfs:label "flow inout facility name"^^xsd:string ;
rdfs:range xsd:string ;
rdfs:subClassOf spin:MagicProperties ;
spin:body
[ rdf:type sp:Select ;
sp:resultVariables ([ sp:varName "name"^^xsd:string
]) ;
sp:where ([ sp:object
[ sp:varName "productionFlowWhole"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject spin:_arg1
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#WholeLifeProductionFlow> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productionFlowWhole"^^xsd:string
]
] [ sp:object
[ sp:varName "productionFlowFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#flowIntoOrOutOf> ;
sp:subject
[ sp:varName "productionFlowWhole"^^xsd:string
]
] [ rdf:type sp:TriplePath ;
sp:object
[ sp:varName "name"^^xsd:string
] ;
sp:path [ rdf:type sp:AltPath ;
sp:path1 <http://www.reportinghub.no/np/schema/npd#name> ;
sp:path2 <http://www.reportinghub.no/ep/schema/core#name>
] ;
sp:subject
[ sp:varName "productionFlowFacility"^^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 xsd:string .
<http://www.reportinghub.no/ep/schema/flow#networkInFacilityName>
rdf:type spin:MagicProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetwork> ;
......
......@@ -179,8 +179,6 @@ OPTIONAL {
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:Cargo" />
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:CargoOwnership" />
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionSales" />
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionFlowsAll" />
......
......@@ -39,8 +39,6 @@ WHERE {
<mprpswp:Table arg:report="{= ?report }" arg:template="mpr-tables:WellProductionFlows" />
<mprpswp:Table arg:report="{= ?report }" arg:template="mpr-tables:Cargo" />
<mprpswp:Table arg:report="{= ?report }" arg:template="mpr-tables:CargoOwnership" />
<mprpswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionSales" />
......
# baseURI: http://www.reportinghub.no/test/mpr/testcase/epim-mpr-govt/BA_ASGARD/test-results/triples/ASGARD-ONLY-MONTH_2012-01-01_final-mprg
# imports: http://www.reportinghub.no/data/erh
# imports: http://www.reportinghub.no/ep/schema/1.0/production
@prefix ASGARD-ONLY-MONTH_2012-01-01_final-mprg: <http://www.reportinghub.no/test/mpr/testcase/epim-mpr-govt/BA_ASGARD/test-results/triples/ASGARD-ONLY-MONTH_2012-01-01_final-mprg#> .
@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 xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/test/mpr/testcase/epim-mpr-govt/BA_ASGARD/test-results/triples/ASGARD-ONLY-MONTH_2012-01-01_final-mprg>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/data/erh> , <http://www.reportinghub.no/ep/schema/1.0/production> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .