({{, (RefLink[Entity, paclet:ref/Entity])["type",name] 
represents an entity of the specified type, identified by name.}, {, (RefLink[Entity, paclet:ref/Entity])[cspec,name]
represents an entity from the computed class, specified by cspec. }})

OpenersNotesSection(Spacer1)Details

Built-in (RefLink[Entity, paclet:ref/Entity]) objects can be specified with natural language using (Key1[ctrl, ==]).

In (RefLink[Entity, paclet:ref/Entity])["type",name], the type can be either a built-in entity type or a type specified in an (RefLink[EntityStore, paclet:ref/EntityStore]) registered with (RefLink[EntityRegister, paclet:ref/EntityRegister]).

In (RefLink[Entity, paclet:ref/Entity])[cspec,name], the computed class cspec can be any of the following:

Property values of an entity can be computed using (RefLink[Entity, paclet:ref/Entity])[…][property], where property is a string, an (RefLink[EntityProperty, paclet:ref/EntityProperty]) expression or an (RefLink[EntityFunction, paclet:ref/EntityFunction]) expression.

(RefLink[Entity, paclet:ref/Entity])[type] is sometimes used in (RefLink[EntityValue, paclet:ref/EntityValue]) to represent a generic entity of the specified type.

(RefLink[Information, paclet:ref/Information]) of an (RefLink[Entity, paclet:ref/Entity]) expression will give different properties depending on the (RefLink[EntityTypeName, paclet:ref/EntityTypeName]) associated with the expression.

(RefLink[Entity, paclet:ref/Entity]) expressions format in (RefLink[StandardForm, paclet:ref/StandardForm]) using a print form of the entity name.

The (RefLink[TraditionalForm, paclet:ref/TraditionalForm]) of an entity is just the print form string.

OpenersPrimaryExamplesSection(Spacer1)Examples  (9)

OpenersExampleSection0(Spacer1)Basic Examples  (2)

The entity of type (StringTypeLink["Country", paclet:ref/entity/Country]) representing the United States:

Entity["Country","UnitedStates"]

Find the population of the United States:

%["Population"]

Use (Key1[ctrl, ==]) to specify an entity using natural language:

LinguisticAssistant

See the underlying structure of the entity:

InputForm[%]

OpenersExampleSection1(Spacer1)Scope  (6)

The first argument of (RefLink[Entity, paclet:ref/Entity]) can be something other than a string:

ent=Entity[AggregatedEntityClass["Country", "Population" -> Total, "Continent"],(EntityClass["Europe", EntityClass["Country","Europe"], "EntityClass[\"Country\", \"Europe\"]", "countries"])]

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 (RefLink[EntityList, paclet:ref/EntityList]):

EntityList["Planet"]

For ambiguous entities, use the (Key1[ctrl, ==]) assumption mechanism (») to pick the desired alternative:

LinguisticAssistant

EntityTypeName/@{LinguisticAssistant,LinguisticAssistant}

(RefLink[EntityValue, paclet:ref/EntityValue]) can be used to find member "Entities" for a given entity type:

EntityTypeName[LinguisticAssistant]

EntityValue["Planet","Entities"]

Canonical entity names can be found using (RefLink[CanonicalName, paclet:ref/CanonicalName]):

CanonicalName[LinguisticAssistant]

CanonicalName[EntityList["Planet"]]

Format names can be found using (RefLink[CommonName, paclet:ref/CommonName]):

CommonName[LinguisticAssistant]

CommonName[EntityList["Cloud"]]

Properties of an (RefLink[Entity, paclet:ref/Entity]) object can be obtained from (RefLink[Entity, paclet:ref/Entity])[…]["property"]:

(Entity["France", Entity["Country","France"], "Entity[\"Country\", \"France\"]", "country"])["Population"]

Entity["Volcano"]["Properties"]

OpenersExampleSection3(Spacer1)Properties & Relations  (1)

(RefLink[Interpreter, paclet:ref/Interpreter]) often returns (RefLink[Entity, paclet:ref/Entity]) objects:

