-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
91,328 additions
and
6,622 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Run pyLODE | ||
|
||
on: | ||
push: | ||
paths: | ||
- '**.owl' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
pylode: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
- name: Install pyLODE | ||
run: python -m pip install pyLODE==2.13.2 ontogram | ||
- name: Run pyLODE | ||
run: | | ||
mkdir -p $GITHUB_WORKSPACE/docs/1.0-alpha/core | ||
pylode -i $GITHUB_WORKSPACE/icasa-mgmt-info.owl -o $GITHUB_WORKSPACE/docs/1.0-alpha/core/index.html | ||
cp $GITHUB_WORKSPACE/icasa-mgmt-info.owl docs/1.0-alpha/core/ | ||
rdfpipe -o ttl $GITHUB_WORKSPACE/icasa-mgmt-info.owl > $GITHUB_WORKSPACE/docs/1.0-alpha/core/core.ttl | ||
mkdir -p $GITHUB_WORKSPACE/docs/1.0-alpha/vu | ||
pylode -i $GITHUB_WORKSPACE/variables-units.owl -o $GITHUB_WORKSPACE/docs/1.0-alpha/vu/index.html | ||
cp $GITHUB_WORKSPACE/variables-units.owl docs/1.0-alpha/vu/ | ||
rdfpipe -o ttl $GITHUB_WORKSPACE/variables-units.owl > $GITHUB_WORKSPACE/docs/1.0-alpha/vu/vu.ttl | ||
mkdir -p $GITHUB_WORKSPACE/docs/1.0-alpha/variables | ||
pylode -i $GITHUB_WORKSPACE/icasa-measured-data.owl -o $GITHUB_WORKSPACE/docs/1.0-alpha/variables/index.html | ||
cp $GITHUB_WORKSPACE/icasa-measured-data.owl docs/1.0-alpha/variables/ | ||
rdfpipe -o ttl $GITHUB_WORKSPACE/icasa-measured-data.owl > $GITHUB_WORKSPACE/docs/1.0-alpha/variables/variables.ttl | ||
- name: Commit HTML | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add docs/1.0-alpha | ||
git commit -m 'Updated vocabulary' | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.