本文整理汇总了Java中org.apache.jena.graph.impl.GraphBase类的典型用法代码示例。如果您正苦于以下问题:Java GraphBase类的具体用法?Java GraphBase怎么用?Java GraphBase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
GraphBase类属于org.apache.jena.graph.impl包,在下文中一共展示了GraphBase类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: execute
import org.apache.jena.graph.impl.GraphBase; //导入依赖的package包/类
@Override
public QueryIterator execute(BasicPattern pattern,
QueryIterator input,
ExecutionContext execCxt)
{
// Just want to pick out some BGPs (e.g. on a particualr graph)
// Test :: execCxt.getActiveGraph()
if ( ! ( execCxt.getActiveGraph() instanceof GraphBase ) )
// Example: pass on up to the original StageGenerator if
// not based on GraphBase (which most Graph implementations are).
return other.execute(pattern, input, execCxt) ;
System.err.println("MyStageGenerator.compile:: triple patterns = "+pattern.size()) ;
// Stream the triple matches together, one triple matcher at a time.
QueryIterator qIter = input ;
for (Triple triple : pattern.getList())
qIter = new QueryIterTriplePattern(qIter, triple, execCxt) ;
return qIter ;
}