Hi Robert,

If you are only interested in running SPARQL, nor want to annotate triples, 
using managed triples makes most sense. If you are using document data as well, 
then you could still consider not embedding them in the docs. A second option 
could be to store the triples in document properties, instead of the body.

I don’t think there are performance implications. The triple index will be 
equally fast, and I have not heard that ingest speed of the triples will be 
different because of this. I think it mostly comes down to what helps your 
application best, which solution to select.

Regarding node-replace, that sounds like you are working with triple data 
embedded in json. Consider using a triples property that has an array-node with 
triple objects..

Kind regards,
Geert

From: 
<[email protected]<mailto:[email protected]>>
 on behalf of "Robert Del Toro Jr." 
<[email protected]<mailto:[email protected]>>
Reply-To: MarkLogic Developer Discussion 
<[email protected]<mailto:[email protected]>>
Date: Wednesday, November 18, 2015 at 7:21 AM
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: [MarkLogic Dev General] Managed vs Unmanaged Triples

Could someone please explain the pros and cons of using managed vs unmanaged 
triples? I understand that with managed triples, I can update or delete the 
triple without having to update the document, and with unmanaged triples I can 
include extra information that I could then search with, however, when trying 
to use triples stored in my documents I seem to run into complications. For 
instance, when I try to read my document from an API, my triples come with it. 
So in order to ensure that the user does not have access to the triples, I have 
to use a transform with every request to remove the triples. Also, when trying 
to update a document with more than one embedded triple using 
'xdmp:node-replace', I get the error 'XDMP-CHILDDUPNAME: Object nodes cannot 
have two children with the same name'. I'm assuming because I have multiple 
nodes with the name 'triple'. Since using managed triples removes the ability 
to add meta-data to the triples, what are the advantages? (Speed?)

Robert
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to