本文整理了Java中fr.inria.corese.kgram.core.Query.getNode
方法的一些代码示例,展示了Query.getNode
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.getNode
方法的具体详情如下:
包路径:fr.inria.corese.kgram.core.Query
类名称:Query
方法名:getNode
[英]Compute node list for filter variables use case: Pattern compiler (?x = cst) TODO: does not dive into minus {PAT}
[中]过滤变量的计算节点列表用例:模式编译器(?x=cst)TODO:不深入到负{PAT}
代码示例来源:origin: fr.inria.corese/kgram
public Query orderBy(String n) {
return orderBy(getNode(n));
}
代码示例来源:origin: fr.inria.corese/kgram
public Query select(String n) {
return select(getNode(n));
}
代码示例来源:origin: fr.inria.corese/kgram
public Query groupBy(String n) {
return groupBy(getNode(n));
}
代码示例来源:origin: fr.inria.corese/corese-core
/**
* is it: graph ?shape { ?sh sh:property ?cst }
*/
void optimize(Query query, String graph, String var) {
if (query.getBody().size() > 0) {
fr.inria.corese.kgram.core.Exp exp = query.getBody().get(0);
if (exp.isGraph() && exp.getGraphName().getLabel().equals(graph)) {
Node n = query.getNode(var);
if (n != null) {
// bind exists node
exp.setNodeList(exp.getNodes(true, false, false));
exp.setBGPAble(true);
exp.cache(n);
}
}
}
}
代码示例来源:origin: Wimmics/corese
/**
* is it: graph ?shape { ?sh sh:property ?cst }
*/
void optimize(Query query, String graph, String var) {
if (query.getBody().size() > 0) {
fr.inria.corese.kgram.core.Exp exp = query.getBody().get(0);
if (exp.isGraph() && exp.getGraphName().getLabel().equals(graph)) {
Node n = query.getNode(var);
if (n != null) {
// bind exists node
exp.setNodeList(exp.getNodes(true, false, false));
exp.setBGPAble(true);
exp.cache(n);
}
}
}
}
内容来源于网络,如有侵权,请联系作者删除!