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??










share|improve this question
























  • 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















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??










share|improve this question
























  • 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













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??










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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


















  • 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












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.






share|improve this answer





















  • 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











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















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

























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.






share|improve this answer





















  • 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















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.






share|improve this answer





















  • 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













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.






share|improve this answer












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.







share|improve this answer












share|improve this answer



share|improve this answer










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


















  • 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


















draft saved

draft discarded




















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Full-time equivalent

さくらももこ

13 indicted, 8 arrested in Calif. drug cartel investigation