Package org.ontoware.rdf2go.exception

Examples of org.ontoware.rdf2go.exception.QueryLanguageNotSupportedException


      ModelRuntimeException {
    com.hp.hpl.jena.query.Syntax syntax = com.hp.hpl.jena.query.Syntax
        .lookup(querylanguage);
    if (syntax == null) {
      // delegate to super
      throw new QueryLanguageNotSupportedException(
          "Unsupported query language: " + querylanguage);
    }
    Query jenaQuery = QueryFactory.create(query, syntax);
    return new QueryResultTableImpl(jenaQuery,
        this.dataset);
View Full Code Here


    } else if(queryLanguageLowerCase.equals("serql")) {
      return QueryLanguage.SERQL;
    } else if(queryLanguageLowerCase.equals("serqo")) {
      return QueryLanguage.SERQO;
    } else {
      throw new QueryLanguageNotSupportedException("Query language '"
              + queryLanguageLowerCase
              + "' not supported. Valid values are \"sparql\", \"serql\" and \"serqo\".");
    }
  }
View Full Code Here

    if(querylanguage.equalsIgnoreCase("SPARQL"))
      return sparqlSelect(query);
    else {
      QueryLanguage ql = QueryLanguage.valueOf(querylanguage);
      if(ql == null) {
        throw new QueryLanguageNotSupportedException("Unsupported query language: '"
                + querylanguage + "'");
      }
      return new RepositoryQueryResultTable(query, ql, this.connection);
    }
  }
View Full Code Here

    if(querylanguage.equalsIgnoreCase("SPARQL"))
      return sparqlConstruct(query);
    else {
      QueryLanguage ql = QueryLanguage.valueOf(querylanguage);
      if(ql == null) {
        throw new QueryLanguageNotSupportedException("Unsupported query language: '"
                + querylanguage + "'");
      }
      try {
        GraphQueryResult graphQueryResult = this.connection.prepareGraphQuery(ql, query)
                .evaluate();
View Full Code Here

          throws QueryLanguageNotSupportedException, ModelRuntimeException {
    assertModel();
    if(querylanguage.equalsIgnoreCase("SPARQL"))
      return sparqlConstruct(query);
    // else
    throw new QueryLanguageNotSupportedException("Unsupported query language: " + querylanguage);
  }
View Full Code Here

          throws QueryLanguageNotSupportedException, ModelRuntimeException {
    assertModel();
    if(querylanguage.equalsIgnoreCase("SPARQL"))
      return sparqlSelect(query);
    // else
    throw new QueryLanguageNotSupportedException("Unsupported query language: " + querylanguage);
  }
View Full Code Here

TOP

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

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.