set = new VirtGraph(GraphIri, "jdbc:virtuoso://" + uriServer + ":" + portJDBC + "", db_user, db_pass); vd = new VirtDataSource("jdbc:virtuoso://" + uriServer + ":" + portJDBC + "", db_user, db_pass); System.out.println("Start inference!"); Reasoner reasoner = PelletReasonerFactory.theInstance().create(); reasoner = reasoner.bindSchema(set); infModel = ModelFactory.createInfModel(reasoner, modelVirtuoso); System.out.println("Stop inference!"); Model m2 = vd.getNamedModel(GraphIri); Model inferido = infModel.difference(m2); m2.add(inferido);
Thursday, January 17, 2013
Make inference with pellet in Virtuoso
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment