The base IRI of the document.
A map of prefixes to their namespace IRI.
Process an annotation node: (reifier | annotationBlock)* This is only visited when needed, not always.
Process an annotationBlock node: {| predicateObjectList |}
Process annotation context from the CST. Annotations create reifiers and emit triples.
Parse the document and return quad information with source tokens. This is useful for IDE features that need to associate positions with triples.
Optionaltokens: IToken[]Process a reifiedTriple node. Returns the reifier node (IRI or blank node). Emits: reifierNode rdf:reifies <<( s p o )>> .
Process a reifier node: ~ (iri | BlankNode)? Returns the reifier term (IRI, blank node, or fresh blank node).
Process a tripleTerm node: <<( s p o )>> Returns a triple term (RDF/JS Quad used as a term).
Interpret escape sequences in a Turtle string value.
Will throw an error if the visitor is missing any required methods
visitXYZ for each XYZ grammar rule.Optionalparam: any
A visitor class that constructs RDF/JS quads from Turtle syntax trees.