https://www.w3.org/TR/rdf12-turtle/#grammar-production-annotation annotation ::= (reifier | annotationBlock)*
https://www.w3.org/TR/rdf12-turtle/#grammar-production-annotationBlock annotationBlock ::= '{|' predicateObjectList '|}'
An array of recognition exceptions that occurred during parsing. This can be used to identify and handle any syntax errors in the input document.
A map of prefixes to their namespace IRI.
https://www.w3.org/TR/rdf12-turtle/#grammar-production-objectList objectList ::= object annotation ( ',' object annotation )*
Flag indicating the Parser is at the recording phase. Can be used to implement methods similar to BaseParser.ACTION Or any other logic to requires knowledge of the recording phase. See:
https://www.w3.org/TR/rdf12-turtle/#grammar-production-reifiedTriple reifiedTriple ::= '<<' rtSubject verb rtObject reifier? '>>'
https://www.w3.org/TR/rdf12-turtle/#grammar-production-reifier reifier ::= '~' (iri | BlankNode)?
https://www.w3.org/TR/rdf12-turtle/#grammar-production-rtObject rtObject ::= iri | BlankNode | literal | tripleTerm | reifiedTriple
https://www.w3.org/TR/rdf12-turtle/#grammar-production-rtSubject rtSubject ::= iri | BlankNode | reifiedTriple
Semantic errors collected during parsing (e.g., UndefinedNamespacePrefixError).
https://www.w3.org/TR/rdf12-turtle/#grammar-production-sparqlVersion sparqlVersion ::= "VERSION" VersionSpecifier
https://www.w3.org/TR/rdf12-turtle/#grammar-production-tripleTerm tripleTerm ::= '<<(' ttSubject verb ttObject ')>>'
https://www.w3.org/TR/rdf12-turtle/#grammar-production-ttObject ttObject ::= iri | BlankNode | literal | tripleTerm
https://www.w3.org/TR/rdf12-turtle/#grammar-production-ttSubject ttSubject ::= iri | BlankNode
https://www.w3.org/TR/rdf12-turtle/#grammar-production-version version ::= '@version' VersionSpecifier '.'
https://www.w3.org/TR/rdf12-turtle/#grammar-production-VersionSpecifier VersionSpecifier ::= STRING_LITERAL_QUOTE | STRING_LITERAL_SINGLE_QUOTE
An array of tokens that were created by the lexer and used as input for the parser. This can be used to inspect the tokens that were processed during parsing, and to identify any issues with the tokenization process.
An array of tokens that were created by the lexer and used as input for the parser. This can be used to inspect the tokens that were processed during parsing, and to identify any issues with the tokenization process.
Parses a set of tokens created by the lexer into a concrete syntax tree (CST) representing the parsed document.
A set of tokens created by the lexer.
Whether to throw an error if any parsing errors are detected. Defaults to true.
A concrete syntax tree (CST) object.
Resets the parser state, should be overridden for custom parsers which "carry" additional state. When overriding, remember to also invoke the super implementation!
A W3C compliant parser for the TriG syntax. https://www.w3.org/TR/trig