Package org.ontoware.rdf2go.exception

Examples of org.ontoware.rdf2go.exception.ModelRuntimeException


    try {
      GraphQueryResult graphQueryResult = this.connection.prepareGraphQuery(
              QueryLanguage.SPARQL, query).evaluate();
      return new GraphIterable(graphQueryResult, this);
    } catch(MalformedQueryException e) {
      throw new ModelRuntimeException(e);
    } catch(UnsupportedQueryLanguageException e) {
      throw new ModelRuntimeException(e);
    } catch(QueryEvaluationException e) {
      throw new ModelRuntimeException(e);
    } catch(RepositoryException e) {
      throw new ModelRuntimeException(e);
    }
  }
View Full Code Here


    try {
      GraphQueryResult graphQueryResult = this.connection.prepareGraphQuery(
              QueryLanguage.SPARQL, query).evaluate();
      return new GraphIterable(graphQueryResult, this);
    } catch(MalformedQueryException e) {
      throw new ModelRuntimeException(e);
    } catch(UnsupportedQueryLanguageException e) {
      throw new ModelRuntimeException(e);
    } catch(QueryEvaluationException e) {
      throw new ModelRuntimeException(e);
    } catch(RepositoryException e) {
      throw new ModelRuntimeException(e);
    }
  }
View Full Code Here

      try {
        GraphQueryResult graphQueryResult = this.connection.prepareGraphQuery(ql, query)
                .evaluate();
        return new GraphIterable(graphQueryResult, this);
      } catch(MalformedQueryException e) {
        throw new ModelRuntimeException(e);
      } catch(UnsupportedQueryLanguageException e) {
        throw new ModelRuntimeException(e);
      } catch(QueryEvaluationException e) {
        throw new ModelRuntimeException(e);
      } catch(RepositoryException e) {
        throw new ModelRuntimeException(e);
      }
    }
  }
View Full Code Here

    try {
      CloseableIteration<? extends org.openrdf.model.Statement,RepositoryException> statements = this.connection
              .getStatements(null, null, null, true, this.openRdfContext);
      return new StatementIterator(statements, this);
    } catch(RepositoryException e) {
      throw new ModelRuntimeException(e);
    }
  }
View Full Code Here

  public long size() throws ModelRuntimeException {
    assertModel();
    try {
      return this.connection.size(this.openRdfContext);
    } catch(RepositoryException e) {
      throw new ModelRuntimeException(e);
    }
  }
View Full Code Here

      // unlock this model
      this.locked = false;
    } catch(RepositoryException e) {
      // TODO: a LockException would be more appropriate IMHO but this
      // requires a change to the RDF2Go API
      throw new ModelRuntimeException(e);
    }
  }
View Full Code Here

   
    assertModel();
    try {
      this.connection.rollback();
    } catch(RepositoryException e) {
      throw new ModelRuntimeException(e);
    }
  }
View Full Code Here

          ModelRuntimeException {
    assertModel();
    try {
      this.connection.add(stream, baseURI, format, this.openRdfContext);
    } catch(RDFParseException e) {
      throw new ModelRuntimeException(e);
    } catch(RepositoryException e) {
      throw new ModelRuntimeException(e);
    }
  }
View Full Code Here

    } catch(RDFParseException e) {
      IOException ioe = new IOException();
      ioe.initCause(e);
      throw ioe;
    } catch(RepositoryException e) {
      throw new ModelRuntimeException(e);
    }
  }
View Full Code Here

  public void writeTo(RDFWriter writer) throws ModelRuntimeException {
    assertModel();
    try {
      this.connection.exportStatements(null, null, null, false, writer, this.openRdfContext);
    } catch(RepositoryException e) {
      throw new ModelRuntimeException(e);
    } catch(RDFHandlerException e) {
      throw new ModelRuntimeException(e);
    }
  }
View Full Code Here

TOP

Related Classes of org.ontoware.rdf2go.exception.ModelRuntimeException

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.