繁体   English   中英

无法在Pellet / OwlApi中解析类Reasoner

[英]Cannot resolved class Reasoner in Pellet/OwlApi

我开始使用Pellet在OWLApi应用程序中创建推理程序。 如示例所示,我从以下代码开始:

Reasoner reasoner = new Reasoner( manager );

但是Eclipse在“新推理机”上给了我这个错误:

The type org.semanticweb.owl.model.OWLOntologyManager cannot be resolved. 
It is indirectly referenced from required .class files

我怎么解决这个问题? 我在google上搜索,但唯一的答复尚不清楚。

这是一个类路径问题。 eclipse在其类路径上找不到org.semanticweb.owl.model.OWLOntologyManager 您不是直接导入此类,而是其他一些库导入了。

尝试识别包含org.semanticweb.owl.model.OWLOntologyManager的库,并将其添加到类路径中。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM