FromEntity [entity]
returns a Wolfram Language object corresponding to an entity.
FromEntity
FromEntity [entity]
returns a Wolfram Language object corresponding to an entity.
Details
- FromEntity evaluates for entities of type "Character" , "Color" , "Graph" , "MathematicalConstant", "MathematicalFunction" , "PhysicalConstant" , "PhysicalQuantity" , "Polyhedron" and "WolframLanguageSymbol" .
Examples
open all close allBasic Examples (5)
Make a character from an entity:
Make a graph from an entity:
Give a quantity corresponding to a physical constant entity:
Give a quantity variable corresponding to a physical quantity entity:
Make a polyhedron from an entity:
Scope (11)
"Character" (1)
Convert from character entity:
"Color" (1)
Convert from color entities:
"Graph" (1)
Use a graph obtained from free-form input:
Use the "Entity" property from GraphData :
Use a graph with a known canonical name:
Use a member of an indexed graph family known to EntityValue :
Convert from an explicitly constructed graph entity:
"MathematicalFunction" (2)
Convert a mathematical function entity taking a single argument:
Convert mathematical function entities taking multiple arguments:
Use FromEntity to discover how to express a given mathematical function entity in the Wolfram Language:
"PhysicalConstant" (1)
Convert a physical constant entity to a quantity:
"PhysicalQuantity" (1)
Give a quantity variable corresponding to a physical quantity entity:
"Polyhedron" (1)
Make a polyhedron from an entity:
"WolframLanguageSymbol" (3)
Convert a Wolfram Language symbol entity into the corresponding actual symbol:
Make a Wolfram Language symbol from an entity:
The evaluated form of a symbol is returned:
Properties & Relations (4)
The "Entity" property of GraphData can be used to return an entity on which FromEntity can operate:
Return the graph directly using the "Graph" property:
"Graph" is also the default property for GraphData :
Any member of "AlternateStandardNames" can be used together with "Entity" in GraphData to return an entity on which FromEntity can operate:
For colors, FromEntity typically gives the same results as returned by ColorData :
FromEntity can return graphs for certain indexed families even though they are not known to GraphData :
This graph is not known to GraphData :
But it is known to EntityValue :
Possible Issues (4)
Non-entity Wolfram Language representations are not available for all entity types:
Applying ToEntity to FromEntity does not round-trip for colors:
The result of FromEntity may evaluate if the underlying symbol autoevaluates:
Compare with result of evaluating the symbol Red :
Different mathematical function entities may convert to the same Wolfram Language function:
See Also
ToEntity Entity EntityValue CanonicalName ColorData GraphData
Related Guides
Text
Wolfram Research (2014), FromEntity, Wolfram Language function, https://reference.wolfram.com/language/ref/FromEntity.html (updated 2022).
CMS
Wolfram Language. 2014. "FromEntity." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2022. https://reference.wolfram.com/language/ref/FromEntity.html.
APA
Wolfram Language. (2014). FromEntity. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FromEntity.html
BibTeX
@misc{reference.wolfram_2025_fromentity, author="Wolfram Research", title="{FromEntity}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/FromEntity.html}", note=[Accessed: 04-January-2026]}
BibLaTeX
@online{reference.wolfram_2025_fromentity, organization={Wolfram Research}, title={FromEntity}, year={2022}, url={https://reference.wolfram.com/language/ref/FromEntity.html}, note=[Accessed: 04-January-2026]}