UNPKG

@iiif/3d-manifesto-dev

Version:

IIIF Presentation API utility library for client and server with 3D extension

21 lines (18 loc) 761 B
export declare class JSONLDResource { context: string; id: string; __jsonld: any; constructor(jsonld?: any); getProperty(name: string): any; /** 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. **/ getPropertyAsObject(name: string): any; }