RDFS - 声明属性

发布于 2024-08-21 14:43:36 字数 254 浏览 10 评论 0原文

我对使用语义数据非常陌生,并且有一个我无法找到答案的快速问题。

创建 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 技术交流群。

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

发布评论

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

评论(1

何以笙箫默 2024-08-28 14:43:36

创建 rdf 模式时,您本质上是根据 OOP 创建一个类,即声明所有有效的属性等。

这是一个常见的误解,而且是错误的。然而,这是完全可以理解的,并且通过使用术语“模式”来邀请,“模式”在 XML 和关系数据库中可以建议对数据的定义或约束。

W3C 建议称为“RDF 词汇描述语言 1.0:RDF 模式”,这是摆脱“模式”一词的尝试,并建议 rdfs 的作用:描述词汇表。 RDF“模式”只是类和属性描述的集合。

所以简短的回答是:“我是否必须明确声明这是我班级的成员”,不。 “我是否从模式中省略它并在创建 rdf 实例时简单地使用它”是的,没问题。

When creating an rdf schema are you essentially creating a class as per OOP i.e. declaring all properties etc that are valid.

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.

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