-
Notifications
You must be signed in to change notification settings - Fork 31
UpdateEntity
Updates existing entity(ies). This command provides ways to find one or more existing entities and then lets an application add, change or remove properties. The local id allows an application to chain this command with following operations or associate with a previous search
- [optional] class: name of entity class or empty string to search across multiple classes.
- [optional] _ref: for reference.
- [optional] properties
- [optional] remove_props
- [optional] constraints
** At least one of _ref or class + constraints are required for searching. **
If _ref is provided, it essentially refers to the search results of a previous FindEntity or AddEntity. Since the Update call just results in updating the property values inline within those entities, we keep the same _ref value. The call can result in an update to multiple entities depending on the search criteria. Unique is not assumed to be true in this case.
Class and property keys are case sensitive and are matched exactly when searching for entities or updating properties.
If search results are empty, this will cause an exception.
// From the retail schema above, add the entity representing Jane Doe
"UpdateEntity" : {
"_ref": 1234
"properties" : {
"Name" : "Janice Doe",
"Ethnicity" : "European"
}
}
// From the retail schema above, remove the ethnicity,
// assuming the "Email" property uniquely identifies
// a person.
"UpdateEntity" : {
"class" : "Person",
"_ref": 1234
"constraints" : {
"Email": [ "==", "jane.doe@xyz.com" ],
}
"remove_props" : [ "Ethnicity" ]
}
Visual Data Management System - Intel Labs
FLINNG Library and Performance
Basic Building Blocks
Insert
- AddBlob
- AddBoundingBox
- AddConnection
- AddDescriptor
- AddDescriptorSet
- AddEntity
- AddImage
- AddVideo
- NeoAdd
Query
- ClassifyDescriptor
- FindBlob
- FindBoundingBox
- FindConnection
- FindDescriptor
- FindDescriptorSet
- FindEntity
- FindFrames
- FindImage
- FindVideo
- NeoFind
Update