本文整理汇总了Java中com.hp.hpl.jena.sparql.algebra.op.OpTable.unit方法的典型用法代码示例。如果您正苦于以下问题:Java OpTable.unit方法的具体用法?Java OpTable.unit怎么用?Java OpTable.unit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.hp.hpl.jena.sparql.algebra.op.OpTable
的用法示例。
在下文中一共展示了OpTable.unit方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: compileElementGroup
import com.hp.hpl.jena.sparql.algebra.op.OpTable; //导入方法依赖的package包/类
protected Op compileElementGroup(ElementGroup groupElt) {
Op current = OpTable.unit();
// First: get all filters, merge adjacent BGPs. This includes BGP-FILTER-BGP
// This is done in finalizeSyntax after which the new ElementGroup is in
// the right order w.r.t. BGPs and filters.
// This is a delay from parsing time so a printed query
// keeps filters where the query author put them.
List<Element> groupElts = finalizeSyntax(groupElt);
// Second: compile the consolidated group elements.
// Assumes that filters moved to end.
for (Iterator<Element> iter = groupElts.listIterator(); iter.hasNext(); ) {
Element elt = iter.next();
current = compileOneInGroup(elt, current);
}
return current;
}
示例2: compilePathBlock
import com.hp.hpl.jena.sparql.algebra.op.OpTable; //导入方法依赖的package包/类
protected Op compilePathBlock(PathBlock pathBlock) {
// Empty path block : the parser does not generate this case.
if ( pathBlock.isEmpty() ) {
return OpTable.unit();
}
// Always turns the most basic paths to triples.
return PathLib.pathToTriples(pathBlock);
}
示例3: effectiveOp
import com.hp.hpl.jena.sparql.algebra.op.OpTable; //导入方法依赖的package包/类
@Override
public Op effectiveOp() {
return OpTable.unit();
}
示例4: OpUnionTableSQL
import com.hp.hpl.jena.sparql.algebra.op.OpTable; //导入方法依赖的package包/类
public OpUnionTableSQL(Collection<OpTableSQL> tableOps) {
this(tableOps, OpTable.unit());
}