EntityRegister

EntityRegister[estore]

registers the entities in the entity store estore.

Details

  • The list of entity stores whose contents have been registered is given by EntityStores[].
  • Entity["type","name"] is interpreted as an entity from the first entity store in EntityStores[ ] that contains "type".
  • Entity types that appear in EntityStores[] are considered before built-in entity types.
  • During assignments Entity["type","name"][property]=value, data is stored in the first EntityStore in EntityStores[] that contains "type". If no EntityStore in EntityStores[] contains "type", a new EntityStore is registered.
  • EntityRegister[] returns the list of entity types that it has registered.

Examples

open allclose all

Basic Examples  (1)

Register an entity store that contains data about fruit:

In[1]:=
Click for copyable input
Out[1]=

List all "fruit" entities:

In[2]:=
Click for copyable input
Out[2]=

Look up the color of a banana:

In[3]:=
Click for copyable input
Out[3]=

Add data of an additional fruit:

In[4]:=
Click for copyable input

Find the entity store that is accessed when retrieving data of the "fruit" entity type:

In[5]:=
Click for copyable input
Out[5]=

List all registered entity stores:

In[6]:=
Click for copyable input
Out[6]=

Unregister the "fruit" entity store:

In[7]:=
Click for copyable input

Scope  (2)

See Also

EntityStore  EntityStores  EntityUnregister  Entity  ResourceRegister

Introduced in 2018
(11.3)