简体   繁体   English

无法解析Turtle本体防护

[英]Could not parse Turtle ontology Protege

I'm trying to open an owl ontology with Protege on a CentOS 7 machine, and I receive the following error from the OWLXMLParser when I do so : 我正在尝试在CentOS 7机器上使用Protege打开猫头鹰本体,并且在这样做时从OWLXMLParser收到以下错误:

org.xml.sax.SAXParseException; org.xml.sax.SAXParseException; systemId: file:/home/michael/workspace/SexOffenderETL/sexoffenderetl/sexo-ontology2.owl; systemId:文件:/home/michael/workspace/SexOffenderETL/sexoffenderetl/sexo-ontology2.owl; lineNumber: 299; lineNumber:299; columnNumber: 3; columnNumber:3; XML document structures must start and end within the same entity. XML文档结构必须在同一实体内开始和结束。

I was originally using a .ttl version of this ontology, but converted it to a .owl at my team lead's recommendation. 我最初使用的是该本体的.ttl版本,但根据我的团队负责人的建议将其转换为.owl。 What can I do to remedy this error? 我该怎么办才能纠正此错误?

The SAX error you report mentions mismatched tags. 您报告的SAX错误提到了不匹配的标记。 This seems to indicate the XML is syntactically incorrect. 这似乎表明XML在语法上是不正确的。

Is the XML available online for us to check? XML是否可以在线查看供我们检查? If not, you'll need to verifying the XML syntax with some XML tools on your local machine. 如果不是,则需要使用本地计算机上的某些XML工具来验证XML语法。

The reason for this error is you made a mistake when designing your ontology,epecially dot (.) And othe symbols lead to this error.so, It can be corrected easily by viewing the Line number that displayed in the the dialog box menu Owl /turtle parser. 发生此错误的原因是您在设计本体时犯了一个错误,尤其是点(。),而其他符号导致了此错误。因此,可以通过查看对话框菜单中的行号Owl /轻松地更正此错误。乌龟解析器。 Then open your ontology file in Notepad++ to locate the line number and check your sytax in that line number. 然后在Notepad ++中打开您的本体文件以找到行号并检查该行号中的语法。

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

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