Package org.openrdf.store

Examples of org.openrdf.store.StoreConfigException


  public void validate()
    throws StoreConfigException
  {
    if (type == null) {
      throw new StoreConfigException("No type specified for repository implementation");
    }
  }
View Full Code Here


      if (type != null) {
        setType(type);
      }
    }
    catch (ModelException e) {
      throw new StoreConfigException(e.getMessage(), e);
    }
  }
View Full Code Here

      if (type != null) {
        RepositoryFactory factory = RepositoryRegistry.getInstance().get(type);

        if (factory == null) {
          throw new StoreConfigException("Unsupported repository type: " + type);
        }

        RepositoryImplConfig implConfig = factory.getConfig();
        implConfig.parse(model, implNode);
        return implConfig;
      }

      return null;
    }
    catch (ModelException e) {
      throw new StoreConfigException(e.getMessage(), e);
    }
  }
View Full Code Here

  public void validate()
    throws StoreConfigException
  {
    super.validate();
    if (delegate == null) {
      throw new StoreConfigException("No delegate specified for " + getType() + " repository");
    }
    delegate.validate();
  }
View Full Code Here

      if (delegateNode != null) {
        setDelegate(create(model, delegateNode));
      }
    }
    catch (ModelException e) {
      throw new StoreConfigException(e.getMessage(), e);
    }
  }
View Full Code Here

  public void validate()
    throws StoreConfigException
  {
    super.validate();
    if (delegate == null) {
      throw new StoreConfigException("No delegate specified for " + getType() + " Sail");
    }
    delegate.validate();
  }
View Full Code Here

      if (delegateNode != null) {
        setDelegate(SailConfigUtil.parseRepositoryImpl(model, delegateNode));
      }
    }
    catch (ModelException e) {
      throw new StoreConfigException(e.getMessage(), e);
    }
  }
View Full Code Here

      request.acceptTupleQueryResult();
      execute(request);
      request.readTupleQueryResult(handler);
    }
    catch (IOException e) {
      throw new StoreConfigException(e);
    }
    catch (NoCompatibleMediaType e) {
      throw new StoreConfigException(e);
    }
    catch (QueryResultParseException e) {
      throw new StoreConfigException(e);
    }
    finally {
      request.release();
    }
  }
View Full Code Here

      request.accept(type);
      execute(request);
      return request.read(type);
    }
    catch (IOException e) {
      throw new StoreConfigException(e);
    }
    catch (NoCompatibleMediaType e) {
      throw new StoreConfigException(e);
    }
    catch (NumberFormatException e) {
      throw new StoreConfigException(e);
    }
    catch (QueryResultParseException e) {
      throw new StoreConfigException(e);
    }
    catch (RDFParseException e) {
      throw new StoreConfigException(e);
    }
    finally {
      request.release();
    }
  }
View Full Code Here

    try {
      request.send(instance);
      execute(request);
    }
    catch (IOException e) {
      throw new StoreConfigException(e);
    }
    finally {
      request.release();
    }
  }
View Full Code Here

TOP

Related Classes of org.openrdf.store.StoreConfigException

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.