Skip to content

Commit

Permalink
separate compile steps
Browse files Browse the repository at this point in the history
  • Loading branch information
Volodymyr Savchenko authored and Volodymyr Savchenko committed Feb 14, 2024
1 parent fbd80b0 commit 075cb58
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,8 @@ jobs:
git config --global user.name "ODA Bot"
- name: Compile all
run: make -B
- name: Compile Ontology
run: make -B ontology

- name: Compile Site
run: make
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ ontology-from-webprotege:
ontology/ontology.ttl: .FORCE
< ontology/ontology.ttl sed 's/owl:versionIRI ".*"/owl:versionIRI "'$(shell cd ontology; git describe --always --tags)'"/' > ontology/ontology-versionned.ttl
mv -fv ontology/ontology-versionned.ttl ontology/ontology.ttl
(cd ontology; git commit -a -m "update version"; git push)
# (cd ontology; git commit -a -m "update version"; git push)
diff ontology/ontology.ttl ontology/ontology.ttl.backup || echo "an update happened!"
python -c 'import rdflib; print("valid ontology with entries:", len(rdflib.Graph().load(open("ontology/ontology.ttl"), format="turtle")))'
python -c 'import rdflib; print("valid ontology with entries:", len(rdflib.Graph().parse(open("ontology/ontology.ttl"), format="turtle")))'

ontology/ontology-platforms.ttl: .FORCE
curl "https://webprotege.obsuks1.unige.ch/download?project=$$(pass oda/webprotege/platforms-projectid)&format=ttl" > ontology.zip
unzip -p ontology.zip | sed 's@urn:webprotege:ontology:[0-9a-z\-]*@http://odahub.io/ontology@g' >> ontology/ontology-platforms.ttl
python -c 'import rdflib; print("valid ontology with entries:", len(rdflib.Graph().load(open("ontology/#ontology-platforms.ttl"), format="turtle")))'


#ontology: ontology/ontology.ttl
# ontology: ontology/ontology.ttl
ontology:
TDIR=$$(mktemp -d --suffix widoco) && cd $$TDIR && \
wget -c -O /tmp/widoco.jar https://github.com/dgarijo/Widoco/releases/download/v1.4.17/java-17-widoco-1.4.17-jar-with-dependencies.jar; \
Expand Down
2 changes: 1 addition & 1 deletion ontology

0 comments on commit 075cb58

Please sign in to comment.