com.hp.hpl.jena.sparql.core.Var.canonical()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(2.6k)|赞(0)|评价(0)|浏览(161)

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

Var.canonical介绍

暂无

代码示例

代码示例来源:origin: com.hp.hpl.jena/arq

public void add(String name, RDFNode node)
{ map.put(Var.canonical(name), node) ; }

代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

public void add(String name, RDFNode node)
{ map.put(Var.canonical(name), node) ; }

代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

/** Add a projection variable to a SELECT query */
public void addResultVar(String varName)
{
  varName = Var.canonical(varName) ;
  _addResultVar(varName) ;
}

代码示例来源:origin: com.hp.hpl.jena/arq

/** Add a projection variable to a SELECT query */
public void addResultVar(String varName)
{
  varName = Var.canonical(varName) ;
  _addResultVar(varName) ;
}

代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

@Override
public RDFNode get(String varName)          { return _get(Var.canonical(varName)) ; }

代码示例来源:origin: com.hp.hpl.jena/arq

public RDFNode get(String varName)          { return _get(Var.canonical(varName)) ; }

代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

@Override
public boolean contains(String varName)     { return _contains(Var.canonical(varName)) ; }

代码示例来源:origin: com.hp.hpl.jena/arq

public boolean contains(String varName)     { return _contains(Var.canonical(varName)) ; }

代码示例来源:origin: com.hp.hpl.jena/arq

public void addGroupBy(String varName)
{
  varName = Var.canonical(varName) ;
  addGroupBy(Var.alloc(varName)) ;
}

代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

public void addGroupBy(String varName)
{
  varName = Var.canonical(varName) ;
  addGroupBy(Var.alloc(varName)) ;
}

代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

/** Add a named expression to a SELECT query */
public void addResultVar(String varName, Expr expr)
{
  Var var = null ; 
  if ( varName == null )
    var = allocInternVar() ;
  else
  {
    varName = Var.canonical(varName) ;
    var = Var.alloc(varName) ;
  }
  _addVarExpr(projectVars, var, expr) ;
}

代码示例来源:origin: com.hp.hpl.jena/arq

/** Add a named expression to a SELECT query */
public void addResultVar(String varName, Expr expr)
{
  Var var = null ; 
  if ( varName == null )
    var = allocInternVar() ;
  else
  {
    varName = Var.canonical(varName) ;
    var = Var.alloc(varName) ;
  }
  _addVarExpr(projectVars, var, expr) ;
}

代码示例来源:origin: com.hp.hpl.jena/arq

public void addOrderBy(String varName, int direction)
{ 
  varName = Var.canonical(varName) ;
  SortCondition sc = new SortCondition(new ExprVar(varName), direction) ;
  addOrderBy(sc) ;
}

代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq

public void addOrderBy(String varName, int direction)
{ 
  varName = Var.canonical(varName) ;
  SortCondition sc = new SortCondition(new ExprVar(varName), direction) ;
  addOrderBy(sc) ;
}

相关文章