Data Shapes
A data shape defines the attributes of a resource. For each resource provider Template, a data shape, named by the template, defines the additional attributes of the resources it provides that are not defined in its parent resource provider template. For example:
  • PTC.Resource.TemplateDataShape defines “Id” and “CreateTimestamp” attributes for any resources provided by PTC.Resource.ResourceProviderTemplate.
  • PTC.Resource.Asset.ThingworxAssetTemplateDataShape defines only "Name" attribute for any asset resource provided by PTC.Resource. Asset.ThingworxAssetResourceProviderTemplate, since "Id" and "CreateTimestamp" attributes are already defined in PTC.Resource.TemplateDataShape for the parent PTC.Resource. ResourceProviderTemplate.
These data shapes, along with their corresponding resource provider templates, are the artifacts of resource modeling.
For each resource provider thing, a data shape is automatically created with the same naming convention. For instance, PTC.Resource.Asset.ThingworxAssetDataShape is the data shape generated by PTC.Resource.Asset.ThingworxAssetResourceProvider thing. The generated data shape has all of the normalized attributes of the resource in the mapping configuration table on the resource provider thing. It is the artifact of customization from attribute mapping configuration.