-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.27 KB
/
Copy pathgraph-validation.yml
File metadata and controls
50 lines (40 loc) · 1.27 KB
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
name: Graph validation tests
on:
pull_request:
push:
branches:
- main
jobs:
validate-ttl-syntax:
name: Validate turtle files (`.ttl`) syntax
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: pip install -r requirements.txt
- name: Validate turtle syntax
run: python src/python/validate.py
validate-graph-shacl:
name: Validate shape of `rdf/graph.ttl`
needs: validate-ttl-syntax
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run owl-based inferencing to construct `graph.ttl`
run: |
python src/python/rdf-processing.py \
-i rdf/ontology/*.ttl rdf/data/*.ttl rdf/shape/*.ttl \
-o rdf/processed/graph.ttl \
-r src/sparql/inference-rules/*.sparql
- name: Validate graph shape with SHACL CLI
run: pyshacl -s rdf/shape/shape.ttl -f human rdf/processed/graph.ttl