IntersectedEntityClass
✖
IntersectedEntityClass
represents an entity class containing all the entities common to all classi.
Details and Options

- IntersectedEntityClass[class1,class2,…] is effectively equivalent to the unsorted intersection of the entities in each classi as they appear when applying EntityList.
- When the classes appearing in IntersectedEntityClass effectively have the same type after the simplification in EntityList, the resulting entities will have that type. When performing the intersection of incompatible types, the resulting entities will have a new type.
- IntersectedEntityClass[class1,class2,…,SameTestProperties {props1,props2,…}] uses properties propsi from classi to test for entity equality.
- EntityProperties[IntersectedEntityClass[class1,class2,…]] returns all the properties of each classi, along with EntityProperty[IntersectedEntityClass[…],"propj"], where "propj" are any of the properties that appear in at least two of the classi when those classes have different entity types.
Examples
open allclose allBasic Examples (3)Summary of the most common use cases
Compute the complement of two entity classes:

https://wolfram.com/xid/0b7feoouzx8rx9b2-yhnw3p

Mixing different entity types will effectively result in an empty entity class:

https://wolfram.com/xid/0b7feoouzx8rx9b2-dw4zda

Redefining equality by name yields the correct result:

https://wolfram.com/xid/0b7feoouzx8rx9b2-61smtn

When used with relational-database-backed entities, IntersectedEntityClass corresponds to an INTERSECT statement:

https://wolfram.com/xid/0b7feoouzx8rx9b2-35ca2e


https://wolfram.com/xid/0b7feoouzx8rx9b2-q81531

Scope (2)Survey of the scope of standard use cases
Use IntersectedEntityClass with entity classes of the same type:

https://wolfram.com/xid/0b7feoouzx8rx9b2-65i6fa

Entities of different types are considered different by default:

https://wolfram.com/xid/0b7feoouzx8rx9b2-iaqrm5

Use SameTestProperties to match them by name:

https://wolfram.com/xid/0b7feoouzx8rx9b2-uuw1e8

Options (1)Common values & functionality for each option
SameTestProperties (1)
SameTestProperties can be used to define equality between entities:

https://wolfram.com/xid/0b7feoouzx8rx9b2-ldfv06

Properties & Relations (2)Properties of the function, and connections to other functions
IntersectedEntityClass is usually equivalent to Intersection

https://wolfram.com/xid/0b7feoouzx8rx9b2-bddh7m

When performing the intersection of implicit EntityClass or FilteredEntityClass expressions, it is often more efficient to use conjunction in the condition:

https://wolfram.com/xid/0b7feoouzx8rx9b2-56725k

The resulting classes are equivalent apart from ordering:

https://wolfram.com/xid/0b7feoouzx8rx9b2-nuo5xd

Wolfram Research (2020), IntersectedEntityClass, Wolfram Language function, https://reference.wolfram.com/language/ref/IntersectedEntityClass.html.
Text
Wolfram Research (2020), IntersectedEntityClass, Wolfram Language function, https://reference.wolfram.com/language/ref/IntersectedEntityClass.html.
Wolfram Research (2020), IntersectedEntityClass, Wolfram Language function, https://reference.wolfram.com/language/ref/IntersectedEntityClass.html.
CMS
Wolfram Language. 2020. "IntersectedEntityClass." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/IntersectedEntityClass.html.
Wolfram Language. 2020. "IntersectedEntityClass." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/IntersectedEntityClass.html.
APA
Wolfram Language. (2020). IntersectedEntityClass. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/IntersectedEntityClass.html
Wolfram Language. (2020). IntersectedEntityClass. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/IntersectedEntityClass.html
BibTeX
@misc{reference.wolfram_2025_intersectedentityclass, author="Wolfram Research", title="{IntersectedEntityClass}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/IntersectedEntityClass.html}", note=[Accessed: 12-May-2025
]}
BibLaTeX
@online{reference.wolfram_2025_intersectedentityclass, organization={Wolfram Research}, title={IntersectedEntityClass}, year={2020}, url={https://reference.wolfram.com/language/ref/IntersectedEntityClass.html}, note=[Accessed: 12-May-2025
]}