-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 1018 Bytes
/
reasoning.yml
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
# .github/workflows/reasoning.yml
name: Ontology Reasoning
on:
push:
paths:
- '*.ttl'
- '*.rdf'
- '*.owl'
# Allow manual triggering
workflow_dispatch:
jobs:
consistency_check:
runs-on: ubuntu-latest
steps:
# Step 1: Check out the repository
- name: Checkout repository
uses: actions/checkout@v3
# Step 2: Download ROBOT jar and script
- name: Download ROBOT
run: |
wget https://github.com/ontodev/robot/releases/download/v1.9.7/robot.jar
curl https://raw.githubusercontent.com/ontodev/robot/master/bin/robot > robot
sudo chmod u+x robot
# Step 3: Run ROBOT reasoning
- name: Run Reasoner
run: |
for file in *.ttl; do
if [[ -f "$file" ]]; then
output="${file%.ttl}-inconsistent.owl"
./robot reason --reasoner hermit --input "$file" -D "$output" || exit 1
echo "Reasoning completed for: $file"
fi
done