Package org.openrdf.rdf2go

Examples of org.openrdf.rdf2go.RepositoryModelFactory


public class TestReportedIssues {

  @Test
  public void testUsingList() {

    RepositoryModelFactory repositoryModelFactory = new RepositoryModelFactory();
    Model model = repositoryModelFactory.createModel();
    model.open();

    URI a = new URIImpl("urn:test:a");
    URI b = new URIImpl("urn:test:b");
    List list = new List(model, "urn:test:list", true);
View Full Code Here


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());
View Full Code Here

  @Override
  public void start(BundleContext context) throws Exception {
   
    bc = context;
   
    this.factory = new RepositoryModelFactory();
    ServiceRegistration registration = bc.registerService(ModelFactory.class.getName(),
            this.factory, new Hashtable<String ,Object>());
    this.reference = registration.getReference();
  }
View Full Code Here

* Static binding for RDF2Go.
*/
public class StaticBinding {

  public static ModelFactory getModelFactory() {
    return new RepositoryModelFactory();
  }
View Full Code Here

TOP

Related Classes of org.openrdf.rdf2go.RepositoryModelFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.