Skip to content

update LINCENSE.

update LINCENSE. #68

name: SHACL Validation and Vocabulary Generation
on:
push:
branches:
- main
pull_request:
jobs:
shacl-validate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install dependencies
run: pip install pyshacl rdflib
- name: Run SHACL validation
run: |
pyshacl -s ontologies/agent.ttl -d tests/agent.shacl.ttl
pyshacl -s ontologies/accountability.ttl -d tests/accountability.shacl.ttl
pyshacl -s ontologies/agent-profile.ttl -d tests/agent-profile.shacl.ttl
pyshacl -s ontologies/capability.ttl -d tests/capability.shacl.ttl
pyshacl -s ontologies/delegation.ttl -d tests/delegation.shacl.ttl
pyshacl -s ontologies/execution-context.ttl -d tests/execution-context.shacl.ttl
pyshacl -s ontologies/intent.ttl -d tests/intent.shacl.ttl
pyshacl -s ontologies/ledger.ttl -d tests/ledger.shacl.ttl
pyshacl -s ontologies/payment.ttl -d tests/payment.shacl.ttl
pyshacl -s ontologies/security-binding.ttl -d tests/security-binding.shacl.ttl
generate-vocabulary:
needs: shacl-validate
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install rdflib
run: pip install rdflib
- name: Generate vocabulary
run: python3 tools/generate_vocabulary.py
- name: Commit and push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "docs: auto-generate vocabulary"
branch: main
file_pattern: specs/vocabulary/*.md
commit_user_name: "GitHub Actions"
commit_user_email: "actions@github.com"
commit_author: "GitHub Actions <actions@github.com>"