Package lupos.sparql1_1

Examples of lupos.sparql1_1.ASTFilterConstraint


      if(root_CoreSPARQL==null){
        this.result = new Result();
        root_param.setSucceedingOperator(new OperatorIDTuple(this.result,0));
      } else {
        final IndexOperatorGraphGenerator spvi = IndexOperatorGraphGenerator.createOperatorGraphGenerator(root_param, this);
        spvi.visit((ASTQuery)root_CoreSPARQL);

        this.result = spvi.getResult();
      }

      root_param.deleteParents();
      root_param.setParents();
      final CorrectOperatorgraphRulePackage recog = new CorrectOperatorgraphRulePackage();
View Full Code Here


  }

  @SuppressWarnings("unchecked")
  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");
    // use static method "newInstance()" for instantiation if available
    QueryEvaluator<Node> evaluator = null;
View Full Code Here

                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

    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.ASTFilterConstraint

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.