What is the triple RDF?

In unprofessional terms, what is the top three RDF?

+54
data-structures xml-namespaces rdf n-triples
Nov 07 '08 at 19:04
source share
14 answers

I think the question needs to be divided into two parts: what is the triple and what makes the “triple RDF” so special?

Firstly, the triple is, as already noted in most other commentators, an expression in the form of "subject / predicate / object" - i.e. An operator connecting one object (subject) with another object (object) or literal, through a predicate. We are all familiar with triples: a triple is the smallest irreducible representation for binary relations. In plain English: a spreadsheet is a set of triples, for example, if the column in your spreadsheet has the heading "Sex" and the row has the heading "Sister" and the value in the cell is "Lisa." Here you have a triple: Paul (the subject) has a Sister (predicate) Lisa (literal / object).

What does the thrice-specific RDF do: each PART of the triple has a URI associated with it, so the daily expression "Mike Smith knows John Doe" can be represented in RDF as:

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

The analogy with a spreadsheet is that by passing each part of the URI a unique address, you give the cell in the spreadsheet all of its address space ... so that you could basically insert every cell (if it is expressed in RDF triples) the table into another document on another server and recreate the table through one query.

Change: This section of the official documentation addresses the original question.

+52
Jul 13 '09 at 22:29
source share

RDF Triple is an operator that associates one object with another. For example:

 "gcc" "Compiles" "c" . "gcc" "compiles" "Java" . "gcc" "compiles" "fortran" . "gcc" "has a website at" <http://gcc.gnu.org/> . "gcc" "has a mailing list at" <mailto:gcc-help@gcc.gnu.org> . "c" "is a" "programming language" . "c" "is documented in" <http://www.amazon.com/Programming-Language-Prentice-Hall-Software/dp/0131103628/ref=pd_bbs_sr_1?ie=UTF8&s=books&qid=1226085111&sr=8-1> . 
+35
Nov 07 '08 at 19:13
source share

The RDF file must be parsed before a list of triples.

A triple consists of a subject, a predicate and an object. But what do they really mean?

Subject, well, subject. This determines which object has a triple description.

A predicate defines a piece of data in an object that we give a value.

An object is an actual value.

From: http://www.robertprice.co.uk/robblog/archive/2004/10/What_Is_An_RDF_Triple_.shtml

+11
Nov 07 '08 at 19:08
source share

Regarding Adam N.’s answer, I believe that the OP asked the previous question regarding the data for the social network , therefore, although the answer is excellent, I’ll just clarify the “original original” question. (Because I feel responsible).

     John |  Is a Friend of |  James
     James |  Is a friend of |  Jill
     Jill |  Likes |  Snowboarding
     Snowboarding |  Is a |  Sport

Using triples like this, you can have a really flexible data structure.

Look At Each Other (FOAF) , perhaps for a better example.

+9
Nov 07 '08 at 20:44
source share

RDF is a language, that is, a system of characters, syntax and semantics for encoding and decoding information (data in a certain context).

In RDF, the unit of observation (data) is represented by a sentence, which consists of three parts: subject, predicate, object. In principle, this is the fundamental structure of natural language speech.

The sign used to refer to entities (things) involved in entity relationships represented by RDF is the IRI (which includes the HTTP URI). Each object and predicate (and, optionally, an object) of an RDF clause component is designated by an IRI.

The syntax (grammar) is abstract (which means that it can be represented using many notation) in the form of the order of the subject, the predicate and the location of objects.

Semantics (most often ignored) refers to the role of the subject, predicate and object in the RDF statement.

When you use HTTP-URIs to denote RDF operator objects, predicates, and (optionally) objects, you get structured data (collections of entity relationship types) that make up a website, like today, on the World Wide Web.

When the semantics of the predicate (in particular) in the RDF statement is understandable both for the machine and for the person, you have a network of entity relationship types that provide powerful encoding of information, which is the basis for knowledge (inference and reasoning).

