marklogic / marklogic-jena

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

Can perform CRUD after close of dataset #4

Closed grechaw closed 9 years ago

grechaw commented 9 years ago

From @kkanthet

adminClient = DatabaseClientFactory.newClient("localhost", restPort, dbName, "rest-admin", "x", Authentication.DIGEST);
markLogicDatasetGraphAdmin = MarkLogicDatasetGraphFactory.createDatasetGraph(adminClient);
Triple triple = new Triple(NodeFactory.createURI("s5"), NodeFactory.createURI("p5"), NodeFactory.createURI("o5"));
g1.add(triple);
Node n1 = NodeFactory.createURI("http://example.org/jenaAdd");
markLogicDatasetGraphAdmin.addGraph(n1, g1);
markLogicDatasetGraphAdmin.close();
Graph graphClosed = markLogicDatasetGraphAdmin.getGraph(n1);
   System.out.println(graphClosed.toString());

returns Graph .

Expected:: should not be able to perform any CRUD after close() of dataset.

grechaw commented 9 years ago

I've got a fix in for this one done locally

kkanthet commented 9 years ago

Verified that we cannot perform CRUD after close of dataset .