-
Notifications
You must be signed in to change notification settings - Fork 38
54 lines (45 loc) · 1.55 KB
/
validate-owl.yaml
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
name: OWL file validation
on:
push:
branches: [master, dev]
pull_request:
branches: [master, dev]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'temurin' # Install JDK from Eclipse Adoptium
java-version: '11'
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Set up Maven
run: mvn -v
- name: Build OLS dataload
run: |
git clone https://github.com/EBISPOT/ols4
cd ols4/ols-shared/
mvn clean install
cd ../../ols4/dataload/rdf2json
mvn clean install
- name: Validate OWL File for OLS
run: |
cd ols4/dataload/rdf2json/target
wget https://raw.githubusercontent.com/HUPO-PSI/psi-ms-CV/master/owl-config-ols/foundry.json
wget https://raw.githubusercontent.com/HUPO-PSI/psi-ms-CV/master/owl-config-ols/fail_owl.json
java -jar rdf2json-1.0-SNAPSHOT.jar --config foundry.json --output foundry_out.json
if diff foundry_out.json fail_owl.json > /dev/null; then
echo "The PSI-MS ontology has an error in the owl file and do not allow to import in OLS"
exit 1
else
echo "PSI-MS is valid"
fi