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

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

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

Query.addNamedGraphURI介绍

[英]Location of the source for the data. If the model is not set, then the QueryEngine will attempt to load the data from these URIs as named graphs in the dataset.
[中]数据源的位置。如果未设置模型,则查询引擎将尝试将这些URI中的数据作为命名图加载到数据集中。

代码示例

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

final public void NamedGraphClause() throws ParseException {
             String iri ;
 jj_consume_token(NAMED);
 iri = SourceSelector();
 // This checks for duplicates
 getQuery().addNamedGraphURI(iri) ;
}

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

final public void NamedGraphClause() throws ParseException {
             String iri ;
 jj_consume_token(NAMED);
 iri = SourceSelector();
 // This checks for duplicates
 getQuery().addNamedGraphURI(iri) ;
}

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

final public void NamedGraphClause() throws ParseException {
             String iri ;
 jj_consume_token(NAMED);
 iri = SourceSelector();
 // This checks for duplicates
 getQuery().addNamedGraphURI(iri) ;
}

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

final public void NamedGraphClause() throws ParseException {
             String iri ;
 jj_consume_token(NAMED);
 iri = SourceSelector();
 // This checks for duplicates
 getQuery().addNamedGraphURI(iri) ;
}

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

final public void NamedGraphClause() throws ParseException {
             String iri ;
 jj_consume_token(NAMED);
 iri = SourceSelector();
 // This checks for duplicates
 getQuery().addNamedGraphURI(iri) ;
}

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

final public void NamedGraphClause() throws ParseException {
             String iri ;
 jj_consume_token(NAMED);
 iri = SourceSelector();
 // This checks for duplicates
 getQuery().addNamedGraphURI(iri) ;
}

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

public final void namedGraphClause(Query q) throws RecognitionException {
  Node s = null;
  try {
    // com/clarkparsia/sparqlowl/parser/antlr/SparqlOwlTreeARQ.g:737:2: ( ^( NAMED_GRAPH s= sourceSelector ) )
    // com/clarkparsia/sparqlowl/parser/antlr/SparqlOwlTreeARQ.g:737:4: ^( NAMED_GRAPH s= sourceSelector )
    {
    match(input,NAMED_GRAPH,FOLLOW_NAMED_GRAPH_in_namedGraphClause1477); 
    match(input, Token.DOWN, null); 
    pushFollow(FOLLOW_sourceSelector_in_namedGraphClause1481);
    s=sourceSelector();
    state._fsp--;
    match(input, Token.UP, null); 
     q.addNamedGraphURI( s.getURI() ); 
    }
  }
    catch( RecognitionException rce ) {
      throw rce;
    }
  finally {
  }
  return ;
}
// $ANTLR end "namedGraphClause"

相关文章