简体   繁体   English

使用自定义架构将XML数据关联到RDF / OWL本体

[英]Relating XML data using a custom schema to RDF/OWL ontology

I have a schema which is designed to permit the description of certain types of electronic devices. 我有一个架构,旨在允许描述某些类型的电子设备。 XML files compliant to the schema describe the interface to the device. 符合架构的XML文件描述了设备的接口。 The schema permits the way that the interface functions to be described. 该模式允许描述接口功能的方式。 As part of this, data types are defined and then used. 作为其一部分,定义并使用数据类型。 What I would like to do is to permit the author of an XML file to link the data types they define to semantics provided as a separate RDF/OWL document. 我想做的是允许XML文件的作者将其定义的数据类型链接到作为单独的RDF / OWL文档提供的语义。

As far as I understand it, this means that a type should be related to an OWL class. 据我了解,这意味着类型应与OWL类相关。 The way this is done for XHTML, for example, seems to be using RDFa (the "typeof" attribute, I think?). 例如,针对XHTML的处理方式似乎正在使用RDFa(我认为是“ typeof”属性)。 What is most appropriate way to do this for my own schema? 对于我自己的模式,最合适的方法是什么? Should I use (a subset of RDFa)? 我应该使用(RDFa的子集)吗? How do I go about incorporating this into my own schema such that it validates? 我如何将其合并到我自己的模式中以使其生效? Am I going about this all wrong? 我要解决所有这些错误吗?

What is most appropriate way to do this for my own schema? 对于我自己的模式,最合适的方法是什么?

It seems that you are trying to capture some specifications for electronic devices. 看来您正在尝试捕获电子设备的一些规范。 In this case, you can then use plain OWL, this is one of its use case. 在这种情况下,您可以使用普通的OWL,这是其用例之一。 You just represent the types as OWL classes as mentioned. 如上所述,您只是将类型表示为OWL类。

Should I use (a subset of RDFa)? 我应该使用(RDFa的子集)吗?

RDFa are meant to be used inside HTML documents for search engines to process, so I don't think it suits your case. RDFa旨在在HTML文档中供搜索引擎处理,因此我认为它不适合您的情况。 But anyway: RDFa is just a framework to annotate content, so you could perfectly annotate HTML content with your XML types if you want a straightforward solution. 但是无论如何:RDFa只是一个注释内容的框架,因此,如果您想要一个简单的解决方案,则可以使用XML类型完美地注释HTML内容。

How do I go about incorporating this into my own schema such that it validates? 我如何将其合并到我自己的模式中以使其生效?

OWL ontology validation is done via a reasoner, if you use a tool like Protege you have would have a platform to edit and create your OWL ontology as well as to use the reasoner. OWL本体验证是通过推理机完成的,如果您使用Protege之类的工具,您将有一个平台来编辑和创建OWL本体以及使用推理机。

If you include some snippet of your XML and pseudo-code of what you want to achieve I could provide a more detailed answer. 如果包含您的XML的一些片段以及您想要实现的伪代码,我可以提供更详细的答案。

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

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