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

Examples of com.hp.hpl.jena.rdf.model.ModelMaker.openModel()


    IDBConnection conn = new DBConnection(dbUrl, userName, password, "MySQL");

    // create a model maker with the given connection parameters
    ModelMaker maker = ModelFactory.createModelRDBMaker(conn);

    ModelRDB model = (ModelRDB) maker.openModel(modelName);
    InputStream file = new FileInputStream(rdfFileName);
    model.read(file,null,"N3");
    file.close();
  }
 
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.