From 374dd316c9807f68ce50bb0ffdad0e34b488c08d Mon Sep 17 00:00:00 2001 From: imohamma Date: Wed, 2 Sep 2026 14:27:58 +0200 Subject: [PATCH] Update Dockerfile to use patched OWL2VOWL (fix OWL API #1080) Build OWL2VOWL from Artemis-IA/OWL2VOWL fix-owlapi-1080 branch which uses OWL API 5.5.1 from the owlcs/owlapi version5 branch (commit d7e997a) that includes the fix for issue #1080 by Victor Chavez (commit b1768cd): "Fixed ontology iri parsing when annotation imports same iri". This fixes WebVOWL displaying the wrong ontology IRI for affected ontologies such as OSO 1.1.0 and 1.2.0. Changes: - Maven image updated from temurin-8 to temurin-11 (OWL API 5.5.x requires Java 11) - Tomcat images updated from jdk8/jre8 to jdk11/jre11 - OWL2VOWL source updated to Artemis-IA/OWL2VOWL fix-owlapi-1080 branch End-to-end validation: - OSO 1.0.0: IRI=https://w3id.org/earthsemantics/OSO, 205 classes, 285 properties - OSO 1.1.0: IRI=https://w3id.org/earthsemantics/OSO, 199 classes, 286 properties (was prov-o) - OSO 1.2.0: IRI=https://w3id.org/earthsemantics/OSO, 192 classes, 280 properties (was prov-o) Once the upstream PR (VisualDataWeb/OWL2VOWL#76) is merged, this should be reverted to use the official OWL2VOWL master branch. --- docker/Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 475ddab4f..1aad12fb8 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,13 +1,13 @@ # syntax=docker/dockerfile:1.4 -# Combined WebVOWL + OWL2VOWL (Java 8 / Node 12 — application deps unchanged). +# Combined WebVOWL + OWL2VOWL (Node 12 for frontend, Java 11 for OWL2VOWL / OWL API 5.5.x). # OWL2VOWL is fetched at build time; only the WebVOWL repo must be cloned locally. ARG TOMCAT_IMAGE=9.0.118 ARG WEBVOWL_VERSION=1.1.7 -ARG MAVEN_IMAGE=3.9.16-eclipse-temurin-8-noble +ARG MAVEN_IMAGE=3.9.16-eclipse-temurin-11-noble ARG NODE_IMAGE=12-alpine -ARG OWL2VOWL_GIT_URL=https://github.com/VisualDataWeb/OWL2VOWL.git -ARG OWL2VOWL_GIT_REF=master +ARG OWL2VOWL_GIT_URL=https://github.com/Artemis-IA/OWL2VOWL.git +ARG OWL2VOWL_GIT_REF=fix-owlapi-1080 # --- OWL2VOWL (Maven WAR, cloned in image build) --- FROM maven:${MAVEN_IMAGE} AS owl2vowl-builder @@ -37,7 +37,7 @@ COPY .jshintrc .jshintignore ./ RUN npm install --ignore-scripts && npm run release # --- Explode WAR (JDK only in build stage) --- -FROM tomcat:${TOMCAT_IMAGE}-jdk8-temurin-noble AS owl2vowl-expand +FROM tomcat:${TOMCAT_IMAGE}-jdk11-temurin-noble AS owl2vowl-expand RUN rm -rf "${CATALINA_HOME}/webapps/"* \ && mkdir -p "${CATALINA_HOME}/webapps/ROOT" @@ -48,7 +48,7 @@ RUN cd "${CATALINA_HOME}/webapps/ROOT" \ && rm /tmp/owl2vowl.war # --- Runtime --- -FROM tomcat:${TOMCAT_IMAGE}-jre8-temurin-noble AS runtime +FROM tomcat:${TOMCAT_IMAGE}-jre11-temurin-noble AS runtime ARG WEBVOWL_VERSION=1.1.7