aehrc / snorocket

The Snorocket Description Logic classifier for EL++ with concrete domains support
Apache License 2.0
22 stars 6 forks source link

${bundle.version} not replaced correctly in owlapi plugin.properties #13

Open nheist opened 3 years ago

nheist commented 3 years ago

Hi there,

I'm using version 4.0.1 of Snorocket in owlapi. When running the reasoner, I get the following exception:

Exception in thread "main" java.lang.NumberFormatException: For input string: "${bundle"
    at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:68)
    at java.base/java.lang.Integer.parseInt(Integer.java:644)
    at java.base/java.lang.Integer.parseInt(Integer.java:776)
    at au.csiro.snorocket.owlapi.SnorocketOWLReasoner.getReasonerVersion(SnorocketOWLReasoner.java:392)
    at org.semanticweb.owlapi.util.InferredOntologyGenerator.fillOntology(InferredOntologyGenerator.java:139)
    at org.unima.nheist.App.runReasoner(App.java:87)
    at org.unima.nheist.App.main(App.java:34)

which seems to happen because the string ${bundle.version} is not replaced correctly in the plugin.properties file of the Snorocket's owlapi-package. In the pom.xml of the protege-package, there is a section that defines the bundle.version:

<configuration>
  <name>bundle.version</name>
  <value>${project.version}</value>
  <regex>^([0-9]+)\.([0-9]+)\.([0-9]+)(-SNAPSHOT)?</regex>
  <replacement>$1.$2.$3</replacement>
  <failIfNoMatch>true</failIfNoMatch>
</configuration>

but that seems to be missing for the owlapi package.

Cheers, Nico