简体   繁体   English

包含在其他本体中的“无法解析本体论”(owl-api)

[英]“Could not parse ontology” that was included into other ontology(owl-api)

I try to load an ontology (test.owl) that includes bfo.owl. 我尝试加载包含bfo.owl的本体(test.owl)。 Versions of the used APIs: 使用的API的版本:

OWL-API 3.4.3 OWL-API 3.4.3

hermit 1.3.8.4 隐士1.3.8.4

It is possible to open the test ontology with Protégé 5. But when I try to load test.owl with my code, I get the error message below, which I don't understand. 可以使用Protégé5打开测试本体。但是当我尝试使用我的代码加载test.owl时,我收到下面的错误消息,我不明白。 Is there anybody out there who can help me understanding the message and finding a way to load the ontology? 有没有人可以帮助我理解这个消息并找到加载本体的方法?

org.semanticweb.owlapi.model.UnloadableImportException: Could not load imported ontology: http://purl.obolibrary.org/obo/bfo/2014-05-03/bfo.owl Cause: Problem parsing http://purl.obolibrary.org/obo/bfo/2014-05-03/bfo.owl org.semanticweb.owlapi.model.UnloadableImportException:无法加载进口本体: http://purl.obolibrary.org/obo/bfo/2014-05-03/bfo.owl原因:问题解析HTTP://purl.obolibrary .ORG / OBO / BFO / 2014年5月3日/ bfo.owl

Could not parse ontology.  Either a suitable parser could not be found, or parsing failed.  See parser logs below for explanation.
The following parsers were tried:
1) RDFXMLParser
2) OWLXMLParser
3) OWLFunctionalSyntaxOWLParser
4) TurtleOntologyParser
5) OWLOBOParser
6) KRSS2OWLParser
7) ManchesterOWLSyntaxOntologyParser


Detailed logs:
--------------------------------------------------------------------------------
Parser: RDFXMLParser
org.xml.sax.SAXParseException; systemId: http://purl.obolibrary.org/obo/bfo/2014-05-03/bfo.owl; lineNumber: 1; columnNumber: 50; Leerstellen erforderlich zwischen publicId und systemId.

--------------------------------------------------------------------------------
Parser: OWLXMLParser
org.xml.sax.SAXParseException; systemId: http://purl.obolibrary.org/obo/bfo/2014-05-03/bfo.owl; lineNumber: 1; columnNumber: 50; Leerstellen erforderlich zwischen publicId und systemId

Sorry for having the second part of the error message in a different style - but as I am not allowed to have more than 2 links in a text (due to lack of reputation) and I still wanted you to be able to test the link to bfo.owl, I had to be creative. 很抱歉错误消息的第二部分有不同的样式 - 但由于我不允许在文本中有超过2个链接(由于缺乏声誉),我仍然希望您能够测试链接到bfo.owl,我必须要有创意。

Owlapi 3.4 is ancient and many bugs have been fixed since. Owlapi 3.4很古老,自那以后就已经修复了许多虫子。 Protégé 5 uses 4.2.5. Protégé5使用4.2.5。

There is a HermiT release compatible with owlapi 4, search Maven Central for version 1.3.8.413 (I curated the fork, it's released under net.sourceforge.owlapi). 有一个与owlapi 4兼容的HermiT版本,在版本1.3.8.413中搜索Maven Central(我策划了fork,它是在net.sourceforge.owlapi下发布的)。

This is also the HermiT version bundled with Protege 5. 这也是与Protege 5捆绑在一起的HermiT版本。

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

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