Class BlankNodeToken


  • public class BlankNodeToken
    extends LexicalUnit
    Represents a blank node inside a RDF N3 document. Contains all the logic to parse a blank node in N3 documents.
    • Field Detail

      • lexicalUnits

        private java.util.List<LexicalUnit> lexicalUnits
        List of lexical units contained by this blank node.
      • resolved

        private boolean resolved
        Indicates if the given blank node has been already resolved.
    • Constructor Detail

      • BlankNodeToken

        public BlankNodeToken​(RdfTurtleReader contentHandler,
                              Context context)
                       throws java.io.IOException
        Constructor. The blank node is given a new identifier thanks to the context.
        Parameters:
        contentHandler - The parent content handler.
        context - The context used to resolved references.
        Throws:
        java.io.IOException
      • BlankNodeToken

        public BlankNodeToken​(java.lang.String value)
        Constructor
        Parameters:
        value - The value of this blank node.
    • Method Detail

      • getLexicalUnits

        public java.util.List<LexicalUnit> getLexicalUnits()
      • parse

        public void parse()
                   throws java.io.IOException
        Description copied from class: LexicalUnit
        Contains the parsing logic of this lexical unit.
        Specified by:
        parse in class LexicalUnit
        Throws:
        java.io.IOException
      • resolve

        public java.lang.Object resolve()
        Description copied from class: LexicalUnit
        Resolves the current value as a reference or a literal or a graph of links according to the current context.
        Specified by:
        resolve in class LexicalUnit
        Returns:
        The current value as a reference or a literal or a graph of links according to the current context.