Entity

Entity["type",name]

represents an entity of specified type identified by name.

Details

  • Possible entity types include "Country", "Movie", "Person", "Polyhedron", and many more. A list of all available entity types can be found by evaluating EntityValue[].
  • Properties of an Entity object can be obtained from Entity[][property], where property is an EntityProperty expression or a string.
  • Entity expressions format in StandardForm using a print form of the entity name, retrieved either from a Wolfram server or from the system cache.
  • The TraditionalForm of an entity is just the print form string.
  • Entity expressions can be created by using the WolframAlpha interface.
  • The identifier "type" is a string that represents the canonical entity type associated with a specific entity.
  • The identifier name is generally a string, but for certain entity types can also contain lists and integers.
  • Entity[type] is sometimes used in EntityValue to represent a generic entity of the specified type.
  • An implicitly defined entity represents an averaged entity that fulfills all specified restrictions on property values. In contrast, an implicitly defined entity class represents all entities.
  • Property values in implicitly defined entities may make use of Quantity (and intervals of Quantity) for dimensional values, Between for numeric values, DateObject for dates, TakeLargest and TakeSmallest for ordinal selections, and ContainsAll, ContainsExactly, ContainsAny, ContainsOnly, ContainsNone for entities. Lists of entities are interpreted as ContainsAll, while a single entity is interpreted as ContainsAny[{entity}].
  • Implicitly defined entities are currently applicable only to the "Food" domain type. For other domains, implicit entity classes should be used instead.

Examples

open allclose all

Basic Examples  (3)

This is the Entity expression for the United States, with its StandardForm appearance in the output:

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

Use the WolframAlpha interface to discover particular entities:

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

Get information about the properties of an entity using EntityValue:

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

Properties of an Entity object can also be obtained from Entity[]["property"]:

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

A list of entity types can be found using EntityValue:

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

A list of entities within a given type can be found using EntityList:

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

Create an implicitly defined entity consisting of all foods having given type:

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

Explicitly list the first elements:

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

Scope  (5)

Properties & Relations  (1)

See Also

EntityValue  EntityProperty  CommonName  EntityTypeName  CanonicalName  EntityClass  EntityList  EntityCopies  EntityGroup  EntityInstance  ToEntity  FromEntity  Dated

Introduced in 2014
(10.0)
| Updated in 2016
(11.0)