3

Is it valid to form the following triple:

_:bn rdf:type foaf:name

where _:bn is a blank node?

I read the W3C standards for rdf:type. It says that the rdfs:domain of rdf:type is rdfs:resource. rdfs:resource is the the class of everything.

So is it correct to assign a rdf:type for a blank node?

4

2 回答 2

5

是的,这绝对没问题。空白节点只是没有 URL 标识符的东西。(嗯,它有点复杂,但我不会担心)

就像一辆没有牌照的汽车,它不会阻止他们做任何有牌照的汽车可以做的事情。

但这让人们很难弄清楚他们是否看到了同一辆车,或者找到了那辆车。

于 2017-06-14T15:39:39.200 回答
2

对于更通用的答案,空白节点是图形数据库提供的纯粹抽象的“事物”。

给节点一个类型意味着创建一个三元组,换句话说,给一个主题提供一个属性。

subject= my blank node
property=rdf:type 
object=foaf:name 

空白节点可能没有标识符,但当它成为属性的主题时就开始成为具体的“事物”。

对于将节点视为资源而言,缺少标识符绝对不是问题,因为它稍后可能会通过另一个三元组与节点相关联。例如(使用适当的都柏林核心属性作为标识符):

subject= my blank node
property=http://purl.org/dc/terms/subject
object=http://my-testdomain.com/my-url
于 2017-06-19T14:26:09.433 回答