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
1 # baseURI: http://www.reportinghub.no/ep/schema/1.0/erhfacts 1 # baseURI: http://www.reportinghub.no/ep/schema/1.0/erhfacts
2 +# imports: http://www.reportinghub.no/ep/schema/1.0/flow
2 # imports: http://www.reportinghub.no/np/schema/1.0/npd 3 # imports: http://www.reportinghub.no/np/schema/1.0/npd
3 4
4 @prefix erh: <http://www.reportinghub.no/ep/schema/erhfacts#> . 5 @prefix erh: <http://www.reportinghub.no/ep/schema/erhfacts#> .
...@@ -9,7 +10,7 @@ ...@@ -9,7 +10,7 @@
9 10
10 <http://www.reportinghub.no/ep/schema/1.0/erhfacts> 11 <http://www.reportinghub.no/ep/schema/1.0/erhfacts>
11 rdf:type owl:Ontology ; 12 rdf:type owl:Ontology ;
12 - owl:imports <http://www.reportinghub.no/np/schema/1.0/npd> ; 13 + owl:imports <http://www.reportinghub.no/ep/schema/1.0/flow> , <http://www.reportinghub.no/np/schema/1.0/npd> ;
13 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 14 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
14 15
15 erh:AlternativeIdInField 16 erh:AlternativeIdInField
......
This diff could not be displayed because it is too large.
1 -# baseURI: null
2 -
3 -@prefix composite: <http://www.topbraid.org/2007/05/composite.owl#> .
4 -@prefix forms: <http://www.topbraid.org/2007/01/forms.owl#> .
5 -@prefix inference: <http://www.topbraid.org/2007/06/inference.owl#> .
6 -@prefix owl: <http://www.w3.org/2002/07/owl#> .
7 -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
8 -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
9 -@prefix visual: <http://topbraid.org/visual#> .
10 -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
11 -
12 -<http://www.reportinghub.no/ep/schema/erhfacts#AlternativeNameInField>
13 - forms:keyProperties (<http://www.reportinghub.no/ep/schema/erhfacts#name>) .
14 -
15 -<http://www.reportinghub.no/ep/schema/facility#Facility>
16 - forms:keyProperties (rdfs:label rdfs:comment <http://www.reportinghub.no/np/schema/npd#name>) .
This diff is collapsed. Click to expand it.
1 # baseURI: http://www.reportinghub.no/test/dpr2/testcase/TEST_dpr2-xml-ingest 1 # baseURI: http://www.reportinghub.no/test/dpr2/testcase/TEST_dpr2-xml-ingest
2 # imports: http://spinrdf.org/spin 2 # imports: http://spinrdf.org/spin
3 +# imports: http://www.reportinghub.no/data/erh
3 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector 4 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector
4 # imports: http://www.reportinghub.no/np/data/npd 5 # imports: http://www.reportinghub.no/np/data/npd
5 6
...@@ -15,5 +16,5 @@ ...@@ -15,5 +16,5 @@
15 16
16 <http://www.reportinghub.no/test/dpr2/testcase/TEST_dpr2-xml-ingest> 17 <http://www.reportinghub.no/test/dpr2/testcase/TEST_dpr2-xml-ingest>
17 rdf:type owl:Ontology ; 18 rdf:type owl:Ontology ;
18 - owl:imports <http://spinrdf.org/spin> , <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector> , <http://www.reportinghub.no/np/data/npd> ; 19 + 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> ;
19 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 20 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
1 <?xml version="1.0" encoding="UTF-8"?> 1 <?xml version="1.0" encoding="UTF-8"?>
2 <objects xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 2 <objects xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 - xmlns="http://www.epim.no/schemas/mprml/1" version="1.0(MPRML)"> 3 + xmlns="http://www.epim.no/schemas/mprml/1" version="1.0.0">
4 <documentInfo> 4 <documentInfo>
5 <DocumentName namingSystem="EC">TRYM February 2012</DocumentName> 5 <DocumentName namingSystem="EC">TRYM February 2012</DocumentName>
6 <DocumentAlias namingSystem="EC">TRYM Copex Report</DocumentAlias> 6 <DocumentAlias namingSystem="EC">TRYM Copex Report</DocumentAlias>
......
1 -# baseURI: http://www.reportinghub.no/test/flow_facts_examples/flow-facts-schema
2 -# imports: http://www.reportinghub.no/ep/schema/1.0/flow
3 -
4 -@prefix flowFacts: <http://www.reportinghub.no/test/flow_facts_examples/flow-facts-schema#> .
5 -@prefix owl: <http://www.w3.org/2002/07/owl#> .
6 -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
7 -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
8 -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
9 -
10 -<http://www.reportinghub.no/test/flow_facts_examples/flow-facts-schema>
11 - rdf:type owl:Ontology ;
12 - owl:imports <http://www.reportinghub.no/ep/schema/1.0/flow> ;
13 - owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
14 -
15 -flowFacts:possibleTemporalPartName
16 - rdf:type owl:DatatypeProperty ;
17 - rdfs:domain <http://www.reportinghub.no/ep/schema/flow#Flow> ;
18 - rdfs:label "possible temporal part name"^^xsd:string .
1 -# baseURI: http://www.reportinghub.no/test/dpr2/testcase/TEST_dpr2-flow-facts-xml-ingest
2 -# imports: http://spinrdf.org/spin
3 -# imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector
4 -# imports: http://www.reportinghub.no/np/data/npd
5 -# imports: http://www.reportinghub.no/test/flow_facts_examples/flow_facts
6 -
7 -@prefix : <http://www.reportinghub.no/test/dpr2/testcase/TEST_dpr2-flow-facts-xml-ingest#> .
8 -@prefix TRANSFORM_mpr-collector: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector#> .
9 -@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#> .
10 -@prefix flow_facts: <http://www.reportinghub.no/test/flow_facts_examples/flow_facts#> .
11 -@prefix owl: <http://www.w3.org/2002/07/owl#> .
12 -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
13 -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
14 -@prefix sp: <http://spinrdf.org/sp#> .
15 -@prefix spin: <http://spinrdf.org/spin#> .
16 -@prefix spl: <http://spinrdf.org/spl#> .
17 -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
18 -
19 -<http://www.reportinghub.no/test/dpr2/testcase/TEST_dpr2-flow-facts-xml-ingest>
20 - rdf:type owl:Ontology ;
21 - 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> ;
22 - owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
This diff is collapsed. Click to expand it.
1 +@prefix tables: <http://topbraid.org/tables#> .
2 +
3 +<file:///www.reportinghub.no/test/flow_facts/data/asgard-flow-facts.tsv.semtables>
4 + a <http://www.w3.org/2002/07/owl#Ontology> ;
5 + tables:imports <file:///www.reportinghub.no/test/flow_facts/data/flow-facts-ss-schema> ;
6 + <http://www.w3.org/2002/07/owl#imports>
7 + <http://topbraid.org/tables> .
1 +# baseURI: file:///www.reportinghub.no/test/flow_facts/data/flow-facts-ss-schema
2 +# imports: http://topbraid.org/tables
3 +
4 +@prefix owl: <http://www.w3.org/2002/07/owl#> .
5 +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
6 +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
7 +@prefix ss: <file:///www.reportinghub.no/test/flow_facts/data/flow-facts-ss-schema#> .
8 +@prefix tables: <http://topbraid.org/tables#> .
9 +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
10 +
11 +<file:///www.reportinghub.no/test/flow_facts/data/flow-facts-ss-schema>
12 + rdf:type owl:Ontology ;
13 + owl:imports <http://topbraid.org/tables> .
14 +
15 +ss:FieldNPDName
16 + rdf:type owl:DatatypeProperty ;
17 + rdfs:domain ss:flow-facts ;
18 + rdfs:label "FieldNPDName"^^xsd:string ;
19 + rdfs:range xsd:string ;
20 + tables:columnIndex "0"^^xsd:int .
21 +
22 +ss:fieldNPDID
23 + rdf:type owl:DatatypeProperty ;
24 + rdfs:domain ss:flow-facts ;
25 + rdfs:label "FieldNPDID" ;
26 + rdfs:range xsd:string ;
27 + tables:columnIndex "1"^^xsd:int .
28 +
29 +ss:flow-facts
30 + rdf:type owl:Class ;
31 + rdfs:label "flow-facts"^^xsd:string ;
32 + tables:sheetIndex "0"^^xsd:int .
33 +
34 +ss:flowKind
35 + rdf:type owl:DatatypeProperty ;
36 + rdfs:domain ss:flow-facts ;
37 + rdfs:label "FlowKind" ;
38 + rdfs:range xsd:string ;
39 + tables:columnIndex "4"^^xsd:int .
40 +
41 +ss:flowName
42 + rdf:type owl:DatatypeProperty ;
43 + rdfs:domain ss:flow-facts ;
44 + rdfs:label "FlowName" ;
45 + rdfs:range xsd:string ;
46 + tables:columnIndex "3"^^xsd:int .
47 +
48 +ss:flowQualifier
49 + rdf:type owl:DatatypeProperty ;
50 + rdfs:domain ss:flow-facts ;
51 + rdfs:label "FlowQualifier" ;
52 + rdfs:range xsd:string ;
53 + tables:columnIndex "5"^^xsd:int .
54 +
55 +ss:flowUID
56 + rdf:type owl:DatatypeProperty ;
57 + rdfs:domain ss:flow-facts ;
58 + rdfs:label "FlowUID" ;
59 + rdfs:range xsd:string ;
60 + tables:columnIndex "2"^^xsd:int .
1 +@prefix tables: <http://topbraid.org/tables#> .
2 +
3 +<file:///www.reportinghub.no/test/flow_facts/data/trym-flow-facts.xls.semtables>
4 + a <http://www.w3.org/2002/07/owl#Ontology> ;
5 + tables:imports <file:///www.reportinghub.no/test/flow_facts/data/flow-facts-ss-schema> ;
6 + <http://www.w3.org/2002/07/owl#imports>
7 + <http://topbraid.org/tables> .
1 -# baseURI: http://www.reportinghub.no/test/flow_facts_examples/flow_facts
2 -# imports: http://www.reportinghub.no/ep/schema/1.0/activity
3 -# imports: http://www.reportinghub.no/ep/schema/1.0/activity-purpose
4 -# imports: http://www.reportinghub.no/ep/schema/1.0/core
5 -# imports: http://www.reportinghub.no/ep/schema/1.0/drilling
6 -# imports: http://www.reportinghub.no/ep/schema/1.0/drilling-equipment-type
7 -# imports: http://www.reportinghub.no/ep/schema/1.0/equipment
8 -# imports: http://www.reportinghub.no/ep/schema/1.0/facility
9 -# imports: http://www.reportinghub.no/ep/schema/1.0/flow
10 -# imports: http://www.reportinghub.no/ep/schema/1.0/geography
11 -# imports: http://www.reportinghub.no/ep/schema/1.0/material
12 -# imports: http://www.reportinghub.no/ep/schema/1.0/organization
13 -# imports: http://www.reportinghub.no/ep/schema/1.0/production-activity
14 -# imports: http://www.reportinghub.no/ep/schema/1.0/production-equipment
15 -# imports: http://www.reportinghub.no/ep/schema/1.0/production-facility
16 -# imports: http://www.reportinghub.no/ep/schema/1.0/production-well
17 -# imports: http://www.reportinghub.no/ep/schema/1.0/report
18 -# imports: http://www.reportinghub.no/ep/schema/1.0/well
19 -# imports: http://www.reportinghub.no/np/data/npd
20 -# imports: http://www.reportinghub.no/test/flow_facts_examples/flow-facts-schema
21 -
22 -@prefix : <http://www.reportinghub.no/test/flow_facts_examples/flow_facts#> .
23 -@prefix TRANSFORM_mpr-collector: <http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector#> .
24 -@prefix drilling: <http://www.reportinghub.no/ep/schema/1.0/drilling#> .
25 -@prefix ep-activity: <http://www.reportinghub.no/ep/schema/activity#> .
26 -@prefix ep-core: <http://www.reportinghub.no/ep/schema/core#> .
27 -@prefix ep-eqt: <http://www.reportinghub.no/ep/schema/equipment#> .
28 -@prefix ep-flow: <http://www.reportinghub.no/ep/schema/flow#> .
29 -@prefix flowFacts: <http://www.reportinghub.no/test/flow_facts_examples/flow-facts-schema#> .
30 -@prefix npd: <http://www.reportinghub.no/np/schema/npd#> .
31 -@prefix owl: <http://www.w3.org/2002/07/owl#> .
32 -@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
33 -@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
34 -@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
35 -
36 -<http://www.reportinghub.no/test/flow_facts_examples/flow_facts>
37 - rdf:type owl:Ontology ;
38 - 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> ;
39 - owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
40 -
41 -<https://reportinghub.no/ep/schema/flowRegistry#Flow-000001>
42 - rdf:type ep-flow:MeteredFlowFiscal , ep-flow:ProductionFlow , ep-flow:WholeLifeProductionFlow , ep-flow:Production , ep-flow:Flow ;
43 - rdfs:comment "Fiscal metered total gross gas in Nm3 for Oselvar -> stream pipe 1 and 2 combined"^^xsd:string ;
44 - rdfs:label "flow 000001"^^xsd:string ;
45 - ep-activity:startedAt
46 - "2013-02-11T00:00:00.0Z"^^xsd:dateTime ;
47 - ep-core:name "000001"^^xsd:string ;
48 - ep-flow:flowIntoOrOutOf
49 - <http://www.reportinghub.no/np/data/npd/Field-5506919> ;
50 - flowFacts:possibleTemporalPartName
51 - "OSL GAS STATION PROD FISCAL GAS"^^xsd:string .
52 -
53 -<https://reportinghub.no/ep/schema/flowRegistry#Flow-000002>
54 - rdf:type ep-flow:Flow , ep-flow:Consume , ep-flow:ProductionFlow , ep-flow:WholeLifeProductionFlow ;
55 - rdfs:label "flow 000002"^^xsd:string ;
56 - ep-activity:startedAt
57 - "2013-02-11T00:00:00.0Z"^^xsd:dateTime ;
58 - ep-core:name "000002"^^xsd:string ;
59 - ep-core:partOf <http://www.reportinghub.no/np/data/npd/Field-5506919> ;
60 - ep-flow:flowIntoOrOutOf
61 - <http://www.reportinghub.no/np/data/npd/Field-5506919> ;
62 - flowFacts:possibleTemporalPartName
63 - "OSL MEG TANK1 CONS MEAS CHEM"^^xsd:string , "OSL MEG TANK2 CONS MEAS CHEM"^^xsd:string .
1 +DRAFT 2
2 +
3 +SELECT ?FieldNPDName ?FieldNPDID ?FlowUID ?FlowName ?FlowKind ?FlowQualifier
4 +WHERE {
5 + ?obj_productvolume rdf:type mpr:Obj_productVolume .
6 + ?obj_productvolume mpr:facilityRef ?cs_productvolumefacility .
7 + ?cs_productvolumefacility rdf:type mpr:Cs_productVolumeFacility .
8 +
9 + ?obj_productvolume mpr:installationRef ?facilityidentifierstruct .
10 + ?facilityidentifierstruct rdf:type mpr:FacilityIdentifierStruct .
11 + ?facilityidentifierstruct mpr:namingSystem "NPD"^^<http://www.epim.no/schemas/mprml/1#NameStringDatatype> .
12 + ?facilityidentifierstruct mpr:uidRefValue ?FieldNPDID .
13 + ?facilityidentifierstruct dtype:value ?FieldNPDName .
14 +
15 + ?cs_productvolumefacility mpr:flowRef ?cs_productvolumeflow .
16 + ?cs_productvolumeflow rdf:type mpr:Cs_productVolumeFlow .
17 +
18 + ?cs_productvolumeflow mpr:kindRef ?FlowKind .
19 + ?FlowKind rdf:type mpr:ReportingFlow .
20 +
21 + ?cs_productvolumeflow mpr:qualifierRef ?FlowQualifier .
22 + ?FlowQualifier rdf:type mpr:FlowQualifier .
23 +
24 + ?cs_productvolumeflow mpr:name ?FlowName .
25 + ?cs_productvolumeflow mpr:uid ?FlowUID .
26 +
27 +}
28 +
29 +
30 +
31 +
32 +DRAFT1
33 +
34 +SELECT ?FieldNPDName ?FieldNPDID ?FlowUID ?FlowName ?FlowKind ?FlowQualifier
35 +WHERE {
36 + ?obj_productvolume rdf:type mpr:Obj_productVolume .
37 + ?obj_productvolume mpr:facilityRef ?cs_productvolumefacility .
38 + ?cs_productvolumefacility rdf:type mpr:Cs_productVolumeFacility .
39 +
40 + ?obj_productvolume mpr:installationRef ?facilityidentifierstruct .
41 + ?facilityidentifierstruct rdf:type mpr:FacilityIdentifierStruct .
42 + ?facilityidentifierstruct mpr:namingSystem "NPD"^^<http://www.epim.no/schemas/mprml/1#NameStringDatatype> .
43 + ?facilityidentifierstruct mpr:uidRefValue ?FieldNPDID .
44 + ?facilityidentifierstruct dtype:value ?FieldNPDName .
45 +
46 + ?cs_productvolumefacility mpr:flowRef ?cs_productvolumeflow .
47 + ?cs_productvolumeflow rdf:type mpr:Cs_productVolumeFlow .
48 +
49 + ?cs_productvolumeflow mpr:kindRef ?reportingflow .
50 + ?reportingflow rdf:type mpr:ReportingFlow .
51 + ?reportingflow dtype:value ?FlowKind .
52 +
53 + ?cs_productvolumeflow mpr:qualifierRef ?qualifier .
54 + ?qualifier rdf:type mpr:FlowQualifier .
55 + ?qualifier dtype:value ?FlowQualifier .
56 +
57 + ?cs_productvolumeflow mpr:name ?FlowName .
58 + ?cs_productvolumeflow mpr:uid ?FlowUID .
59 +
60 +}
...\ No newline at end of file ...\ No newline at end of file
1 # baseURI: http://www.reportinghub.no/test/mpr/TEST_mpr-xml-ingest 1 # baseURI: http://www.reportinghub.no/test/mpr/TEST_mpr-xml-ingest
2 # imports: http://spinrdf.org/spin 2 # imports: http://spinrdf.org/spin
3 # imports: http://www.epim.no/schemas/mprml/1 3 # imports: http://www.epim.no/schemas/mprml/1
4 +# imports: http://www.reportinghub.no/data/erh
4 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector 5 # imports: http://www.reportinghub.no/ep/transform/TRANSFORM_mpr-collector
5 # imports: http://www.reportinghub.no/np/data/npd 6 # imports: http://www.reportinghub.no/np/data/npd
6 7
...@@ -17,5 +18,5 @@ ...@@ -17,5 +18,5 @@
17 18
18 <http://www.reportinghub.no/test/mpr/TEST_mpr-xml-ingest> 19 <http://www.reportinghub.no/test/mpr/TEST_mpr-xml-ingest>
19 rdf:type owl:Ontology ; 20 rdf:type owl:Ontology ;
20 - 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> ; 21 + 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> ;
21 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 22 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......