Package com.hp.hpl.jena.sparql.modify.request

Examples of com.hp.hpl.jena.sparql.modify.request.UpdateWithUsing


        // ---- update request to have USING/USING NAMED
        if ( null != usingList && usingList.usingIsPresent() )
        {
            if ( update instanceof UpdateWithUsing )
            {
                UpdateWithUsing upu = (UpdateWithUsing)update ;
                if ( upu.getUsing().size() != 0 || upu.getUsingNamed().size() != 0 || upu.getWithIRI() != null )
                    throw new UpdateException("SPARQL Update: Protocol using-graph-uri or using-named-graph-uri present where update request has USING, USING NAMED or WITH") ;
                for ( Node node : usingList.getUsing() )
                    upu.addUsing(node) ;
                for ( Node node : usingList.getUsingNamed() )
                    upu.addUsingNamed(node) ;
            }
        }
       
        sink.send(update);
    }
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.sparql.modify.request.UpdateWithUsing

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.