Skip to content

Template

A template is a definition that can be used to provide values and structure to a newly created element. It is implemented as a collection of anchored elements with the Template classification attached to the anchor element. The Template classification provides descriptive information about the purpose and use of the template.

When a new element is created from a template, it is linked back to its template using the SourcedFrom relationship so that it is possible to trace the elements derived from a template if an update is required. Templates also have a version identifier associated with them (in the Template classification). When a new version of the template is created, it is also linked to the previous version using the SourcedFrom relationship.

The metadata elements that make up a template have placeholder properties in their attributes, values for which are supplied when the template is used. Placeholders are written as ~{placeholderName}~. The specification for these placeholder properties is defined using SpecificationPropertyValue entities (a type of ValidValueDefinition) linked to the template's anchor element using the SpecificationPropertyAssignment relationship, with the property type placeholderProperty.

Templates can be attached to other elements using the CatalogTemplate relationship. The content packs use this relationship to link each technology type to the templates for cataloguing resources of that type, and the Automated Curation API follows it when it retrieves the templates for a technology type.

Further Information