Package lupos.engine.operators.tripleoperator

Examples of lupos.engine.operators.tripleoperator.TriplePattern.replace()


      // checkPrecondition
      // Already checked in checkPrecondition: All variables in tp can be
      // replaced!
      for (final Variable v : tp.getVariables()) {
        final Variable rv = repVar.getReplacement(v);
        tp.replace(v, rv);
      }
      final List<OperatorIDTuple> list = new LinkedList<OperatorIDTuple>();
      list.addAll(repVar.getSucceedingOperators());
      tp.setSucceedingOperators(list);
      for (final OperatorIDTuple oidt : repVar.getSucceedingOperators())
View Full Code Here


              replaceVarRight, var);
          // Variable can be substituted by a ReplaceVar-variable
          if (indices.size() > 0) {
            newTripleVar = replaceVarLeft.get(indices.getFirst());
            // Replacement in TriplePattern
            pat.replace(var, newTripleVar);
            // Replacement same Replacement in ReplaceVar
            for (int a = 1; a < indices.size(); a++) {
              replaceVarRight.set(indices.get(a), newTripleVar);
            }
            // Delete the Tupel for Replacement
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.