EntityInstance

EntityInstance[entity,qualval]

represents an entity whose qualifier qual has value val.

EntityInstance[entity,{qual1val1,qual2val2,}]

represents an entity whose qualifiers quali have values vali.

EntityInstance[entity,quantity]

represents an entity qualified by quantity.

Details

  • Entity expressions can be created by using the interface.
  • A qualifier qual can be a property qualifier of an EntityProperty of entity, a QuantityVariable or a Function argument.
  • If entity[property] returns Function[params,body] with a parameter equal to qual, then the associated value is substituted into body and qual is dropped from params. If no parameters remain then the Function wrapper is removed.

Examples

open all close all

Basic Examples  (4)

Represent Ireland in the year 1950:

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

Return its population on that date:

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

Specify values for a property that is returned as a pure function:

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

Specify the same values for multiple properties:

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

Specify values for properties that contain quantity variables:

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

Specify the mass of a substance:

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

Scope  (8)

Properties & Relations  (1)

Neat Examples  (1)

Introduced in 2015
(10.3)