本文整理了Java中com.hp.hpl.jena.query.ResultSet.getResourceModel
方法的一些代码示例,展示了ResultSet.getResourceModel
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ResultSet.getResourceModel
方法的具体详情如下:
包路径:com.hp.hpl.jena.query.ResultSet
类名称:ResultSet
方法名:getResourceModel
[英]Get the model that resources are created against - may be null
[中]获取创建资源所依据的模型-可能为空
代码示例来源:origin: fr.inria.eventcloud/eventcloud-api
/**
* {@inheritDoc}
*/
@Override
public Model getResourceModel() {
return super.object.getResourceModel();
}
代码示例来源:origin: spaziocodice/SolRDF
@Override
public Model getResourceModel() {
return resultset.getResourceModel();
}
代码示例来源:origin: spaziocodice/SolRDF
@Override
public Model getResourceModel() {
return resultSet.getResourceModel();
}
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq
/**
* Creates a peeking wrapper around another result set
*
* @param results
* Inner results
*/
public ResultSetPeeking(ResultSet results) {
if (results == null)
throw new IllegalArgumentException("Inner result set cannot be null");
this.results = results;
this.model = results.getResourceModel();
}
代码示例来源:origin: com.hp.hpl.jena/arq
private SortedResultSet(ResultSet rs, Comparator<Binding> comparator)
{
model = rs.getResourceModel() ;
// Put straight into a sorted structure
SortedSet<Binding> sorted = new TreeSet<Binding>(comparator) ;
for ( ; rs.hasNext() ; )
{
Binding b = rs.nextBinding() ;
sorted.add(b) ;
}
qIter = new QueryIterPlainWrapper(sorted.iterator()) ;
resultVars = rs.getResultVars() ;
//resultSet = new ResultSetStream(rs.getResultVars(), null, qIter) ;
}
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq
private SortedResultSet(ResultSet rs, Comparator<Binding> comparator)
{
model = rs.getResourceModel() ;
// Put straight into a sorted structure
SortedSet<Binding> sorted = new TreeSet<Binding>(comparator) ;
for ( ; rs.hasNext() ; )
{
Binding b = rs.nextBinding() ;
sorted.add(b) ;
}
qIter = new QueryIterPlainWrapper(sorted.iterator()) ;
resultVars = rs.getResultVars() ;
//resultSet = new ResultSetStream(rs.getResultVars(), null, qIter) ;
}
代码示例来源:origin: com.hp.hpl.jena/arq
/** Create an in-memory result set from any ResultSet object.
* If the ResultSet is an in-memory one already, then no
* copying is done - the necessary internal datastructures
* are shared. This operation destroys (uses up) a ResultSet
* object that is not an in memory one.
*/
public ResultSetMem(ResultSet qr)
{
model = qr.getResourceModel() ;
if (qr instanceof ResultSetMem)
{
ResultSetMem qrm = (ResultSetMem) qr;
this.rows = qrm.rows;
this.varNames = qrm.varNames;
}
else
{
varNames = qr.getResultVars();
while (qr.hasNext())
{
Binding rb = qr.nextBinding();
rows.add(rb);
}
}
reset();
}
代码示例来源:origin: org.apache.clerezza.ext/org.apache.jena.jena-arq
/** Create an in-memory result set from any ResultSet object.
* If the ResultSet is an in-memory one already, then no
* copying is done - the necessary internal datastructures
* are shared. This operation destroys (uses up) a ResultSet
* object that is not an in memory one.
*/
public ResultSetMem(ResultSet qr)
{
model = qr.getResourceModel() ;
if (qr instanceof ResultSetMem)
{
ResultSetMem qrm = (ResultSetMem) qr;
this.rows = qrm.rows;
this.varNames = qrm.varNames;
}
else
{
varNames = qr.getResultVars();
while (qr.hasNext())
{
Binding rb = qr.nextBinding();
rows.add(rb);
}
}
reset();
}
代码示例来源:origin: spaziocodice/SolRDF
} else {
this.resultVars = resultSet.getResultVars();
this.resourceModel = resultSet.getResourceModel();
if (this.size == 0 && this.resultSet.hasNext()) {
内容来源于网络,如有侵权,请联系作者删除!