Examples of prepareInputData()


Examples of lupos.distributed.query.QueryClientWithSubgraphTransmission.prepareInputData()

      // init with empty dataset ...
      LiteralFactory.setType(MapType.NOCODEMAP);
      defaultGraphs.add(LiteralFactory
          .createURILiteralWithoutLazyLiteral("<inlinedata:>"));
      Collection<URILiteral> namedGraphs = new LinkedList<URILiteral>();
      localEvaluator.prepareInputData(defaultGraphs, namedGraphs);
      queryClientInstance.prepareInputData(defaultGraphs, namedGraphs);
      try {
        PhysicalOptimizations.memoryReplacements();
      } catch (Exception e) {
        //ignore
View Full Code Here

Examples of lupos.engine.evaluators.MemoryIndexQueryEvaluator.prepareInputData()

   */
  public static void main(String[] args) {
    try {
      LiteralFactory.setType(LiteralFactory.MapType.HASHMAP);
      MemoryIndexQueryEvaluator evaluator = new MemoryIndexQueryEvaluator();
      evaluator.prepareInputData(new LinkedList<URILiteral>(), new LinkedList<URILiteral>());
      TestRDF3XEngine.test(evaluator);
    } catch (Exception e) {
      System.err.println(e);
      e.printStackTrace();
    }
View Full Code Here

Examples of lupos.engine.evaluators.MemoryIndexQueryEvaluator.prepareInputData()

  }

  public QueryResult query() {
    try {
      MemoryIndexQueryEvaluator evaluator = new MemoryIndexQueryEvaluator();
      evaluator.prepareInputData(new LinkedList<URILiteral>(),
          new LinkedList<URILiteral>());
      /**
       * Query database
       */
      QueryResult qr = evaluator.getResult(this.query);
View Full Code Here

Examples of lupos.engine.evaluators.QueryEvaluator.prepareInputData()

      // init with empty dataset ...
      LiteralFactory.setType(MapType.NOCODEMAP);
      defaultGraphs.add(LiteralFactory
          .createURILiteralWithoutLazyLiteral("<inlinedata:>"));
      Collection<URILiteral> namedGraphs = new LinkedList<URILiteral>();
      localEvaluator.prepareInputData(defaultGraphs, namedGraphs);
      queryClientInstance.prepareInputData(defaultGraphs, namedGraphs);
      try {
        PhysicalOptimizations.memoryReplacements();
      } catch (Exception e) {
        //ignore
View Full Code Here

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

Examples of lupos.rif.BasicIndexRuleEvaluator.prepareInputData()

      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

Examples of lupos.rif.BasicIndexRuleEvaluator.prepareInputData()

      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.