Entity

Entity["type",name]
represents an entity of specified type identified by name.

Entity["type",{property1value1,property2value2,}]
represents an implicitly defined entity object whose members have values for properties .

DetailsDetails

  • Possible entity types include , , , , 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 Ctrl+Equal WolframAlpha interface.
  • The identifier 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.
  • Implicit entities can be resolved into canonically named entities using EntityList[Entity["type",{property1value1,property2value2,}]].
  • An implicitly defined entity represents all entities that fulfill all the specified restrictions on property values.
  • Property values in implicitly defined entities may make use of Quantity (and intervals of Quantity) for dimensional 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}].

ExamplesExamplesopen allclose all

Basic Examples  (4)Basic Examples  (4)

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 Ctrl+Equal WolframAlpha interface to discover particular entities:

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 elements whose densities fall within a specified range:

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

Explicitly list the elements:

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

Use an implicitly defined entity to select the countries with the world's 10 longest borders and return them together with their corresponding border lengths:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2014
(10.0)
| Updated in 2015
(10.2)
Translate this page: