SCHEMA contains dictionaries defining the schema for the application. The entries will depend on the configuration of the application, and will be different for each application.
Use the properties as constants to find the types, attributes, groups, and so on, which your plugin uses for configuration and querying the object store. The names of the properties are the ‘API codes’ of each of these entities. For example:
var object = O.object(); object.appendType(TYPE["std:type:book"]); object.appendTitle("Example"); object.append(authorRef, ATTR["dc:attribute:author"]);
To make your code easier to read, you should use plugin local schema dictionaries. This could enable you to write:
var object = O.object(); object.appendType(T.Book); object.appendTitle("Example"); object.append(authorRef, A.Author);
As well as the schema objects, schema query functions are provided to retrieve details of the schema.
ATTR. The latter is recommended.