/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.trellisldp.spi;

import java.io.InputStream;
import java.io.OutputStream;
import java.util.stream.Stream;

import org.apache.commons.rdf.api.IRI;
import org.apache.commons.rdf.api.RDFSyntax;
import org.apache.commons.rdf.api.Triple;

/**
 * The SerializationService defines methods for reading and writing RDF streams
 * to/from a concrete RDF 1.1 syntax.
 *
 * @author acoburn
 */
public interface SerializationService {

    /**
     * Serialize the triple stream as RDF
     * @param triples the stream of triples
     * @param output the output stream
     * @param syntax the output format
     * @param profiles additional profile information used for output
     */
    void write(Stream<Triple> triples, OutputStream output, RDFSyntax syntax, IRI... profiles);

    /**
     * Read an input stream into a stream of triples
     * @param input the input stream
     * @param context the RDF context
     * @param syntax the RDF syntax
     * @return a stream of triples
     */
    Stream<Triple> read(InputStream input, String context, RDFSyntax syntax);
}

@@ -674,16 +674,57 @@
 tream;%0A%0A
+import org.apache.commons.rdf.api.Graph;%0A
 import o
@@ -1670,11 +1670,208 @@
 syntax);
+%0A%0A    /**%0A     * Apply a Sparql-Update operation over a Graph%0A     * @param graph the input graph%0A     * @param update the sparql-update request%0A     */%0A    void update(Graph graph, String update);
 %0A%7D%0A

Add update method