I have amended the file as you suggested (and even modifying
the  aven-enforcer-plugin <version> to 3.0.0) but the result is the same.

I attach the pom POM file.

However, I don't have installed JDK version 11, or 15. I have 13 14, 16 and
17. Do I need to install JDK version 11?

Cheers

Luca

-----------------------------------------------------------------------------------------

*Luca Turchet*
Associate Professor
Head of the Creative, Intelligent & Multisensory Interactions Laboratory
*https://www.cimil.disi.unitn.it/* <https://www.cimil.disi.unitn.it/>

Department of Information Engineering and Computer Science
University of Trento
Via Sommarive 9 - 38123 Trento - Italy

E-mail: [email protected]
Tel: +39 0461 283792



Il giorno mer 23 feb 2022 alle ore 10:04 Lorenz Buehmann <
[email protected]> ha scritto:

> I checked Openllet, it has been set to Java 17 - you can change it in
> the POM file:
>
> - set maven-compiler-plugin source and target entry to 11
> - change maven-enforcer-plugin Java rule to <version>[10,15)</version>
>
> Note, the fork is currently set to Jena 4.2.X, not sure if it will have
> conflicts when you use it with latest Jena
>
> On 23.02.22 08:02, Lorenz Buehmann wrote:
> > Hi,
> >
> > follow up from your Stackoverflow thread, the Jena built-in reasoners
> > do not support SWRL rules - what exactly is supported by which OWL
> > reasoner is documented here:
> > https://jena.apache.org/documentation/inference/#owl
> >
> > None of them is a full OWL DL reasoner, that's only covered via
> > Pellet. And Pellet does also support SWRL. I suggested to use a Pellet
> > fork like Openllet because the official Pellet reasoner is still on
> > Jena 2.x/3.x and any further version of Pellet is closed source being
> > integrated in Stardog triple store.
> >
> > Openllet does support Jena 4.x so in theory it should work. It would
> > be helpful to show your Java/Maven issues, otherwise it's a wild guess.
> >
> > The other option I suggested was to use the Jena rules instead of
> > SWRL. I understand though that if you want to stick to W3C standards
> > (technically SWRL isn't) this won't be an option for you.
> >
> > Note, the whole reasoner will happen mostly in-memory - don't expect
> > OWL DL reasoning to scale in a large dataset in a triple store- that's
> > why people designed profiles like OWL RL which can be easily mapped to
> > rule based inference and don't need a tableau algorithm or the like.
> >
> > Cheers,
> >
> > Lorenz
> >
> > On 22.02.22 18:36, Luca Turchet wrote:
> >> Dear list members,
> >> I am trying to integrate a reasoner in the Fuseki server. I first tried
> >> openllet but there are some technical issues with java and maven which
> >> currently prevent the openllet installation on a mac.
> >>
> >> So I tried to launch fuseki with the --conf option using one of the
> >> reasoners listed at the bottom of this page:
> >> https://jena.apache.org/documentation/fuseki2/fuseki-configuration.html
> >>
> >> in particular, I tried the examples
> >>
> >>     - config-inference-1.ttl
> >> <
> https://github.com/apache/jena/blob/main/jena-fuseki2/examples/config-inference-1.ttl
> >
> >>     - config-inference-2.ttl
> >> <
> https://github.com/apache/jena/blob/main/jena-fuseki2/examples/config-inference-2.ttl
> >
> >>
> >> which are provided in the documentation:
> >> https://github.com/apache/jena/tree/main/jena-fuseki2/examples
> >>
> >> When performing the query which should return the result of an
> >> inference I
> >> don't get the expected result, like if the reasoner was not integrated.
> >> I am sure that the triplestore I am using is correct and contains the
> >> rule
> >> as I have tested it in Protegè using the Snap SPARQL query tab with the
> >> Pellet reasoner activated.
> >>
> >> What am I doing wrong? I launch the server with
> >> ./fuseki-server
> >> --conf=/Users/luca/semanticweb/prova/config-inference-1.ttl
> >>
> >> Thanks in advance
> >>
> >> Best wishes
> >>
> >> Luca
> >>
> >>
> -----------------------------------------------------------------------------------------
>
> >>
> >>
> >> *Luca Turchet*
> >> Associate Professor
> >> Head of the Creative, Intelligent & Multisensory Interactions Laboratory
> >> *https://www.cimil.disi.unitn.it/* <https://www.cimil.disi.unitn.it/>
> >>
> >> Department of Information Engineering and Computer Science
> >> University of Trento
> >> Via Sommarive 9 - 38123 Trento - Italy
> >>
> >> E-mail: [email protected]
> >> Tel: +39 0461 283792
> >>
>
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.github.galigator.openllet</groupId>
  <artifactId>openllet-parent</artifactId>
  <version>2.6.6-SNAPSHOT</version>
  <packaging>pom</packaging>
  <name>Openllet :: Parent POM</name>
  <description>Openllet is open-source future of Pellet OWL Reasoner</description>
  <url>https://github.com/Galigator/openllet</url>
  <licenses>
    <license>
      <name>GNU Affero General Public License 3.0</name>
      <url>http://www.fsf.org/licensing/licenses/agpl-3.0.html</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <modules>
    <module>module-shared</module>
    <module>module-core</module>
    <module>module-query</module>
    <module>module-owlapi</module>
    <module>module-jena</module>
    <module>module-explanation</module>
    <module>module-modularity</module>
    <module>tools-pellint</module>
    <module>tools-cli</module>
    <module>tools-profiler</module>
    <module>examples</module>
    <module>tests</module>
    <module>plugin-protege</module>
    <module>distribution</module>
  </modules>

  <issueManagement>
    <system>GitHub</system>
    <url>https://github.com/Galigator/openllet/issues</url>
  </issueManagement>

  <distributionManagement>
    <snapshotRepository>
       <id>ossrh</id>
       <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    </snapshotRepository>
    <repository>
       <id>ossrh</id>
       <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
    </repository>
  </distributionManagement>


  <scm>
    <connection>scm:git:git://github.com:Galigator/openllet.git</connection>
    <developerConnection>scm:git:[email protected]:Galigator/openllet.git</developerConnection>
    <url>https://github.com/Galigator/openllet</url>
  </scm>


  <developers>
    <developer>
       <id>galigator</id>
       <name>Kévin Séjourné</name>
       <email>[email protected]</email>
    </developer>
  </developers>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    <asmVersion>8.0.1</asmVersion>
  </properties>

  <prerequisites>
      <maven>3.5.2</maven>
  </prerequisites>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.apache.jena</groupId>
        <artifactId>jena-core</artifactId>
        <version>[4.2.0,4.2.99]</version>
      </dependency>
      <dependency>
        <groupId>org.apache.jena</groupId>
        <artifactId>jena-arq</artifactId>
        <version>[4.2.0,4.2.99]</version>
      </dependency>
      <dependency>
        <groupId>net.sourceforge.owlapi</groupId>
        <artifactId>owlapi-distribution</artifactId>
        <version>[5.1.19,)</version>
      </dependency>
      <dependency>
        <groupId>org.jgrapht</groupId>
        <artifactId>jgrapht-ext</artifactId>
        <version>1.5.1</version>
      </dependency>
      <dependency>
        <groupId>org.jgrapht</groupId>
        <artifactId>jgrapht-io</artifactId>
        <version>1.5.1</version>
      </dependency>
      <dependency>
        <groupId>org.antlr</groupId>
        <artifactId>antlr-runtime</artifactId>
        <version>[3.5.2,3.5.99]</version>
      </dependency>
      <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.13.2</version>
      </dependency>
      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-api</artifactId>
        <version>[1.7.32,1.7.99]</version>
      </dependency>
      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-log4j12</artifactId>
        <version>[1.7.32,1.7.99]</version>
      </dependency>
      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>jcl-over-slf4j</artifactId>
        <version>[1.7.32,1.7.99]</version>
      </dependency>
      <dependency>
        <groupId>org.slf4j</groupId>
        <artifactId>slf4j-simple</artifactId>
        <version>[1.7.32,1.7.99]</version>
      </dependency>
      <dependency>
        <groupId>log4j</groupId>
        <artifactId>log4j</artifactId>
        <version>[1.2.17,1.2.99]</version>
      </dependency>
      <dependency>
        <groupId>org.jfree</groupId>
        <artifactId>jfreechart</artifactId>
        <version>1.5.3</version>
      </dependency>
      <dependency>
        <groupId>org.apache.commons</groupId>
        <artifactId>commons-math3</artifactId>
        <version>[3.6.1,3.6.99]</version>
      </dependency>
      <dependency>
        <groupId>gnu.getopt</groupId>
        <artifactId>java-getopt</artifactId>
        <version>[1.0.13,)</version>
      </dependency>
      <dependency>
        <groupId>org.eclipse.jetty</groupId> <!-- Used for the examples. -->
        <artifactId>jetty-server</artifactId>
        <version>11.0.6</version>
      </dependency>

      <!-- Dependencies of dependencies -->
      <dependency>
         <groupId>org.apache.thrift</groupId>
         <artifactId>libthrift</artifactId>
         <version>[0.15.0,)</version>
      </dependency>
      <dependency>
         <groupId>com.fasterxml.jackson.core</groupId>
         <artifactId>jackson-core</artifactId>
         <version>2.12.5</version>
      </dependency>
      <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-annotations</artifactId>
        <version>2.12.5</version>
      </dependency>
      <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-databind</artifactId>
        <version>2.12.5</version>
      </dependency>
      <dependency>
         <groupId>com.github.jsonld-java</groupId>
         <artifactId>jsonld-java</artifactId>
         <version>0.13.3</version>
      </dependency>
      <dependency>
         <groupId>com.google.inject</groupId>
         <artifactId>guice</artifactId>
         <version>5.0.1</version>
      </dependency>
      <dependency>
         <groupId>com.google.guava</groupId>
         <artifactId>guava</artifactId>
         <version>30.1.1-jre</version>
      </dependency>
      <dependency>
        <groupId>commons-io</groupId>
         <artifactId>commons-io</artifactId>
         <version>2.11.0</version>
      </dependency>
      <dependency>
         <groupId>javax.xml.bind</groupId>
         <artifactId>jaxb-api</artifactId>
         <version>2.3.1</version>
      </dependency>
    </dependencies>
  </dependencyManagement>

  <build>

  		<plugins>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-enforcer-plugin</artifactId>
		                <!--<version>1.4.1</version>-->
				<version>3.0.0</version>
				<executions>
					<execution>
						<id>enforce</id>
						<goals>
							<goal>enforce</goal>
						</goals>
						<configuration>
							<rules>
								<requireJavaVersion><!-- Check Java version -->
                                    				<version>[10,15)</version>
								</requireJavaVersion>

								<requireReleaseDeps><!-- Ensure that release module does not depend on any snapshot module -->
									<onlyWhenRelease>true</onlyWhenRelease>
									<message>Snapshots are not allowed for final versions !</message>
								</requireReleaseDeps>

								<bannedDependencies>
									<excludes>
										<exclude>com.sun.xml.bind</exclude> Ban legacy JAXB implementation
										<exclude>commons-logging:commons-logging</exclude> Ban commons logging
									</excludes>
								</bannedDependencies>
								<!-- <dependencyConvergence /> Ensure that there are no dependency conflict -->
							</rules>
						</configuration>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>cobertura-maven-plugin</artifactId>
				<version>2.7</version>
				<configuration>
					<formats>
						<format>html</format>
						<format>xml</format>
					</formats>
					<check />
				</configuration>
                <dependencies>
                    <dependency>
                        <groupId>org.ow2.asm</groupId>
                        <artifactId>asm</artifactId>
                        <version>${asmVersion}</version>
                    </dependency>
                    <dependency>
                        <groupId>org.ow2.asm</groupId>
                        <artifactId>asm-tree</artifactId>
                        <version>${asmVersion}</version>
                    </dependency>
                    <dependency>
                        <groupId>org.ow2.asm</groupId>
                        <artifactId>asm-commons</artifactId>
                        <version>${asmVersion}</version>
                    </dependency>
                    <dependency>
                        <groupId>org.ow2.asm</groupId>
                        <artifactId>asm-util</artifactId>
                        <version>${asmVersion}</version>
                    </dependency>
                    <dependency>
                        <groupId>org.ow2.asm</groupId>
                        <artifactId>asm-analysis</artifactId>
                        <version>${asmVersion}</version>
                    </dependency>
                </dependencies>
			</plugin>
		</plugins>

    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>3.8.1</version>
          <configuration>
            <source>11</source>
            <target>11</target>
            <encoding>UTF-8</encoding>
<!--
					<compilerArgs>
						<arg>- -add-modules</arg>
						<arg>java.xml.bind</arg>
					</compilerArgs>
-->
          </configuration>
        </plugin>

        <plugin> <!-- Deployement on the maven central (sonatype) use on mvn deploy -->
          <groupId>org.sonatype.plugins</groupId>
          <artifactId>nexus-staging-maven-plugin</artifactId>
          <version>1.6.8</version>
          <extensions>true</extensions>
          <configuration>
            <serverId>ossrh</serverId>
            <nexusUrl>https://oss.sonatype.org/</nexusUrl>
            <autoReleaseAfterClose>true</autoReleaseAfterClose>
          </configuration>
        </plugin>

        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-jar-plugin</artifactId>
          <version>3.2.0</version>
          <configuration>
            <archive>
              <manifest>
                <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
                <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
              </manifest>
              <manifestEntries>
                <Bundle-Description>${project.description}</Bundle-Description>
                <Implementation-Version>${project.version}</Implementation-Version>
              </manifestEntries>
            </archive>
          </configuration>
          <executions>
            <execution>
              <goals>
                <goal>test-jar</goal>
              </goals>
            </execution>
          </executions>
        </plugin>

        <plugin> <!-- Deployement on the maven central (sonatype : source) -->
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-source-plugin</artifactId>
          <version>3.2.1</version>
          <executions>
            <execution>
              <id>attach-source</id>
              <goals>
                <goal>jar-no-fork</goal>
              </goals>
            </execution>
            <execution>
              <id>attach-test-sources</id>
              <goals>
                <goal>test-jar</goal>
              </goals>
            </execution>
          </executions>
        </plugin>

        <plugin> <!-- Deployement on the maven central (sonatype : javadoc) -->
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-javadoc-plugin</artifactId>
          <version>3.2.0</version>
          <executions>
            <execution>
              <id>attach-javadocs</id>
              <goals>
                <goal>jar</goal>
              </goals>
            </execution>
          </executions>
        </plugin>

        <plugin> <!-- Deployement on the maven central (sonatype : signature) -->
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-gpg-plugin</artifactId>
          <version>1.6</version>
          <executions>
            <execution>
              <id>sign-artifacts</id>
              <phase>verify</phase>
              <goals>
                <goal>sign</goal>
              </goals>
            </execution>
          </executions>
        </plugin>

        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-dependency-plugin</artifactId>
          <version>3.1.2</version>
        </plugin>

        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>2.22.2</version>
          <dependencies>
            <dependency>
              <groupId>org.apache.maven.surefire</groupId>
              <artifactId>surefire-junit4</artifactId>
              <version>2.22.2</version>
            </dependency>
          </dependencies>
          <configuration>
            <forkCount>1</forkCount>
            <reuseForks>true</reuseForks>
            <argLine></argLine>
          </configuration>
        </plugin>

        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-failsafe-plugin</artifactId>
          <version>2.22.2</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-assembly-plugin</artifactId>
          <version>3.3.0</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-clean-plugin</artifactId>
          <version>3.1.0</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-install-plugin</artifactId>
          <version>2.5.2</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-resources-plugin</artifactId>
          <version>3.1.0</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-deploy-plugin</artifactId>
          <version>2.8.2</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-release-plugin</artifactId>
          <version>2.5.3</version>
        </plugin>
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-site-plugin</artifactId>
          <version>3.9</version>
        </plugin>

        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>findbugs-maven-plugin</artifactId>
          <version>3.0.5</version>
          <executions>
            <execution>
              <id>findbugs-check</id>
              <phase>verify</phase>
              <goals>
                <goal>check</goal>
              </goals>
              <configuration>
                <failOnError>false</failOnError>
              </configuration>
            </execution>
          </executions>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>

  <profiles>

    <profile>
        <!--
        mvn -P ossrh clean install
        mvn -P ossrh deploy
        -->
      <id>ossrh</id>
      <activation>
        <activeByDefault>false</activeByDefault>
        <property>
          <name>performRelease</name>
          <value>true</value>
        </property>
      </activation>
      <build>
        <plugins>

          <!-- We need the GPG Plugin to self-sign the jar files. A valid signature
            for the jar files is a requirement for deploying to Sonatype. -->
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.6</version>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>

          <!-- We need to configure the Source Plugin for deploying the sources to Sonatype. -->
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-source-plugin</artifactId>
            <version>3.2.1</version>
            <executions>
              <execution>
                <id>attach-sources</id>
                <goals>
                  <goal>jar</goal>
                </goals>
              </execution>
            </executions>
          </plugin>

          <!-- We need to configure the Javadoc Plugin for deploying the Javadocs to Sonatype -->
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>3.2.0</version>
            <configuration>
              <show>public</show>
            </configuration>
            <executions>
              <execution>
                <id>attach-javadocs</id>
                <goals>
                  <goal>jar</goal>
                </goals>
                <configuration>
                  <skip>${no-javadoc}</skip>
                  <additionalparam>-Xdoclint:none</additionalparam> <!-- I know its not good, but I wont fix all the javadoc in one shoot. All the new writing have good doc, give me time to correct more than ten year of bad practice. -->
                </configuration>
              </execution>
            </executions>
          </plugin>

        </plugins>
      </build>
    </profile>

    <profile> <!-- Someone use this ? -->
      <id>findbugs</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>findbugs-maven-plugin</artifactId>
          </plugin>
        </plugins>
      </build>
    </profile>

  </profiles>

</project>

Reply via email to