Argument can be a single value, or multiple values in parenthesis separated by comma. Value that doesn’t contain any reserved character or a white space can be unquoted, other arguments must be enclosed in single or double quotes.
Examples
add
Creates a new instance of an entity (i.e. a new row of the entity data table) and returns the id.
Argument
Description
Required
Default
entity
Fully qualified name of the entity
yes
files
Dictionary containing file attribute values for the entity row. The dictionary should for each file attribute map the attribute name to a tuple Containing the file name and an input stream.
no
Empty dictionary
data
Dictionary mapping attribute name to non-file attribute value for the entity row, gets merged with the kwargs argument
no
Empty dictionary
**kwargs
Keyword arguments get merged with the data argument
no
Examples
update_one
Updates a value of a specified attribute in a specified row in a specified entityType.
Argument
Description
Required
Default
entity
Fully qualified name of the entity
yes
id
The value for the idAttribute of the entity
yes
attr
Attribute to update
yes
value
New value of the attribute
yes
add_all
Creates new instances of an entity (i.e. adds new rows to the entity data table) and returns the ids.
Argument
Description
Required
Default
entity
Fully qualified name of the entity
yes
entities
List of dictionaries with the attributes of the entities
yes
Example
delete
Deletes row based on its id.
Argument
Description
Required
Default
entity
Fully qualified name of the entity
yes
id
Id of the entity that should be deleted
yes
delete_list
Deletes a number of rows based on a list of id's.
Argument
Description
Required
Default
entity
Fully qualified name of the entity
yes
entities
List of id's of entities that should be deleted
yes
upload_zip
This function uploads a zip file based on the EMX format.
Argument
Description
Required
Default
meta_data_zip
A zip file containing an attribute, entities, packages file (tsv/csv) to specify the meta data and optionally data defined in the meta data files
yes
get_entity_meta_data
Retrieves the metadata for an entity repository.
Argument
Description
Required
Default
entity
Fully qualified name of the entity
yes
get_attribute_meta_data
Retrieves the metadata for a single attribute of an entity repository.