EntityClass

Listing of Entity Types »

EntityClass["type",name]

represents a class of entities of the specified type identified by name.

EntityClass["type",{property1vspec1,property2vspec2,}]

represents an implicitly defined entity class containing entities of the specified type for which the properties propertyi conform to the value selector vspeci.

EntityClass[cspec,psel]

represents an entity class with members specified by cspec, selected by the property selector psel.

Details

Examples

open all close all

Basic Examples  (4)

Use the WolframAlpha interface to discover particular entities:

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

Represent all of the countries in Europe:

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

Get a list of all the countries:

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

Get a list of all chemicals that are alcohols:

In[4]:=
Click for copyable input
Out[4]//Shallow=

Get the population of all G7 countries:

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

A list of available entity classes can be found with EntityClassList:

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

Create an implicitly defined entity class consisting of all elements whose densities fall within a specified range:

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

Explicitly list the elements:

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

Use an implicitly defined entity class to select the countries with the world's 10 longest borders and return them together with their corresponding border lengths:

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

Scope  (6)

Properties & Relations  (2)

Possible Issues  (1)

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