Documentation - v1.7.0
    Preparing search index...

    Paragraph

    This class represents a paragraph in the annotations, containing text and entities.

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Constructor for the Paragraph class.

      Parameters

      • paragraphText: string

        The text of the paragraph.

      • OptionalparagraphEntities: REF_EntityJSONFormat[]

        An optional array of entities in the paragraph.

      Returns Paragraph

      This constructor initializes the Paragraph with text and an optional array of entities.

    Properties

    entities: Entity[]

    An array of entities in the paragraph.

    id: null | string = null

    The ID of the paragraph.

    text: string

    The text of the paragraph.

    Methods

    • Generates the RDF representation of the paragraph.

      Parameters

      • paragraphNumber: number

        position of the paragraph in the document

      • documentId: string

        unique identifier for the document

      • paragraphIds: string[]

        array of paragraph IDs

      • labelManager: LabelManager

        instance of LabelManager to include labels in the RDF export

      Returns string

      RDF representation of the paragraph