Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit ba45a17

Browse files
authored
Merge pull request #88 from sdsc-ordes/feat/action-nt-conversion
feat: GitHub action for nt-triples conversion of ontology
2 parents 86e5c46 + c84bdad commit ba45a17

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/conversion.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Conversion
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
conversion-nt:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name : Install dependencies
17+
run: |
18+
git clone https://github.com/pchampin/sophia-cli
19+
cd sophia-cli
20+
cargo install --path .
21+
22+
- name: Convert ontology to N-Triples
23+
run: |
24+
sop parse ontology/catplus_ontology.ttl ! serialize -o ontology/catplus_ontology.nt
25+
26+
- name: Upload Release Asset
27+
uses: actions/upload-release-asset@v1
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
with:
31+
upload_url: ${{ github.event.release.upload_url }}
32+
asset_path: ontology/catplus_ontology.nt
33+
asset_name: catplus_ontology.nt
34+
asset_content_type: application/n-triples

0 commit comments

Comments
 (0)