Package org.openrdf.query.algebra

Examples of org.openrdf.query.algebra.Projection


    for (int i = 0; i < node.jjtGetNumChildren(); i++) {
      Var projVar = (Var)node.jjtGetChild(i).jjtAccept(this, null);
      projElemList.addElement(new ProjectionElem(projVar.getName()));
    }

    result = new Projection(result, projElemList);

    if (node.isDistinct()) {
      result = new Distinct(result);
    }
View Full Code Here


      projList.add(projElemList);
    }

    if (projList.size() == 1) {
      result = new Projection(result, projList.get(0));
    }
    else if (projList.size() > 1) {
      result = new MultiProjection(result, projList);
    }
    else {
View Full Code Here

    ProjectionElemList projElemList = new ProjectionElemList();
    projElemList.addElement(new ProjectionElem(subjVar.getName(), "subject"));
    projElemList.addElement(new ProjectionElem(predVar.getName(), "predicate"));
    projElemList.addElement(new ProjectionElem(objVar.getName(), "object"));
    result = new Projection(result, projElemList);

    return result;
  }
View Full Code Here

TOP

Related Classes of org.openrdf.query.algebra.Projection

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.