FilteredEntityClass

FilteredEntityClass[class,f]

represents a class of entities where only entities for which the EntityFunction object f yields True are kept.

FilteredEntityClass[class,prop]

represents a class of entities where only entities for which the property prop is True are kept.

Details

Examples

open allclose all

Basic Examples  (3)

Filter by a Boolean EntityProperty:

Filter entities by a Boolean EntityFunction:

When used with relational-database-backed entities, FilteredEntityClass is effectively compiled to a WHERE statement:

Scope  (2)

Get a list of volcanoes in Italy with an elevation over 1 kilometer:

Get a list of elements that have a multiple of nine protons in their nucleus:

Properties & Relations  (1)

Get a list of mountains in Africa with an elevation over 5 kilometers, using FilteredEntityClass:

Use an implicitly defined EntityClass to get the same list of mountains:

Sort both results to compare them:

Neat Examples  (1)

Make an image collage of paintings by Rembrandt:

Wolfram Research (2019), FilteredEntityClass, Wolfram Language function, https://reference.wolfram.com/language/ref/FilteredEntityClass.html.

Text

Wolfram Research (2019), FilteredEntityClass, Wolfram Language function, https://reference.wolfram.com/language/ref/FilteredEntityClass.html.

BibTeX

@misc{reference.wolfram_2021_filteredentityclass, author="Wolfram Research", title="{FilteredEntityClass}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/FilteredEntityClass.html}", note=[Accessed: 28-September-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_filteredentityclass, organization={Wolfram Research}, title={FilteredEntityClass}, year={2019}, url={https://reference.wolfram.com/language/ref/FilteredEntityClass.html}, note=[Accessed: 28-September-2021 ]}

CMS

Wolfram Language. 2019. "FilteredEntityClass." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/FilteredEntityClass.html.

APA

Wolfram Language. (2019). FilteredEntityClass. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FilteredEntityClass.html