本文整理了Java中org.apache.jena.sparql.algebra.Algebra.exec()
方法的一些代码示例,展示了Algebra.exec()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Algebra.exec()
方法的具体详情如下:
包路径:org.apache.jena.sparql.algebra.Algebra
类名称:Algebra
方法名:exec
暂无
代码示例来源:origin: apache/jena
static public QueryIterator exec(Op op, Dataset ds)
{
return exec(op, ds.asDatasetGraph()) ;
}
代码示例来源:origin: apache/jena
static public QueryIterator exec(Op op, Model model)
{
return exec(op, model.getGraph()) ;
}
代码示例来源:origin: apache/jena
static public QueryIterator exec(Op op, Graph graph)
{
return exec(op, DatasetGraphFactory.wrap(graph)) ;
}
代码示例来源:origin: apache/jena
private List<Binding> exec(Op op) {
QueryIterator qIter = Algebra.exec(op, dsg) ;
return Iter.toList(qIter) ;
}
代码示例来源:origin: apache/jena
private static ResultSet exec(String pattern, Graph graph)
{
Op op = SSE.parseOp(pattern, pmap) ;
List<Var> vars = new ArrayList<>() ;
vars.addAll(OpVars.visibleVars(op)) ;
QueryIterator qIter = Algebra.exec(op, graph) ;
return ResultSetFactory.create(qIter, Var.varNames(vars)) ;
}
代码示例来源:origin: apache/jena
public static void execute(Op op, DatasetGraph dsg, ResultsFormat outputFormat) {
QueryIterator qIter = Algebra.exec(op, dsg) ;
List<String> vars = null ;
if ( op instanceof OpProject )
vars = Var.varNames(((OpProject)op).getVars()) ;
else
// The variables defined in patterns (not Filters, nor NOT EXISTS,
// nor ORDER BY)
vars = Var.varNames(OpVars.visibleVars(op)) ;
ResultSet results = ResultSetFactory.create(qIter, vars) ;
outputResultSet(results, null, outputFormat) ;
}
代码示例来源:origin: org.apache.jena/jena-tdb
private static ResultSet exec(String pattern, Graph graph)
{
Op op = SSE.parseOp(pattern, pmap) ;
List<Var> vars = new ArrayList<>() ;
vars.addAll(OpVars.visibleVars(op)) ;
QueryIterator qIter = Algebra.exec(op, graph) ;
return ResultSetFactory.create(qIter, Var.varNames(vars)) ;
}
代码示例来源:origin: org.apache.jena/jena-tdb2
private static ResultSet exec(String pattern)
{
Op op = SSE.parseOp(pattern, pmap) ;
List<Var> vars = new ArrayList<>() ;
vars.addAll(OpVars.visibleVars(op)) ;
//op = Algebra.toQuadForm(op);
QueryIterator qIter = Algebra.exec(op, dataset.asDatasetGraph());
// Will go via the StageGeneratorDirectTDB for TDB2
// QueryIterator qIter = Algebra.exec(op, dataset.asDatasetGraph().getDefaultGraph());
return ResultSetFactory.create(qIter, Var.varNames(vars)) ;
}
代码示例来源:origin: apache/jena
private static ResultSet exec(String pattern)
{
Op op = SSE.parseOp(pattern, pmap) ;
List<Var> vars = new ArrayList<>() ;
vars.addAll(OpVars.visibleVars(op)) ;
//op = Algebra.toQuadForm(op);
QueryIterator qIter = Algebra.exec(op, dataset.asDatasetGraph());
// Will go via the StageGeneratorDirectTDB for TDB2
// QueryIterator qIter = Algebra.exec(op, dataset.asDatasetGraph().getDefaultGraph());
return ResultSetFactory.create(qIter, Var.varNames(vars)) ;
}
代码示例来源:origin: apache/jena
QueryIterator qIter = Algebra.exec(op, dsg) ;
Plan plan = new PlanOp(op, null, qIter) ;
divider() ;
代码示例来源:origin: org.apache.jena/jena-cmds
QueryIterator qIter = Algebra.exec(op, dsg) ;
Plan plan = new PlanOp(op, null, qIter) ;
divider() ;
内容来源于网络,如有侵权,请联系作者删除!