Package lupos.rif

Examples of lupos.rif.BasicIndexRuleEvaluator.prepareInputData()


  /**
   * This is just for external use an easy way to display the result of a RIF rules application...
   */
  public static void appyRIFRules(final String ruleset, final JPanel resultpanel, final BooleanReference usePrefixes,  final ViewerPrefix prefixInstance) throws Exception {   
    final BasicIndexRuleEvaluator ruleEvaluator = new BasicIndexRuleEvaluator();
    ruleEvaluator.prepareInputData(new LinkedList<URILiteral>(), new LinkedList<URILiteral>());
    ruleEvaluator.compileQuery(ruleset);
    ruleEvaluator.logicalOptimization();
    ruleEvaluator.physicalOptimization();
    QueryResult[] resultQueryEvaluator = ruleEvaluator.getResults();
   
View Full Code Here


      evaluator.init();
      final BasicIndexRuleEvaluator rifEvaluator = new BasicIndexRuleEvaluator(evaluator);
     
      LinkedList<URILiteral> dataIRIs=new LinkedList<URILiteral>();
      dataIRIs.add(LiteralFactory.createStringURILiteral("<inlinedata:"+data+">"));
      rifEvaluator.prepareInputData(dataIRIs, new LinkedList<URILiteral>());
           
      System.out.println("Evaluate rules...");
     
      // evaluate rules and print out the result!
      evaluateQueryAndPrintOut(rifEvaluator, rules);
View Full Code Here

      dataIRIs.add(LiteralFactory.createStringURILiteral("<inlinedata:"
          + ontology + ">"));

      BasicIndexRuleEvaluator rifEvaluator = new BasicIndexRuleEvaluator(
          evaluator);
      rifEvaluator.prepareInputData(dataIRIs,
          new LinkedList<URILiteral>());

      System.out.println("Evaluate rules...");

      return rifEvaluator;
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.