Entity
Listing of Entity Types »Entity ["type",name]
represents an entity of the specified type, identified by name.
Entity [cspec,name]
represents an entity from the computed class, specified by cspec.
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"
- 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 allclose allBasic Examples (2)
The entity of type "Country" representing the United States:
Find the population of the United States:
Use to specify an entity using natural language:
See the underlying structure of the entity:
Scope (6)
The first argument of Entity can be something other than a string:
This entity represents all of the countries in Europe, where the population has been aggregated:
A list of entities within a given type can be found using EntityList :
For ambiguous entities, use the assumption mechanism (») to pick the desired alternative:
EntityValue can be used to find member "Entities" for a given entity type:
Canonical entity names can be found using CanonicalName :
Format names can be found using CommonName :
Properties of an Entity object can be obtained from Entity […]["property"]:
Properties & Relations (1)
Interpreter often returns Entity objects:
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 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_2025_entity, author="Wolfram Research", title="{Entity}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/Entity.html}", note=[Accessed: 24-April-2025 ]}
BibLaTeX
@online{reference.wolfram_2025_entity, organization={Wolfram Research}, title={Entity}, year={2019}, url={https://reference.wolfram.com/language/ref/Entity.html}, note=[Accessed: 24-April-2025 ]}