Jena를 사용하여 삭제 쿼리를 실행하려고하는데 실행 중에 오류가 발생합니다. 두 가지 방법을 시도했지만 두 경우 모두 동일한 오류가 발생합니다. 저는 jena 2.7.3과 데이터베이스 거장 6.01.3을 사용하고 있습니다.jena를 사용하여 Sparql 삭제 쿼리를 실행하는 방법?
코드 1 :
String queryString; // deleteQuery.
Model m = VirtModel.openDatabaseModel(file, connectionURL, username, password);
UpdateAction.parseExecute(queryString, m);
코드 2 :
String queryString; // deleteQuery
Model m = VirtModel.openDatabaseModel(file, connectionURL, username, password);
GraphStore gs = GraphStoreFactory.create();
gs.setDefaultGraph(m.getGraph());
UpdateRequest ur = UpdateFactory.create(queryString);
UpdateAction.execute(ur.getOperations().get(0),gs);
오류 :이 오류를 받고 있어요 왜
이java.lang.InstantiationError: com.hp.hpl.jena.sparql.engine.binding.BindingMap at virtuoso.jena.driver.VirtuosoQueryEngine$VQueryIterator.extractRow(Unknown Source) at virtuoso.jena.driver.VirtuosoQueryEngine$VQueryIterator.moveForward(Unknown Source) at virtuoso.jena.driver.VirtuosoQueryEngine$VQueryIterator.hasNextBinding(Unknown Source) at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext(QueryIteratorBase.java:108) at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorWrapper.hasNextBinding(QueryIteratorWrapper.java:40) at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.hasNext(QueryIteratorBase.java:108) at org.openjena.atlas.data.AbstractDataBag.addAll(AbstractDataBag.java:74) at com.hp.hpl.jena.sparql.modify.UpdateEngineWorker.visit(UpdateEngineWorker.java:348) at com.hp.hpl.jena.sparql.modify.request.UpdateModify.visit(UpdateModify.java:97) at com.hp.hpl.jena.sparql.modify.UpdateEngineMain.execute(UpdateEngineMain.java:40) at com.hp.hpl.jena.sparql.modify.UpdateProcessorBase.execute(UpdateProcessorBase.java:56) at com.hp.hpl.jena.update.UpdateAction.execute$(UpdateAction.java:330) at com.hp.hpl.jena.update.UpdateAction.execute(UpdateAction.java:323) at com.hp.hpl.jena.update.UpdateAction.execute(UpdateAction.java:283) at com.hp.hpl.jena.update.UpdateAction.execute(UpdateAction.java:237) at com.tcs.ignite.plc.DAOs.ConceptDAO.deleteConceptByURI(ConceptDAO.java:75) at com.tcs.ignite.plc.utilities.ContextListener.contextInitialized(ContextListener.java:35) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723) at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226) at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662)
사람이 알고 있나요?
[이 표시는 (http://www.mail-archive.com/[email protected]/msg01415.html)는 – Shubhajit
주석 참조하지 오조를 OWLIM한다. – AndyS