Here are some simple RDF statements:

 { <#this> a schema:WebPage . <#this> schema:about dbpedia:Resource_Description_Framework . <#this> skos:related <https://stackoverflow.com/questions/30742747/convert-a-statement-with-adjective-in-rdf-triple/30836089#30836089> . } 

I used curly braces to enclose examples so that this post turns into a RDF-based Linked Data demo, taking into account the relative HTTP-URIs and # (indexed) based fragment identifier.

The results of the RDF statements embedded in this post are kindly provided by nanotation (embedding RDF statements wherever the text is accepted):

  • Description page of main objects - Each statement is identified by a hyperlink that allows its description (subject, predicate, parts of the object)
  • Page deeper browsing - An alternative view that lends itself to deeper research and discovery by following your nose through the hyperlinks that make up web data or network related data.
  • Embedded Operator Description - About a specific RDF statement.

Here's a visualization created from triples embedded in this post (using our Sniffer Structured Data Browser Extension , using RDF-Turtle Notation: enter image description here

+6
Jun 17 '15 at 18:57
source share

Please note that this can get a little complicated. RDF triples can also be thought of as objects or objects, so you can have something like: Bart → said → (triples → can be → objects)

+5
03 Feb '09 at 9:45
source share

Some time has passed since I worked with RDF, but here it goes: D

A triple is a subject, predicate and object.

A subject is a URI that uniquely identifies something. For example, your openid uniquely identifies you.

An object determines how the object and object are related.

A predicate is some attribute of the subject. For example, the name.

Given that triples form a graph S-> P. Given more triplets, the graph is growing. For example, you may have the same person identified as an object of several triples, then you can connect all the predicates through this unique object.

+3
Nov 07 '08 at 19:12
source share

I will have to agree with A Pa in part, although he was voted.

Background: I am a linguist, a candidate for this topic, and I work in computational linguistics.

The assertion that "... a sentence consisting of three parts: subject, predicate, object. In principle, this is the fundamental structure of natural language speech" (which quotes A Pa from Kingsley Uyi Idehen's answer) is simply incorrect, and this is not only What Kingsley says about it, I heard it from many proponents of RDF triples.

This is incorrect for many reasons, for example: Predicates (in English, possibly in many other natural languages) consist of a verb (or verb thing) + an object (and, possibly, other additions). There is no doubt that the syntactic structure of the English language is not Subj-Pred-Obj.

In addition, not all natural language sentences in English have an object; intransitive verbs, in particular, by definition do not accept objects. And weather verbs (by the way) do not even take on a “real” topic (“it” is not extolled by “rains”). And, on the other hand, ditransitive verbs, such as “give,” accept both direct and indirect objects. Then there are verbs of the “put” type that take location in addition to the direct object or “speak” that take the object and sentence. Not to mention additions such as temporary and adverbs.

Yes, of course, you can present inline sentences in the form of inline triples (to the extent that you can present any statement in the form of a triple, which, as I hope, you have given clearly, you cannot), but what I don’t I do think what you can do in RDF (at least I have never seen this done, and it looks like it will take four) to have both an object and an inline article. Similarly, a direct and indirect object, or auxiliary elements.

So, whatever the motivation for RDF, I wish advocates to stop pretending that there is linguistic motivation or that the triples somehow resemble the syntax of a natural language. Because they do not.

+3
Mar 06 '17 at 2:37 on
source share

RDF Triple is an actual expression that defines the way in which you can represent the relationship between objects. Three parts include three parts: subject, predicate and object (usually written in the same order). A predicate refers to an object.

Subject ---- Predicate ---> Object

More useful information can be found at:

http://www.w3.org/TR/rdf-concepts/

+2
Nov 07 '08 at 19:33
source share

You can consider the three as a type of proposal, which indicates one "fact" about the resource. First of all, to understand RDF Triple, you need to know that every thing in RDF is defined in terms of a URI http://www.w3.org/TR/2004/REC-rdf-concepts-20040210/#dfn-URI-reference or empty node http://www.w3.org/TR/2004/REC-rdf-concepts-20040210/#dfn-blank-node .

RDF Triple consists of three components: - 1) Theme 2) Predicate 3) Object For example: - Pranay hasCar Ferrari Here Subject is Pranay, hasCar is a predicate, and Ferrari is an object. Each of these is defined by an RDF-URI. For more information, you can: - http://www.w3.org/TR/owl-ref/

