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 specified either 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
    "PropertyClasses"the list of available property classes
    "PropertyClassCanonicalNames"the standard names of available property classes
  • 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
    "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
    "EntityPropertyAssociation"an Association in which the specified entities are keys, and values are a nested association of properties and entity-property values
    "PropertyEntityAssociation"an Association in which the specified properties are keys, and values are a nested association of entities and entity-property values
    "Dataset"a Dataset in which the specified entities are keys, and values are an association of property names 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 a 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)