在Pellet / OwlApi中无法解析类Reasoner

时间:2010-06-21 12:53:57

标签: java owl pellet

我开始使用Pellet通过我的OWLApi应用程序创建推理器。 在示例中,我从这段代码开始:

Reasoner reasoner = new Reasoner( manager );

但是Eclipse在“new Reasoner”上给了我这个错误:

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

我该如何解决这个问题?我在谷歌搜索,但唯一的反应不明确。

1 个答案:

答案 0 :(得分:1)

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

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

相关问题