【问题标题】:Cannot resolved class Reasoner in Pellet/OwlApi无法解决 Pellet/OwlApi 中的类 Reasoner
【发布时间】:2010-06-21 12:53:57
【问题描述】:

我开始使用 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

我该如何解决这个问题?我在谷歌上搜索,但唯一的答案不清楚。

【问题讨论】:

    标签: java owl pellet


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-06-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多