fr.inria.corese.kgram.core.Query.setFail()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(133)

本文整理了Java中fr.inria.corese.kgram.core.Query.setFail方法的一些代码示例,展示了Query.setFail的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.setFail方法的具体详情如下:
包路径:fr.inria.corese.kgram.core.Query
类名称:Query
方法名:setFail

Query.setFail介绍

暂无

代码示例

代码示例来源:origin: fr.inria.corese/kgram

void processFilter(Exp exp, boolean option) {
  boolean correct = checkFilter(exp);
  if (!correct) {
    if (option) {
      // in case of option, exp is the inner AND
      exp.setFail(true);
    } else {
      this.setFail(true);
    }
  }
}

代码示例来源:origin: Wimmics/corese

void error(Query q, ASTQuery ast) {
  if (ast.isFail()) {
    q.setFail(true);
  }
  if (ast.isTemplate()) {
    // TODO: because template st:profile may not have been read yet ...
    return;
  }
  undefinedFunction(q, ast);
}

代码示例来源:origin: fr.inria.corese/compiler

void error(Query q, ASTQuery ast) {
  if (ast.isFail()) {
    q.setFail(true);
  }
  if (ast.isTemplate()) {
    // TODO: because template st:profile may not have been read yet ...
    return;
  }
  undefinedFunction(q, ast);
}

代码示例来源:origin: fr.inria.corese/corese-core

/**
 * Check if a template edges not exist in graph remove those templates from
 * the list to speed up PRAGMA: does not take RDFS entailments into account
 */
public void check() {
  for (Query q : qe.getQueries()) {
    boolean b = graph.check(q);
    if (!b) {
      q.setFail(true);
    }
  }
  qe.clean();
  if (stat) {
    trace();
  }
}

代码示例来源:origin: Wimmics/corese

/**
 * Check if a template edges not exist in graph remove those templates from
 * the list to speed up PRAGMA: does not take RDFS entailments into account
 */
public void check() {
  for (Query q : qe.getQueries()) {
    boolean b = graph.check(q);
    if (!b) {
      q.setFail(true);
    }
  }
  qe.clean();
  if (stat) {
    trace();
  }
}

代码示例来源:origin: fr.inria.corese/compiler

q.setFail(true);

代码示例来源:origin: Wimmics/corese

q.setFail(true);

相关文章