Hi Hugh, 1) I checked VirtuosoTest.java again. Test 1 passes only if the graph "http://demo.openlinksw.com/demo#this" is already in the DB. I oversaw this in my last run. Is this maybe intended? Test 4 passes in the first run, but fails when re-running the tests (the tupleQuery in test 4 returns 1 result, but the utf8 string doesn't equal the original). After restarting Virtuoso, test 4 passes again. 2) Attached you find my test programm that throws the AbtractMethodError. You need Elmo1.4 in your build path to run it. Data in Virtuoso are not required. Can you reproduce the exception in your environment? Thanks, Mirko |
SesameTest.java
Description: Binary data
--------------- import org.openrdf.concepts.rdfs.Resource; import org.openrdf.elmo.ElmoModule; import org.openrdf.elmo.annotations.rdf; import org.openrdf.elmo.sesame.SesameManager; import org.openrdf.elmo.sesame.SesameManagerFactory; import org.openrdf.repository.Repository; import org.openrdf.repository.RepositoryException; import virtuoso.sesame2.driver.VirtuosoRepository; public class SesameTest { public static void main(String[] args) { Repository rep = new VirtuosoRepository("jdbc:virtuoso://localhost:1111","dba","dba"); try { rep.initialize(); ElmoModule module = new ElmoModule(); module.addRole(TestData.class, "http://foo.org/TestData"); SesameManagerFactory factory = new SesameManagerFactory(module, rep); SesameManager manager = factory.createElmoManager(); Iterable<TestData> users = manager.findAll(TestData.class); users.iterator(); // java.lang.AbstractMethodError: virtuoso.sesame2.driver.VirtuosoRepositoryConnection$1.setMaxQueryTime(I)V rep.getConnection().close(); } catch (RepositoryException e) { e.printStackTrace(); } } @rdf("http://foo.org/TestData") public interface TestData extends Resource{ } } ------------------- Am 27.04.2009 um 12:20 schrieb Hugh Williams:
|