David Price

First good erh flow facts ep triples, remove obsolete test cases due to new MPR XSD

Showing 58 changed files with 141 additions and 123 deletions
# baseURI: http://www.reportinghub.no/ep/schema/1.0/erhfacts
# imports: http://www.reportinghub.no/ep/schema/1.0/flow
# imports: http://www.reportinghub.no/np/schema/1.0/npd
@prefix erh: <http://www.reportinghub.no/ep/schema/erhfacts#> .
......@@ -9,7 +10,7 @@
<http://www.reportinghub.no/ep/schema/1.0/erhfacts>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/np/schema/1.0/npd> ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/flow> , <http://www.reportinghub.no/np/schema/1.0/npd> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
erh:AlternativeIdInField
......
This diff could not be displayed because it is too large.
# 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#> .
<http://www.reportinghub.no/ep/schema/erhfacts#AlternativeNameInField>
forms:keyProperties (<http://www.reportinghub.no/ep/schema/erhfacts#name>) .
<http://www.reportinghub.no/ep/schema/facility#Facility>
forms:keyProperties (rdfs:label rdfs:comment <http://www.reportinghub.no/np/schema/npd#name>) .
This diff is collapsed. Click to expand it.
# 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/transform/TRANSFORM_mpr-collector
# imports: http://www.reportinghub.no/np/data/npd
......@@ -15,5 +16,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/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/transform/TRANSFORM_mpr-collector> , <http://www.reportinghub.no/np/data/npd> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
<?xml version="1.0" encoding="UTF-8"?>
<objects xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.epim.no/schemas/mprml/1" version="1.0(MPRML)">
xmlns="http://www.epim.no/schemas/mprml/1" version="1.0.0">
<documentInfo>
<DocumentName namingSystem="EC">TRYM February 2012</DocumentName>
<DocumentAlias namingSystem="EC">TRYM Copex Report</DocumentAlias>
......
# baseURI: http://www.reportinghub.no/test/flow_facts_examples/flow-facts-schema
# imports: http://www.reportinghub.no/ep/schema/1.0/flow
@prefix flowFacts: <http://www.reportinghub.no/test/flow_facts_examples/flow-facts-schema#> .
@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/flow_facts_examples/flow-facts-schema>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/flow> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
flowFacts:possibleTemporalPartName
rdf:type owl:DatatypeProperty ;
rdfs:domain <http://www.reportinghub.no/ep/schema/flow#Flow> ;
rdfs:label "possible temporal part name"^^xsd:string .
# baseURI: http://www.reportinghub.no/test/dpr2/testcase/TEST_dpr2-flow-facts-xml-ingest
# imports: http://spinrdf.org/spin
# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector
# imports: http://www.reportinghub.no/np/data/npd
# imports: http://www.reportinghub.no/test/flow_facts_examples/flow_facts
@prefix : <http://www.reportinghub.no/test/dpr2/testcase/TEST_dpr2-flow-facts-xml-ingest#> .
@prefix TRANSFORM_mpr-collector: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector#> .
@prefix TRYM-DPR2.0-28-FEB-2012-dpr2-ONE-VOLUME: <file:///www.reportinghub.no/test/dpr2/testcase/epim-dpr2/PL147/tqedits/TRYM-DPR2.0-28-FEB-2012-dpr2-ONE-VOLUME.xml#> .
@prefix flow_facts: <http://www.reportinghub.no/test/flow_facts_examples/flow_facts#> .
@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 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/test/dpr2/testcase/TEST_dpr2-flow-facts-xml-ingest>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/test/flow_facts_examples/flow_facts> , <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> , <http://www.reportinghub.no/np/data/npd> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
This diff is collapsed. Click to expand it.
@prefix tables: <http://topbraid.org/tables#> .
<file:///www.reportinghub.no/test/flow_facts/data/asgard-flow-facts.tsv.semtables>
a <http://www.w3.org/2002/07/owl#Ontology> ;
tables:imports <file:///www.reportinghub.no/test/flow_facts/data/flow-facts-ss-schema> ;
<http://www.w3.org/2002/07/owl#imports>
<http://topbraid.org/tables> .
# baseURI: file:///www.reportinghub.no/test/flow_facts/data/flow-facts-ss-schema
# imports: http://topbraid.org/tables
@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 ss: <file:///www.reportinghub.no/test/flow_facts/data/flow-facts-ss-schema#> .
@prefix tables: <http://topbraid.org/tables#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
<file:///www.reportinghub.no/test/flow_facts/data/flow-facts-ss-schema>
rdf:type owl:Ontology ;
owl:imports <http://topbraid.org/tables> .
ss:FieldNPDName
rdf:type owl:DatatypeProperty ;
rdfs:domain ss:flow-facts ;
rdfs:label "FieldNPDName"^^xsd:string ;
rdfs:range xsd:string ;
tables:columnIndex "0"^^xsd:int .
ss:fieldNPDID
rdf:type owl:DatatypeProperty ;
rdfs:domain ss:flow-facts ;
rdfs:label "FieldNPDID" ;
rdfs:range xsd:string ;
tables:columnIndex "1"^^xsd:int .
ss:flow-facts
rdf:type owl:Class ;
rdfs:label "flow-facts"^^xsd:string ;
tables:sheetIndex "0"^^xsd:int .
ss:flowKind
rdf:type owl:DatatypeProperty ;
rdfs:domain ss:flow-facts ;
rdfs:label "FlowKind" ;
rdfs:range xsd:string ;
tables:columnIndex "4"^^xsd:int .
ss:flowName
rdf:type owl:DatatypeProperty ;
rdfs:domain ss:flow-facts ;
rdfs:label "FlowName" ;
rdfs:range xsd:string ;
tables:columnIndex "3"^^xsd:int .
ss:flowQualifier
rdf:type owl:DatatypeProperty ;
rdfs:domain ss:flow-facts ;
rdfs:label "FlowQualifier" ;
rdfs:range xsd:string ;
tables:columnIndex "5"^^xsd:int .
ss:flowUID
rdf:type owl:DatatypeProperty ;
rdfs:domain ss:flow-facts ;
rdfs:label "FlowUID" ;
rdfs:range xsd:string ;
tables:columnIndex "2"^^xsd:int .
@prefix tables: <http://topbraid.org/tables#> .
<file:///www.reportinghub.no/test/flow_facts/data/trym-flow-facts.xls.semtables>
a <http://www.w3.org/2002/07/owl#Ontology> ;
tables:imports <file:///www.reportinghub.no/test/flow_facts/data/flow-facts-ss-schema> ;
<http://www.w3.org/2002/07/owl#imports>
<http://topbraid.org/tables> .
# baseURI: http://www.reportinghub.no/test/flow_facts_examples/flow_facts
# imports: http://www.reportinghub.no/ep/schema/1.0/activity
# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose
# imports: http://www.reportinghub.no/ep/schema/1.0/core
# imports: http://www.reportinghub.no/ep/schema/1.0/drilling
# imports: http://www.reportinghub.no/ep/schema/1.0/drilling-equipment-type
# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
# imports: http://www.reportinghub.no/ep/schema/1.0/facility
# imports: http://www.reportinghub.no/ep/schema/1.0/flow
# imports: http://www.reportinghub.no/ep/schema/1.0/geography
# imports: http://www.reportinghub.no/ep/schema/1.0/material
# imports: http://www.reportinghub.no/ep/schema/1.0/organization
# imports: http://www.reportinghub.no/ep/schema/1.0/production-activity
# imports: http://www.reportinghub.no/ep/schema/1.0/production-equipment
# imports: http://www.reportinghub.no/ep/schema/1.0/production-facility
# imports: http://www.reportinghub.no/ep/schema/1.0/production-well
# imports: http://www.reportinghub.no/ep/schema/1.0/report
# imports: http://www.reportinghub.no/ep/schema/1.0/well
# imports: http://www.reportinghub.no/np/data/npd
# imports: http://www.reportinghub.no/test/flow_facts_examples/flow-facts-schema
@prefix : <http://www.reportinghub.no/test/flow_facts_examples/flow_facts#> .
@prefix TRANSFORM_mpr-collector: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector#> .
@prefix drilling: <http://www.reportinghub.no/ep/schema/1.0/drilling#> .
@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-flow: <http://www.reportinghub.no/ep/schema/flow#> .
@prefix flowFacts: <http://www.reportinghub.no/test/flow_facts_examples/flow-facts-schema#> .
@prefix npd: <http://www.reportinghub.no/np/schema/npd#> .
@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/flow_facts_examples/flow_facts>
rdf:type owl:Ontology ;
owl:imports <http://www.reportinghub.no/ep/schema/1.0/drilling-equipment-type> , <http://www.reportinghub.no/ep/schema/1.0/facility> , <http://www.reportinghub.no/ep/schema/1.0/material> , <http://www.reportinghub.no/ep/schema/1.0/production-activity> , <http://www.reportinghub.no/ep/schema/1.0/activity> , <http://www.reportinghub.no/ep/schema/1.0/geography> , <http://www.reportinghub.no/ep/schema/1.0/production-equipment> , <http://www.reportinghub.no/test/flow_facts_examples/flow-facts-schema> , <http://www.reportinghub.no/ep/schema/1.0/production-facility> , <http://www.reportinghub.no/ep/schema/1.0/activity-purpose> , <http://www.reportinghub.no/ep/schema/1.0/report> , <http://www.reportinghub.no/ep/schema/1.0/well> , <http://www.reportinghub.no/ep/schema/1.0/core> , <http://www.reportinghub.no/ep/schema/1.0/organization> , <http://www.reportinghub.no/ep/schema/1.0/equipment> , <http://www.reportinghub.no/ep/schema/1.0/flow> , <http://www.reportinghub.no/np/data/npd> , <http://www.reportinghub.no/ep/schema/1.0/production-well> , <http://www.reportinghub.no/ep/schema/1.0/drilling> ;
owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
<https://reportinghub.no/ep/schema/flowRegistry#Flow-000001>
rdf:type ep-flow:MeteredFlowFiscal , ep-flow:ProductionFlow , ep-flow:WholeLifeProductionFlow , ep-flow:Production , ep-flow:Flow ;
rdfs:comment "Fiscal metered total gross gas in Nm3 for Oselvar -> stream pipe 1 and 2 combined"^^xsd:string ;
rdfs:label "flow 000001"^^xsd:string ;
ep-activity:startedAt
"2013-02-11T00:00:00.0Z"^^xsd:dateTime ;
ep-core:name "000001"^^xsd:string ;
ep-flow:flowIntoOrOutOf
<http://www.reportinghub.no/np/data/npd/Field-5506919> ;
flowFacts:possibleTemporalPartName
"OSL GAS STATION PROD FISCAL GAS"^^xsd:string .
<https://reportinghub.no/ep/schema/flowRegistry#Flow-000002>
rdf:type ep-flow:Flow , ep-flow:Consume , ep-flow:ProductionFlow , ep-flow:WholeLifeProductionFlow ;
rdfs:label "flow 000002"^^xsd:string ;
ep-activity:startedAt
"2013-02-11T00:00:00.0Z"^^xsd:dateTime ;
ep-core:name "000002"^^xsd:string ;
ep-core:partOf <http://www.reportinghub.no/np/data/npd/Field-5506919> ;
ep-flow:flowIntoOrOutOf
<http://www.reportinghub.no/np/data/npd/Field-5506919> ;
flowFacts:possibleTemporalPartName
"OSL MEG TANK1 CONS MEAS CHEM"^^xsd:string , "OSL MEG TANK2 CONS MEAS CHEM"^^xsd:string .
DRAFT 2
SELECT ?FieldNPDName ?FieldNPDID ?FlowUID ?FlowName ?FlowKind ?FlowQualifier
WHERE {
?obj_productvolume rdf:type mpr:Obj_productVolume .
?obj_productvolume mpr:facilityRef ?cs_productvolumefacility .
?cs_productvolumefacility rdf:type mpr:Cs_productVolumeFacility .
?obj_productvolume mpr:installationRef ?facilityidentifierstruct .
?facilityidentifierstruct rdf:type mpr:FacilityIdentifierStruct .
?facilityidentifierstruct mpr:namingSystem "NPD"^^<http://www.epim.no/schemas/mprml/1#NameStringDatatype> .
?facilityidentifierstruct mpr:uidRefValue ?FieldNPDID .
?facilityidentifierstruct dtype:value ?FieldNPDName .
?cs_productvolumefacility mpr:flowRef ?cs_productvolumeflow .
?cs_productvolumeflow rdf:type mpr:Cs_productVolumeFlow .
?cs_productvolumeflow mpr:kindRef ?FlowKind .
?FlowKind rdf:type mpr:ReportingFlow .
?cs_productvolumeflow mpr:qualifierRef ?FlowQualifier .
?FlowQualifier rdf:type mpr:FlowQualifier .
?cs_productvolumeflow mpr:name ?FlowName .
?cs_productvolumeflow mpr:uid ?FlowUID .
}
DRAFT1
SELECT ?FieldNPDName ?FieldNPDID ?FlowUID ?FlowName ?FlowKind ?FlowQualifier
WHERE {
?obj_productvolume rdf:type mpr:Obj_productVolume .
?obj_productvolume mpr:facilityRef ?cs_productvolumefacility .
?cs_productvolumefacility rdf:type mpr:Cs_productVolumeFacility .
?obj_productvolume mpr:installationRef ?facilityidentifierstruct .
?facilityidentifierstruct rdf:type mpr:FacilityIdentifierStruct .
?facilityidentifierstruct mpr:namingSystem "NPD"^^<http://www.epim.no/schemas/mprml/1#NameStringDatatype> .
?facilityidentifierstruct mpr:uidRefValue ?FieldNPDID .
?facilityidentifierstruct dtype:value ?FieldNPDName .
?cs_productvolumefacility mpr:flowRef ?cs_productvolumeflow .
?cs_productvolumeflow rdf:type mpr:Cs_productVolumeFlow .
?cs_productvolumeflow mpr:kindRef ?reportingflow .
?reportingflow rdf:type mpr:ReportingFlow .
?reportingflow dtype:value ?FlowKind .
?cs_productvolumeflow mpr:qualifierRef ?qualifier .
?qualifier rdf:type mpr:FlowQualifier .
?qualifier dtype:value ?FlowQualifier .
?cs_productvolumeflow mpr:name ?FlowName .
?cs_productvolumeflow mpr:uid ?FlowUID .
}
\ No newline at end of file
# baseURI: http://www.reportinghub.no/test/mpr/TEST_mpr-xml-ingest
# 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/transform/TRANSFORM_mpr-collector
# imports: http://www.reportinghub.no/np/data/npd
......@@ -17,5 +18,5 @@
<http://www.reportinghub.no/test/mpr/TEST_mpr-xml-ingest>
rdf:type owl:Ontology ;
owl:imports <http://www.epim.no/schemas/mprml/1> , <http://www.reportinghub.no/np/data/npd> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> , <http://spinrdf.org/spin> ;
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:versionInfo "Created with TopBraid Composer"^^xsd:string .
......