Toggle navigation
Toggle navigation
This project
Loading...
Sign in
data.posccaesar.org
/
npd
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
1
Merge Requests
0
Wiki
Network
Create a new issue
Commits
Issue Boards
Authored by
David Price
2014-03-30 12:26:50 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4fbaf025c1b8100dbb449c385205a058cdfc8043
4fbaf025
1 parent
6d51ec8b
Processed ERH_TEST_FIELD facts
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
8 deletions
www.reportinghub.no/test/flow_facts/CREATE-FLOW-FACT-PROCESS-STEPS.txt
www.reportinghub.no/test/flow_facts/data/erhfacts-ERH_TEST_FIELD.ttl
www.reportinghub.no/examples/erhfacts-2013-09-13.ttl → www.reportinghub.no/test/flow_facts/data/erhfacts-acceptance-test-2013-09-13.ttl
www.reportinghub.no/test/flow_facts/data/flow-fact-collector.ttl
www.reportinghub.no/test/flow_facts/transform/ep-facts-qa.sparql
www.reportinghub.no/test/flow_facts/CREATE-FLOW-FACT-PROCESS-STEPS.txt
View file @
4fbaf02
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
...
...
www.reportinghub.no/test/flow_facts/data/erhfacts-ERH_TEST_FIELD.ttl
0 → 100644
View file @
4fbaf02
This diff is collapsed. Click to expand it.
www.reportinghub.no/
examples/erhfacts
-2013-09-13.ttl
→
www.reportinghub.no/
test/flow_facts/data/erhfacts-acceptance-test
-2013-09-13.ttl
View file @
4fbaf02
File moved
www.reportinghub.no/test/flow_facts/data/flow-fact-collector.ttl
View file @
4fbaf02
# 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
.
...
...
www.reportinghub.no/test/flow_facts/transform/ep-facts-qa.sparql
View file @
4fbaf02
SELECT ?Flowuid ?FlowInOutNPDId ?FlowInOutName ?FlowInOutType ?Kind ?Purpose
SELECT ?F
ield ?F
lowuid ?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 .
}
...
...
Please
register
or
login
to post a comment