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)

Reply via email to