Advertisement
jbjares

code

Oct 28th, 2014
439
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.59 KB | None | 0 0
  1.             List<Triple> triplesList = simulationInstanceProcessManagerTO.getTripleList();
  2.             String namedGraph = simulationInstanceProcessManagerTO.getNamedGraph();
  3.             VirtGraph virtGraph = null;
  4.             try{
  5.                 virtGraph = new VirtGraph(" <"+namedGraph+"> ",virtDataset.getGraphUrl(),virtDataset.getGraphUser(),virtDataset.getGraphPassword());
  6.                 for (Triple triple : triplesList) {
  7.                         virtGraph.performAdd(triple);
  8.                 }          
  9.             }catch(Exception e){
  10.                 System.err.println(e.getStackTrace());
  11.             }finally{
  12.                 if(virtGraph!=null && !virtGraph.isClosed()){
  13.                     virtGraph.close();                 
  14.                 }
  15.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement