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

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

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

Query.getValues介绍

暂无

代码示例

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

  1. public List<Node> getBindingNodes() {
  2. if (getValues() == null) {
  3. return bindingNodes;
  4. }
  5. return getValues().getNodeList();
  6. }

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

  1. sb.append(getHaving());
  2. Exp val = getValues();
  3. if (val != null && val.getMappings().size() > 0) {
  4. sb.append("\n");

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

  1. /**
  2. * Select Query is empty and does nothing
  3. */
  4. boolean isEmpty(){
  5. return isSelect()
  6. && getSelectFun().isEmpty()
  7. && getBody().size() == 0
  8. && getValues().getMappings() == null;
  9. }

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

  1. void values(Query q, ASTQuery ast){
  2. if (ast.getValues() == null) {
  3. return;
  4. }
  5. bindings(q, ast);
  6. if (q.getValues() != null && isAlgebra()){
  7. if (q.getBody().size() == 0){
  8. q.setBody(q.getValues());
  9. }
  10. else {
  11. Exp exp = Exp.create(JOIN, Exp.create(BGP, q.getValues()), q.getBody());
  12. q.setBody(Exp.create(BGP, exp));
  13. }
  14. }
  15. }

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

  1. void values(Query q, ASTQuery ast){
  2. if (ast.getValues() == null) {
  3. return;
  4. }
  5. bindings(q, ast);
  6. if (q.getValues() != null && isAlgebra()){
  7. if (q.getBody().size() == 0){
  8. q.setBody(q.getValues());
  9. }
  10. else {
  11. Exp exp = Exp.create(JOIN, Exp.create(BGP, q.getValues()), q.getBody());
  12. q.setBody(Exp.create(BGP, exp));
  13. }
  14. }
  15. }

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

  1. int query(Node gNode, Query q) {
  2. if (q.getValues() != null) {
  3. Exp values = q.getValues();
  4. if (! values.isPostpone() && !q.isAlgebra()) {
  5. for (Mapping m : values.getMappings()) {
  6. if (stop) {
  7. return STOP;
  8. }
  9. if (binding(values.getNodeList(), m)) {
  10. eval(gNode, q);
  11. free(values.getNodeList(), m);
  12. }
  13. }
  14. return 0;
  15. }
  16. }
  17. return eval(gNode, q);
  18. }

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

  1. void bindings(Query q, ASTQuery ast) {
  2. Exp bind = bindings(ast.getValues());
  3. if (bind == null) {
  4. q.setCorrect(false);
  5. q.addError("Value Bindings: ", "#values != #variables");
  6. } else {
  7. q.setValues(bind);
  8. if (ast.getValues().isMoved()) {
  9. //q.setTemplateMappings(bind.getMappings());
  10. q.getValues().setPostpone(true);
  11. }
  12. // else {
  13. // q.setMappings(bind.getMappings());
  14. // q.setBindingNodes(bind.getNodeList());
  15. // }
  16. }
  17. }

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

  1. return false;
  2. } else if (q.getBindingNodes().contains(value) && q.getValues().getMappings() != null) {
  3. for (Mapping map : q.getValues().getMappings()) {
  4. } else if (q.getBindingNodes().contains(var) && q.getValues().getMappings() != null) {
  5. for (Mapping map : q.getValues().getMappings()) {

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

  1. void bindings(Query q, ASTQuery ast) {
  2. Exp bind = bindings(ast.getValues());
  3. if (bind == null) {
  4. q.setCorrect(false);
  5. q.addError("Value Bindings: ", "#values != #variables");
  6. } else {
  7. q.setValues(bind);
  8. if (ast.getValues().isMoved()) {
  9. //q.setTemplateMappings(bind.getMappings());
  10. q.getValues().setPostpone(true);
  11. }
  12. // else {
  13. // q.setMappings(bind.getMappings());
  14. // q.setBindingNodes(bind.getNodeList());
  15. // }
  16. }
  17. }

相关文章