本文整理匯總了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 ;
}