什么是RDF三元组? [英] What's a RDF triple?

查看:1053
本文介绍了什么是RDF三元组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

按照外行人士的说法,RDF三元组是什么?

In layman's terms, what's a RDF triple?

推荐答案

我认为这个问题需要分为两部分 - 是一个三元组,什么使得RDF三重奏如此特别?

I think the question needs to be split into two parts - what is a triple and what makes an "RDF triple" so special?

首先,三分之一是,因为这里的其他大多数评论者已经指出主体/谓词/对象形式 - 即连接一个对象(主体)到另一个对象(对象)或文字的连接。通过谓词。我们都熟悉三元组:三元组是二元关系的最小不可约代表。简单地说:电子表格是三元组的集合:例如如果电子表格中的列有标题Paul,并且一行的标题为has Sister,并且单元格中的值例如是Lisa,那么这里有一个三元组:Paul(subject)有Sister (谓词)Lisa(文字/对象)。

Firstly, a triple is, as most of the other commenters here have already pointed out a statement in "subject/predicate/object" form - i.e. a stament linking one object (subject) to another object(object) or a literal. via a predicate. We are all familiar with triples: a triple is the smallest irreducible representation for binary relationship. In plain speak: a spreadsheet is a collection of triples: e.g. if a column in your spreadsheet has the heading "Paul" and a row has the heading "has Sister" and the value in the cell is, for example, "Lisa", then here you have a triple: Paul (subject) has Sister(predicate) Lisa (literal/object).

什么让RDF三重奏特别的是三重奏的每一个都有一个与之相关联的URI,所以日常语句Mike史密斯知道John Doe可能在RDF中被表示为:

What makes RDF triples special is that EVERY PART of the triple has a URI associated with it, so the everyday statement "Mike Smith knows John Doe" might be represented in RDF as:

uri://people#MikeSmith12 http://xmlns.com/foaf/0.1/knows uri://people#JohnDoe45

与电子表格的类比是给URI的每个部分都是一个唯一的地址,你可以在电子表格中给它的整个地址空间....所以你可以原则上把电子表格中的每个单元格(如果以RDF三元组表示)粘贴到另一个不同的文档中服务器等,并通过单个查询重新构建电子表格。

The analogy to the spreadsheet is that by giving every part of the URI a unique address, you give the cell in the spreadsheet its whole address space....so you could in principle stick every cell (if expressed in RDF triples) in the spreadsheet into a different document on a different server etc and reconstitute the spreadsheet through a single query.

这篇关于什么是RDF三元组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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