marklogic / marklogic-jena

Adapter for using MarkLogic with the Jena RDF Framework
Other
5 stars 11 forks source link

RDFDataMgr.read(markLogicDatasetGraph, "file.nt" Lang.NTRIPLES ) inserts two sets of triples into ML DB #1

Closed grechaw closed 9 years ago

grechaw commented 9 years ago

Originally submitted by @kkanthet

When we read triples into MarklogicDataset , there are two sets of tripeles/quads inserted into DB and also is noticeably slow for a file with one triple in it.

MarkLogicDatasetGraph markLogicDatasetGraph = MarkLogicDatasetGraphFactory.createDatasetGraph(writerClient); RDFDataMgr.read(markLogicDatasetGraphWriter, "/testData/file.nt", Lang.NTRIPLES );

where file.nt has :: <#electricVehicle2> http://www.w3.org/1999/02/22-rdf-syntax-ns#type http://people.aifb.kit.edu/awa/2011/smartgrid/schema/smartgrid#ElectricVehicle .

grechaw commented 9 years ago

Good catch -- this is fixed.

kkanthet commented 9 years ago

Verified that no duplicates are inserted .