Skip to content

Bump net.sourceforge.owlapi:owlapi-distribution from 3.4.10 to 5.5.1#63

Open
dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/maven/net.sourceforge.owlapi-owlapi-distribution-5.5.1
Open

Bump net.sourceforge.owlapi:owlapi-distribution from 3.4.10 to 5.5.1#63
dependabot[bot] wants to merge 1 commit into
developfrom
dependabot/maven/net.sourceforge.owlapi-owlapi-distribution-5.5.1

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Apr 6, 2026

Bumps net.sourceforge.owlapi:owlapi-distribution from 3.4.10 to 5.5.1.

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [net.sourceforge.owlapi:owlapi-distribution](https://github.com/owlcs/owlapi) from 3.4.10 to 5.5.1.
- [Commits](owlcs/owlapi@owlapi-parent-3.4.10...owlapi-parent-5.5.1)

---
updated-dependencies:
- dependency-name: net.sourceforge.owlapi:owlapi-distribution
  dependency-version: 5.5.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file java Pull requests that update java code labels Apr 6, 2026
@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented Apr 6, 2026

Greptile Summary

This Dependabot PR bumps net.sourceforge.owlapi:owlapi-distribution from 3.4.10 to 5.5.1 — a two-major-version jump that includes significant breaking API changes. While the diff itself is a single-line version change in pom.xml, the upgrade is not safe to merge as-is because it breaks both a co-dependency and several compile-time API usages in the existing codebase.

Key issues:

  • HermiT runtime incompatibility: com.hermit-reasoner:org.semanticweb.hermit:1.3.8.4 (the OWL DL reasoner) was built against OWLAPI 3.x/4.x and is binary-incompatible with OWLAPI 5.x. It must be replaced with net.sourceforge.owlapi:org.semanticweb.HermiT:1.4.3.456, which was repackaged specifically for OWLAPI 5.x (note the different groupId and artifactId).
  • Compile-time failures in Ontology.java: Six uses of removed OWLAPI 3.x/4.x APIs (OWLOntologyFormat, OWLXMLOntologyFormat, getOntologyFormat(), isPrefixOWLOntologyFormat(), asPrefixOWLOntologyFormat(), copyPrefixesFrom()) must be migrated to their OWLAPI 5.x equivalents (OWLDocumentFormat, OWLXMLDocumentFormat, getOntologyDocumentFormat(), PrefixDocumentFormat, etc.).

Confidence Score: 1/5

Not safe to merge — will cause compilation failures and runtime errors in the OWL reasoning stack.

Score of 1 reflects that the single-line version bump is blocked by two P0 issues: a co-dependency that is binary-incompatible with OWLAPI 5.x, and six removed API usages in Ontology.java that will prevent the module from compiling. Both must be resolved before the upgrade can land.

klab.services.reasoner/pom.xml (HermiT dependency must be updated) and klab.services.reasoner/src/main/java/org/integratedmodelling/klab/services/reasoner/owl/Ontology.java (six removed API usages must be migrated to OWLAPI 5.x equivalents).

Important Files Changed

Filename Overview
klab.services.reasoner/pom.xml Version bump from OWLAPI 3.4.10 → 5.5.1 breaks the bundled HermiT reasoner dependency and requires source-level migration of removed APIs.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[pom.xml: owlapi-distribution 3.4.10 → 5.5.1] --> B{Breaking changes?}
    B -->|HermiT co-dependency| C[com.hermit-reasoner:hermit:1.3.8.4\nBuilt against OWLAPI 3.x/4.x]
    C --> D[❌ NoClassDefFoundError / IncompatibleClassChangeError at runtime]
    D --> E[Fix: replace with\nnet.sourceforge.owlapi:org.semanticweb.HermiT:1.4.3.456]
    B -->|Removed API classes| F[Ontology.java uses:\nOWLOntologyFormat\nOWLXMLOntologyFormat\ngetOntologyFormat\nisPrefixOWLOntologyFormat\nasPrefixOWLOntologyFormat]
    F --> G[❌ Compilation failure]
    G --> H[Fix: migrate to\nOWLDocumentFormat\nOWLXMLDocumentFormat\ngetOntologyDocumentFormat\nPrefixDocumentFormat]
Loading

Comments Outside Diff (1)

  1. klab.services.reasoner/pom.xml, line 63-73 (link)

    P0 HermiT reasoner is incompatible with OWLAPI 5.x

    com.hermit-reasoner:org.semanticweb.hermit:1.3.8.4 was compiled against OWLAPI 3.x/4.x and is not binary-compatible with OWLAPI 5.x. At runtime this will throw NoClassDefFoundError or IncompatibleClassChangeError because the internal class hierarchy changed between major versions.

    For OWLAPI 5.x, the compatible HermiT repackage is published under a different Maven coordinate:

    <dependency>
        <groupId>net.sourceforge.owlapi</groupId>
        <artifactId>org.semanticweb.HermiT</artifactId>
        <version>1.4.3.456</version>
    </dependency>

    Note that both the groupId and artifactId change from the current entry.

Reviews (1): Last reviewed commit: "Bump net.sourceforge.owlapi:owlapi-distr..." | Re-trigger Greptile

Comment on lines 59 to 62
<groupId>net.sourceforge.owlapi</groupId>
<artifactId>owlapi-distribution</artifactId>
<version>3.4.10</version>
<version>5.5.1</version>
</dependency>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0 OWLAPI 5.x removes several APIs used in Ontology.java

The version bump will cause compilation failures because Ontology.java still uses classes and methods that were removed in OWLAPI 5.x:

Old (3.x/4.x) Replacement in 5.x
org.semanticweb.owlapi.io.OWLXMLOntologyFormat (line 35) org.semanticweb.owlapi.formats.OWLXMLDocumentFormat
OWLOntologyFormat (line 241) OWLDocumentFormat
OWLOntologyManager.getOntologyFormat(ontology) (line 242) OWLOntologyManager.getOntologyDocumentFormat(ontology)
new OWLXMLOntologyFormat() (line 243) new OWLXMLDocumentFormat()
format.isPrefixOWLOntologyFormat() (line 245) format instanceof PrefixDocumentFormat
format.asPrefixOWLOntologyFormat() (line 246) (PrefixDocumentFormat) format

All six usages are in klab.services.reasoner/src/main/java/org/integratedmodelling/klab/services/reasoner/owl/Ontology.java and must be updated before this dependency bump can be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file java Pull requests that update java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants