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 allclose allBasic Examples (9)
Make a character 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:
Scope (9)
"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:
"MathematicalFunction" (1)
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:
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