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

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

本文整理了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

  1. void processFilter(Exp exp, boolean option) {
  2. boolean correct = checkFilter(exp);
  3. if (!correct) {
  4. if (option) {
  5. // in case of option, exp is the inner AND
  6. exp.setFail(true);
  7. } else {
  8. this.setFail(true);
  9. }
  10. }
  11. }

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

  1. void error(Query q, ASTQuery ast) {
  2. if (ast.isFail()) {
  3. q.setFail(true);
  4. }
  5. if (ast.isTemplate()) {
  6. // TODO: because template st:profile may not have been read yet ...
  7. return;
  8. }
  9. undefinedFunction(q, ast);
  10. }

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

  1. void error(Query q, ASTQuery ast) {
  2. if (ast.isFail()) {
  3. q.setFail(true);
  4. }
  5. if (ast.isTemplate()) {
  6. // TODO: because template st:profile may not have been read yet ...
  7. return;
  8. }
  9. undefinedFunction(q, ast);
  10. }

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

  1. /**
  2. * Check if a template edges not exist in graph remove those templates from
  3. * the list to speed up PRAGMA: does not take RDFS entailments into account
  4. */
  5. public void check() {
  6. for (Query q : qe.getQueries()) {
  7. boolean b = graph.check(q);
  8. if (!b) {
  9. q.setFail(true);
  10. }
  11. }
  12. qe.clean();
  13. if (stat) {
  14. trace();
  15. }
  16. }

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

  1. /**
  2. * Check if a template edges not exist in graph remove those templates from
  3. * the list to speed up PRAGMA: does not take RDFS entailments into account
  4. */
  5. public void check() {
  6. for (Query q : qe.getQueries()) {
  7. boolean b = graph.check(q);
  8. if (!b) {
  9. q.setFail(true);
  10. }
  11. }
  12. qe.clean();
  13. if (stat) {
  14. trace();
  15. }
  16. }

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

  1. q.setFail(true);

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

  1. q.setFail(true);

相关文章