Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Produce a list with the number of entities in an entity class and the number of properties possessed by each entity therein
ResourceFunction["EntityClassDimensions"][class] takes an EntityClass or list of EntityClass expressions and returns the number of entities each contains and the number of properties in the class. | |
ResourceFunction["EntityClassDimensions"][class,form] returns results in the specified form. |
"List" | list of entity and property counts |
"EntityAssociation" | Association with classes as keys |
"PropertyAssociation" | Association containing "EntityCount" and "PropertyCount" values |
"EntityPropertyAssociation" | nested Association with classes as keys and "PropertyAssociation" values |
Determine the number of "DogBreed" entities (dog breeds) and properties:
In[1]:= | ![]() |
Out[1]= | ![]() |
Use the canonical name of the EntityClass and get its dimensions:
In[2]:= | ![]() |
Out[2]= | ![]() |
Obtain the dimensions of a list of classes:
In[3]:= | ![]() |
Out[3]= | ![]() |
Return the information as an Association:
In[4]:= | ![]() |
Out[4]= | ![]() |
EntityClassDimensions can return the results as an Association in which the EntityClass is the key:
In[5]:= | ![]() |
Out[5]= | ![]() |
EntityClassDimensions can return the results as a nested Association in which the outer keys are the entity classes, represented in the form specified by the user, and the inner keys are the properties:
In[6]:= | ![]() |
Out[6]= | ![]() |
EntityClassDimensions can find the dimensions of derived entity classes such as a FilteredEntityClass:
In[7]:= | ![]() |
Out[7]= | ![]() |
EntityClassDimensions can find the dimensions of AggregatedEntityClass:
In[8]:= | ![]() |
Out[8]= | ![]() |
EntityClassDimensions can find the dimensions of an ExtendedEntityClass:
In[9]:= | ![]() |
Out[9]= | ![]() |
Compare the dimensions of two entity classes with their CombinedEntityClass:
In[10]:= | ![]() |
Out[10]= | ![]() |
Use EntityTypeName to find the dimensions of the class to which an Entity belongs:
In[12]:= | ![]() |
Out[12]= | ![]() |
Use KeyMap to change the form of any EntityClass keys in the output:
In[13]:= | ![]() |
Out[13]= | ![]() |
If you specify a class that is unknown to the system, the function returns Missing objects:
In[14]:= | ![]() |
Out[14]= | ![]() |
You can probe the size of relational databases held on external servers:
In[15]:= | ![]() |
Out[15]= | ![]() |
This work is licensed under a Creative Commons Attribution 4.0 International License