David Price

More fix to use GRAPH for npd and erh

This diff could not be displayed because it is too large.
......@@ -43,6 +43,9 @@ removed - where ?reportingFacilityType a ep-prodfac:ReportingFacilityType ."""^^
] ;
sp:predicate rdf:type ;
sp:subject _:b1
] [ sp:object "20201" ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#fromRule> ;
sp:subject _:b1
] [ sp:object
[ sp:varName "facilityAtWhichFlowIsMeasured"^^xsd:string
] ;
......@@ -109,12 +112,14 @@ removed - where ?reportingFacilityType a ep-prodfac:ReportingFacilityType ."""^^
sp:subject
[ sp:varName "facilityAtWhichFlowIsMeasured"^^xsd:string
]
] [ sp:object
[ sp:varName "reportingFacilityType"^^xsd:string
] [ rdf:type sp:Bind ;
sp:expression
[ rdf:type ep-mpr-spin-lib:selectRDFTypes ;
sp:arg1 [ sp:varName "facilityAtWhichFlowIsMeasured"^^xsd:string
]
] ;
sp:predicate rdf:type ;
sp:subject
[ sp:varName "facilityAtWhichFlowIsMeasured"^^xsd:string
sp:variable
[ sp:varName "reportingFacilityType"^^xsd:string
]
])
] ;
......@@ -124,12 +129,18 @@ removed - where ?reportingFacilityType a ep-prodfac:ReportingFacilityType ."""^^
sp:templates ([ sp:object <http://www.reportinghub.no/ep/schema/facility#TemporalPartOfAProductionFacility> ;
sp:predicate rdf:type ;
sp:subject _:b2
] [ sp:object "20202" ;
sp:predicate rdfs:comment ;
sp:subject _:b2
] [ sp:object _:b3 ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#temporalPartOf> ;
sp:subject _:b2
] [ sp:object <http://www.reportinghub.no/ep/schema/facility#ProductionFacility> ;
sp:predicate rdf:type ;
sp:subject _:b3
] [ sp:object "20202" ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#fromRule> ;
sp:subject _:b3
] [ sp:object
[ sp:varName "facilityRef"^^xsd:string
] ;
......@@ -475,6 +486,9 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
sp:predicate rdf:type ;
sp:subject _:b5
] [ sp:object "20301a" ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#fromRule> ;
sp:subject _:b5
] [ sp:object
[ sp:varName "wholeLifeProductionFlow"^^xsd:string
] ;
......@@ -1297,6 +1311,9 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Inventory> ;
sp:predicate rdf:type ;
sp:subject _:b7
] [ sp:object "20303a" ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#fromRule> ;
sp:subject _:b7
] [ sp:object
[ sp:varName "wholeLifeProductionInventory"^^xsd:string
] ;
......@@ -1732,6 +1749,11 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
sp:subject
[ sp:varName "temporalPartOfAProductionInventory"^^xsd:string
]
] [ sp:object "20303e" ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#fromRule> ;
sp:subject
[ sp:varName "temporalPartOfAProductionInventory"^^xsd:string
]
] [ sp:object
[ sp:varName "temporalPartDurationType"^^xsd:string
] ;
......@@ -2352,6 +2374,12 @@ Nothing is done with the namingSystem!"""^^xsd:string ;
sp:subject
[ sp:varName "facilityOfMeasurement"^^xsd:string
]
] [ sp:object "20330" ;
sp:predicate rdfs:comment ;
sp:subject _:b11
] [ sp:object "20330" ;
sp:predicate rdfs:comment ;
sp:subject _:b12
]) ;
sp:where ([ sp:object
[ sp:varName "productVolumeRef"^^xsd:string
......@@ -2832,6 +2860,9 @@ BIND (ep-dpr-spin-lib:buildProductFlowURI(?productionFlowName, ?productFlowURISu
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#ProductFlow> ;
sp:predicate rdf:type ;
sp:subject _:b13
] [ sp:object "20400e" ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#fromRule> ;
sp:subject _:b13
] [ sp:object <http://www.reportinghub.no/ep/schema/flow#Flow> ;
sp:predicate rdf:type ;
sp:subject _:b13
......@@ -3370,6 +3401,9 @@ BIND (ep-dpr-spin-lib:buildProductFlowURI(?productionFlowName, ?productFlowURISu
] ;
sp:predicate <http://www.reportinghub.no/ep/schema/core#name> ;
sp:subject _:b14
] [ sp:object "20401e" ;
sp:predicate <http://www.reportinghub.no/ep/transform/transform-helper-schema#fromRule> ;
sp:subject _:b14
] [ sp:object
[ sp:varName "intervalStart"^^xsd:string
] ;
......@@ -4779,6 +4813,13 @@ BIND (ep-dpr-spin-lib:buildProductFlowURI(?productionFlowName, ?productFlowURISu
])
] .
ep-mpr-spin-lib:selectRDFTypes
spin:constraint
[ rdf:type spl:Argument ;
spl:predicate sp:arg1 ;
spl:valueType owl:Thing
] .
<http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-productVolume-v1.0>
rdf:type owl:Ontology ;
owl:imports <http://spinrdf.org/spin> , <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/ep/dpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/mpr/spin/1.1/lib> , <http://www.reportinghub.no/ep/schema/1.0/erhfacts> , <http://www.reportinghub.no/ep/transform/transform-helper-schema> ;
......