EntityValue

EntityValue[entity,property]
gives the value of the specified property for the given entity.

EntityValue[{entity1,entity2,},{property1,property2,}]
gives the values of multiple properties for multiple entities.

EntityValue[entity,property,annotation]
gives the specified annotation associated with the property.

DetailsDetails

  • An entity is generally specified as Entity[type,canonicalname]. A list of currently available entity types is given by EntityValue[].
  • A property is either specified by a standard name string or by EntityProperty[type,canonicalname,options], where the options can include property qualifiers.
  • EntityValue relies on the internet to retrieve data from the Wolfram servers.
  • Entity expressions can be created by using the Ctrl+Equal interface.
  • Certain properties are available generically for an entity type, so an entity argument of form Entity[type] or just type can be used:
  • "Properties"the list of available properties
    "PropertyCanonicalNames"the standard names of available properties
    "SampleEntities"a sample list of available entities (typically of length 10)
    "SampleEntityClasses"a sample list of available entity classes (typically of length 10)
    "Entities"the list of available entities
    "EntityCanonicalNames"the standard names of available entities
    "EntityClasses"the list of available entity classes
    "EntityClassCanonicalNames"the standard names of available entity classes
  • In exceptional cases the list of available properties could depend on the specific entity given, e.g. Entity["Country","UnitedStates"].
  • The complete list of available entities can be very long for certain entity types and will generally come back in a truncated form. A filtered list of entities can be requested using EntityValue[Entity[type,pattern],"Entities"], where pattern can be a string pattern (or an expression pattern for non-string standard names).
  • The following annotations can be used in the third argument of EntityValue[entity,property,annotation]:
  • "Qualifiers"the list of possible qualifiers for the property
    "QualifierValues"the list of possible values that can be given to each qualifier
    "DefaultQualifierValues"the list of default values for the property's qualifiers
    "Description"a brief textual description of the property
    "Definition"a detailed textual definition of the property
    "Source"source information for the property
    "Date"the date associated with the entity-property value (if any)
    "PhysicalQuantity"the physical quantity associated with the entity-property value
    "Unit"the unit associated with the entity-property value
    "EntityAssociation"an Association of entities and entity-property values
    "PropertyAssociation"an Association of properties and entity-property values
  • A qualifier value of Automatic indicates that an applicable format of values can be used, e.g. for the qualifier, this includes a proper date or date span.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Get the property of the bridge entity :

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

Use Ctrl+Equal to discover names of entities and properties:

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

Find as list of available entity types:

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

Find out how many entities are available in a given type:

In[4]:=
Click for copyable input
Out[4]=
Introduced in 2014
(10.0)