Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ For more detailed changes see:

- New [ROBOT Version 1.9.6](https://github.com/ontodev/robot/releases/tag/v1.9.6). This came with a great number of updates and upgrades, see release notes.
- J2cli, a command-line tool to process Jinja2 templates, has been replaced by [Jinjanator](https://github.com/kpfleming/jinjanator). If your custom workflows invoke the `j2` tool, you will need to update them to use `jinjanate` instead.
- New program `dicer-cli` to manage the ID range file.
- Ammonite, the Scala interpreter, is no longer provided in the ODKLite image. If you need Ammonite, you must now use the ODKFull image.

## New configuration options

Expand Down
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ ENV ODK_VERSION=$ODK_VERSION
ENV JENA_VERSION=4.9.0
ENV KGCL_JAVA_VERSION=0.5.0
ENV SSSOM_JAVA_VERSION=1.0.0
ENV AMMONITE_VERSION=2.5.9

# Avoid repeated downloads of script dependencies by mounting the local coursier cache:
# docker run -v $HOME/.coursier/cache/v1:/tools/.coursier-cache ...
Expand Down Expand Up @@ -84,6 +85,12 @@ RUN test "x$TARGETARCH" = xamd64 && ( \
RUN wget -nv http://archive.apache.org/dist/jena/binaries/apache-jena-$JENA_VERSION.tar.gz -O- | tar xzC /tools && \
mv /tools/apache-jena-$JENA_VERSION /tools/apache-jena

# Install Ammonite
RUN wget -nv https://github.com/lihaoyi/Ammonite/releases/download/$AMMONITE_VERSION/2.13-$AMMONITE_VERSION \
-O /tools/amm && \
chmod 755 /tools/amm && \
java -cp /tools/amm ammonite.AmmoniteMain /dev/null

# Install SPARQLProg.
RUN swipl -g "pack_install(sparqlprog, [interactive(false),global(true)])" -g halt

Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,15 @@ test_odklite_programs:
@./tests/test-program.sh DOSDP-TOOLS dosdp-tools -v
@./tests/test-program.sh OWLTOOLS owltools --version
@./tests/test-program.sh OORT ontology-release-runner --help
@./tests/test-program.sh AMMONITE sh amm --help
@./tests/test-program.sh JINJANATOR jinjanate --version
@./tests/test-program.sh DICER-CLI dicer-cli --version
@./tests/test-program.sh ODK odk.py

test_odkfull_programs: test_odklite_programs
@./tests/test-program.sh KONCLUDE Konclude -h
@./tests/test-program.sh SOUFFLE souffle --version
@./tests/test-program.sh JENA jena
@./tests/test-program.sh AMMONITE sh amm --help
@./tests/test-program.sh SPARQL sparql --version
@./tests/test-program.sh SPARQLPROG pl2sparql -g halt
@./tests/test-program.sh OBO-DASHBOARD obodash --help
Expand Down
13 changes: 6 additions & 7 deletions docker/odklite/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ LABEL maintainer="obo-tools@googlegroups.com"
ENV ROBOT_VERSION=1.9.7
ENV DOSDP_VERSION=0.19.3
ENV OWLTOOLS_VERSION=2020-04-06
ENV AMMONITE_VERSION=2.5.9
ENV RELATION_GRAPH=2.3.2
ENV DICER_VERSION=0.1.0

WORKDIR /tools
ENV JAVA_HOME="/usr"
Expand Down Expand Up @@ -69,18 +69,17 @@ RUN wget -nv https://github.com/owlcollab/owltools/releases/download/$OWLTOOLS_V
chmod +x /tools/ontology-release-runner && \
chmod +x /tools/owltools-oort-all.jar

# Install Ammonite.
RUN wget -nv https://github.com/lihaoyi/Ammonite/releases/download/$AMMONITE_VERSION/2.13-$AMMONITE_VERSION \
-O /tools/amm && \
chmod 755 /tools/amm && \
java -cp /tools/amm ammonite.AmmoniteMain /dev/null

# Install relation-graph
RUN wget -nv https://github.com/balhoff/relation-graph/releases/download/v$RELATION_GRAPH/relation-graph-cli-$RELATION_GRAPH.tgz && \
tar -zxvf relation-graph-cli-$RELATION_GRAPH.tgz && \
mv relation-graph-cli-$RELATION_GRAPH /tools/relation-graph && \
chmod +x /tools/relation-graph

# Install the Dicer CLI tool
RUN wget -nv https://github.com/gouttegd/dicer/releases/download/dicer-$DICER_VERSION/dicer-cli \
-O /tools/dicer-cli && \
chmod +x /tools/dicer-cli

# Install RDF/XML validation script
COPY --chmod=755 scripts/check-rdfxml.sh /tools/check-rdfxml

Expand Down
4 changes: 2 additions & 2 deletions template/src/ontology/Makefile.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -1333,8 +1333,8 @@ normalize_src: $(SRC)
$(ROBOT) convert -i $< -f {% if 'obo' == project.edit_format %}obo --check false{% else %}ofn{% endif %} -o $(TMPDIR)/normalise && mv $(TMPDIR)/normalise $<

.PHONY: validate_idranges
validate_idranges: | $(TMPDIR)
COURSIER_CACHE=$(TMPDIR)/coursier-cache amm $(SCRIPTSDIR)/validate_id_ranges.sc {{ project.id }}-idranges.owl
validate_idranges:
dicer-cli {{ project.id }}-idranges.owl

.PHONY: update_repo
update_repo:
Expand Down
75 changes: 0 additions & 75 deletions template/src/scripts/validate_id_ranges.sc

This file was deleted.

Loading