Examples of SailFactory


Examples of net.fortytwo.twitlogic.persistence.SailFactory

    }

    // Over the LAN: 6 t/s
    // Locally: 7 t/s
    private void testAllegroGraphPersister() throws Exception {
        SailFactory f = new AGRepositorySailFactory(TwitLogic.getConfiguration(), false);
        Sail sail = f.makeSail();
        sail.initialize();

        try {
            TweetStore store = new TweetStore(sail);
            store.initialize();
View Full Code Here

Examples of org.openrdf.sail.config.SailFactory

      if (sailImplNode != null) {
        Literal typeLit = model.filter(sailImplNode, SAILTYPE, null).objectLiteral();

        if (typeLit != null) {
          SailFactory factory = SailRegistry.getInstance().get(typeLit.getLabel());

          if (factory == null) {
            throw new StoreConfigException("Unsupported Sail type: " + typeLit.getLabel());
          }

          sailImplConfig = factory.getConfig();
          sailImplConfig.parse(model, sailImplNode);
        }
      }
    }
    catch (ModelException e) {
View Full Code Here

Examples of org.openrdf.sail.config.SailFactory

  }

  private Sail createSail(SailImplConfig config)
    throws StoreConfigException
  {
    SailFactory sailFactory = SailRegistry.getInstance().get(config.getType());

    if (sailFactory != null) {
      return sailFactory.getSail(config);
    }

    throw new StoreConfigException("Unsupported Sail type: " + config.getType());
  }
View Full Code Here

Examples of org.openrdf.sail.config.SailFactory

      if (sailImplNode != null) {
        Literal typeLit = GraphUtil.getOptionalObjectLiteral(graph, sailImplNode, SAILTYPE);

        if (typeLit != null) {
          SailFactory factory = SailRegistry.getInstance().get(typeLit.getLabel());

          if (factory == null) {
            throw new RepositoryConfigException("Unsupported Sail type: " + typeLit.getLabel());
          }

          sailImplConfig = factory.getConfig();
          sailImplConfig.parse(graph, sailImplNode);
        }
      }
    }
    catch (GraphUtilException e) {
View Full Code Here

Examples of org.openrdf.sail.config.SailFactory

  }

  private Sail createSail(SailImplConfig config)
    throws RepositoryConfigException, SailConfigException
  {
    SailFactory sailFactory = SailRegistry.getInstance().get(config.getType());

    if (sailFactory != null) {
      return sailFactory.getSail(config);
    }

    throw new RepositoryConfigException("Unsupported Sail type: " + config.getType());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.