• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java ARQInternalErrorException类的典型用法和代码示例

java 2次浏览

本文整理汇总了Java中org.apache.jena.sparql.ARQInternalErrorException的典型用法代码示例。如果您正苦于以下问题:Java ARQInternalErrorException类的具体用法?Java ARQInternalErrorException怎么用?Java ARQInternalErrorException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

ARQInternalErrorException类属于org.apache.jena.sparql包,在下文中一共展示了ARQInternalErrorException类的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: exec

点赞 3

import org.apache.jena.sparql.ARQInternalErrorException; //导入依赖的package包/类
@Override
public NodeValue exec(List<NodeValue> args) {
    if (args == null) {
        // The contract on the function interface is that this should not happen.
        throw new ARQInternalErrorException(Lib.className(this) + ": Null args list");
    }

    if (args.size() != 6) {
        throw new ExprEvalException(Lib.className(this) + ": Wrong number of arguments: Wanted 2, got " + args.size());
    }

    NodeValue v1 = args.get(0);
    NodeValue v2 = args.get(1);
    NodeValue v3 = args.get(2);
    NodeValue v4 = args.get(3);
    NodeValue v5 = args.get(4);
    NodeValue v6 = args.get(5);

    return exec(v1, v2, v3, v4, v5, v6);
}
 

开发者ID:thesmartenergy,
项目名称:sparql-generate,
代码行数:21,
代码来源:FUN_CustomCSV.java

示例2: exec

点赞 3

import org.apache.jena.sparql.ARQInternalErrorException; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public final List<NodeValue> exec(List<NodeValue> args) {
    if (args == null) {
        throw new ARQInternalErrorException(this.getClass().getName()
                + ": Null args list");
    }
    if (args.size() != 3) {
        throw new ExprEvalException(this.getClass().getName()
                + ": Wrong number of arguments: Wanted 3, got "
                + args.size());
    }
    NodeValue v1 = args.get(0);
    NodeValue v2 = args.get(1);
    NodeValue v3 = args.get(2);
    return exec(v1, v2, v3);
}
 

开发者ID:thesmartenergy,
项目名称:sparql-generate,
代码行数:20,
代码来源:IteratorFunctionBase3.java

示例3: exec

点赞 3

import org.apache.jena.sparql.ARQInternalErrorException; //导入依赖的package包/类
@Override
public void exec(
        Binding binding, ExprList args, FunctionEnv env, Consumer<List<NodeValue>> nodeValuesStream) {
    this.env = env;
    if (args == null) {
        throw new ARQInternalErrorException("IteratorFunctionBase:"
                + " Null args list");
    }

    List<NodeValue> evalArgs = new ArrayList<>();
    for (Expr e : args) {
        NodeValue x = e.eval(binding, env);
        evalArgs.add(x);
    }

    exec(evalArgs, nodeValuesStream);
    arguments = null;
}
 

开发者ID:thesmartenergy,
项目名称:sparql-generate,
代码行数:19,
代码来源:IteratorStreamFunctionBase.java

示例4: exec

点赞 3

import org.apache.jena.sparql.ARQInternalErrorException; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public final void exec(List<NodeValue> args, Consumer<List<NodeValue>> nodeValuesStream) {
    if (args == null) {
        throw new ARQInternalErrorException(this.getClass().getName()
                + ": Null args list");
    }
    if (args.size() != 5) {
        throw new ExprEvalException(this.getClass().getName()
                + ": Wrong number of arguments: Wanted 2, got "
                + args.size());
    }
    NodeValue v1 = args.get(0);
    NodeValue v2 = args.get(1);
    NodeValue v3 = args.get(2);
    NodeValue v4 = args.get(3);
    NodeValue v5 = args.get(4);
    exec(v1, v2,v3,v4,v5, nodeValuesStream);
}
 

开发者ID:thesmartenergy,
项目名称:sparql-generate,
代码行数:22,
代码来源:IteratorStreamFunctionBase5.java

示例5: exec

点赞 3

import org.apache.jena.sparql.ARQInternalErrorException; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public final void exec(List<NodeValue> args, Consumer<List<NodeValue>> nodeValuesStream) {
    if (args == null) {
        throw new ARQInternalErrorException(this.getClass().getName()
                + ": Null args list");
    }
    if (args.size() != 2) {
        throw new ExprEvalException(this.getClass().getName()
                + ": Wrong number of arguments: Wanted 2, got "
                + args.size());
    }
    NodeValue v1 = args.get(0);
    NodeValue v2 = args.get(1);
    exec(v1, v2, nodeValuesStream);
}
 

开发者ID:thesmartenergy,
项目名称:sparql-generate,
代码行数:19,
代码来源:IteratorStreamFunctionBase2.java

示例6: exec

点赞 3