+2
Aug 31 '15 at 6:52
source share

The simple answer may be that the RDF triple is a representation of some knowledge using the RDF data model. This model is based on the idea of ​​making statements about resources (in particular, URIs of web resources) in the form of expressions subject-predicate-object. RDF is a standard model for exchanging data on the Internet. RDF has features that make it easy to merge data, even if the underlying schemas are different from each other, and this especially contributes to the evolution of the schema over time, without requiring all data users to be changed. I recommend this article to know how: https://www.w3.org/DesignIssues/RDF-XML.html

+1
Oct 18 '16 at 20:22
source share

The three is explained by an example.

Be there a table that relates to users and questions.

 TABLE dc: creator
 -------------------------
 |  Question |  User |
 -------------------------
 |  45 |  485527 |
 |  44 |  485527 |
 |  40 |  485528 ​​|

This can be conceptually expressed in three RDF triples, such as ...

 <question:45> <dc:creator> <user:485527> <question:44> <dc:creator> <user:485527> <question:40> <dc:creator> <user:485528> 

... so that each line is converted into one triple which connects the user with the question. The general form of each triple can be described as:

<Subject> <Predicate> <Object>

One specialty of RDF is that you can (or should) use URI / IRI to identify entities as well as relationships . More details here . This allows everyone to reuse existing relationships (predicates) and publish statements about arbitrary entities in www .

An example related to an SO response to its creator:

 <https://stackoverflow.com/a/49066324/1485527> <http://purl.org/dc/terms/creator> <https://stackoverflow.com/users/1485527> 
+1
Mar 02 '18 at 9:33
source share

See: http://www.w3.org/TR/2004/REC-rdf-concepts-20040210/#dfn-rdf-triple

The RDF triple contains three components:

  • an object that is an RDF URI reference or an empty node
  • predicate that is a reference to an RDF URI
  • an object that is an RDF URI reference, a literal, or a space node

where literals are essentially strings with optional language tags, and empty nodes are also strings. URIs, literals, and empty nodes must be from paired disjoint sets.

0
Nov 07 '08 at 19:43
source share

The RDF Three is the way that super-intelligent people try to compress ordinary language into code so that we can talk with our machines, dubious ambitions.

Random Comment Notification! This will probably be flagged, dropped, or simply not published, but, in the interest of fully disclosing information and in order to save you programmers from yourself, please read one minute of your life:

“In RDF, the unit of observation (data) is represented by a sentence, which consists of three parts: subject, predicate, object. Basically, this is the fundamental structure of speech in natural language.

With all due respect and not wanting to humiliate the speaker, I would question the opinion that the previous expression is inconvenient, not paying attention to the fact that natural language has beauty, and the constant effort to compress information into smaller and smaller ideas about reality is an attempt to the wrong direction.
Is "unit of observation" equal to "data"? Does anyone even understand how alienated from the real person who sounds?

I am not trying to offend a person’s intellect or the noble effort to organize “data” into accessible and meaningful things, but please think about how you use words and “language”. Think about how using this “new word” affects people in general, not just programmers. If we ever talk to each other in mathematical symbols, it will make us much more effective, but it will rob us of all the music of words and the reasons why we speak to each other. Is the goal of this attempt to make every byte of "data" available to every person on the planet or just build another secret and specialized "data set"?

-3
Apr 25 '16 at 12:51
source share



All Articles