Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- List<Triple> triplesList = simulationInstanceProcessManagerTO.getTripleList();
- String namedGraph = simulationInstanceProcessManagerTO.getNamedGraph();
- VirtGraph virtGraph = null;
- try{
- virtGraph = new VirtGraph(" <"+namedGraph+"> ",virtDataset.getGraphUrl(),virtDataset.getGraphUser(),virtDataset.getGraphPassword());
- for (Triple triple : triplesList) {
- virtGraph.performAdd(triple);
- }
- }catch(Exception e){
- System.err.println(e.getStackTrace());
- }finally{
- if(virtGraph!=null && !virtGraph.isClosed()){
- virtGraph.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement