Package org.openrdf.query.parser

Examples of org.openrdf.query.parser.ParsedBooleanQuery


  }

  public SailBooleanQuery prepareBooleanQuery(QueryLanguage ql, String queryString, String baseURI)
    throws MalformedQueryException
  {
    ParsedBooleanQuery parsedQuery = QueryParserUtil.parseBooleanQuery(ql, queryString, baseURI);
    return new SailBooleanQuery(parsedQuery, this);
  }
View Full Code Here


  }

  public boolean evaluate()
    throws QueryEvaluationException
  {
    ParsedBooleanQuery parsedBooleanQuery = getParsedQuery();
    TupleExpr tupleExpr = parsedBooleanQuery.getTupleExpr();
    Dataset dataset = getDataset();
    if (dataset == null) {
      // No external dataset specified, use query's own dataset (if any)
      dataset = parsedBooleanQuery.getDataset();
    }

    try {
      SailConnection sailCon = getConnection().getSailConnection();
View Full Code Here

      }
      else if (queryNode instanceof ASTConstructQuery) {
        query = new ParsedGraphQuery(tupleExpr, prefixes);
      }
      else if (queryNode instanceof ASTAskQuery) {
        query = new ParsedBooleanQuery(tupleExpr);
      }
      else if (queryNode instanceof ASTDescribeQuery) {
        query = new ParsedGraphQuery(tupleExpr, prefixes);
      }
      else {
View Full Code Here

TOP

Related Classes of org.openrdf.query.parser.ParsedBooleanQuery

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.