Package lupos.rif.model

Examples of lupos.rif.model.RulePredicate.toDataStructure()


      final RulePredicate predicate = (RulePredicate) obj.getConclusion();
      conclusionIndex = new PredicateIndexScan();
      root.addSucceedingOperator(conclusionIndex);
      Predicate toAdd = null;
      if (predicate.isTriple()) {
        final Triple triple = (Triple) predicate.toDataStructure();
        toAdd = new Predicate();
        toAdd.setName(triple.getPredicate());
        toAdd.getParameters().addAll(
            Arrays.asList(triple.getSubject(), triple.getObject()));
      } else
View Full Code Here


        toAdd = new Predicate();
        toAdd.setName(triple.getPredicate());
        toAdd.getParameters().addAll(
            Arrays.asList(triple.getSubject(), triple.getObject()));
      } else
        toAdd = (Predicate) predicate.toDataStructure();
      conclusionIndex.addPredicateFact(toAdd);
    }

    // TODO: nur eine Regel enthalten, welche direkt auf die conclusion
    // passt,
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.