[Owlim-discussion] Context mixing with Jena API and OWLIM-SE
Hello, I am using OWLIM-SE 5.2.5331 with both Sesame 2.6.8 and 2.6.9, and I am having troubles with storing in different contexts. I am using Jena API for accesing the repository, connecting remotely like this: RepositoryManager repoManager = new RemoteRepositoryManager(serverUrl); repoManager.initialize(); Repository repo = repoManager.getRepository(repositoryId); RepositoryConnection repoConnection = repo.getConnection(); repoConnection.setAutoCommit(true); SesameDataset dataset = new SesameDataset(repoConnection); And then, for each context, I do: ModelFactory.createModelForGraph(dataset.getGraph(Node.createURI(ctxURI))); But it seems it uses only the default graph (default context), all data are stored in one heap. However, it works well with remote connection just to Sesame (without OWLIM). Am I doing anything wrong? Thank you for any help, Marek Smid -- Ing. Marek Smid Katedra kybernetiky CVUT FEL Tel: +420 22435 7410 E-mail: smidm...@fel.cvut.cz ___ Owlim-discussion mailing list Owlim-discussion@ontotext.com http://ontomail.semdata.org/cgi-bin/mailman/listinfo/owlim-discussion
[Owlim-discussion] Exception NoSuchFieldError: NQUADS
Hello, I am just starting using OWLIM-SE for a project at Czech Technical University in Prague, and I ran into an exception: When I try to access a repository (on Sesame 2.6.2) configured to use OWLIM with the libraries of version 5.2.5331 attached, it gives me the following stacktrace: java.lang.NoSuchFieldError: NQUADS com.ontotext.trree.nquads.NQuads.clinit(Unknown Source) com.ontotext.trree.OwlimSchemaRepository.clinit(Unknown Source) com.ontotext.trree.config.OWLIMSailFactory.getSail(Unknown Source) Any help would be appreciated. Regards, Marek Smid ___ Owlim-discussion mailing list Owlim-discussion@ontotext.com http://ontomail.semdata.org/cgi-bin/mailman/listinfo/owlim-discussion
Re: [Owlim-discussion] Exception NoSuchFieldError: NQUADS
Hello, sorry for bothering, my mistake, it was because of Sesame version, it needs 2.6.8. Regards, Marek On 08/24/2012 11:41 AM, Ing. Marek Smid wrote: Hello, I am just starting using OWLIM-SE for a project at Czech Technical University in Prague, and I ran into an exception: When I try to access a repository (on Sesame 2.6.2) configured to use OWLIM with the libraries of version 5.2.5331 attached, it gives me the following stacktrace: java.lang.NoSuchFieldError: NQUADS com.ontotext.trree.nquads.NQuads.clinit(Unknown Source) com.ontotext.trree.OwlimSchemaRepository.clinit(Unknown Source) com.ontotext.trree.config.OWLIMSailFactory.getSail(Unknown Source) Any help would be appreciated. Regards, Marek Smid ___ Owlim-discussion mailing list Owlim-discussion@ontotext.com http://ontomail.semdata.org/cgi-bin/mailman/listinfo/owlim-discussion -- Ing. Marek Smid Katedra kybernetiky CVUT FEL Tel: +420 22435 7410 E-mail: smidm...@fel.cvut.cz ___ Owlim-discussion mailing list Owlim-discussion@ontotext.com http://ontomail.semdata.org/cgi-bin/mailman/listinfo/owlim-discussion
[Owlim-discussion] Problem with querying OWLIM-SE via Jena API
Hello, I would like to ask a question about OWLIM-SE. I downloaded the trial version (we plan to use the full one for a project), and I tried to use its Jena API. I built a NetBeans project, included all necessary libraries, and created a simple test. It consists of a TTL of a repository, creation of LocalRepositoryManager, SesameDataset and Jena Model - all based on provided examples. I loaded it with an extract of DBpedia in a triple file. All this seem to work fine, since when I dump the data via model.listStatements(), the data are there. But when I try to use SPARQL query, it fails. I load a simple query with QueryFactory, obtain QueryExecution via QueryExecutionFactory, and execute it with execSelect(). All OK so far. But since ResultSet has hasNext()==true, I try to obtain a solution with ResultSet nextSolution(), and this gives the exception: Exception in thread main java.lang.InstantiationError: com.hp.hpl.jena.sparql.engine.binding.BindingMap at com.ontotext.jena.SesameOpExecutor$OwlimQueryIter$1.moveToNextBinding(Unknown Source) at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.nextBinding(QueryIteratorBase.java:152) at com.hp.hpl.jena.sparql.engine.iterator.QueryIterRepeatApply.moveToNextBinding(QueryIterRepeatApply.java:95) at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.nextBinding(QueryIteratorBase.java:152) at com.hp.hpl.jena.sparql.engine.iterator.QueryIterConvert.moveToNextBinding(QueryIterConvert.java:71) at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.nextBinding(QueryIteratorBase.java:152) at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorWrapper.moveToNextBinding(QueryIteratorWrapper.java:43) at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.nextBinding(QueryIteratorBase.java:152) at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorWrapper.moveToNextBinding(QueryIteratorWrapper.java:43) at com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase.nextBinding(QueryIteratorBase.java:152) at com.hp.hpl.jena.sparql.engine.ResultSetStream.nextBinding(ResultSetStream.java:84) at com.hp.hpl.jena.sparql.engine.ResultSetStream.nextSolution(ResultSetStream.java:102) How can I get it working, please? Am I doing something wrong? Thank you for any help, Marek Smid Department of Cybernetics Faculty of Electrical Engineering Czech Technical University in Prague ___ Owlim-discussion mailing list Owlim-discussion@ontotext.com http://ontomail.semdata.org/cgi-bin/mailman/listinfo/owlim-discussion