Entity
Listing of Entity Types »Details
- Built-in Entity objects can be specified with natural language using
. - In Entity["type",name], the type can be either a built-in entity type or a type specified in an EntityStore registered with EntityRegister.
- In Entity[cspec,name], the computed class cspec can be any of the following:
-
"type" EntityClass[…] SortedEntityClass[…] SampledEntityClass[…] FilteredEntityClass[…] ExtendedEntityClass[…] AggregatedEntityClass[…] CombinedEntityClass[…] - Property values of an entity can be computed using Entity[…][property], where property is a string, an EntityProperty expression or an EntityFunction expression.
- Entity[type] is sometimes used in EntityValue to represent a generic entity of the specified type.
- Information of an Entity expression will give different properties depending on the EntityTypeName associated with the expression.
- Entity expressions format in StandardForm and TraditionalForm using a print form of the entity name.
Examples
open all close allBasic Examples (2)
The entity of type "Country" representing the United States:
Entity["Country", "UnitedStates"]Find the population of the United States:
%["Population"]Use
to specify an entity using natural language:
["united states"]See the underlying structure of the entity:
InputForm[%]Scope (6)
The first argument of Entity can be something other than a string:
ent = Entity[AggregatedEntityClass["Country", "Population" -> Total, "Continent"], EntityClass["Country", "Europe"]]This entity represents all of the countries in Europe, where the population has been aggregated:
ent["Population"]A list of entities within a given type can be found using EntityList:
EntityList["Planet"]For ambiguous entities, use the
assumption mechanism (») to pick the desired alternative:
["mercury"]EntityTypeName /@ {["mercury"], ["mercury"]}EntityValue can be used to find member "Entities" for a given entity type:
EntityTypeName[["mercury"]]EntityValue["Planet", "Entities"]Canonical entity names can be found using CanonicalName:
CanonicalName[["Paris"]]CanonicalName[EntityList["Planet"]]Format names can be found using CommonName:
CommonName[["US"]]CommonName[EntityList["Cloud"]]Properties of an Entity object can be obtained from Entity[…]["property"]:
Entity["Country", "France"]["Population"]Entity["Volcano"]["Properties"]Properties & Relations (1)
Interpreter often returns Entity objects:
Interpreter["Country"]["usa"]See Also
EntityValue EntityProperty CommonName EntityTypeName CanonicalName EntityClass EntityList EntityCopies EntityGroup EntityInstance ToEntity FromEntity Dated Interpreter EntityStore EntityRegister EntityPrefetch ExternalIdentifier
Interpreter Types: Entity
Function Repository: EntityTooltip
Related Guides
-
▪
- Knowledge Representation & Access ▪
- Geographic Data & Entities ▪
- WDF (Wolfram Data Framework) ▪
- Scientific Data Analysis ▪
- Text Content Types ▪
- Entity Types ▪
- Time & Event Series Data Sources ▪
- Tabular Data Sources ▪
- Astronomical Computation & Data ▪
- Working with Information in Relational Databases
Related Workflows
- Set Up an Entity Store
Text
Wolfram Research (2014), Entity, Wolfram Language function, https://reference.wolfram.com/language/ref/Entity.html (updated 2019).
CMS
Wolfram Language. 2014. "Entity." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/Entity.html.
APA
Wolfram Language. (2014). Entity. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Entity.html
BibTeX
@misc{reference.wolfram_2026_entity, author="Wolfram Research", title="{Entity}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/Entity.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_entity, organization={Wolfram Research}, title={Entity}, year={2019}, url={https://reference.wolfram.com/language/ref/Entity.html}, note=[Accessed: 12-June-2026]}