Package com.hp.hpl.jena.rdf.model

Examples of com.hp.hpl.jena.rdf.model.Model.commit()


        JenaGraph jenaGraph = new JenaGraph(graph);
        Model model = ModelFactory.createModelForGraph(jenaGraph);
        model.read(bais, ontologyURI);

        if (model.supportsTransactions()) {
            model.commit();
        }
    }

    private void deleteModel(String ontologyURI) {
        tcManager.deleteTripleCollection(new UriRef(ontologyURI));
View Full Code Here


   
    Model namedModel = this.dataset.getNamedModel(name);
    namedModel.removeAll();
    namedModel.add(m.listStatements());
    namedModel.setNsPrefixes(m.getNsPrefixMap());
    namedModel.commit();
    TDB.sync(this.dataset);
  }
 
  /**
   * returns the union of all named models.
View Full Code Here

                        // save model
                        Model m = SDBFactory.connectDefaultModel(store) ;              
                        m.begin();
                        m.removeAll();
                        m.add(model);
                        m.commit();

                    } catch (Exception e) {
                        System.out.println( "\nFailed on iteration " + i);
                        e.printStackTrace();
                        throw e;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.