FromEntity
✖
FromEntity
Details

- FromEntity evaluates for entities of type "Character", "Color", "Graph", "MathematicalConstant", "MathematicalFunction", "PhysicalConstant", "PhysicalQuantity", "Polyhedron" and "WolframLanguageSymbol".
Examples
open allclose allBasic Examples (9)Summary of the most common use cases
Make a character from an entity:

https://wolfram.com/xid/0cg3682t6-ll800h


https://wolfram.com/xid/0cg3682t6-28juol


https://wolfram.com/xid/0cg3682t6-m1hrft


https://wolfram.com/xid/0cg3682t6-5df5o7


https://wolfram.com/xid/0cg3682t6-1pfvo3


https://wolfram.com/xid/0cg3682t6-780b6t


https://wolfram.com/xid/0cg3682t6-s3y2f0


https://wolfram.com/xid/0cg3682t6-nmveyn


https://wolfram.com/xid/0cg3682t6-u5sx32


https://wolfram.com/xid/0cg3682t6-o3luv0

Make a mathematical constant from an entity:

https://wolfram.com/xid/0cg3682t6-eupw20

Use FromEntity to discover how to express a given mathematical function entity in the Wolfram Language:

https://wolfram.com/xid/0cg3682t6-uevkp


https://wolfram.com/xid/0cg3682t6-bq6a3w

Give a quantity corresponding to a physical constant entity:

https://wolfram.com/xid/0cg3682t6-b2luot


https://wolfram.com/xid/0cg3682t6-6bfy46

Give a quantity variable corresponding to a physical quantity entity:

https://wolfram.com/xid/0cg3682t6-f6z693


https://wolfram.com/xid/0cg3682t6-i0nnzz

Make a polyhedron from an entity:

https://wolfram.com/xid/0cg3682t6-l4mj3y


https://wolfram.com/xid/0cg3682t6-xzsox6

Make a Wolfram Language symbol from an entity:

https://wolfram.com/xid/0cg3682t6-tthb22


https://wolfram.com/xid/0cg3682t6-ez8eqr


https://wolfram.com/xid/0cg3682t6-7f9csb

Scope (9)Survey of the scope of standard use cases
"Character" (1)
"Color" (1)
"Graph" (1)
Use a graph obtained from free-form input:

https://wolfram.com/xid/0cg3682t6-kpcxks

Use the "Entity" property from GraphData:

https://wolfram.com/xid/0cg3682t6-74yd7

Use a graph with a known canonical name:

https://wolfram.com/xid/0cg3682t6-3ij3kk

Use a member of an indexed graph family known to EntityValue:

https://wolfram.com/xid/0cg3682t6-m8ag7f

Convert from an explicitly constructed graph entity:

https://wolfram.com/xid/0cg3682t6-p5zu5u

"MathematicalConstant" (1)
"MathematicalFunction" (1)
Convert a mathematical function entity taking a single argument:

https://wolfram.com/xid/0cg3682t6-e661gr

Convert mathematical function entities taking multiple arguments:

https://wolfram.com/xid/0cg3682t6-tlj02j


https://wolfram.com/xid/0cg3682t6-qfeyr2

"PhysicalConstant" (1)
"PhysicalQuantity" (1)
"Polyhedron" (1)
Properties & Relations (4)Properties of the function, and connections to other functions
The "Entity" property of GraphData can be used to return an entity on which FromEntity can operate:

https://wolfram.com/xid/0cg3682t6-0vv4vw


https://wolfram.com/xid/0cg3682t6-uj2485

Return the graph directly using the "Graph" property:

https://wolfram.com/xid/0cg3682t6-lp9k03

"Graph" is also the default property for GraphData:

https://wolfram.com/xid/0cg3682t6-h1h95a

Any member of "AlternateStandardNames" can be used together with "Entity" in GraphData to return an entity on which FromEntity can operate:

https://wolfram.com/xid/0cg3682t6-gc374g


https://wolfram.com/xid/0cg3682t6-5nvj8j

For colors, FromEntity typically gives the same results as returned by ColorData:

https://wolfram.com/xid/0cg3682t6-9mmpqa


https://wolfram.com/xid/0cg3682t6-0oyjfs


https://wolfram.com/xid/0cg3682t6-udnhil


https://wolfram.com/xid/0cg3682t6-xp03l3

FromEntity can return graphs for certain indexed families even though they are not known to GraphData:

https://wolfram.com/xid/0cg3682t6-uhcfft

This graph is not known to GraphData:

https://wolfram.com/xid/0cg3682t6-vv0kb8


But it is known to EntityValue:

https://wolfram.com/xid/0cg3682t6-8mbzbi

Possible Issues (4)Common pitfalls and unexpected behavior
Non-entity Wolfram Language representations are not available for all entity types:

https://wolfram.com/xid/0cg3682t6-plfhw1



https://wolfram.com/xid/0cg3682t6-r2cmt5


Applying ToEntity to FromEntity does not round-trip for colors:

https://wolfram.com/xid/0cg3682t6-iee6l4


https://wolfram.com/xid/0cg3682t6-su4xqs


https://wolfram.com/xid/0cg3682t6-ycpq63

The result of FromEntity may evaluate if the underlying symbol autoevaluates:

https://wolfram.com/xid/0cg3682t6-tfm5e6


https://wolfram.com/xid/0cg3682t6-sypu1c

Compare with result of evaluating the symbol Red:

https://wolfram.com/xid/0cg3682t6-k7680v

Different mathematical function entities may convert to the same Wolfram Language function:

https://wolfram.com/xid/0cg3682t6-82wo48


https://wolfram.com/xid/0cg3682t6-xo198a

Wolfram Research (2014), FromEntity, Wolfram Language function, https://reference.wolfram.com/language/ref/FromEntity.html (updated 2022).
Text
Wolfram Research (2014), FromEntity, Wolfram Language function, https://reference.wolfram.com/language/ref/FromEntity.html (updated 2022).
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.
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
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: 27-May-2025
]}
BibLaTeX
@online{reference.wolfram_2025_fromentity, organization={Wolfram Research}, title={FromEntity}, year={2022}, url={https://reference.wolfram.com/language/ref/FromEntity.html}, note=[Accessed: 27-May-2025
]}