Chris,

When a extended a statement to an ExtendedStatement which I added a
property of reificationId.  I then put the ExtendedStatement in the model.
Unfortunately, when I pulled back the statement from the model, it was a
statement, not an extended statement.

I could use a way to uniquely identity a Jena Statement.

Any ideas?

Scott


On Wed, Nov 28, 2012 at 5:45 AM, Chris Dollin
<[email protected]>wrote:

> On Tuesday, November 27, 2012 04:23:40 PM Scott Streit wrote:
> > I am using solr as a store for Jena.  Works fine until I try reification.
> >
> > I need a way to take a statement (SPO) and have an id for it.
>
> Making one up isn't enough? Are you hoping to find specific
> Statement [objects] from some definitive handle?
>
> [I don't speak solr but I do speak Jena.]
>
> > Then I can use the id, for my reification.
> >
> > Is there any way to store an id in a java Statement, or to get on from a
> > Statement?
>
> No (assuming "java Statement" means "Jena Statement"). Statements
> don't have built-in identifiers.
>
> > In essence, I am looking for a surrogate key for a statement.
>
> You could toString() the statement, or concatenate with suitable
> punctuation the toString()s of the S P and O, or hash the S P and O
> with a suitable hashing method.
>
> It depends on what you're hoping to achieve with reification.
>
> Chris
>
> --
> "I don't want to know what the Structuralists think! I want     /Archer's
> Goon/
>  to know what YOU think!"
>
> Epimorphics Ltd, http://www.epimorphics.com
> Registered address: Court Lodge, 105 High Street, Portishead, Bristol BS20
> 6PT
> Epimorphics Ltd. is a limited company registered in England (number
> 7016688)
>
>


-- 
"If you are lucky enough to have lived in Paris as a young man, then
wherever you go for the rest of your life, it stays with you, for Paris is
a moveable feast." -  Ernest Hemingway

www.scottstreit.com

Reply via email to