Skip to content

Update Dockerfile — fixes wrong ontology IRI display (OWL API #1080) - #221

Open
Artemis-IA wants to merge 1 commit into
VisualDataWeb:masterfrom
Artemis-IA:fix-owlapi-1080
Open

Update Dockerfile — fixes wrong ontology IRI display (OWL API #1080)#221
Artemis-IA wants to merge 1 commit into
VisualDataWeb:masterfrom
Artemis-IA:fix-owlapi-1080

Conversation

@Artemis-IA

@Artemis-IA Artemis-IA commented Sep 2, 2026

Copy link
Copy Markdown

Problem

WebVOWL's Dockerfile builds OWL2VOWL from master, which depends on OWL API 5.1.1. This version has a bug (#1080): when an ontology has owl:imports and a self-referencing annotation (e.g. rdfs:isDefinedBy → <ontology-iri>), the parser assigns an imported ontology's IRI. WebVOWL then displays the wrong IRI.

The fix was merged upstream in b1768cd but is not yet released to Maven Central.

Changes

  • OWL2VOWL source: VisualDataWeb/OWL2VOWL masterArtemis-IA/OWL2VOWL fix-owlapi-1080 (companion PR: OWL2VOWL#76)
  • Maven/Tomcat images: Java 8 → Java 11 (required by OWL API 5.5.x)

Once OWL2VOWL#76 is merged, this Dockerfile should revert to VisualDataWeb/OWL2VOWL master.

Validation

Built the Docker image from scratch and tested via /convert API:

Ontology Before After
OSO 1.0.0 OSO OSO
OSO 1.1.0 prov-o OSO
OSO 1.2.0 prov-o OSO

The OWL API jar in the image was verified to contain the fix from b1768cd.

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.
@Artemis-IA Artemis-IA changed the title Fix incorrect ontology IRI display for ontologies with imports + self-referencing annotations Update Dockerfile to fix wrong ontology IRI display (OWL API #1080) Sep 2, 2026
@Artemis-IA Artemis-IA changed the title Update Dockerfile to fix wrong ontology IRI display (OWL API #1080) Update Dockerfile — fixes wrong ontology IRI display (OWL API #1080) Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant