Package lupos.sparql1_1.operatorgraph.helper

Examples of lupos.sparql1_1.operatorgraph.helper.IndexScanCreator_BasicIndex


                content.delete(0, content.length());
                content.append("<html><code>");
                final QueryEvaluator evaluator =((EvaluatorCreator.EVALUATORS) comboBoxEvaluator.getSelectedItem()).create();
                this.processingQuery = true;
                // do some initialization for federated queries...
                ServiceApproaches serviceApproach = xpref.datatypes.EnumDatatype.getFirstValue("serviceCallApproach");
                FederatedQueryBitVectorJoin.APPROACH bitVectorApproach = xpref.datatypes.EnumDatatype.getFirstValue("serviceCallBitVectorApproach");
                bitVectorApproach.setup();
                serviceApproach.setup();
                FederatedQueryBitVectorJoin.substringSize = xpref.datatypes.IntegerDatatype.getFirstValue("serviceCallBitVectorSize");
                FederatedQueryBitVectorJoinNonStandardSPARQL.bitvectorSize = FederatedQueryBitVectorJoin.substringSize;
                LiteralFactory.semanticInterpretationOfLiterals = xpref.datatypes.BooleanDatatype.getFirstValue("semanticInterpretationOfDatatypes");
                System.out.println("Configuration:" + pref.toString() + "\n\n");
                SwingUtilities.invokeLater(new Runnable() {
View Full Code Here


    this.masterpanel.add(rowpanel, BorderLayout.NORTH);
  }

  @Override
  public QueryEvaluator<Node> setupEvaluator(final EvaluationMode mode) throws Throwable {
    final ServiceApproaches serviceApproach = xpref.datatypes.EnumDatatype.getFirstValue("serviceCallApproach");
    final FederatedQueryBitVectorJoin.APPROACH bitVectorApproach = xpref.datatypes.EnumDatatype.getFirstValue("serviceCallBitVectorApproach");
    bitVectorApproach.setup();
    serviceApproach.setup();
    FederatedQueryBitVectorJoin.substringSize = xpref.datatypes.IntegerDatatype.getFirstValue("serviceCallBitVectorSize");
    FederatedQueryBitVectorJoinNonStandardSPARQL.bitvectorSize = FederatedQueryBitVectorJoin.substringSize;
    LiteralFactory.semanticInterpretationOfLiterals = xpref.datatypes.BooleanDatatype.getFirstValue("semanticInterpretationOfDatatypes");

    final RDF3XQueryEvaluator evaluator = new RDF3XQueryEvaluator();
View Full Code Here

   
    System.out.println("Usage:\njava upos.endpoint.client.CommandLineEvaluator (ServiceApproaches:No_Support|Trivial_Approach|Fetch_As_Needed|Fetch_As_Needed_With_Cache|Semijoin_Approach|Bitvector_Join_Approach|Join_At_Endpoint) (MD5|SHA1|SHA256|SHA384|SHA512|Value|NonStandardSPARQL) (Size of Bitvector) (MEMORY|RDF3X|STREAM) (command line arguments of underlying evaluator...)");
    if(args.length<4){
      return;
    }
    ServiceApproaches serviceApproach = ServiceApproaches.valueOf(args[0]);
    FederatedQueryBitVectorJoin.APPROACH bitVectorApproach = FederatedQueryBitVectorJoin.APPROACH.valueOf(args[1]);
    bitVectorApproach.setup();
    serviceApproach.setup();
    int bitvectorsize = Integer.parseInt(args[2]);
    FederatedQueryBitVectorJoin.substringSize = bitvectorsize;
    FederatedQueryBitVectorJoinNonStandardSPARQL.bitvectorSize = bitvectorsize;

    String[] args2 = new String[args.length-4];
View Full Code Here

    try {
      final SPARQL2CoreSPARQLParserVisitorImplementationDumper spvid = SPARQL2CoreSPARQLParserVisitorImplementationDumper.createInstance();
      final String corequery = (root==null)?"":(String) spvid.visit(root);
      root = StreamSPARQL1_1Parser.parse(corequery);
      // checkForTimeFunc(root);
      final StreamOperatorGraphGenerator spvi = StreamOperatorGraphGenerator.createOperatorGraphGenerator(this);
      spvi.visit((ASTQuery)root);
      this.rootNode = spvi.getOperatorgraphRoot();
      this.result = spvi.getResult();
      this.determinePatternMatchers();
      this.rootNode.deleteParents();
      this.rootNode.setParents();
      this.rootNode.detectCycles();
      this.rootNode.sendMessage(new BoundVariablesMessage());
View Full Code Here

      final SimpleNode rootCoreSPARQL = StreamSPARQL1_1Parser.parse(corequery);

      // checkForTimeFunc(rootCoreSPARQL);

      final StreamOperatorGraphGenerator spvi = StreamOperatorGraphGenerator.createOperatorGraphGenerator(this);
      spvi.visit((ASTQuery)rootCoreSPARQL);
      this.rootNode = spvi.getOperatorgraphRoot();
      this.determinePatternMatchers();
      this.result = spvi.getResult();

      this.rootNode.deleteParents();
      this.rootNode.setParents();
      this.rootNode.detectCycles();
      this.rootNode.sendMessage(new BoundVariablesMessage());
View Full Code Here

    printer.close();
  }

  @Override
  public IndexScanCreatorInterface createIndexScanCreator() {
    return new IndexScanCreator_BasicIndex(this.createRoot());
  }
View Full Code Here

    for (int i = 0; i < node.jjtGetNumChildren(); i++) {
      final Node n = node.jjtGetChild(i);
      if (n instanceof ASTExists || n instanceof ASTNotExists) {
        // TODO support also stream-based evaluators!
        if(this.indexScanCreator instanceof IndexScanCreator_BasicIndex){
          final IndexScanCreator_BasicIndex isc = (IndexScanCreator_BasicIndex) this.indexScanCreator;

          final Root collectionClone = (Root) isc.getRoot().clone();
          collectionClone.setSucceedingOperators(new LinkedList<OperatorIDTuple>());

          this.indexScanCreator = new IndexScanCreator_BasicIndex(collectionClone);

          final Result newResult = new Result();
          final OperatorConnection connection = new OperatorConnection(newResult);
          this.visit((ASTGroupConstraint) n.jjtGetChild(0), connection, graphConstraint);
View Full Code Here

    super();
  }
     
  public static IndexOperatorGraphGenerator createOperatorGraphGenerator(Root root, CommonCoreQueryEvaluator<Node> evaluator) throws InstantiationException, IllegalAccessException{
    IndexOperatorGraphGenerator iogg = operatorGraphGeneratorClass.newInstance();
    iogg.setIndexScanGenerator(new IndexScanCreator_BasicIndex(root));
    iogg.evaluator = evaluator;
    return iogg;
  }
View Full Code Here

    this.determinePatternMatchers();
  }

  @Override
  public IndexScanCreatorInterface createIndexScanCreator() {
    return new IndexScanCreator_Stream();
  }
View Full Code Here

  public static Class<? extends StreamOperatorGraphGenerator> operatorGraphGeneratorClass = StreamOperatorGraphGenerator.class;

  public static StreamOperatorGraphGenerator createOperatorGraphGenerator(final CommonCoreQueryEvaluator<Node> evaluator) throws InstantiationException, IllegalAccessException{
    final StreamOperatorGraphGenerator sogg = operatorGraphGeneratorClass.newInstance();
    sogg.setIndexScanGenerator_Stream(new IndexScanCreator_Stream());
    sogg.evaluator = evaluator;
    return sogg;
  }
View Full Code Here

TOP

Related Classes of lupos.sparql1_1.operatorgraph.helper.IndexScanCreator_BasicIndex

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.