Hi Peter, Thanks for your help. I have forked your JenaSesame repository and am trying it out with my code.
I have instantiated a Jena model from a remote OWLIM repository using JenaSesame.createModel(repositoryConnection), and tried to do a simple test using the model.listNameSpaces() method, with the result that after 3200 seconds I got a Java OutOfMemory error. I had given Eclipse 4GB to work with. All that to say, can you tell me more about how the JenaSesame.createModel(RepositoryConnection connection) method works? Does it populate a model with all of the statements in a OWLIM Sesame repository, or does it access them as needed? Thanks again, Alison On Tue, Jan 31, 2012 at 6:19 PM, Peter Ansell <[email protected]>wrote: > Hi Allison, > > I am not sure if there is the could try the JenaSesame library from > either my fork at https://github.com/ansell/JenaSesame or Andy > Seaborne https://github.com/afs/JenaSesame . I haven't quite completed > and tested the sesame-jena implementation but when I do I will send a > pull request back to Andys fork, but you shouldn't need to use > sesame-jena from what I can tell. > > The jena-sesame module which should be very similar in implementation > between my fork and Andys, (as opposed to the sesame-jena module) > enables the creation and use of either a Jena DatasetGraph or a Jena > Model as a wrapper around an existing Sesame RepositoryConnection. It > is very alpha software though, but all of the tests that exist pass. > Feel free to fork it and send changes back if you find bugs. > > Hope that helps, > > Peter > > On 1 February 2012 08:17, Alison Callahan <[email protected]> > wrote: > > Hello all, > > > > I am using the SPIN API 1.2.0 to execute SPIN rules using the > > SPINInferences.run(com.hp.hpl.jena.rdf.model.Model queryModel, > > > com.hp.hpl.jena.rdf.model.Model newTriples,SPINExplanations explanations, > List<SPINStatistics> statistics, > > boolean singlePass, ProgressMonitor monito) method. However, rather than > > having to load all of my SPIN rules/linked data/ontologies into a Jena > model > > (quite memory intensive) I would like to instead connect to an OWLIM > Sesame > > repository, as is done by TopBraid Composer. > > > > I am able to connect to an OWLIM Sesame repository using Jena using the > Jena > > DatasetGraph interface > > (see > http://owlim.ontotext.com/display/OWLIMv43/OWLIM-SE+Installation#OWLIM-SEInstallation-InstantiateOWLIMSEadapterusingtheprovidedAssembler > ), > > but it would defeat the purpose of connecting to an OWLIM Sesame > repository > > to then load the DatasetGraph into a Jena model to pass into > > SPINInferences.run(). > > > > Can anyone provide suggestions as to how to pass a Jena DatasetGraph, or > > otherwise connect to a Sesame repository such that I can use it with > > SPINInferences.run()? > > > > Thanks, > > > > Alison > > > > -- > > You received this message because you are subscribed to the Google > > Group "TopBraid Suite Users", the topics of which include Enterprise > > Vocabulary Network (EVN), TopBraid Composer, > > TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN. > > To post to this group, send email to > > [email protected] > > To unsubscribe from this group, send email to > > [email protected] > > For more options, visit this group at > > http://groups.google.com/group/topbraid-users?hl=en > > -- > You received this message because you are subscribed to the Google > Group "TopBraid Suite Users", the topics of which include Enterprise > Vocabulary Network (EVN), TopBraid Composer, > TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN. > To post to this group, send email to > [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/topbraid-users?hl=en > -- You received this message because you are subscribed to the Google Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Ensemble, SPARQLMotion and SPIN. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/topbraid-users?hl=en
