Interface IOService

  • All Known Implementing Classes:
    JenaIOService

    public interface IOService
    The IOService defines methods for reading, writing and updating RDF streams to/from a concrete RDF 1.1 syntax.
    • Method Detail

      • write

        void write​(Stream<Triple> triples,
                   OutputStream output,
                   RDFSyntax syntax,
                   String context,
                   IRI... profiles)
        Serialize the triple stream in a concrete RDF syntax.
        Parameters:
        triples - the stream of triples
        output - the output stream
        syntax - the output format
        context - the context to resolve relative IRIs
        profiles - additional profile information used for output
      • read

        Stream<Triple> read​(InputStream input,
                            RDFSyntax syntax,
                            String context)
        Read an input stream into a stream of triples.
        Parameters:
        input - the input stream
        syntax - the RDF syntax
        context - the RDF context
        Returns:
        a stream of triples
      • update

        void update​(Graph graph,
                    String update,
                    RDFSyntax syntax,
                    String context)
        Apply a Sparql-Update operation over a Graph.
        Parameters:
        graph - the input graph
        update - the sparql-update request
        syntax - the RDF syntax
        context - the context to resolve relative IRIs
      • supportedReadSyntaxes

        List<RDFSyntax> supportedReadSyntaxes()
        Retrieve the set of valid syntaxes for read operations.
        Returns:
        the syntaxes for reading resources.
      • supportedWriteSyntaxes

        List<RDFSyntax> supportedWriteSyntaxes()
        Retrieve the set of valid syntaxes for write operations.
        Returns:
        the syntaxes for writing resources.
      • supportedUpdateSyntaxes

        List<RDFSyntax> supportedUpdateSyntaxes()
        Retrieve the set of valid syntaxes for update operations.
        Returns:
        the syntaxes for updating resources.