Newer versions of Rya use the Rya Details table to keep track of this sort of 
metadata.

- Kevin

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of John Smith
Sent: Tuesday, January 17, 2017 12:20 PM
To: [email protected]
Subject: On Storing Rya Metadata in the rya_spo table.

When I perform a scan of the rya_spo table after adding a SINGLE triple, I see 
that Rya adds TWO triples, the one I wanted to add and one denoting the version 
of Rya. e.g.

rya_spo> scan

INSERT DATA { 
<https://urldefense.proofpoint.com/v2/url?u=http-3A__acme.com_people_Mike&d=CwIBaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=F2yL1qtCQ_8QkxBRIcnBCmOspnR-2OEdiXfx4UDEJmU&m=qONz3ysNOVB-pj5N34NddggiKS8dEp1lW3dleNbPNKg&s=Qj2CE5OU2Kd7J_TI_vbvn8rBQ9H9kNRCV5rIb6LIQ_g&e=
 > 
<https://urldefense.proofpoint.com/v2/url?u=http-3A__acme.com_actions_likes&d=CwIBaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=F2yL1qtCQ_8QkxBRIcnBCmOspnR-2OEdiXfx4UDEJmU&m=qONz3ysNOVB-pj5N34NddggiKS8dEp1lW3dleNbPNKg&s=7nLrYW2h4_TJLRGsknwSLElEiU0rOWCq0aEBoTm9Oxo&e=
 > 
<https://urldefense.proofpoint.com/v2/url?u=http-3A__acme.com_people_John&d=CwIBaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=F2yL1qtCQ_8QkxBRIcnBCmOspnR-2OEdiXfx4UDEJmU&m=qONz3ysNOVB-pj5N34NddggiKS8dEp1lW3dleNbPNKg&s=JQhITAdCx3R_9eu35E5N-aIdUBEtseYBtZ5NNdZqkuA&e=
 > . }

rya_spo> scan
https://urldefense.proofpoint.com/v2/url?u=http-3A__acme.com_people_Mike&d=CwIBaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=F2yL1qtCQ_8QkxBRIcnBCmOspnR-2OEdiXfx4UDEJmU&m=qONz3ysNOVB-pj5N34NddggiKS8dEp1lW3dleNbPNKg&s=Qj2CE5OU2Kd7J_TI_vbvn8rBQ9H9kNRCV5rIb6LIQ_g&e=
 
\x00https://urldefense.proofpoint.com/v2/url?u=http-3A__acme.com_actions_likes&d=CwIBaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=F2yL1qtCQ_8QkxBRIcnBCmOspnR-2OEdiXfx4UDEJmU&m=qONz3ysNOVB-pj5N34NddggiKS8dEp1lW3dleNbPNKg&s=7nLrYW2h4_TJLRGsknwSLElEiU0rOWCq0aEBoTm9Oxo&e=
 
\x00https://urldefense.proofpoint.com/v2/url?u=http-3A__acme.com_people_John&d=CwIBaQ&c=Nwf-pp4xtYRe0sCRVM8_LWH54joYF7EKmrYIdfxIq10&r=F2yL1qtCQ_8QkxBRIcnBCmOspnR-2OEdiXfx4UDEJmU&m=qONz3ysNOVB-pj5N34NddggiKS8dEp1lW3dleNbPNKg&s=JQhITAdCx3R_9eu35E5N-aIdUBEtseYBtZ5NNdZqkuA&e=
 \x01\x02
: []
urn:org.apache.rya/2012/05#rts\x00urn:org.apache.rya/2012/05#version\x003.0.0\x01\x03
: []


I suppose keeping track of metadata about the version of Rya that was used to 
persist data into Accumulo is useful, but shouldn't this metadata be stored in 
a different table?  (like a metadata table, or something?).  I imagine users 
will be surprised if triples they didn't add appear in their store, and 
surprising users is a code smell.  What are your thoughts?

Reply via email to