使用RDFS:子类作为注释属性
我想使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用
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.