Interface ReaderRIOT

    • Method Detail

      • read

        void read​(java.io.InputStream in,
                  java.lang.String baseURI,
                  ContentType ct,
                  StreamRDF output,
                  Context context)
        Read from an InputStream and output RDF on the StreamRDF.
        Parameters:
        in - InputStream
        baseURI - Base URI (or null)
        ct - Content-Type if available. Routing to the right parser will have already been done so this only useful to get addition Content-Type information or if this ReaderRIOT can handle multiple media types.
        output - Destination for the parser output.
        context - Environment settings.
      • read

        void read​(java.io.Reader reader,
                  java.lang.String baseURI,
                  ContentType ct,
                  StreamRDF output,
                  Context context)
        Read from an InputStream and output RDF on the StreamRDF.
        Parameters:
        reader - Reader. InputStreams are preferred because Reader do not allow RIOT to set the character set.
        baseURI - Base URI (or null)
        ct - Content-Type if available. Routing to the right parser will have already been done so this only useful to get addition Content-Type information or if this ReaderRIOT can handle multiple media types.
        output - Destination for the parser output.
        context - Environment settings.