import org.apache.jena.sparql.ARQInternalErrorException; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public final List<NodeValue> exec(List<NodeValue> args) {
    if (args == null) {
        throw new ARQInternalErrorException(this.getClass().getName()
                + ": Null args list");
    }
    if (args.size() != 5) {
        throw new ExprEvalException(this.getClass().getName()
                + ": Wrong number of arguments: Wanted 2, got "
                + args.size());
    }
    NodeValue v1 = args.get(0);
    NodeValue v2 = args.get(1);
    NodeValue v3 = args.get(2);
    NodeValue v4 = args.get(3);
    NodeValue v5 = args.get(4);
    return exec(v1, v2,v3,v4,v5);
}
 

开发者ID:thesmartenergy,
项目名称:sparql-generate,
代码行数:22,
代码来源:IteratorFunctionBase5.java

示例7: exec

点赞 3

import org.apache.jena.sparql.ARQInternalErrorException; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public final List<NodeValue> exec(List<NodeValue> args) {
    if (args == null) {
        throw new ARQInternalErrorException(this.getClass().getName()
                + ": Null args list");
    }
    if (args.size() != 2) {
        throw new ExprEvalException(this.getClass().getName()
                + ": Wrong number of arguments: Wanted 2, got "
                + args.size());
    }
    NodeValue v1 = args.get(0);
    NodeValue v2 = args.get(1);
    return exec(v1, v2);
}
 

开发者ID:thesmartenergy,
项目名称:sparql-generate,
代码行数:19,
代码来源:IteratorFunctionBase2.java

示例8: exec

点赞 3

import org.apache.jena.sparql.ARQInternalErrorException; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public final void exec(List<NodeValue> args, Consumer<List<NodeValue>> nodeValuesStream) {
    if (args == null) {
        throw new ARQInternalErrorException(this.getClass().getName()
                + ": Null args list");
    }
    if (args.size() != 3) {
        throw new ExprEvalException(this.getClass().getName()
                + ": Wrong number of arguments: Wanted 3, got "
                + args.size());
    }
    NodeValue v1 = args.get(0);
    NodeValue v2 = args.get(1);
    NodeValue v3 = args.get(2);
    exec(v1, v2, v3, nodeValuesStream);
}
 

开发者ID:thesmartenergy,
项目名称:sparql-generate,
代码行数:20,
代码来源:IteratorStreamFunctionBase3.java

示例9: reorder

点赞 3

import org.apache.jena.sparql.ARQInternalErrorException; //导入依赖的package包/类
private static BasicPattern reorder(BasicPattern pattern, QueryIterPeek peek, ReorderTransformation transform)
{
    if ( transform != null )
    {
        // This works by getting one result from the peek iterator,
        // and creating the more gounded BGP. The tranform is used to
        // determine the best order and the transformation is returned. This
        // transform is applied to the unsubstituted pattern (which will be
        // substituted as part of evaluation.

        if ( ! peek.hasNext() )
            throw new ARQInternalErrorException("Peek iterator is already empty") ;

        BasicPattern pattern2 = Substitute.substitute(pattern, peek.peek() ) ;
        // Calculate the reordering based on the substituted pattern.
        ReorderProc proc = transform.reorderIndexes(pattern2) ;
        // Then reorder original patten
        pattern = proc.reorder(pattern) ;
    }
    return pattern ;
}
 

开发者ID:LinkedDataFragments,
项目名称:Client.Java,
代码行数:22,
代码来源:OpExecutorLDF.java

示例10: visit

点赞 2

import org.apache.jena.sparql.ARQInternalErrorException; //导入依赖的package包/类
@Override
public void visit(ExprFunctionOp funcOp) {
    String fn = funcOp.getFunctionPrintName(context);
    if (funcOp instanceof E_NotExists) {
        fn = "NOT EXISTS";
    } else if (funcOp instanceof E_Exists) {
        fn = "EXISTS";
    } else {
        throw new ARQInternalErrorException("Unrecognized ExprFunctionOp: " + fn);
    }

    SPARQLGenerateFormatterElement fmtElt = new SPARQLGenerateFormatterElement(out, context);
    out.print(fn);
    out.print(" ");
    int indent = out.getAbsoluteIndent();
    int currentCol = out.getCol();
    try {
        out.setAbsoluteIndent(currentCol);
        Element el = funcOp.getElement();
        if (el == null) {
            el = OpAsQuery.asQuery(funcOp.getGraphPattern()).getQueryPattern();
        }
        el.visit(fmtElt);
    } finally {
        out.setAbsoluteIndent(indent);
    }
}
 

开发者ID:thesmartenergy,
项目名称:sparql-generate,
代码行数:28,
代码来源:SPARQLGenerateFmtExprSPARQL.java

示例11: exec

点赞 2

import org.apache.jena.sparql.ARQInternalErrorException; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public final void exec(List<NodeValue> args, Consumer<List<NodeValue>> nodeValuesStream) {
    if (args == null) {
        throw new ARQInternalErrorException("SelectorBase1:"
                + " Null args list");
    }
    if (args.size() != 1) {
        throw new ExprEvalException("SelectorBase1: Wrong number of"
                + " arguments: Wanted 1, got " + args.size());
    }
    NodeValue v1 = args.get(0);
    exec(v1, nodeValuesStream);
}
 

