Search in sources :

Example 1 with UpdateRequestSink

use of org.apache.jena.sparql.modify.UpdateRequestSink in project jena by apache.

the class UpdateFactory method make.

// Worker.
/** Append update operations to a request */
private static void make(UpdateRequest request, String input, String baseURI, Syntax syntax) {
    UpdateParser parser = setupParser(request, baseURI, syntax);
    parser.parse(new UpdateRequestSink(request), input);
}
Also used : UpdateRequestSink(org.apache.jena.sparql.modify.UpdateRequestSink) UpdateParser(org.apache.jena.sparql.lang.UpdateParser)

Example 2 with UpdateRequestSink

use of org.apache.jena.sparql.modify.UpdateRequestSink in project jena by apache.

the class UpdateFactory method make.

/** Append update operations to a request */
private static void make(UpdateRequest request, UsingList usingList, InputStream input, String baseURI, Syntax syntax) {
    UpdateParser parser = setupParser(request, baseURI, syntax);
    UpdateSink sink = new UsingUpdateSink(new UpdateRequestSink(request), usingList);
    try {
        parser.parse(sink, input);
    } finally {
        sink.close();
    }
}
Also used : UsingUpdateSink(org.apache.jena.sparql.modify.UsingUpdateSink) UpdateSink(org.apache.jena.sparql.modify.UpdateSink) UsingUpdateSink(org.apache.jena.sparql.modify.UsingUpdateSink) UpdateRequestSink(org.apache.jena.sparql.modify.UpdateRequestSink) UpdateParser(org.apache.jena.sparql.lang.UpdateParser)

Aggregations

UpdateParser (org.apache.jena.sparql.lang.UpdateParser)2 UpdateRequestSink (org.apache.jena.sparql.modify.UpdateRequestSink)2 UpdateSink (org.apache.jena.sparql.modify.UpdateSink)1 UsingUpdateSink (org.apache.jena.sparql.modify.UsingUpdateSink)1