Even if you do end up with duplicate triples, SPARQL acts as though duplicates 
are the same triple.
(Modulo the addition of graph { } syntax)

Charles

________________________________
From: [email protected] 
[[email protected]] on behalf of Ed Outhwaite 
[[email protected]]
Sent: Monday, October 03, 2016 5:27 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] duplicate triplestore files when loaded 
using rdf and mlcp

Hi Rajesh,

Are you sure that there are duplicate triples ?

For performance reasons, the triples are split into blocks (currently around 
100 triples), with each block being loaded into its own document.

See the semantics guide for more information 
https://docs.marklogic.com/guide/semantics/loading#id_81259

Regards,

Ed Outhwaite
Senior Consultant

From: 
<[email protected]<mailto:[email protected]>>
 on behalf of Rajesh Kumar <[email protected]<mailto:[email protected]>>
Reply-To: MarkLogic Developer Discussion 
<[email protected]<mailto:[email protected]>>
Date: Monday, October 3, 2016 at 12:46 PM
To: "[email protected]<mailto:[email protected]>" 
<[email protected]<mailto:[email protected]>>
Subject: [MarkLogic Dev General] duplicate triplestore files when loaded using 
rdf and mlcp

Hi Team,

When using sem:rdf-load and loading the turtle ( .ttl ) file , i observed 
multiple triple store files are getting created and the same with mlcp as well. 
But my Sparql query is working as expected eventhough there ae multiple 
triplestore files exist in database ( I guess that will be taken care by triple 
store.)

Load query:

import module namespace sem = "http://marklogic.com/semantics";
      at "/MarkLogic/semantics.xqy";

sem:rdf-load(
    'D:\rajesh\poc\pearson_HED\abc.ttl',
    ("turtle","override-graph=http://www.abc.org/ontologies/abc";),
    (),
    xdmp:default-permissions()
    )

Kindly let me know is there any way that we can restrict duplicate files in db. 
Tried with both graph and default options as well.

Thanks & Regards,
Rajesh
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to