Examples of projectionSpecs()


Examples of de.fuberlin.wiwiss.d2rq.nodes.NodeMaker.projectionSpecs()

    NodeMaker o = nodeMaker(OBJECT).selectNode(t.getObject(), newBase);
    if (o.equals(NodeMaker.EMPTY)) return null;
    Set<ProjectionSpec> projections = new HashSet<ProjectionSpec>();
    projections.addAll(s.projectionSpecs());
    projections.addAll(p.projectionSpecs());
    projections.addAll(o.projectionSpecs());
    newBase.project(projections);
    if (!s.projectionSpecs().isEmpty() && o.projectionSpecs().isEmpty()) {
        newBase.swapLimits();
    }
    return new TripleRelation(newBase.immutableSnapshot(), s, p, o);
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.nodes.NodeMaker.projectionSpecs()

    Set<ProjectionSpec> projections = new HashSet<ProjectionSpec>();
    projections.addAll(s.projectionSpecs());
    projections.addAll(p.projectionSpecs());
    projections.addAll(o.projectionSpecs());
    newBase.project(projections);
    if (!s.projectionSpecs().isEmpty() && o.projectionSpecs().isEmpty()) {
        newBase.swapLimits();
    }
    return new TripleRelation(newBase.immutableSnapshot(), s, p, o);
  }
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.nodes.NodeMaker.projectionSpecs()

    NodeMaker p = this.relation.nodeMaker(TripleRelation.PREDICATE);
    NodeMaker o = this.relation.nodeMaker(TripleRelation.OBJECT);
    Set<ProjectionSpec> projections = new HashSet<ProjectionSpec>();
    projections.addAll(s.projectionSpecs());
    projections.addAll(p.projectionSpecs());
    projections.addAll(o.projectionSpecs());
    return new TripleRelation(
        new RelationImpl(this.relation.baseRelation().database(),
          this.relation.baseRelation().aliases(),
          this.relation.baseRelation().condition(),
          this.relation.baseRelation().softCondition(),
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.nodes.TypedNodeMaker.projectionSpecs()

    {
      // get the nodemaker for the expr-var
      NodeMaker nodeMaker = nodeRelation.nodeMaker(exprVar.asVar());
      if (nodeMaker instanceof TypedNodeMaker) {
        TypedNodeMaker typedNodeMaker = (TypedNodeMaker) nodeMaker;
        Iterator<ProjectionSpec> it = typedNodeMaker.projectionSpecs().iterator();
        if (!it.hasNext()) {
          logger.debug("no projection spec for " + exprVar + ", assuming constant");
          Node node = typedNodeMaker.makeNode(null);
          result.add(new ConstantEx(NodeValue.makeNode(node).asString(), node));
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.