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

查看:82
本文介绍了什么是 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(主语)有 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 statement 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 English: a spreadsheet is a collection of triples, for example, 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 "Lisa". Here you have a triple: Paul (subject) has Sister(predicate) Lisa (literal/object).

RDF 三元组的特殊之处在于三元组的每个部分都有一个与之关联的 URI,因此日常语句Mike Smith 认识 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) of the spreadsheet into a different document on a different server and reconstitute the spreadsheet through a single query.

官方文档的这一部分针对原始问题.

This section of the official documentation addresses the original question.

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

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