Interpreter["Country"]["usa"]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[EntityValue, paclet:ref/EntityValue])  ▪  (RefLink[EntityProperty, paclet:ref/EntityProperty])  ▪  (RefLink[CommonName, paclet:ref/CommonName])  ▪  (RefLink[EntityTypeName, paclet:ref/EntityTypeName])  ▪  (RefLink[CanonicalName, paclet:ref/CanonicalName])  ▪  (RefLink[EntityClass, paclet:ref/EntityClass])  ▪  (RefLink[EntityList, paclet:ref/EntityList])  ▪  (RefLink[EntityCopies, paclet:ref/EntityCopies])  ▪  (RefLink[EntityGroup, paclet:ref/EntityGroup])  ▪  (RefLink[EntityInstance, paclet:ref/EntityInstance])  ▪  (RefLink[ToEntity, paclet:ref/ToEntity])  ▪  (RefLink[FromEntity, paclet:ref/FromEntity])  ▪  (RefLink[Dated, paclet:ref/Dated])  ▪  (RefLink[Interpreter, paclet:ref/Interpreter])  ▪  (RefLink[EntityStore, paclet:ref/EntityStore])  ▪  (RefLink[EntityRegister, paclet:ref/EntityRegister])  ▪  (RefLink[EntityPrefetch, paclet:ref/EntityPrefetch])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Maps & Cartography, paclet:guide/MapsAndCartography])}, {▪(RefLinkPlain[Knowledge Representation & Access, paclet:guide/KnowledgeRepresentationAndAccess])}, {▪(RefLinkPlain[Geographic Data & Entities, paclet:guide/GeographicData])}, {▪(RefLinkPlain[Weather Data, paclet:guide/WeatherData])}, {▪(RefLinkPlain[WDF (Wolfram Data Framework), paclet:guide/WDFWolframDataFramework])}, {▪(RefLinkPlain[Scientific Data Analysis, paclet:guide/ScientificDataAnalysis])}, {▪(RefLinkPlain[Text Content Types, paclet:guide/TextContentTypes])}, {▪(RefLinkPlain[Entity Types, paclet:guide/EntityTypes])}, {▪(RefLinkPlain[Engineering Data, paclet:guide/EngineeringData])}, {▪(RefLinkPlain[Life Sciences & Medicine: Data & Computation, paclet:guide/LifeSciencesAndMedicineDataAndComputation])}, {▪(RefLinkPlain[Transportation Data, paclet:guide/TransportationData])}, {▪(RefLinkPlain[Cultural Data, paclet:guide/CulturalData])}, {▪(RefLinkPlain[Locations, Paths, and Routing, paclet:guide/LocationsPathsAndRouting])}, {▪(RefLinkPlain[Astronomical Computation & Data, paclet:guide/AstronomicalComputationAndData])}, {▪(RefLinkPlain[People & History, paclet:guide/PeopleAndHistory])}, {▪(RefLinkPlain[Physics & Chemistry: Data and Computation, paclet:guide/PhysicsAndChemistryDataAndComputation])}, {▪(RefLinkPlain[Working with Information in Relational Databases, paclet:guide/WorkingWithRelationalDatabases])}, {▪(RefLinkPlain[Internet and Computer Systems Data, paclet:guide/InternetAndWebRelatedData])}, {▪(RefLinkPlain[Creating & Importing Images, paclet:guide/CreatingAndImportingImages])}})}})

({{(Spacer1), ({{(Spacer1)Related Links}, {(WebLink[DocumentationFooterIconsRelatedLinks-FastIntro.png(Spacer1)Fast Introduction for Programmers: Real-World Entities, http://www.wolfram.com/language/fast-introduction-for-programmers/real-world-entities/])}, {(WebLink[DocumentationFooterIconsRelatedLinks-EIWL.png(Spacer1)An Elementary Introduction to the Wolfram Language, https://www.wolfram.com/language/elementary-introduction/28-tests-and-conditionals.html])(WebLink[: Tests and Conditionals, https://www.wolfram.com/language/elementary-introduction/28-tests-and-conditionals.html])}})}})