Class TurtleParser

  • All Implemented Interfaces:
    RDFParser
    Direct Known Subclasses:
    N3Parser, TriGParser, TurtleStarParser

    public class TurtleParser
    extends AbstractRDFParser
    RDF parser for RDF-1.1 Turtle files. This parser is not thread-safe, therefore its public methods are synchronized.

  • Normalization of integer, floating point and boolean values is dependent on the specified datatype handling. According to the specification, integers and booleans should be normalized, but floats don't.
  • Comments can be used anywhere in the document, and extend to the end of the line. The Turtle grammar doesn't allow comments to be used inside triple constructs that extend over multiple lines, but the author's own parser deviates from this too.
Author:
Arjohn Kampman, Peter Ansell