$EntityStores
is a global variable that gives a list of all entity stores that are automatically accessed when Entity is used.
$EntityStores
$EntityStores
is a global variable that gives a list of all entity stores that are automatically accessed when Entity is used.
Details
- When evaluating an expression like Entity["type","name"][property], data is retrieved from the first EntityStore in $EntityStores that contains "type".
- Entity types present in $EntityStores are considered before built-in entity types.
- During assignments, Entity["type","name"][property]=value data is stored in the first EntityStore in $EntityStores that contains "type". If no EntityStore in $EntityStores contains "type", a new EntityStore is prepended to $EntityStores.
Examples
open all close allBasic Examples (1)
Scope (2)
Set the value for a property of an entity:
Entity["MyType1", "e"]["p"] = 1This introduces a new EntityStore in $EntityStores:
$EntityStoresSetting a value for an entity of a different type introduces another EntityStore in $EntityStores:
Entity["MyType2", "f"]["q"] = 2;
$EntityStoresIntroduce an EntityStore containing two entity types:
PrependTo[$EntityStores, EntityStore[{"MyType1", "MyType2"}]];Values of assignments involving these types will be stored in this EntityStore:
Entity["MyType1", "e"]["p"] = 1;
Entity["MyType2", "f"]["q"] = 2;
$EntityStoresHistory
Text
Wolfram Research (2016), $EntityStores, Wolfram Language function, https://reference.wolfram.com/language/ref/$EntityStores.html.
CMS
Wolfram Language. 2016. "$EntityStores." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/$EntityStores.html.
APA
Wolfram Language. (2016). $EntityStores. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/$EntityStores.html
BibTeX
@misc{reference.wolfram_2026_$entitystores, author="Wolfram Research", title="{$EntityStores}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/$EntityStores.html}", note=[Accessed: 16-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_$entitystores, organization={Wolfram Research}, title={$EntityStores}, year={2016}, url={https://reference.wolfram.com/language/ref/$EntityStores.html}, note=[Accessed: 16-June-2026]}