RDF 属性可以包含其他属性吗?

发布于 2024-08-18 19:52:04 字数 449 浏览 3 评论 0原文

RDF:Property 是否可以包含其他属性以及 rdf:range 和 rdf:domain。例如,您可以有以下内容吗:

<rdf:Property rdf:about="&base;adminStaff">
    <rdfs:domain rdf:resource="&base;Staff"/>
    <rdfs:range rdf:resource="&rdfs;Literal"/>
    <dcterms:description>This is a member of staff</dcterms:description>
</rdf:Property>

我在这里感兴趣的是都柏林核心描述元素的使用。这是否有效。当将其视为三元组时看起来不错并且有意义,但我不确定将此属性包含在另一个属性中是否有效。

Can the RDF:Property contain other properties along with rdf:range and rdf:domain. For example, could you have the following:

<rdf:Property rdf:about="&base;adminStaff">
    <rdfs:domain rdf:resource="&base;Staff"/>
    <rdfs:range rdf:resource="&rdfs;Literal"/>
    <dcterms:description>This is a member of staff</dcterms:description>
</rdf:Property>

The bit im interested in here is the use of the dublin core description element. Is this valid. It looks ok when viewing it as triples and makes sense but im unsure whether it is valid to have this property inside another property.

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

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

发布评论

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

评论(1

瑾兮 2024-08-25 19:52:04

是的,它是有效的。您也可以在都柏林核心元数据元素集中进行检查。

<rdf:Property rdf:about="http://purl.org/dc/elements/1.1/creator">
  <rdfs:label xml:lang="en-US">Creator</rdfs:label>
  <rdfs:comment xml:lang="en-US">
    An entity primarily responsible for making the resource.
  </rdfs:comment>
  <dcterms:description xml:lang="en-US">
    Examples of a Creator include a person, an organization, or a service. Typically, the name of a Creator should be used to indicate the entity.
  </dcterms:description>
</rdf:Property>

Yes, it is valid. You can check it also in the Dublin Core Metadata Element Set.

<rdf:Property rdf:about="http://purl.org/dc/elements/1.1/creator">
  <rdfs:label xml:lang="en-US">Creator</rdfs:label>
  <rdfs:comment xml:lang="en-US">
    An entity primarily responsible for making the resource.
  </rdfs:comment>
  <dcterms:description xml:lang="en-US">
    Examples of a Creator include a person, an organization, or a service. Typically, the name of a Creator should be used to indicate the entity.
  </dcterms:description>
</rdf:Property>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文