David Price

Processed ERH_TEST_FIELD facts

1 FLOW FACT CREATION PROCESS 1 FLOW FACT CREATION PROCESS
2 2
3 +Facts to include
4 +
5 +TRYM test cases
6 +ASGARD test cases
7 +ERH_TEST_FIELD test cases
8 +Operators facts
9 +
3 STEP 1 - Open mprxml-read.ttl and import all XML files. 10 STEP 1 - Open mprxml-read.ttl and import all XML files.
4 STEP 2 - Execute SPARQL from mprxml-to-flowuid-spreadsheet.sparql 11 STEP 2 - Execute SPARQL from mprxml-to-flowuid-spreadsheet.sparql
5 -STEP 3 - Save STEP 2 results to TSV file and import back into workspace
...\ No newline at end of file ...\ No newline at end of file
12 +STEP 3 - Save STEP 2 results to TSV file and import back into workspace
13 +STEP 4 - Open TSV and link to semtables spreadsheet schema at :
14 + www.reportinghub.no/test/flow_facts/schema/flow-facts-ss-schema.ttl
15 +STEP 5 - Create Turtle file to hold results and import schema:
16 + www.reportinghub.no/ep/schema/1.0/SCHEMA_EP-ERH-FACTS-v1.0.ttl
17 + e.g. http://www.reportinghub.no/test/flow_facts/data/erhfacts-ERH_TEST_FIELD
18 +STEP 6 - Update this file to contain only imports of the TSVs for which facts are to be generated:
19 + www.reportinghub.no/test/flow_facts/data/flow-fact-collector.ttl
20 +STEP 7 - Open the following file, temporarily import file from STEP 5, run inferences and assert to STEP 5 file.
21 + www.reportinghub.no/test/flow_facts/transform/flow-facts-ss-to-ep-facts.ttl
22 + CLOSE THE SPIN FILE WITHOUT SAVING!
23 +STEP 8 - SAVE the file from STEP 5 that now contains the generated facts.
24 +
...\ No newline at end of file ...\ No newline at end of file
......
1 # baseURI: http://www.reportinghub.no/test/flow_facts/data/flow-fact-collector 1 # baseURI: http://www.reportinghub.no/test/flow_facts/data/flow-fact-collector
2 -# imports: file:///www.reportinghub.no/test/flow_facts/data/asgard-flow-facts-2013-09-12.tsv 2 +# imports: file:///www.reportinghub.no/test/flow_facts/data/ERH_TEST_FIELD-fact-ss.tsv
3 -# imports: file:///www.reportinghub.no/test/flow_facts/data/trym-flow-facts-2013-09-12.tsv
4 3
5 @prefix flow-fact-collector: <http://www.reportinghub.no/test/flow_facts/data/flow-fact-collector#> . 4 @prefix flow-fact-collector: <http://www.reportinghub.no/test/flow_facts/data/flow-fact-collector#> .
6 @prefix owl: <http://www.w3.org/2002/07/owl#> . 5 @prefix owl: <http://www.w3.org/2002/07/owl#> .
...@@ -10,5 +9,5 @@ ...@@ -10,5 +9,5 @@
10 9
11 <http://www.reportinghub.no/test/flow_facts/data/flow-fact-collector> 10 <http://www.reportinghub.no/test/flow_facts/data/flow-fact-collector>
12 rdf:type owl:Ontology ; 11 rdf:type owl:Ontology ;
13 - owl:imports <file:///www.reportinghub.no/test/flow_facts/data/asgard-flow-facts-2013-09-12.tsv> , <file:///www.reportinghub.no/test/flow_facts/data/trym-flow-facts-2013-09-12.tsv> ; 12 + owl:imports <file:///www.reportinghub.no/test/flow_facts/data/ERH_TEST_FIELD-fact-ss.tsv> ;
14 owl:versionInfo "Created with TopBraid Composer"^^xsd:string . 13 owl:versionInfo "Created with TopBraid Composer"^^xsd:string .
......
1 -SELECT ?Flowuid ?FlowInOutNPDId ?FlowInOutName ?FlowInOutType ?Kind ?Purpose 1 +SELECT ?Field ?Flowuid ?FlowInOutNPDId ?FlowInOutName ?FlowInOutType ?Kind ?Purpose
2 WHERE { 2 WHERE {
3 ?flow rdf:type ep-flow:WholeLifeProductionFlow . 3 ?flow rdf:type ep-flow:WholeLifeProductionFlow .
4 ?flow erh:id ?Flowuid . 4 ?flow erh:id ?Flowuid .
...@@ -11,11 +11,12 @@ WHERE { ...@@ -11,11 +11,12 @@ WHERE {
11 ?defn rdf:type ep-flow:ProductionFlowDefinitionType . 11 ?defn rdf:type ep-flow:ProductionFlowDefinitionType .
12 ?defn rdfs:label ?Kind .} 12 ?defn rdfs:label ?Kind .}
13 OPTIONAL { 13 OPTIONAL {
14 - ?flow ep-core:partOf ?field . } 14 + ?flow ep-core:partOf ?fielduri .
15 + ?fielduri npd:name ?Field .}
15 OPTIONAL { 16 OPTIONAL {
16 ?flow ep-flow:flowIntoOrOutOf ?flowThing . 17 ?flow ep-flow:flowIntoOrOutOf ?flowThing .
17 - ?flowThing npd:name ?FlowInOutName . 18 + ?flowThing npd:name|ep-core:name ?FlowInOutName .
18 - ?flowThing npd:id ?FlowInOutNPDId . 19 + OPTIONAL { ?flowThing npd:id ?FlowInOutNPDId . }
19 ?flowThing a ?what . 20 ?flowThing a ?what .
20 ?what rdfs:label ?FlowInOutType . 21 ?what rdfs:label ?FlowInOutType .
21 } 22 }
......