Basic Examples
Basic Examples
Retrieve the resource:
ResourceObject["VEHICLe"]
ResourceObject
Retrieve the default content:
ResourceData["VEHICLe"]
EntityStore
Register the EntityStore:
In[]:=
EntityRegister[ResourceData["VEHICLe"]]
Out[]=
{HeterocyclicChemical}
Analysis
Analysis
Find the total number of chemicals:
In[]:=
EntityValue["HeterocyclicChemical","EntityCount"]
Out[]=
24867
Get the available properties for the entity store:
In[]:=
EntityProperties["HeterocyclicChemical"]
Out[]=
,,,,,,,,,,,,,,,
Quickly view the properties of a random entity:
In[]:=
RandomEntity["HeterocyclicChemical"]["Dataset"]
Out[]=
Visualization
Visualization
Get an element tally for the entire dataset:
In[]:=
tally=Tally[Flatten[EntityValue["HeterocyclicChemical","VertexTypes"]]]
Out[]=
{{C,120996},{N,80950},{H,60812},{O,64950},{S,16961}}
View this in a pie chart:
In[]:=
PieChart[tally[[All,2]],ChartLabelstally[[All,1]],LabelStyleDirective[Bold,Large]]
Out[]=