The new Entity format, also known as the MQL Entity Format,
is based on the SELECT list of an MQL query. The new Entity format contains a
single "attributes" property which consists of the attribute type names that
appear in the "select" property. For MQL SELECT list details, refer to Metadata Query Language
(MQL).
Following is a sample Entity object in the MQL Entity Format
which corresponds to the SELECT list: Name, "Object Type", "Object Id":
{
"attributes": [
{
"attributeType": {
"name": "Name",
"displayName": "Name",
"type": "SYSTEM_ATTRIBUTE"
},
"value": "PurchaseOrder"
},
{
"attributeType": {
"name": ""\"Object Type\""",
"displayName": "Object Type",
"type": "SYSTEM_ATTRIBUTE"
},
"value": "Table"
},
{
"attributeType": {
"name": ""\"Object Id\""",
"displayName": "Object Id",
"type": "SYSTEM_ATTRIBUTE"
},
"value": "69585_200"
}
]
}
Every legacy Entity property can be mapped to an MM system attribute. Here is the mapping between the legacy Entity properties and MM system attributes.
Legacy Entity Property |
MM System Attribute |
id |
"Object Id" |
name |
Name |
objectType |
"Object Type" |
labels |
Labels |
parentId |
Context |
term |
"Term Classification" |
semanticTypes |
"Data Classifications" |