Package lupos.rif.model

Examples of lupos.rif.model.Equality


    // Operatorbaeumen beruecksichtigt werden.
    this.predicateIndex = null;
    InsertTripleIndexScan insertTripleIndex = null;
    for (final IExpression fact : obj.getFacts()) {
      if (fact instanceof Equality) {
        final Equality eq = (Equality) fact;
        this.equalityMap.put(eq.leftExpr, eq.rightExpr);
        this.equalityMap.put(eq.rightExpr, eq.leftExpr);
        this.usesEqualities = true;
      } else {
        final Object item = ((RulePredicate) fact).toDataStructure();
View Full Code Here


        } catch (URISyntaxException e) {
          throw new RIFException(e.getMessage());
        }
        return term;
      }
      final Equality comp = new Equality();
      comp.setParent(argu);
      comp.rightExpr = (IExpression) seq.get(1).accept(this, comp);
      comp.leftExpr = (IExpression) n.f0.accept(this, comp);
      return comp;
    }
  }
View Full Code Here

      result.termParams.add((IExpression) expr.accept(this, result));
    return result;
  }

  public IRuleNode visit(Equality obj, IRuleNode arg) throws RIFException {
    final Equality result = new Equality();
    result.leftExpr = (IExpression) obj.leftExpr.accept(this, result);
    result.rightExpr = (IExpression) obj.rightExpr.accept(this, result);
    return result;
  }
View Full Code Here

    conjunction.setParent((IRuleNode) arg);

    RuleVariable alias = new RuleVariable(aliasString + aliasCtr++);
    conjunction.addExpr(alias);

    Equality comp = new Equality();
    comp.leftExpr = new RuleVariable(alias.getName());
    comp.leftExpr.setParent(comp);
    comp.rightExpr = obj;
    obj.setParent(comp);
    conjunction.addExpr(comp);
View Full Code Here

    final EqualityResult eqResult = new EqualityResult();
    final Iterator<Bindings> it = queryResult.oneTimeIterator();
    while (it.hasNext()) {
      replace.bindings = it.next();
      for (final Equality nextEq : equalities) {
        final Equality replacedEq = (Equality) nextEq.accept(replace,
            null);
        // Externals in Equality auswerten
        if (replacedEq.leftExpr instanceof External) {
          final Literal evaluated = (Literal) replacedEq.leftExpr
              .evaluate(replace.bindings, null, equalityMap);
View Full Code Here

    final boolean booleanResult = super.filter(bind, result);
    if (booleanResult) {
      return booleanResult;
    } else {
      this.replace.bindings = bind;
      final Equality replacedEq = (Equality) this.expression.accept(this.replace, null);
      return this.equalityMap.get(replacedEq.leftExpr).contains(replacedEq.rightExpr)
          || this.equalityMap.get(replacedEq.rightExpr).contains(replacedEq.leftExpr);
    }
  }
View Full Code Here

TOP

Related Classes of lupos.rif.model.Equality

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.