[英]Cannot resolved class Reasoner in Pellet/OwlApi
I'm start to use Pellet to create a reasoner with my OWLApi application. 我开始使用Pellet在OWLApi应用程序中创建推理程序。 As in the examples, I start with this code:
如示例所示,我从以下代码开始:
Reasoner reasoner = new Reasoner( manager );
but Eclipse give me this error on "new Reasoner": 但是Eclipse在“新推理机”上给了我这个错误:
The type org.semanticweb.owl.model.OWLOntologyManager cannot be resolved.
It is indirectly referenced from required .class files
how can I solve this problem? 我怎么解决这个问题? I search on google, but the only response is not clear.
我在google上搜索,但唯一的答复尚不清楚。
This is a classpath problem. 这是一个类路径问题。 eclipse can't find
org.semanticweb.owl.model.OWLOntologyManager
on it's classpath. eclipse在其类路径上找不到
org.semanticweb.owl.model.OWLOntologyManager
。 You're not importing this class directly but some other library does. 您不是直接导入此类,而是其他一些库导入了。
Try to identify the library that contains org.semanticweb.owl.model.OWLOntologyManager
and add it to the classpath. 尝试识别包含
org.semanticweb.owl.model.OWLOntologyManager
的库,并将其添加到类路径中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.