Package com.hp.hpl.jena.sparql

Examples of com.hp.hpl.jena.sparql.ARQInternalErrorException


            return new LiteralImpl(n, null) ;
               
        if ( n.isURI() || n.isBlank() )
            return new ResourceImpl(n, null) ;
       
        throw new ARQInternalErrorException("Unknown node type for node: "+n) ;
    }
View Full Code Here


   
    public static Statement tripleToStatement(Model model, Triple t)
    {
        if ( model == null )
            throw new ARQInternalErrorException("Attempt to create statement with null model") ;
       
        Node sNode = t.getSubject() ;
        Node pNode = t.getPredicate() ;
        Node oNode = t.getObject() ;
       
View Full Code Here

    @Override
    public QueryIterator execOneList(Binding binding, Node listNode, Node predicate, Node length, ExecutionContext execCxt)
    {
        Graph graph = execCxt.getActiveGraph() ;
        if ( Var.isVar(listNode) )
            throw new ARQInternalErrorException("listLength: Subject is a variable") ;
        // Case : arg 1 (the list) is bound and arg 2 not bound => generate possibilities
        // Case : arg 1 is bound and arg 2 is bound => test for membership.

        if ( Var.isVar(length) )
            return length(binding, graph, listNode,  Var.alloc(length) , execCxt) ;
View Full Code Here

                    return buildItem(item) ;
                }
               
                return buildKnownFunction(list) ;               
            }
            throw new ARQInternalErrorException() ;
        }
   
        if ( item.isNode() )
        {
            if ( Var.isVar(item.getNode()) )
View Full Code Here

    }
   
    protected final void broken(String msg)
    {
        //System.err.println("AlgebraGenerator: "+msg) ;
        throw new ARQInternalErrorException(msg) ;
    }
View Full Code Here

    @Override
    public final NodeValue exec(List<NodeValue> args)
    {
        if ( args == null )
            // The contract on the function interface is that this should not happen.
            throw new ARQInternalErrorException(Utils.className(this)+": Null args list") ;
       
        Iterator<NodeValue> iter = args.iterator() ;
        String sep = iter.next().asString() ;

        List<String> x = new ArrayList<String>() ;
View Full Code Here

        switch (linePolicy)
        {
            case NL:    out.println(); break ;
            case NoNL:  out.print(" ") ; break ;
            case NoSP:  break ;
            case UNDEF: throw new ARQInternalErrorException("Explicit tag not no line policy") ;
        }
        out.incIndent() ;
    }
View Full Code Here

        return NodeValue.booleanReturn(b) ;
    }
   
    @Override
    protected NodeValue eval(List<NodeValue> args)
    { throw new ARQInternalErrorException() ; }
View Full Code Here

        try
        {
            digestCache = MessageDigest.getInstance(digestName) ;
        } catch (NoSuchAlgorithmException e)
        {
            throw new ARQInternalErrorException("Digest not provided in this Java system: "+digestName) ;
        }
    }
View Full Code Here

    }
   
    private MessageDigest createDigest()
    {
        try { return MessageDigest.getInstance(digestName) ; }
        catch (Exception ex2) { throw new ARQInternalErrorException(ex2) ; }
    }
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.sparql.ARQInternalErrorException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.