RDFS - 声明属性
我对使用语义数据非常陌生,并且有一个我无法找到答案的快速问题。
创建 rdf 模式时,您本质上是根据 OOP 创建一个类,即声明所有有效的属性等。如果是这种情况,那么说我想要一个名为“title”的属性,我实际上打算使用 dcterms:title 我是否必须专门声明它是模式中 rdf 类的成员并将其声明为 的子属性dcterms:标题。或者,我是否从模式中省略它并在创建 rdf 实例时简单地使用它?
我希望这是有道理的,并提前感谢任何人就此提供的任何建议。
I am very new to working with semantic data and have a quick question that i cant find an answer to.
When creating an rdf schema are you essentially creating a class as per OOP i.e. declaring all properties etc that are valid. If this is the case then say I want a property called 'title' which I actually intend on using dcterms:title do I have to specifically declare this to be a member of my rdf class in the schema and declare it as a sub property of dcterms:title. Or, do I omit this from the schema and simply use it when creating the rdf instance?
I hope this makes sense and thank anyne in advance for any advice they can offer on this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个常见的误解,而且是错误的。然而,这是完全可以理解的,并且通过使用术语“模式”来邀请,“模式”在 XML 和关系数据库中可以建议对数据的定义或约束。
W3C 建议称为“RDF 词汇描述语言 1.0:RDF 模式”,这是摆脱“模式”一词的尝试,并建议 rdfs 的作用:描述词汇表。 RDF“模式”只是类和属性描述的集合。
所以简短的回答是:“我是否必须明确声明这是我班级的成员”,不。 “我是否从模式中省略它并在创建 rdf 实例时简单地使用它”是的,没问题。
This is a common misconception, and wrong. It's perfectly understandable, however, and invited by the use of the term 'schema' which in XML and relational databases can suggest a definition or constraint on the data.
The W3C recommendation is called 'RDF Vocabulary Description Language 1.0: RDF Schema', which is an attempt to get away from the 'schema' word, and suggest what rdfs does: describe vocabularies. RDF 'schemas' are just collections of descriptions of classes and properties.
So the short answers are: 'do I have to specifically declare this to be a member of my class' no. 'do I omit this from the schema and simply use it when creating the rdf instance' yes, that's fine.