rdf:resource中#的含义是什么 [英] What's the meaning of # in rdf:resource

查看:56
本文介绍了rdf:resource中#的含义是什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不清楚什么时候应该在 rdf:resource 中的 URI 前面加上 # 字符.究竟是什么意思?是使用相对 URI 的方式,还是必须与 rdf:ID 一起使用但不与 rdf:about 一起使用?

It is unclear to me when should I precede URI inside of rdf:resource with # character. What exactly does it mean? Is it way to use relative URI, or does it have to be used with rdf:ID but not with rdf:about ?

您能否在 rdf:resource 中附加 # 错误和正确用法的示例?

Could you append examples of wrong and right usage of # inside rdf:resource?

推荐答案

rdf:resource 属性有一个 URI 作为值(= 三元组的主题).

The rdf:resource attribute has a URI as value (= the subject of the triple).

您可以使用绝对 URI(例如 http://example.com/foobar)或相对 URI(例如 /foobar).如果您使用 #foo 作为值,那将是 相同-文档参考.

You can use absolute URIs (e.g., http://example.com/foobar), or relative URIs (e.g., /foobar). If you use #foo as value, that would be a same-document reference.

因此,如果您在具有 URI http://example.com/foobar 的文档中使用 rdf:resource="#foo",则指定URI http://example.com/foobar#foo.

So if you use rdf:resource="#foo" in a document which has the URI http://example.com/foobar, you are specifying the URI http://example.com/foobar#foo.

请注意,许多作者使用片段来区分页面和它代表的东西.示例:

Note that many authors use the fragment to differentiate the page from the thing it represents. Example:

  • http://example.com/Buksy 可以代表关于你的页面
  • http://example.com/Buksy#i 可以代表您
  • http://example.com/Buksy could represent the page about you
  • http://example.com/Buksy#i could represent you

这称为 hash URI,这是 httpRange-14 的可能解决方案问题.

This is known as hash URI, which is a possible solution for the httpRange-14 issue.

这篇关于rdf:resource中#的含义是什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