开发者ID:thesmartenergy,
项目名称:sparql-generate,
代码行数:17,
代码来源:IteratorStreamFunctionBase1.java

示例12: exec

点赞 2

import org.apache.jena.sparql.ARQInternalErrorException; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public final List<NodeValue> exec(List<NodeValue> args) {
    if (args == null) {
        throw new ARQInternalErrorException("Iterator function '"
                + this.getClass().getName() + " Null args list");
    }
    if (!args.isEmpty()) {
        throw new ExprEvalException("Iterator function '"
                + this.getClass().getName() + " Wanted 0, got "
                + args.size());
    }
    return exec();
}
 

开发者ID:thesmartenergy,
项目名称:sparql-generate,
代码行数:17,
代码来源:IteratorFunctionBase0.java

示例13: exec

点赞 2

import org.apache.jena.sparql.ARQInternalErrorException; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public final List<NodeValue> exec(List<NodeValue> args) {
    if (args == null) {
        throw new ARQInternalErrorException("SelectorBase1:"
                + " Null args list");
    }
    if (args.size() != 1) {
        throw new ExprEvalException("SelectorBase1: Wrong number of"
                + " arguments: Wanted 1, got " + args.size());
    }
    NodeValue v1 = args.get(0);
    return exec(v1);
}
 

开发者ID:thesmartenergy,
项目名称:sparql-generate,
代码行数:17,
代码来源:IteratorFunctionBase1.java

示例14: exec

点赞 2

import org.apache.jena.sparql.ARQInternalErrorException; //导入依赖的package包/类
/**
 * {@inheritDoc}
 */
@Override
public final void exec(List<NodeValue> args, Consumer<List<NodeValue>> nodeValuesStream) {
    if (args == null) {
        throw new ARQInternalErrorException(this.getClass().getName()
                + ": Null args list");
    }
    int size = args.size();
    NodeValue v1 = args.size() > 1 ? args.get(0) : null;
    NodeValue v2 = args.size() > 2 ? args.get(1) : null;
    NodeValue v3 = args.size() > 3 ? args.get(2) : null;
    NodeValue v4 = args.size() > 4 ? args.get(3) : null;
    exec(v1, v2, v3, v4, nodeValuesStream);
}
 

开发者ID:thesmartenergy,
项目名称:sparql-generate,
代码行数:17,
代码来源:IteratorStreamFunctionBase4.java

示例15: QueryIterExtendByVar2

点赞 2

import org.apache.jena.sparql.ARQInternalErrorException; //导入依赖的package包/类
public QueryIterExtendByVar2(Binding binding, Var var1, Var var2, Iterator<Entry<Node,Node>> entries, ExecutionContext execCxt) {
    super(execCxt);
    if ( true ) { // Assume not too costly.
        if ( binding.contains(var1) )
            throw new ARQInternalErrorException("Var " + var1 + " already set in " + binding);
        if ( binding.contains(var2) )
            throw new ARQInternalErrorException("Var " + var2 + " already set in " + binding);
    }
    this.binding = binding;
    this.var1 = var1 ;
    this.var2 = var2 ;
    this.entries = entries;
}
 

开发者ID:afs,
项目名称:jena-inf-engine,
代码行数:14,
代码来源:PFbyTable.java

示例16: exec

点赞 2

import org.apache.jena.sparql.ARQInternalErrorException; //导入依赖的package包/类
@Override
public NodeValue exec(Binding binding, ExprList args, String uri, FunctionEnv env) {
	if (args == null) {
		throw new ARQInternalErrorException("ExpandPrefixFunction: Null args list");
	}
	if (args.size() != 1) {
		throw new ExprEvalException("ExpandPrefixFunction: Wrong number of arguments: Wanted 1, got " + args.size());
	}
       return exec(args.get(0).eval(binding, env), env.getContext());
}
 

开发者ID:tarql,
项目名称:tarql,
代码行数:11,
代码来源:ExpandPrefixFunction.java

示例17: create

点赞 2

import org.apache.jena.sparql.ARQInternalErrorException; //导入依赖的package包/类
@Override
public Plan create(Op op, DatasetGraph dataset, Binding inputBinding, Context context) {
    // Should not be called because accept/Op is false
    throw new ARQInternalErrorException("LDFQueryEngine: factory called directly with an algebra expression");
}
 

开发者ID:LinkedDataFragments,
项目名称:Client.Java,
代码行数:6,
代码来源:LinkedDataFragmentEngine.java

示例18: create

点赞 2

import org.apache.jena.sparql.ARQInternalErrorException; //导入依赖的package包/类
@Override
public Plan create(Op op, DatasetGraph dataset, Binding inputBinding, Context context)
{   // Shodul notbe called because acceept/Op is false
    throw new ARQInternalErrorException("MyQueryEngine: factory calleddirectly with an algebra expression") ;
}
 

开发者ID:xcurator,
项目名称:xcurator,
代码行数:6,
代码来源:MyQueryEngine.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)