EntityPrefetch["type"]
获取与指定类型的所有实体关联的可缓存值.
EntityPrefetch[EntityProperty["type","prop"]]
获取指定属性的所有值.
EntityPrefetch
实体类型列表»EntityPrefetch["type"]
获取与指定类型的所有实体关联的可缓存值.
EntityPrefetch[EntityProperty["type","prop"]]
获取指定属性的所有值.
更多信息
- EntityPrefetch["type"] 获取指定 "type" 的实体的所有可缓存的属性值,并将其保存在系统中.
范例
打开所有单元 关闭所有单元基本范例 (2)
获取 "Planet" 实体的可缓存数据:
EntityPrefetch["Planet"]EntityPrefetch[EntityProperty["Island", "Position"]]范围 (3)
EntityPrefetch 可用来预加载给定 Entity 类型的数据:
AbsoluteTiming[EntityValue[Entity["Volcano", "Kos"], "Elevation"]]EntityPrefetch["Volcano"]AbsoluteTiming[EntityValue[Entity["Volcano", "Torishima"], "Elevation"]]如果预取的资源不存在,返回 Failure:
EntityPrefetch["not an entity domain"]EntityPrefetch 只获取尚未在系统上出现的属性:
AbsoluteTiming[EntityPrefetch["GrammaticalUnit"]]AbsoluteTiming[EntityPrefetch["GrammaticalUnit"]]相关指南
-
▪
- 知识表示和访问
文本
Wolfram Research (2018),EntityPrefetch,Wolfram 语言函数,https://reference.wolfram.com/language/ref/EntityPrefetch.html.
CMS
Wolfram 语言. 2018. "EntityPrefetch." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/EntityPrefetch.html.
APA
Wolfram 语言. (2018). EntityPrefetch. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/EntityPrefetch.html 年
BibTeX
@misc{reference.wolfram_2026_entityprefetch, author="Wolfram Research", title="{EntityPrefetch}", year="2018", howpublished="\url{https://reference.wolfram.com/language/ref/EntityPrefetch.html}", note=[Accessed: 09-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_entityprefetch, organization={Wolfram Research}, title={EntityPrefetch}, year={2018}, url={https://reference.wolfram.com/language/ref/EntityPrefetch.html}, note=[Accessed: 09-August-2026]}