-
Notifications
You must be signed in to change notification settings - Fork 3
/
test-merged.sh
executable file
·61 lines (49 loc) · 1.58 KB
/
test-merged.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/bin/bash
set -e
ROOT_DIR=`pwd`
export ROBOT_JAVA_ARGS=-Xmx7G
mkdir mirror
curl -L -o 'mirror/taxslim.owl' 'http://purl.obolibrary.org/obo/ncbitaxon/subsets/taxslim.owl'
curl -L -o 'mirror/taxslim-disjoint-over-in-taxon.owl' 'http://purl.obolibrary.org/obo/ncbitaxon/subsets/taxslim-disjoint-over-in-taxon.owl'
curl -L -o 'mirror/chebi.owl.gz' 'http://purl.obolibrary.org/obo/chebi.owl.gz'
curl -L -o 'mirror/iao.owl' 'http://purl.obolibrary.org/obo/iao.owl'
cd mirror
gunzip chebi.owl.gz
cd $ROOT_DIR
git clone --depth 1 'https://github.com/geneontology/go-ontology.git'
git clone --depth 1 'https://github.com/obophenotype/uberon.git'
git clone --depth 1 'https://github.com/obophenotype/cell-ontology.git'
git clone --depth 1 'https://github.com/obophenotype/biological-spatial-ontology.git'
git clone --depth 1 'https://github.com/oborel/obo-relations.git'
git clone --depth 1 'https://github.com/obi-ontology/obi.git'
cd go-ontology/src/ontology
make go-base.owl
cd $ROOT_DIR
cd uberon/src/ontology
mkdir -p tmp
make uberon-base.owl
make bridge/uberon-bridge-to-bfo.owl
make bridge/uberon-bridge-to-caro.owl
cd $ROOT_DIR
cd cell-ontology/src/ontology
make cl-base.owl
cd $ROOT_DIR
cd biological-spatial-ontology/src/ontology
make bspo-base.owl
cd $ROOT_DIR
cd obo-relations/src/ontology
make ro-base.owl
cd $ROOT_DIR
cd obi
make views/obi-base.owl
cd $ROOT_DIR
robot --catalog catalog-v001.xml \
explain -i test-merged.ofn --reasoner ELK -M unsatisfiability --unsatisfiable random:1 --explanation unsat.md
LINES=`wc -l <unsat.md`
if [ $LINES -lt "2" ]
then
exit 0
else
cat unsat.md
exit 1
fi