Package org.openrdf.sail.config

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


  }

  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

      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

  }

  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

Related Classes of org.openrdf.sail.config.SailFactory

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.