EntityType["type"]
represents an entity type with the specified name.
EntityType["type""child1""child2"…]
represents a child entity type of "type".
EntityType
EntityType["type"]
represents an entity type with the specified name.
EntityType["type""child1""child2"…]
represents a child entity type of "type".
Details
- EntityType[…]["prop"] can be used to extract the following properties:
-
"EntityTypeGraph" graph component containing the type in the hierarchy "EntityTypeTree" tree of all children "EntitySourceType" type providing canoncial names for entities "EntitySourceTypeTree" tree whose root is the entity source type "Subtypes" direct children in the hierarchy "Supertypes" direct parents in the hierarchy
Examples
open all close allBasic Examples (1)
Scope (5)
"TaxonomicSpecies"["Subtypes"]"TaxonomicSpecies"["EntityTypeTree"]Find the supertypes of "Animal":
"TaxonomicSpecies" -> "Eukaryote" -> "Animal"["Supertypes"]Go all the way up to the entity source type:
"TaxonomicSpecies" -> "Eukaryote" -> "Animal"["EntitySourceType"]RandomEntity["TaxonomicSpecies" -> "Eukaryote" -> "Animal"]Entity["Country", "UnitedStates"]["EntityTypeList"]Entity["TaxonomicSpecies", "AlligatorMississippiensis::9gf98"]["EntityTypeList"]Show the embedding of an entity in the type hierarchy:
HighlightGraph["TaxonomicSpecies"["EntityTypeGraph"], Entity["TaxonomicSpecies", "AlligatorMississippiensis::9gf98"]["EntityTypeList"]]Properties & Relations (2)
Subtypes inherit properties of their supertypes:
EntityProperties["TaxonomicSpecies" -> "Eukaryote" -> "Animal"]//ShortCountsBy[%, EntityTypeName]The root of the "EntitySourceTypeTree" is the entity source type:
"TaxonomicSpecies" -> "Eukaryote"["EntitySourceTypeTree"]The root of the "EntityTypeTree" is the given type:
"TaxonomicSpecies" -> "Eukaryote"["EntityTypeTree"]Neat Examples (1)
Show the embedding of the entity type tree of "Eukaryote" into the type graph of "TaxonomicSpecies":
HighlightGraph[
"TaxonomicSpecies"["EntityTypeGraph"],
VertexReplace[TreeGraph["TaxonomicSpecies" -> "Eukaryote"["EntityTypeTree"]], {t_, _} :> t]
]Related Guides
History
Text
Wolfram Research (2023), EntityType, Wolfram Language function, https://reference.wolfram.com/language/ref/EntityType.html.
CMS
Wolfram Language. 2023. "EntityType." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/EntityType.html.
APA
Wolfram Language. (2023). EntityType. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/EntityType.html
BibTeX
@misc{reference.wolfram_2026_entitytype, author="Wolfram Research", title="{EntityType}", year="2023", howpublished="\url{https://reference.wolfram.com/language/ref/EntityType.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_entitytype, organization={Wolfram Research}, title={EntityType}, year={2023}, url={https://reference.wolfram.com/language/ref/EntityType.html}, note=[Accessed: 13-June-2026]}