EntityProperty

Listing of Entity Types »

EntityProperty[type,pname]

represents a property identified by pname for use in EntityValue.

EntityProperty[class,pname]

represents a property introduced by the computed entity class class.

EntityProperty[type,pname,{qual1val1,qual2val2,}]

represents a property modified by the qualifier rules qualivali.

Details and Options

  • When referring to a property with no qualifiers, the EntityProperty wrapper is generally optional.
  • Use EntityProperties[type] to get a list of properties of the specified type.
  • Property values for an Entity object can be obtained using Entity[][EntityProperty[]] or EntityProperty[][Entity[]].
  • EntityProperty[]["prop"] can be used to look up property metadata. Metadata properties include the following:
  • "Qualifiers"the list of possible qualifiers for the property
    "QualifierValues"the list of possible values that can be given to each qualifier
    "Label"the label of the property
    "Definition"a detailed textual definition of the property
    "Source"source information for the property
    "PhysicalQuantity"the physical quantity associated with entity-property values
    "Unit"the common unit associated with entity-property values
  • A qualifier value of Automatic indicates that an applicable format of values can be used, e.g. for the "Date" qualifier; this includes a proper date or date span.
  • ExtendedEntityClass and AggregatedEntityClass can introduce new properties. For such properties, the first argument of EntityProperty will be that entity class.
  • Information of an EntityProperty expression will give different properties depending on the EntityTypeName associated with the expression.

Examples

open all close all

Basic Examples  (3)

The property of type "Aircraft" representing the cruise speed:

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

Retrieve the cruise speed of the Concorde:

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

Find the population of the United States:

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

Find the population in 1980:

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

Make the same query using Dated:

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

Find the "Unit" of the "molar mass" property:

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

Use to query for the molecular mass of caffeine:

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

Scope  (2)

Applications  (1)

Properties & Relations  (1)

Possible Issues  (1)

Introduced in 2014
(10.0)
|
Updated in 2019
(12.0)