Package de.fuberlin.wiwiss.d2rq.nodes

Examples of de.fuberlin.wiwiss.d2rq.nodes.NodeSetConstraintBuilder


    if (!nodeMakers.containsKey(var)) {
      nodeMakers.put(var, nodeMaker);
      projections.addAll(nodeMaker.projectionSpecs());
    }
    if (!nodeSets.containsKey(var)) {
      nodeSets.put(var, new NodeSetConstraintBuilder());
    }
    NodeSetFilter nodeSet = nodeSets.get(var);
    nodeMaker.describeSelf(nodeSet);
    if (!nodeRelationAliases.containsKey(var)) {
      nodeRelationAliases.put(var, aliases);
View Full Code Here


   *     any two identically-named node makers produce the same node
   */
  public Expression constraint() {
    Collection<Expression> expressions = new ArrayList<Expression>();
    for (Var var: nodeSets.keySet()) {
      NodeSetConstraintBuilder nodeSet = (NodeSetConstraintBuilder) nodeSets.get(var);
      if (nodeSet.isEmpty()) {
        return Expression.FALSE;
      }
      expressions.add(nodeSet.constraint());
    }
    return Conjunction.create(expressions);
  }
View Full Code Here

      if (datatype1 != null && XSD.isNumeric(datatype1) && datatype2 != null && XSD.isNumeric(datatype2)) {
        RDFDatatype numericType = XSD.getNumericType(filter1.getDatatype(), filter2.getDatatype());
        nm1 = cast(nm1, numericType);
        nm2 = cast(nm2, numericType);
      }
      NodeSetConstraintBuilder nodeSet = new NodeSetConstraintBuilder();
      nm1.describeSelf(nodeSet);
      nm2.describeSelf(nodeSet);
     
      if (nodeSet.isEmpty()) {
        logger.debug("nodes " + nm1 + " " + nm2 + " incompatible");
        expression.push(Expression.FALSE);
        return;
      }
    }
View Full Code Here

        RDFDatatype numericType = XSD.getNumericType(filter1.getDatatype(), filter2.getDatatype());
        nm1 = cast(nm1, numericType);
        nm2 = cast(nm2, numericType);
      }
     
      NodeSetConstraintBuilder nodeSet = new NodeSetConstraintBuilder();
      nm1.describeSelf(nodeSet);
      nm2.describeSelf(nodeSet);
     
      if (nodeSet.isEmpty()) {
        logger.debug("nodes " + nm1 + " " + nm2 + " incompatible");
        expression.push(Expression.TRUE);
        return;
      }
    }
View Full Code Here

      AttributeExprEx variable2 = (AttributeExprEx) e2;
     
      NodeMaker nm1 = variable1.getNodeMaker();
      NodeMaker nm2 = variable2.getNodeMaker();

      NodeSetConstraintBuilder nodeSet = new NodeSetConstraintBuilder();
      nm1.describeSelf(nodeSet);
      nm2.describeSelf(nodeSet);
     
      if (nodeSet.isEmpty()) {
        logger.debug("nodes " + nm1 + " " + nm2 + " incompatible");
        expression.push(Expression.FALSE);
        return;
      }
    }
View Full Code Here

TOP

Related Classes of de.fuberlin.wiwiss.d2rq.nodes.NodeSetConstraintBuilder

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.