使用RDFS:子类作为注释属性

发布于 2025-01-20 03:24:57 字数 66 浏览 6 评论 0原文

我想使用 rdfs:subclassOf 作为注释属性而不包含在类层次结构中,我如何在 protege 中做到这一点?

I want to use rdfs:subclassOf as an annotation property without being included in the class hierarchy, how I can do that in protege?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

无语# 2025-01-27 03:24:57

使用rdfs:subclassof,或RDF,RDFS或OWL名称空间中定义的任何术语,与规格中定义的目的不同,可能会创建意外情况,并且可能无法实现什么你期望。

例如,根据您使用的语法,情况可能会有所不同。在RDF/XML中,RDFS的解析:子类始终会创建子类公理;在非基于RDF的语法中,这可能会按照您的期望工作(该属性定义为RDF:属性,因此其他解析器可能只是将其视为注释属性)。

我认为,您会在自己的用途中遇到不一致的结果 - 当然,本体论很难被其他政党重复使用,他们可能不知道任何格式的限制。

我认为,最好的选择是为您的目的定义自己的注释属性。

Using rdfs:subClassOf, or any of the terms defined in the rdf, rdfs or owl namespaces, for a purpose different from the ones defined in the specs is likely to create unexpected situations, and might not achieve what you expect.

For example, things may work out differently depending on the syntax you use. In RDF/XML, parsing of rdfs:subClassOf will always create subclass axioms; in non RDF based syntaxes, this might work as you expect (the property is defined as a rdf:Property, so other parsers might just treat it as an annotation property).

You'd have inconsistent results in your own uses, I think - and certainly it would be difficult for the ontology to be reused by other parties, who might not be aware of any format limitations.

Best choice would be to define your own annotation property for your purposes, I think.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文