Package org.openrdf.query

Examples of org.openrdf.query.Dataset


      else {
        throw new RuntimeException("Unexpected query type: " + queryNode.getClass());
      }

      // Handle dataset declaration
      Dataset dataset = DatasetDeclProcessor.process(qc);
      if (dataset != null) {
        query.setDefaultGraphs(dataset.getDefaultGraphs());
        query.setNamedGraphs(dataset.getNamedGraphs());
      }

      return query;
    }
    catch (ParseException e) {
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();
    }
View Full Code Here

      else {
        throw new RuntimeException("Unexpected query type: " + queryNode.getClass());
      }

      // Handle dataset declaration
      Dataset dataset = DatasetDeclProcessor.process(qc);
      if (dataset != null) {
        query.setDataset(dataset);
      }

      return query;
View Full Code Here

TOP

Related Classes of org.openrdf.query.Dataset

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.