Package org.openrdf.query

Examples of org.openrdf.query.UnsupportedQueryLanguageException


   *         If the supplied query language is not supported.
   */
  public BooleanQuery prepareBooleanQuery(QueryLanguage language, final String query, String baseURI) throws RepositoryException, MalformedQueryException {

    if (language != QueryLanguage.SPARQL)
      throw new UnsupportedQueryLanguageException(" : Only SPARQL queries are supported");

    BooleanQuery q = new VirtuosoBooleanQuery() {
      public boolean evaluate() throws QueryEvaluationException {
        return executeSPARQLForBooleanResult(query, getDataset(), getIncludeInferred(), getBindings());
      }
View Full Code Here


  }

  public Update prepareUpdate(QueryLanguage language, final String update, String baseURI) throws RepositoryException, MalformedQueryException
  {
    if (language != QueryLanguage.SPARQL)
      throw new UnsupportedQueryLanguageException(" : Only SPARQL queries are supported");

    Update u = new VirtuosoUpdate() {
      public void execute() throws UpdateExecutionException {
        executeSPARUL(update, getDataset(), getIncludeInferred(), getBindings());
      }
View Full Code Here

TOP

Related Classes of org.openrdf.query.UnsupportedQueryLanguageException

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.