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 allclose all

Basic Examples  (4)

Use the WolframAlpha interface to discover particular entities:

Represent all of the countries in Europe:

Get a list of all the countries:

Get a list of all chemicals that are alcohols:

Get the population of all G7 countries:

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

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

Explicitly list the elements:

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:

Scope  (6)

An implicitly defined entity class may be specified using any number of property values:

Return a list of aircraft satisfying the above criteria:

List the entities that simultaneously satisfy a combination of largest and smallest ordinal conditions together with an explicit property value:

List the largest three countries in the Group of 8 by population:

Get information about an EntityClass:

Calculate the mean and standard deviation of the maximum weight for all dog breeds specified by a minimal male height:

Construct an implicitly defined entity class consisting of movies featuring Angelina Jolie:

Retrieve titles, release dates, and posters for these films:

Make a timeline illustrating when these movies were released:

Properties & Relations  (2)

Get information about an EntityClass:

Get the three largest continents by population:

Possible Issues  (1)

Implicit entity classes may contain no entities:

Verify that the largest floor counts in the world are (much) smaller than even the lower endpoint of the interval specified above:

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