122123124125126127128129130131132
mGraph = tcManager.createMGraph(name); } Lock writeLock = mGraph.getLock().writeLock(); writeLock.lock(); try { mGraph.clear(); mGraph.addAll(triples); } finally { writeLock.unlock(); } }
205206207208209210211212213214215
} Lock writeLock = mGraph.getLock().writeLock(); writeLock.lock(); try { if (!newGraph && mode.equals("replace")) { mGraph.clear(); } mGraph.addAll(parsedGraph); } finally { writeLock.unlock(); }