RDF2Go and Sesame adapter: Problems with model.open()

29 views
Skip to first unread message

muhazz

unread,
Dec 4, 2012, 8:18:19 AM12/4/12
to semw...@googlegroups.com
Hello all,

I am encountering a problem with the Sesame Adapter of RDF2Go when opening a Model created by the ModelFactory.
The following code prints "false", which means the model is not open after the call model.open().

        RepositoryModelFactory rmf = new RepositoryModelFactory();
        RDF2Go.register( rmf );
        ModelFactory modelFactory = RDF2Go.getModelFactory();
        Model model = modelFactory.createModel();
        model.open();
        System.out.println(model.isOpen());

I am using  openrdf-rdf2go-4.5.1 and rdf2go.api-4.8.1.jar.

Any help would a very much appreciated.

Regards,
muhazz


Max Völkel

unread,
Dec 4, 2012, 10:53:32 AM12/4/12
to muhazz, semw...@googlegroups.com
Hi, I just tried to reproduce your problem.
However, using as rdfgo implementation this one

<dependency>
<groupId>org.semweb4j</groupId>
<artifactId>rdf2go.impl.sesame23</artifactId>
<version>4.8.1</version>
<scope>runtime</scope>
</dependency>

my test runs just fine. Here is the test I used:
--

package org.ontoware.rdfreactor.generator;


import static org.junit.Assert.assertTrue;


import org.junit.Test;

import org.ontoware.rdf2go.ModelFactory;

import org.ontoware.rdf2go.RDF2Go;

import org.ontoware.rdf2go.model.Model;

import org.openrdf.rdf2go.RepositoryModelFactory;



public class TestKnownBugs {

    

    @Test

    public void test() {

        RepositoryModelFactory rmf = new RepositoryModelFactory();

        RDF2Go.register(rmf);

        ModelFactory modelFactory = RDF2Go.getModelFactory();

        Model model = modelFactory.createModel();

        model.open();

        assertTrue(model.isOpen());

    }

    

}

---

I suggest you simply upgrade to a more modern sesame/openrdf implementation.


Kind Regards,

Max





Regards,
muhazz


--
You received this message because you are subscribed to the Google Groups "RDF2Go and RDFReactor (part of semweb4j)" group.
To view this discussion on the web visit https://groups.google.com/d/msg/semweb4j/-/mQpnC3YA6uoJ.

To post to this group, send email to semw...@googlegroups.com.
To unsubscribe from this group, send email to semweb4j+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/semweb4j?hl=en.



--
Dr. Max Völkel, Calpano


  
Aufgaben koordineren. Einfach und verlässlich. Kostenlos.
Calpano testen

 Bekannt aus Brand Eins, TechFounders, CIE, BarCamp, AKWM, CloudZone 



Reply all
Reply to author
Forward
0 new messages