ReasonerFactory cannot find a symbol OWLAPI
up vote
0
down vote
favorite
This is my pom file
<?xml version="1.0" encoding="UTF-8"?>
<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.mycompany</groupId>
<artifactId>mavenproject2</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>net.sourceforge.owlapi</groupId>
<artifactId>owlapi-distribution</artifactId>
<version>5.1.0</version>
</dependency>
<dependency>
<groupId>net.sourceforge.owlapi</groupId>
<artifactId>org.semanticweb.hermit</artifactId>
<version>1.3.8.500</version>
</dependency>
</dependencies>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
</project>
I just want to make simple examples like this:
OWLOntology o = manager.loadOntologyFromOntologyDocument(file);
System.out.println("--------------------------");
OWLReasonerFactory rf = new ReasonerFactory();
OWLReasoner r = rf.createReasoner(o);
r.precomputeInferences(InferenceType.CLASS_HIERARCHY);
But ReasonerFactory is not recognized by the system.
I downloaded the jar file, installed maven, opened a netbeans project using a maven project. Why it doesn't works??
java owl owl-api
add a comment |
up vote
0
down vote
favorite
This is my pom file
<?xml version="1.0" encoding="UTF-8"?>
<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.mycompany</groupId>
<artifactId>mavenproject2</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>net.sourceforge.owlapi</groupId>
<artifactId>owlapi-distribution</artifactId>
<version>5.1.0</version>
</dependency>
<dependency>
<groupId>net.sourceforge.owlapi</groupId>
<artifactId>org.semanticweb.hermit</artifactId>
<version>1.3.8.500</version>
</dependency>
</dependencies>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
</project>
I just want to make simple examples like this:
OWLOntology o = manager.loadOntologyFromOntologyDocument(file);
System.out.println("--------------------------");
OWLReasonerFactory rf = new ReasonerFactory();
OWLReasoner r = rf.createReasoner(o);
r.precomputeInferences(InferenceType.CLASS_HIERARCHY);
But ReasonerFactory is not recognized by the system.
I downloaded the jar file, installed maven, opened a netbeans project using a maven project. Why it doesn't works??
java owl owl-api
You downloaded which Jar file? And did what with it? By the way, this is a Maven project, you don't have to download any Jar file - that's the whole idea of Maven dependencies.
– AKSW
Nov 11 at 15:50
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
This is my pom file
<?xml version="1.0" encoding="UTF-8"?>
<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.mycompany</groupId>
<artifactId>mavenproject2</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>net.sourceforge.owlapi</groupId>
<artifactId>owlapi-distribution</artifactId>
<version>5.1.0</version>
</dependency>
<dependency>
<groupId>net.sourceforge.owlapi</groupId>
<artifactId>org.semanticweb.hermit</artifactId>
<version>1.3.8.500</version>
</dependency>
</dependencies>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
</project>
I just want to make simple examples like this:
OWLOntology o = manager.loadOntologyFromOntologyDocument(file);
System.out.println("--------------------------");
OWLReasonerFactory rf = new ReasonerFactory();
OWLReasoner r = rf.createReasoner(o);
r.precomputeInferences(InferenceType.CLASS_HIERARCHY);
But ReasonerFactory is not recognized by the system.
I downloaded the jar file, installed maven, opened a netbeans project using a maven project. Why it doesn't works??
java owl owl-api
This is my pom file
<?xml version="1.0" encoding="UTF-8"?>
<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.mycompany</groupId>
<artifactId>mavenproject2</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>net.sourceforge.owlapi</groupId>
<artifactId>owlapi-distribution</artifactId>
<version>5.1.0</version>
</dependency>
<dependency>
<groupId>net.sourceforge.owlapi</groupId>
<artifactId>org.semanticweb.hermit</artifactId>
<version>1.3.8.500</version>
</dependency>
</dependencies>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
</project>
I just want to make simple examples like this:
OWLOntology o = manager.loadOntologyFromOntologyDocument(file);
System.out.println("--------------------------");
OWLReasonerFactory rf = new ReasonerFactory();
OWLReasoner r = rf.createReasoner(o);
r.precomputeInferences(InferenceType.CLASS_HIERARCHY);
But ReasonerFactory is not recognized by the system.
I downloaded the jar file, installed maven, opened a netbeans project using a maven project. Why it doesn't works??
java owl owl-api
java owl owl-api
edited Nov 11 at 13:46
asked Nov 11 at 13:36
CHUCK
64
64
You downloaded which Jar file? And did what with it? By the way, this is a Maven project, you don't have to download any Jar file - that's the whole idea of Maven dependencies.
– AKSW
Nov 11 at 15:50
add a comment |
You downloaded which Jar file? And did what with it? By the way, this is a Maven project, you don't have to download any Jar file - that's the whole idea of Maven dependencies.
– AKSW
Nov 11 at 15:50
You downloaded which Jar file? And did what with it? By the way, this is a Maven project, you don't have to download any Jar file - that's the whole idea of Maven dependencies.
– AKSW
Nov 11 at 15:50
You downloaded which Jar file? And did what with it? By the way, this is a Maven project, you don't have to download any Jar file - that's the whole idea of Maven dependencies.
– AKSW
Nov 11 at 15:50
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
Use OWLAPI version 5.1.7 and HermiT version 1.4.3.517.
The problem here is that in the version you used ReasonerFactory
is an inner class in the Reasoner
class, but your test code relies on it being a standalone class. That happened in a later version of HermiT.
1.4.3.517 is the most recent release and includes a few bug fixes, hence I recommend using it in place of all the other OWLAPI 5 compatible versions.
Thanks, I solved running the code. In fact maven downloaded something and now it works!
– CHUCK
Nov 12 at 15:02
I'd still recommend to use the latest versions. Faster, less bugs.
– Ignazio
Nov 12 at 15:05
I'll do it. Thank you very much.
– CHUCK
Nov 12 at 15:50
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Use OWLAPI version 5.1.7 and HermiT version 1.4.3.517.
The problem here is that in the version you used ReasonerFactory
is an inner class in the Reasoner
class, but your test code relies on it being a standalone class. That happened in a later version of HermiT.
1.4.3.517 is the most recent release and includes a few bug fixes, hence I recommend using it in place of all the other OWLAPI 5 compatible versions.
Thanks, I solved running the code. In fact maven downloaded something and now it works!
– CHUCK
Nov 12 at 15:02
I'd still recommend to use the latest versions. Faster, less bugs.
– Ignazio
Nov 12 at 15:05
I'll do it. Thank you very much.
– CHUCK
Nov 12 at 15:50
add a comment |
up vote
0
down vote
Use OWLAPI version 5.1.7 and HermiT version 1.4.3.517.
The problem here is that in the version you used ReasonerFactory
is an inner class in the Reasoner
class, but your test code relies on it being a standalone class. That happened in a later version of HermiT.
1.4.3.517 is the most recent release and includes a few bug fixes, hence I recommend using it in place of all the other OWLAPI 5 compatible versions.
Thanks, I solved running the code. In fact maven downloaded something and now it works!
– CHUCK
Nov 12 at 15:02
I'd still recommend to use the latest versions. Faster, less bugs.
– Ignazio
Nov 12 at 15:05
I'll do it. Thank you very much.
– CHUCK
Nov 12 at 15:50
add a comment |
up vote
0
down vote
up vote
0
down vote
Use OWLAPI version 5.1.7 and HermiT version 1.4.3.517.
The problem here is that in the version you used ReasonerFactory
is an inner class in the Reasoner
class, but your test code relies on it being a standalone class. That happened in a later version of HermiT.
1.4.3.517 is the most recent release and includes a few bug fixes, hence I recommend using it in place of all the other OWLAPI 5 compatible versions.
Use OWLAPI version 5.1.7 and HermiT version 1.4.3.517.
The problem here is that in the version you used ReasonerFactory
is an inner class in the Reasoner
class, but your test code relies on it being a standalone class. That happened in a later version of HermiT.
1.4.3.517 is the most recent release and includes a few bug fixes, hence I recommend using it in place of all the other OWLAPI 5 compatible versions.
answered Nov 12 at 8:03
Ignazio
7,8511922
7,8511922
Thanks, I solved running the code. In fact maven downloaded something and now it works!
– CHUCK
Nov 12 at 15:02
I'd still recommend to use the latest versions. Faster, less bugs.
– Ignazio
Nov 12 at 15:05
I'll do it. Thank you very much.
– CHUCK
Nov 12 at 15:50
add a comment |
Thanks, I solved running the code. In fact maven downloaded something and now it works!
– CHUCK
Nov 12 at 15:02
I'd still recommend to use the latest versions. Faster, less bugs.
– Ignazio
Nov 12 at 15:05
I'll do it. Thank you very much.
– CHUCK
Nov 12 at 15:50
Thanks, I solved running the code. In fact maven downloaded something and now it works!
– CHUCK
Nov 12 at 15:02
Thanks, I solved running the code. In fact maven downloaded something and now it works!
– CHUCK
Nov 12 at 15:02
I'd still recommend to use the latest versions. Faster, less bugs.
– Ignazio
Nov 12 at 15:05
I'd still recommend to use the latest versions. Faster, less bugs.
– Ignazio
Nov 12 at 15:05
I'll do it. Thank you very much.
– CHUCK
Nov 12 at 15:50
I'll do it. Thank you very much.
– CHUCK
Nov 12 at 15:50
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53249282%2freasonerfactory-cannot-find-a-symbol-owlapi%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You downloaded which Jar file? And did what with it? By the way, this is a Maven project, you don't have to download any Jar file - that's the whole idea of Maven dependencies.
– AKSW
Nov 11 at 15:50