Class SpecificResource

Developer note: This implementation does not strictly adhere to the description of SpecificResource in the Web Annotation Model document https://www.w3.org/TR/annotation-model/ section 4 : https://www.w3.org/TR/annotation-model/#specific-resources

The getTransform() method returning an Array of 3D Transfom resources, is an extension of SpecificResource beyond the web annotation model.

Hierarchy (view full)

Constructors

Properties

__jsonld: any
context: string
externalResource: IExternalResource
id: string
isAnnotationBody: boolean = false
isSpecificResource: boolean = true

Accessors

Methods

  • 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