Package lupos.sparql1_1

Examples of lupos.sparql1_1.Token


      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

    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

    int type = adaptor.getType(t);
    buf.append("\t");
    buf.append(ID);
    buf.append("\t");
    buf.append(type);
    Token token = adaptor.getToken(t);
    int line = -1;
    int pos = -1;
    if ( token!=null ) {
      line = token.getLine();
      pos = token.getCharPositionInLine();
    }
    buf.append("\t");
    buf.append(line);
    buf.append("\t");
    buf.append(pos);
View Full Code Here

  /** Get num hidden tokens between i..j inclusive */
  public int getNumberOfHiddenTokens(int i, int j) {
    int n = 0;
    TokenStream input = parser.getTokenStream();
    for (int ti = i; ti<input.size() && ti <= j; ti++) {
      Token t = input.get(ti);
      if ( t.getChannel()!=Token.DEFAULT_CHANNEL ) {
        n++;
      }
    }
    return n;
  }
View Full Code Here

TOP

Related Classes of lupos.sparql1_1.Token

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.