On 14/11/12 22:23, Scott Streit wrote:
I am storing jena statements in Solr
I easily create statements
Now I have statements stored in Solr in the form of
S P O RP1 RP2 RP3
where RP1. RP2 are reified property 1, refied property 2, etc.
Now when I pull it off I want to create a statement and a reified
statement that adheres to the Jena classes.
So I can do a model.createStatement(S,P,O)
then I reify the statement and add properties. That is fine.
The issue is when I go to write it to Solr.
I can get the S P O from the Statement,
Then I get the properties from the reified statement,
and write it as above.
My question is....
I get the N-Triple but I do not see how it corresponds to what is in the
refied statement, namely in the area of the reference to the statement,
which I do not see in memory.
So is it sufficient to get
SPO for a Statement, reify it and not care about the reference to the
originating statement and that will work?
Don't know what you mean by "reference to the originating statement".
A reified statement is simply a resource with a subject, predicate and
object value. No more and no less. There's no hidden magic pointers. If
you want to say that a reified statement came from some document
<http://example.com/my.rdf> then you have to explicitly add that to the
reified statement (e.g. using dct:source).
Dave