FromEntity[entity]
実体に対応するWolfram言語オブジェクトを返す.
FromEntity
FromEntity[entity]
実体に対応するWolfram言語オブジェクトを返す.
詳細
- FromEntityは,タイプ"Character","Color","Graph","MathematicalConstant","MathematicalFunction","PhysicalConstant","PhysicalQuantity","Polyhedron","WolframLanguageSymbol"の実体について評価する.
例題
すべて開く すべて閉じる例 (3)
FromEntity[Entity["Character", 9800]]FromEntity[Entity["Character", 8240]]FromEntity[Entity["Graph", "PetersenLineGraph"]]FromEntity[Entity["PhysicalConstant", "SpeedOfLight"]]InputForm[%]スコープ (11)
"Character" (1)
"Color" (1)
FromEntity[Entity["Color", {"Mathematica", "Red"}]]FromEntity[Entity["Color", {"Mathematica", "Gray"}]]InputForm[%]FromEntity[Entity["Color", {"HTML", "Yellow"}]]InputForm[%]FromEntity[Entity["Color", {"Mathematica", "Gray"}]]InputForm[%]ToEntity[%]"Graph" (1)
FromEntity[Entity["Graph", "DodecahedralGraph"]]GraphDataから"Entity"特性を使う:
FromEntity[GraphData["TesseractGraph", "Entity"]]FromEntity[Entity["Graph", "CubicalGraph"]]EntityValueにとって既知の指標付きのグラフ族の要素を使う:
FromEntity[Entity["Graph", {"Path", 40}]]FromEntity[Entity["Graph", {12, 23, 34}]]"MathematicalFunction" (2)
FromEntity[Entity["MathematicalFunction", "Sin"]]FromEntity[Entity["MathematicalFunction", "HermiteH"]]FromEntity[Entity["MathematicalFunction", "HermiteH:Polynomial"]]FromEntityを使って与えられた数学関数実体をWolfram言語でどのように表現するかを求める:
FromEntity[Entity["MathematicalFunction", "EllipticTheta1"]]FromEntity[Entity["MathematicalFunction", "HypergeometricPFQ:3F2"]]"PhysicalConstant" (1)
"PhysicalQuantity" (1)
"Polyhedron" (1)
"WolframLanguageSymbol" (3)
Wolfram言語のシンボル実体を対応する実際のシンボルに変換する:
FromEntity[Entity["WolframLanguageSymbol", "Sin"]]FromEntity[Entity["WolframLanguageSymbol", "NestList"]]FromEntity[Entity["WolframLanguageSymbol", "BarChart"]]FromEntity[Entity["WolframLanguageSymbol", "CompleteGraph"]][4]FromEntity[Entity["WolframLanguageSymbol", "$Version"]]特性と関係 (4)
GraphDataの"Entity"特性を使って,FromEntityが操作可能な実体を返すことができる:
GraphData["SquareGraph", "Entity"]FromEntity[%]GraphData["SquareGraph", "Graph"]"Graph"はGraphDataのデフォルト特性でもある:
GraphData["SquareGraph"]GraphDataで,"AlternateStandardNames"の任意の要素を"Entity"とともに使って,FromEntityが操作可能な実体を返すことができる:
GraphData["SquareGraph", "AlternateStandardNames"]FromEntity[GraphData[{"Ladder", 2}, "Entity"]]色については,FromEntityは,一般に,ColorDataによって返されるのと同じ結果を返す:
FromEntity[Entity["Color", {"HTML", "Chartreuse"}]]InputForm[%]ColorData["HTML", "Chartreuse"]InputForm[%]FromEntityはある種の指標付きの族に対しては,たとえそれらがGraphDataにとって既知ではない場合でも,グラフを返すことができる:
FromEntity[Entity["Graph", {"Cycle", 50}]]このグラフはGraphDataにとっては未知である:
GraphData[{"Cycle", 50}]しかし,EntityValueには既知である:
EntityValue[Entity["Graph", {"Cycle", 50}], "Graph"]考えられる問題 (4)
実体ではないWolfram言語表現はすべての実体タイプで使える訳ではない:
FromEntity[Entity["Movie", "ForrestGump1994ParamountPictures"]]FromEntity[Entity["City", {"LosAngeles", "California", "UnitedStates"}]]ToEntityをFromEntityに適用しても,色に関しては往復変換はできない:
FromEntity[Entity["Color", {"HTML", "Chartreuse"}]]InputForm[%]ToEntity[%]もとになっているシンボルが自動的に評価されるものであれば,FromEntityの結果はもまた評価されるかもしれない:
FromEntity[Entity["WolframLanguageSymbol", "Red"]]InputForm[%]シンボルRedを評価した結果と比較する:
Symbol["Red"]//InputForm異なる数学関数実体が同じWolfram言語関数に変換されることがある:
FromEntity[Entity["MathematicalFunction", "HermiteH"]]FromEntity[Entity["MathematicalFunction", "HermiteH:Polynomial"]]関連するガイド
-
▪
- 知識の表現と利用
テキスト
Wolfram Research (2014), FromEntity, Wolfram言語関数, https://reference.wolfram.com/language/ref/FromEntity.html (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_2026_fromentity, author="Wolfram Research", title="{FromEntity}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/FromEntity.html}", note=[Accessed: 31-October-2026]}
BibLaTeX
@online{reference.wolfram_2026_fromentity, organization={Wolfram Research}, title={FromEntity}, year={2022}, url={https://reference.wolfram.com/language/ref/FromEntity.html}, note=[Accessed: 31-October-2026]}