本文整理了Java中fr.inria.corese.kgram.core.Query.setFail
方法的一些代码示例,展示了Query.setFail
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.setFail
方法的具体详情如下:
包路径:fr.inria.corese.kgram.core.Query
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!