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

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

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

Query.getBindingNodes介绍

暂无

代码示例

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

return false;
    } else if (q.getBindingNodes().contains(value) && q.getValues().getMappings() != null) {
} else if (q.getBindingNodes().contains(var) && q.getValues().getMappings() != null) {

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

public void collect() {
  if (getPathNode() != null) {
    /**
     * use case: ?x ex:prop @[?this != <John>] + ?y collect ?this first
     * because it may be within @[exists {?this ?p ?y}} and even worse
     * within @[exists {select ?this where {?this ?p ?y}}]
     */
    store(getPathNode(), false, false);
  }
  for (Exp ee : this) {
    collect(ee, false);
  }
  for (Node node : getBindingNodes()) {
    store(node, false, false);
  }
  for (Node node : getArgList()) {
    store(node, false, false);
  }
  for (Filter ff : getPathFilter()) {
    collectExist(ff.getExp());
  }
  
  for (Filter f : getFunList()){
     collectExist(f.getExp());
  }
}

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

/**
 *
 * index(node) use global query index
 */
void complete2() {
  for (Filter f : getPathFilter()) {
    index(this, f);
  }
  index(getOrderBy());
  index(getGroupBy());
  if (getHaving() != null) {
    index(this, getHaving().getFilter());
  }
  
  for (Filter f :getFunList()){
    index(this, f);
  }
  for (Node node : getBindingNodes()) {
    index(node);
  }
  for (Node node : getArgList()) {
    index(node);
  }
  if (getGraphNode() != null) {
    index(getGraphNode());
  }
  if (getPathNode() != null) {
    index(getPathNode());
  }
}

相关文章