org.apache.jena.query.Query.setSyntax()方法的使用及代码示例

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

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

Query.setSyntax介绍

暂无

代码示例

代码示例来源:origin: apache/jena

@Override
protected Query parse$(final Query query, String queryString)
{
  query.setSyntax(Syntax.syntaxSPARQL_11) ;
  Action action = new Action() {
    @Override
    public void exec(SPARQLParser11 parser) throws Exception
    {
      parser.QueryUnit() ;
    }
  } ;
  perform(query, queryString, action) ;
  return query ;
}

代码示例来源:origin: apache/jena

@Override
protected Query parse$(final Query query, String queryString)
{
  query.setSyntax(Syntax.syntaxARQ) ;
  Action action = new Action() {
    @Override
    public void exec(ARQParser parser) throws Exception
    {
      parser.QueryUnit() ;
    }
  } ;
  perform(query, queryString, action) ;
  return query ;
}

代码示例来源:origin: apache/jena

@Override
protected Query parse$(final Query query, String queryString)
{
  query.setSyntax(Syntax.syntaxSPARQL_10) ;
  Action action = new Action() {
    @Override
    public void exec(SPARQLParser10 parser) throws Exception
    {
      parser.QueryUnit() ;
    }
  } ;
  perform(query, queryString, action) ;
  return query ;
}

代码示例来源:origin: apache/jena

syntaxURI = query.getSyntax() ;
else
  query.setSyntax(syntaxURI) ;

代码示例来源:origin: com.github.galigator.openllet/openllet-jena

throw new NullPointerException();
query.setSyntax(TerpSyntax.getInstance());

代码示例来源:origin: Galigator/openllet

throw new NullPointerException();
query.setSyntax(TerpSyntax.getInstance());

代码示例来源:origin: Galigator/openllet

throw new NullPointerException();
query.setSyntax(TerpSyntax.getInstance());

代码示例来源:origin: apache/jena

@Override
public void startVisit(Query query) {
  newQuery.setSyntax(query.getSyntax());
  if (query.explicitlySetBaseURI())
    newQuery.setBaseURI(query.getPrologue().getResolver());
  newQuery.setQueryResultStar(query.isQueryResultStar());
  if (query.hasDatasetDescription()) {
    DatasetDescription desc = query.getDatasetDescription();
    for (String x : desc.getDefaultGraphURIs())
      newQuery.addGraphURI(x);
    for (String x : desc.getDefaultGraphURIs())
      newQuery.addNamedGraphURI(x);
  }
  // Aggregators.
  newQuery.getAggregators().addAll(query.getAggregators());
}

代码示例来源:origin: SmartDataAnalytics/jena-sparql-api

@Override
public void startVisit(Query query) {
  newQuery.setSyntax(query.getSyntax()) ;
  if ( query.explicitlySetBaseURI() )
    newQuery.setBaseURI(query.getPrologue().getResolver()) ;
  newQuery.setQueryResultStar(query.isQueryResultStar()) ;
  if ( query.hasDatasetDescription() ) {
    DatasetDescription desc = query.getDatasetDescription() ;
    for (String x : desc.getDefaultGraphURIs())
      newQuery.addGraphURI(x) ;
    for (String x : desc.getDefaultGraphURIs())
      newQuery.addNamedGraphURI(x) ;
  }
  // Aggregators.
  newQuery.getAggregators().addAll(query.getAggregators()) ;
}

相关文章