What does "reify" and "reification" mean in relation to RDF?
Asked Answered
C

2

11

I do think I understand the meaning of these words in programming languages, but it is not clear in regards to RDF and triples. Is there an example that will help me to understand?

Thank you

Conversable answered 15/4, 2011 at 0:33 Comment(2)
What are the meanings of these words, as you understand them?Bobbinet
In the realm of programming languages a reified object is one whose type is not lost at compile time, but is maintained into runtime. I am not sure how this will helps me. :(Conversable
B
24

A standard RDF statement consists of:

 SUBJECT PREDICATE OBJECT

Think of it as asserting a fact.

 ROVER IS-A DOG

Now, what if the situation you have at hand is, really,

  GEORGE SAYS-THAT 'ROVER IS-A DOG'

In RDF, you write this as

  STMTID  IS-A STATEMENT
  STMTID  HAS-SUBJECT ROVER
  STMTID  HAS-PREDICATE IS-A
  STMTID  HAS-OBJECT DOG
  GEORGE  SAYS-THAT STMTID

The first four triples here are, formally and officially, the reification of the first one.

Note that the original statement is NOT in the model, since the purpose of reification is to hold back from asserting it, but rather talk indirectly about it.

Note further that I've elided the IRI's of ROVER and friends for clarity.

For the cogniscenti in the audience:

There are a variety of things you can do with reification. As per above, you can use it to describe a statement without stating it, thus keeping it away from inference.

You can also use it to add additional facts, such as provenance, to a statement. In that case, you have the original triple, and also the reification. However, I just got a lengthy explanation from someone who seems to know a lot about RDF (one of the leads of the SPARQL spec.) His explanation is that formal reification (including the fourth triple that says that the thing 'is-a statement') is not suppose to be used together with asserting the triple itself. If you look at the comments on this answer, you will see that his opinion is not universal, but you might want to still keep it in mind.

Brunell answered 15/4, 2011 at 1:6 Comment(5)
(+1) Minor note: your example seems backward as, by convention, reification is most oft used for provenance, and in that case the reification would be for the provenance, not the fact, rover is-a dog.Millham
I just had one of the spec leads of the SPARQL standard in my office, and he was quite insistent on the point of view I stated :-)Brunell
No, of course you are totally right, I read it too quickly and got confused. :-) Hard to believe I flubbed that one. Here, your provenance is GEORGE SAYS-THAT it must be applied to the triple in some way, thus the triple must be reified. Gack, I'm going to sleep now.Millham
The origial statement can also be in the model, if you want; this is common if you are using reification for provenance etcInstitutional
@Brunell The first four triples here are, formally and officially, the reification of the first one is getting me confused -- did you actually mean this or is there a typo and you meant of the **last** one?Brandabrandais
B
0

another Example:

Consider the statement

music:Symph3 music:dedicatedTo music:Napoleon

To make the statement above referable from within another RDF statement it is reified, i.e., re-phrased, using RDF syntax as follows.

_:s1  rdf:type       rdf:Statement.
_:s1  rdf:subject    music:Symph3.
_:s1  rdf:predicate  music:dedicatedTo.
_:s1  rdf:object     music:Napoleon.
Bohlin answered 11/12, 2018 at 18:18 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.