当前位置: 首页 > 知识库问答 >
问题:

在Protege中加载本体时出错

微生博简
2023-03-14

我试图在Protege3.5中加载一个OWL2.0本体。然而,每次我尝试的时候,它都会给出一个错误。

Prefix( xsd:=<http://www.w3.org/2001/XMLSchema#> )
Prefix( ns:=<http://isd.ktu.lt/semantika/> )
Ontology( <http://isd.ktu.lt/semantika/s2o>
Declaration( AnnotationProperty( <ns:s2o#label_sbvr> ) )
Declaration( AnnotationProperty( <ns:s2o#label_en> ) )
Declaration( Class( <ns:s2o#credit_card> ) )
AnnotationAssertion( <ns:s2o#label_sbvr> <ns:s2o#credit_card> "credit_card"@en )
AnnotationAssertion( <http://www.w3.org/2000/01/rdf-schema#label> <ns:s2o#credit_card> "credit card"@en )
AnnotationAssertion( <ns:s2o#label_en> <ns:s2o#credit_card> "credit card" )
Declaration( Class( <ns:s2o#car_rental> ) )
AnnotationAssertion( <ns:s2o#label_sbvr> <ns:s2o#car_rental> "car_rental"@en )
AnnotationAssertion( <http://www.w3.org/2000/01/rdf-schema#label> <ns:s2o#car_rental> "car rental"@en )
AnnotationAssertion( <ns:s2o#label_en> <ns:s2o#car_rental> "car rental" )
ClassAssertion( <ns:s2o#car_rental> <ns:s2o#myCarRental> )
Declaration( ObjectProperty( <ns:s2o#is_insured_by__credit_card> ) )
ObjectPropertyDomain( <ns:s2o#is_insured_by__credit_card> <ns:s2o#car_rental> )
ObjectPropertyRange( <ns:s2o#is_insured_by__credit_card> <ns:s2o#credit_card> )
AnnotationAssertion( <ns:s2o#label_sbvr> <ns:s2o#is_insured_by__credit_card> "car_rental is_insured_by credit_card"@en )
AnnotationAssertion( <http://www.w3.org/2000/01/rdf-schema#label> <ns:s2o#is_insured_by__credit_card> "car rental is insured by credit card"@en )
AnnotationAssertion( <ns:s2o#label_en> <ns:s2o#is_insured_by__credit_card> "car rental is insured by credit card" )
SubClassOf( <ns:s2o#car_rental> ObjectMinCardinality( 3 <ns:s2o#is_insured_by__credit_card> <ns:s2o#credit_card> ) )
SubClassOf( <ns:s2o#car_rental> ObjectMaxCardinality( 5 <ns:s2o#is_insured_by__credit_card> <ns:s2o#credit_card> ) )
)

本体很好,因为当我从Java代码运行它们时,Hermit Reasoner和Pellet Reasoner在它上面工作得很好。你能告诉我为什么会出现错误信息以及如何修复它吗。

共有1个答案

金瑞
2023-03-14

Protege试图将本体解析为XML,但其格式实际上是函数语法。

Protege3.5很古老,我不知道它对RDF/XML以外的语法的支持程度。你为什么要用它?你能移到门生4.3吗?

 类似资料:
  • 我正在使用Protege5.2.0版本,并尝试从http://purl.org/ontology/mo/添加音乐本体。我已经在我的电脑上下载了rdfs,当我尝试导入我的本体上的文件时,加载需要花费很长时间。 特别是,加载“http://purl.org/ontology/similarity/”时,它会冻结:现在它已经在那里大约10分钟了,每次我都必须粗暴地关闭程序,否则它不会停止加载。 有没有办

  • 我得到这样的错误消息:线程“awt-eventqueue-0”org.apache.jena.riot.riotexception:[line:1,col:1]Prolog中不允许内容。当我试图通过NetBeans用java加载本地本体文件时?请问这是什么意思,我该怎么做?

  • GreatNewUpperOntology正确导入,但显示的名称如下: Untitle-Ontology-93(http://www.semanticweb.org/myname/ontologies/2014/9/Untitle-Ontology-93) 问题:有没有一种方法让我把我的本体保存到SemanticWeb.org站点,使用我在自己的计算机上给文件起的描述性名称,例如“GreatNew

  • 我对使用Protege还不熟悉。我正在使用两个小的owl文件,都包含一个超级类和两个子类。除了类名之外,这两个本体完全相同。我将这两个文件导入到一个新文件中,并使用refactor菜单将一个本体合并到另一个本体。我使用“等效”来映射本体的相应类,并对属性进行了同样的操作。我希望SPARQL查询从两个本体中获取结果。我该如何进行?

  • 当创建一个基本的grails插件并使用Maven编译时,我会收到这条错误消息: 加载插件管理器时出错:无法创建类[org.codehaus.groovy.grails.plugins.web.mapping.UrlMappingsGrailsPlugin]的新实例!(使用--stacktrace查看完整跟踪) Grails版本2.4.3

  • 问题内容: 我尝试按照此处的指南,为Android上的TextView使用自定义字体。使用相同的字体,相同的代码,相同的所有内容,我在adb logcat中得到此信息: 我使用的是Molot.otf字体,该字体已在其中一个博客中成功使用。我还使用predator.ttf,这是另一种自定义字体,但格式为TrueType。 相关代码: 和 是什么原因造成的?它对博客中的人有用,那为什么不呢?API中是