RDF容器和集合之间的区别? [英] Difference between RDF Containers and Collections?

查看:95
本文介绍了RDF容器和集合之间的区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经读过一本书


容器和集合之间的区别在于容器始终处于打开状态(例如,新容器成员可以通过其他RDF语句添加),也可以关闭集合。

The difference between containers and collections lies in the fact that containers are always open (i.e., new members may be added through additional RDF statements) and collections may be closed.

我不清楚这种区别。它说不能将新成员添加到集合中。如果我将最后一个 rdf:rest 属性的值从 rdf:nil 更改为怎么办? _:xyz 并添加

I don't understand this difference clearly. It says that no new members can be added to a collection. What if I change the value of the last rdf:rest property from rdf:nil to _:xyz and add

_:xyz rdf:first <ex:aaa> .
_:xyz rdf:rest rdf:nil .

因此,我可以添加新成员 _:xyz

I am thus able to add a new member _:xyz. Why does it then say that collections are closed?

推荐答案

关键在于,在Container中,您可以继续添加新的项目,只需声明新的RDF三元组即可。在Collection中,您必须先删除一条语句,然后才能添加新项目。

The key difference is that in a Container, you can simply continue to add new items, by only asserting new RDF triples. In a Collection, you first have to remove a statement before you can add new items.

这是一个重要的区别,特别是对于RDF推理而言。这很重要,因为RDF推理采用了开放世界假设(OWA),简单地说,该陈述指出,仅仅因为某个事实未知,并不意味着我们可以认为该事实不真实。

This is an important difference in particular for RDF reasoning. It's important because RDF reasoning employs an Open World Assumption (OWA), which, put simply, states that just because a certain fact is not known, that does not mean we can assume that fact to be untrue.

如果您将此原理应用于一个容器,并且您问该容器有多少个物品这个问题,答案必须始终是我不知道 ,这仅仅是因为无法确定容器中可能有多少 unknown 个项目。但是,如果我们有一个集合,则对最后一个项目有一个明确的标记,因此我们可以确定地说集合包含多少个项目-不可能有未知的其他项目。

If you apply this principle to a container, and you ask the question "how many items does the container have", the answer must always be "I don't know", simply because there is no way to determine how many unknown items might be in the container. However, if we have a collection, we have an explicit marker for the last item, so we can with certainty say how many items the collection contains - there can be no unknown additional items.

这篇关于RDF容器和集合之间的区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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