FromEntity

FromEntity[entity]

returns a Wolfram Language object corresponding to an entity.

Examples

open allclose all

Basic Examples  (9)

Make a character from an entity:

Make a color from an entity:

Make a graph from an entity:

Make a mathematical constant from an entity:

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

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:

Make a Wolfram Language symbol from an entity:

Scope  (9)

"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:

"MathematicalConstant"  (1)

Make a mathematical constant from an entity:

"MathematicalFunction"  (1)

Convert a mathematical function entity taking a single argument:

Convert mathematical function entities taking multiple arguments:

"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"  (1)

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

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:

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).

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_2024_fromentity, author="Wolfram Research", title="{FromEntity}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/FromEntity.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_fromentity, organization={Wolfram Research}, title={FromEntity}, year={2022}, url={https://reference.wolfram.com/language/ref/FromEntity.html}, note=[Accessed: 21-November-2024 ]}