-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_fixing
executable file
·24 lines (19 loc) · 1.15 KB
/
run_fixing
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
PREFIX=http://w3id.org/dice-research/enexa/module/kg-fixing/
# If this is a test run
if [ "${TEST_RUN:-false}" = true ]
then
# things which ENEXA is supposed to do
mkdir -p $ENEXA_WRITEABLE_DIRECTORY
echo "INSERT DATA { GRAPH <$ENEXA_META_DATA_GRAPH> { <$ENEXA_MODULE_INSTANCE_IRI> <${PREFIX}parameter/t-boxFile> <http://ncsr.gr/t-box-filename> . <http://ncsr.gr/t-box-filename> <http://w3id.org/dice-research/enexa/ontology#location> 'enexa-dir://1-ontology_version_1.ttl' }}" \
|sparql-update "$ENEXA_META_DATA_ENDPOINT"
echo "INSERT DATA { GRAPH <$ENEXA_META_DATA_GRAPH> { <$ENEXA_MODULE_INSTANCE_IRI> <${PREFIX}parameter/a-boxFile> <http://ncsr.gr/a-box-filename> . <http://ncsr.gr/a-box-filename> <http://w3id.org/dice-research/enexa/ontology#location> 'enexa-dir://example-graph.ttl' }}" \
|sparql-update "$ENEXA_META_DATA_ENDPOINT"
fi
mkdir -p /tmp/output
java -Xmx220g -XX:-UseGCOverheadLimit -jar NCSR-Module.jar \
-t "$(enexa-parameter "${PREFIX}parameter/t-boxFile")" \
-a "$(enexa-parameter "${PREFIX}parameter/a-boxFile")" \
-o /tmp/output/fixed.ttl \
-c
enexa-add-file /tmp/output/fixed.ttl "${PREFIX}result/fixedKG"