David Price

Processed ERH_TEST_FIELD facts

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