Class TurtleJavaccReaderRIOT

  • All Implemented Interfaces:
    ReaderRIOT

    public class TurtleJavaccReaderRIOT
    extends java.lang.Object
    implements ReaderRIOT
    Turtle parser, written using JavaCC. This is not used normally. It is slower than the RIOT LangTurtle. It may not be up-to-date but at least in the codebase means it should be java-compatible. It exists so that there is a JavaCC grammar that can be used as a basis for other languages.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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.
      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.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TurtleJavaccReaderRIOT

        public TurtleJavaccReaderRIOT​(ParserProfile profile)
    • Method Detail

      • read

        public void read​(java.io.InputStream in,
                         java.lang.String baseURI,
                         ContentType ct,
                         StreamRDF output,
                         Context context)
        Description copied from interface: ReaderRIOT
        Read from an InputStream and output RDF on the StreamRDF.
        Specified by:
        read in interface ReaderRIOT
        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

        public void read​(java.io.Reader reader,
                         java.lang.String baseURI,
                         ContentType ct,
                         StreamRDF output,
                         Context context)
        Description copied from interface: ReaderRIOT
        Read from an InputStream and output RDF on the StreamRDF.
        Specified by:
        read in interface ReaderRIOT
        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.