David Price

Merge branch 'master' into tq-mprxsd

No preview for this file type
......@@ -1893,23 +1893,23 @@ dpr-tables:ProductFlows
[ sp:varName "productFlowWholeLife"^^xsd:string
]
] [ sp:object
[ sp:varName "productMaterialType"^^xsd:string
[ sp:varName "reportingProductType"^^xsd:string
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productFlowWholeLife"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductMaterialType> ;
] [ sp:object <http://www.reportinghub.no/ep/schema/material#ReportingProductType> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "productMaterialType"^^xsd:string
[ sp:varName "reportingProductType"^^xsd:string
]
] [ sp:object
[ sp:varName "productMaterialName"^^xsd:string
] ;
sp:predicate rdfs:label ;
sp:subject
[ sp:varName "productMaterialType"^^xsd:string
[ sp:varName "reportingProductType"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
......@@ -4149,13 +4149,13 @@ dpr-tables:ProductionVolumes
rdfs:subClassOf rhspin:DPRTableTemplates ;
spin:body
[ rdf:type sp:Select ;
sp:orderBy ([ sp:varName "containingWholeFacilityName"^^xsd:string
sp:orderBy ([ sp:varName "containingFacilityName"^^xsd:string
] [ sp:varName "flowInOutFacilityName"^^xsd:string
] [ sp:varName "flowPurposeName"^^xsd:string
] [ sp:varName "flowDefinitionName"^^xsd:string
] [ sp:varName "densityValue"^^xsd:string
]) ;
sp:resultVariables ([ sp:varName "containingWholeFacilityName"^^xsd:string
sp:resultVariables ([ sp:varName "containingFacilityName"^^xsd:string
] [ sp:varName "flowInOutFacilityName"^^xsd:string
] [ sp:varName "flowPurposeName"^^xsd:string
] [ sp:varName "flowDefinitionName"^^xsd:string
......@@ -4163,32 +4163,17 @@ dpr-tables:ProductionVolumes
] [ sp:varName "pressureValue"^^xsd:string
] [ sp:varName "temperatureValue"^^xsd:string
]) ;
sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/report#ProductionReport> ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "report"^^xsd:string
]
] [ sp:object
[ sp:varName "report"^^xsd:string
sp:where ([ sp:object
[ sp:varName "productionflownetwork"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#partOf> ;
sp:subject
[ sp:varName "productvolumereport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/report#ProductVolumeReport> ;
sp:predicate rdf:type ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportsOnFlowNetwork> ;
sp:subject
[ sp:varName "productvolumereport"^^xsd:string
[ sp:varName "report"^^xsd:string
]
] [ sp:object
[ sp:varName "productionflownetwork"^^xsd:string
[ sp:varName "containingFacilityName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/report#reportOn> ;
sp:subject
[ sp:varName "productvolumereport"^^xsd:string
]
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetwork> ;
sp:predicate rdf:type ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#networkInFacilityName> ;
sp:subject
[ sp:varName "productionflownetwork"^^xsd:string
]
......@@ -4205,27 +4190,6 @@ dpr-tables:ProductionVolumes
[ sp:varName "flow"^^xsd:string
]
] [ sp:object
[ sp:varName "productionflownetwork"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
sp:subject
[ sp:varName "productionflownetworkFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "containingWholeFacility"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "productionflownetworkFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "containingWholeFacilityName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "containingWholeFacility"^^xsd:string
]
] [ sp:object
[ sp:varName "flowWhole"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
......@@ -4244,39 +4208,17 @@ dpr-tables:ProductionVolumes
sp:subject
[ sp:varName "flowWhole"^^xsd:string
]
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "flowInOutFacilityNameNPD"^^xsd:string
] [ rdf:type sp:TriplePath ;
sp:object
[ sp:varName "flowInOutFacilityName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "flowInOutFacility"^^xsd:string
]
])
] [ rdf:type sp:Optional ;
sp:elements ([ sp:object
[ sp:varName "flowInOutFacilityNameEP"^^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:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject
[ sp:varName "flowInOutFacility"^^xsd:string
]
])
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type smf:if ;
sp:arg1 [ rdf:type smf:isBound ;
sp:arg1 [ sp:varName "flowInOutFacilityNameNPD"^^xsd:string
]
] ;
sp:arg2 [ sp:varName "flowInOutFacilityNameNPD"^^xsd:string
] ;
sp:arg3 [ sp:varName "flowInOutFacilityNameEP"^^xsd:string
]
] ;
sp:variable
[ sp:varName "flowInOutFacilityName"^^xsd:string
]
] [ sp:object
[ sp:varName "flowPurpose"^^xsd:string
] ;
......
This diff could not be displayed because it is too large.
......@@ -13,6 +13,49 @@
@prefix spl: <http://spinrdf.org/spl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<http://www.reportinghub.no/ep/schema/flow#networkInFacilityName>
rdf:type spin:MagicProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetwork> ;
rdfs:label "report end flow material"^^xsd:string ;
rdfs:range xsd:string ;
rdfs:subClassOf spin:MagicProperties ;
spin:body
[ rdf:type sp:Select ;
sp:distinct "true"^^xsd:boolean ;
sp:resultVariables ([ sp:varName "facilityWholeName"^^xsd:string
]) ;
sp:where ([ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetwork> ;
sp:predicate rdf:type ;
sp:subject spin:_arg1
] [ sp:object spin:_arg1 ;
sp:predicate <http://www.reportinghub.no/ep/schema/flow#facilityContainsFlow> ;
sp:subject
[ sp:varName "facilityPart"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityWhole"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject
[ sp:varName "facilityPart"^^xsd:string
]
] [ sp:object
[ sp:varName "facilityWholeName"^^xsd:string
] ;
sp:predicate <http://www.reportinghub.no/np/schema/npd#name> ;
sp:subject
[ sp:varName "facilityWhole"^^xsd:string
]
])
] ;
spin:constraint
[ rdf:type spl:Argument ;
rdfs:comment "the network"^^xsd:string ;
spl:predicate sp:arg1 ;
spl:valueType <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetwork>
] ;
spin:returnType xsd:string .
<http://www.reportinghub.no/ep/schema/flow#reportedFlowMaterial>
rdf:type spin:MagicProperty , owl:ObjectProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> ;
......@@ -136,6 +179,54 @@ ep-report:reportsOnFlow
] ;
spin:returnType <http://www.reportinghub.no/ep/schema/flow#ProductionFlow> .
ep-report:reportsOnFlowNetwork
rdf:type spin:MagicProperty , owl:ObjectProperty ;
rdfs:domain ep-report:ProductionReport ;
rdfs:label "reports on flow network"^^xsd:string ;
rdfs:range <http://www.reportinghub.no/ep/schema/flow#ProductionFlowNetwork> ;
rdfs:subClassOf spin:MagicProperties ;
spin:body
[ rdf:type sp:Select ;
sp:distinct "true"^^xsd:boolean ;
sp:resultVariables ([ sp:varName "productionFlowNetwork"^^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
]
])
] ;
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#ProductionFlowNetwork> .
<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> ;
......
......@@ -15,7 +15,7 @@
<http://www.reportinghub.no/ep/transform/transform-helper-schema>
rdf:type owl:Ontology ;
rdfs:comment "The Transform Helper Schema is the set of properties and classes used for the creation of temporary data used as part of the ERH transformations. All instances of classes and uses of these properties is deleted before the triples are stored in the RDF database."^^xsd:string ;
owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.epim.no/schemas/mprml/1> ;
owl:imports <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://spinrdf.org/spin> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
transhelp:buildRdlURI
......@@ -44,15 +44,15 @@ transhelp:derivedFrom
rdf:type owl:ObjectProperty .
transhelp:domainOfPropertyMapsToMPREnumeration
rdf:type owl:InverseFunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ;
rdfs:label "domain of property maps to MPR enumeration"^^xsd:string ;
rdfs:subPropertyOf transhelp:mapsTo .
transhelp:facilityIdentifier
rdf:type owl:FunctionalProperty , owl:DatatypeProperty .
rdf:type owl:DatatypeProperty , owl:FunctionalProperty .
transhelp:flowingStateMapsToMPREnumeration
rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ;
rdf:type owl:InverseFunctionalProperty , owl:ObjectProperty ;
rdfs:label "flowing state maps to MPR enumeration"^^xsd:string ;
rdfs:subPropertyOf transhelp:mapsTo .
......@@ -71,43 +71,46 @@ transhelp:hasEquivalentInRDL
rdfs:label "has equivalent in RDL"^^xsd:string .
transhelp:interval
rdf:type owl:FunctionalProperty , owl:DatatypeProperty .
rdf:type owl:DatatypeProperty , owl:FunctionalProperty .
transhelp:intervalEnd
rdf:type owl:FunctionalProperty , owl:DatatypeProperty .
rdf:type owl:DatatypeProperty , owl:FunctionalProperty .
transhelp:intervalIdentifier
rdf:type owl:FunctionalProperty , owl:DatatypeProperty .
rdf:type owl:DatatypeProperty , owl:FunctionalProperty .
transhelp:intervalStart
rdf:type owl:FunctionalProperty , owl:DatatypeProperty .
rdf:type owl:DatatypeProperty , owl:FunctionalProperty .
transhelp:label
rdf:type owl:FunctionalProperty , owl:DatatypeProperty .
rdf:type owl:DatatypeProperty , owl:FunctionalProperty .
transhelp:mapsTo
rdf:type rdf:Property .
transhelp:materialClassMapsToMPREnumeration
rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ;
rdf:type owl:InverseFunctionalProperty , owl:ObjectProperty ;
rdfs:label "material class maps to MPR enumeration"^^xsd:string ;
rdfs:subPropertyOf transhelp:mapsTo .
transhelp:necessaryIntervalString
rdf:type owl:DatatypeProperty .
transhelp:nominalInstant
rdf:type owl:FunctionalProperty , owl:DatatypeProperty .
rdf:type owl:DatatypeProperty , owl:FunctionalProperty .
transhelp:propertyMapsToMPREnumeration
rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ;
rdf:type owl:InverseFunctionalProperty , owl:ObjectProperty ;
rdfs:label "property maps to MPR enumeration"^^xsd:string ;
rdfs:subPropertyOf transhelp:mapsTo .
transhelp:quantitySpaceMapsToClassOfScale
rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty , owl:FunctionalProperty ;
rdf:type owl:FunctionalProperty , owl:InverseFunctionalProperty , owl:ObjectProperty ;
rdfs:label "quantity space maps to class of scale"^^xsd:string ;
rdfs:subPropertyOf transhelp:mapsTo .
transhelp:rangeOfPropertyMapsToMPREnumeration
rdf:type owl:InverseFunctionalProperty , owl:ObjectProperty ;
rdf:type owl:ObjectProperty , owl:InverseFunctionalProperty ;
rdfs:label "range of property maps to MPR enumeration"^^xsd:string ;
rdfs:subPropertyOf transhelp:mapsTo .
......
This diff could not be displayed because it is too large.
......@@ -13,7 +13,7 @@ WHERE {
}}"
>
<h1>Monthly Government Report : {= ?reportedFieldName } Field, Month Ending {= ?activityEnd}</h1>
<h1>Monthly Government Report Test 4 : {= ?reportedFieldName } Field, Month Ending {= ?activityEnd}</h1>
<h2>Report title : {# SELECT ?title WHERE { ?report a ep-report:ProductionReport . ?report ep-core:name ?title . } }</h2>
<h2>Report version : {# SELECT ?reportVersion
WHERE {
......@@ -173,25 +173,11 @@ OPTIONAL {
</ui:forEach> -->
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:GasSales" />
<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" />
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionSales" />
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionFlowsAll" />
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:WellProductionFlows" />
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionInventory" />
<mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionInventoryOwnership" />
......
# baseURI: http://www.reportinghub.no/test/mpr/testcase/epim-mpr-partner/MPRP1.0/BA_ASGARD/test-results/triples/ASGARD-ONLY-MONTH_AND_DAY_2012-02-01_final-mprp
# imports: http://www.reportinghub.no/data/erh
# imports: http://www.reportinghub.no/ep/schema/1.0/production
@prefix TRIPLES: <http://www.reportinghub.no/test/mpr/testcase/epim-mpr-partner/MPRP1.0/BA_ASGARD/test-results/triples/ASGARD-ONLY-MONTH_AND_DAY_2012-02-01_final-mprp#> .
@prefix ep-activity: <http://www.reportinghub.no/ep/schema/activity#> .
@prefix ep-core: <http://www.reportinghub.no/ep/schema/core#> .
@prefix ep-eqt: <http://www.reportinghub.no/ep/schema/equipment#> .
@prefix ep-fac: <http://www.reportinghub.no/ep/schema/facility#> .
@prefix ep-flow: <http://www.reportinghub.no/ep/schema/flow#> .
@prefix ep-material: <http://www.reportinghub.no/ep/schema/material#> .
@prefix ep-org: <http://www.reportinghub.no/ep/schema/organization#> .
@prefix ep-prodact: <http://www.reportinghub.no/ep/schema/production-activity#> .
@prefix ep-prodfac: <http://www.reportinghub.no/ep/schema/production-facility#> .
@prefix ep-prodwell: <http://www.reportinghub.no/ep/schema/production-well#> .
@prefix ep-report: <http://www.reportinghub.no/ep/schema/report#> .
@prefix ep-well: <http://www.reportinghub.no/ep/schema/well#> .
@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#> .