manifesto
    Preparing search index...

    Class TextualBody

    An implementation of the TextualBody class (class in JSON-LD sense) as it is described in Web Annotation Data Model Section 3.2.4 https://www.w3.org/TR/annotation-model/#embedded-textual-body *

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    __jsonld: any
    context: string
    externalResource: IExternalResource
    id: string

    Accessors

    • get Value(): string

      The simple string that is the data content of this resource will return empty string as a default value *

      Returns string

    Methods

    • returns the PropertyValue which in turn allows a language-specific string encoded in the json as the "label" property

      Returns PropertyValue

      var label = manifest.getLabel().getValue(); // returns the string for default locale
      
      var label = manifest.getLabel().getValue(locale); // locale a string , examples
      // would be "fr", "en-US",
    • A function that wraps the getProperty function, which client code can use if it is needed to identify when the json value of a property is an IRI -- Internationalized Resource Identifier

      If the value of the json value is a bare string, then it will be wrapped in a json object with the string in the property 'id', additionally that property will have a property 'isIRI' which will be true for the literal string case, otherwise false meaning the returned getProperty should be parsed as before.

      Parameters

      • name: string

      Returns any