WOLFRAM

FromEntity[entity]

returns a Wolfram Language object corresponding to an entity.

Examples

open allclose all

Basic Examples  (9)Summary of the most common use cases

Make a character from an entity:

Out[1]=1
Out[2]=2

Make a color from an entity:

Out[1]=1
Out[3]=3
Out[5]=5
Out[7]=7

Make a graph from an entity:

Out[1]=1

Make a mathematical constant from an entity:

Out[1]=1

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

Out[1]=1
Out[2]=2

Give a quantity corresponding to a physical constant entity:

Out[1]=1

Give a quantity variable corresponding to a physical quantity entity:

Out[1]=1

Make a polyhedron from an entity:

Out[1]=1
Out[2]=2

Make a Wolfram Language symbol from an entity:

Out[1]=1
Out[2]=2
Out[3]=3

Scope  (9)Survey of the scope of standard use cases

"Character"  (1)

Convert from character entity:

Out[1]=1

"Color"  (1)

Convert from color entities:

Out[1]=1
Out[2]=2
Out[3]=3

"Graph"  (1)

Use a graph obtained from free-form input:

Out[1]=1

Use the "Entity" property from GraphData:

Out[2]=2

Use a graph with a known canonical name:

Out[3]=3

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

Out[4]=4

Convert from an explicitly constructed graph entity:

Out[5]=5

"MathematicalConstant"  (1)

Make a mathematical constant from an entity:

Out[1]=1

"MathematicalFunction"  (1)

Convert a mathematical function entity taking a single argument:

Out[1]=1

Convert mathematical function entities taking multiple arguments:

Out[2]=2
Out[3]=3

"PhysicalConstant"  (1)

Convert a physical constant entity to a quantity:

Out[1]=1
Out[2]=2

"PhysicalQuantity"  (1)

Give a quantity variable corresponding to a physical quantity entity:

Out[1]=1

"Polyhedron"  (1)

Make a polyhedron from an entity:

Out[1]=1
Out[2]=2

"WolframLanguageSymbol"  (1)

Convert a Wolfram Language symbol entity into the corresponding actual symbol:

Out[1]=1
Out[2]=2

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:

Out[1]=1
Out[2]=2

Return the graph directly using the "Graph" property:

Out[3]=3

"Graph" is also the default property for GraphData:

Out[4]=4

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

Out[1]=1
Out[2]=2

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

Out[1]=1
Out[3]=3

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

Out[1]=1

This graph is not known to GraphData:

Out[2]=2

But it is known to EntityValue:

Out[3]=3

Possible Issues  (4)Common pitfalls and unexpected behavior

Non-entity Wolfram Language representations are not available for all entity types:

Out[1]=1
Out[2]=2

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

Out[1]=1
Out[3]=3

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

Out[1]=1

Compare with result of evaluating the symbol Red:

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

Out[1]=1
Out[2]=2
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).

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 ]}

@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 ]}

@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 ]}