com.hp.hpl.jena.query.Query.isDistinct()方法的使用及代码示例

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

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

Query.isDistinct介绍

暂无

代码示例

代码示例来源:origin: Quetzal-RDF/quetzal

public boolean isDistinct() {
  return query.isDistinct();
}
public void setDistinct(boolean distinct) {

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

@Override
public void visitSelectResultForm(Query query1)
{ 
  check("Not both SELECT queries", query2.isSelectType()) ;
  check("DISTINCT modifier",
     query1.isDistinct() == query2.isDistinct()) ;
  check("SELECT *", query1.isQueryResultStar() == query2.isQueryResultStar()) ;
  check("Result variables",   query1.getProject(), query2.getProject() ) ;
}

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

public void visitSelectResultForm(Query query1)
{ 
  check("Not both SELECT queries", query2.isSelectType()) ;
  check("DISTINCT modifier",
     query1.isDistinct() == query2.isDistinct()) ;
  check("SELECT *", query1.isQueryResultStar() == query2.isQueryResultStar()) ;
  check("Result variables",   query1.getProject(), query2.getProject() ) ;
}

代码示例来源:origin: com.github.ansell.pellet/pellet-query

return parse( triples, sparql.getResultVars(), kb, sparql.isDistinct() );

代码示例来源:origin: fr.inria.eventcloud/eventcloud-core

if (query.isDistinct()) {
  atomicQuery.setDistinct(true);

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

public void visitSelectResultForm(Query query)
{
  out.print("SELECT ") ;
  if ( query.isDistinct() )
    out.print("DISTINCT ") ;
  if ( query.isReduced() )
    out.print("REDUCED ") ;
  out.print(" ") ; //Padding
  
  if ( query.isQueryResultStar() )
    out.print("*") ;
  else
    appendNamedExprList(query, out, query.getProject()) ;
  out.newline() ;
}

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

@Override
public void visitSelectResultForm(Query query)
{
  out.print("SELECT ") ;
  if ( query.isDistinct() )
    out.print("DISTINCT ") ;
  if ( query.isReduced() )
    out.print("REDUCED ") ;
  out.print(" ") ; //Padding
  
  if ( query.isQueryResultStar() )
    out.print("*") ;
  else
    appendNamedExprList(query, out, query.getProject()) ;
  out.newline() ;
}

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

if ( query.isDistinct() )
  op = OpDistinct.create(op) ;

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

if ( query.isDistinct() )
  op = OpDistinct.create(op) ;

相关文章