Wolfram Research

Function Repository Resource:

WolframModelData

Source Notebook

Retrieve information on a Wolfram model from the Registry of Notable Universes

Contributed by: Stephen Wolfram and Bob Sandheinrich

ResourceFunction["WolframModelData"][code]

gives the rule corresponding to the specified short code.

ResourceFunction["WolframModelData"][rule]

gives the Registry short code corresponding to the specified Wolfram Model rule.

ResourceFunction["WolframModelData"][rule,"ShortCode"]

gives the short code for a published rule.

ResourceFunction["WolframModelData"][code,prop]

gives the specified property or list of properties associated with a Registry short code.

ResourceFunction["WolframModelData"][{code1,code2,},]

gives a data for each codei in a list.

Details and Options

ResourceFunction["WolframModelData"][] is equivalent to ResourceFunction["WolframModelData"][All] and gives short codes for all published models.
Possible properties include:
"ConnectedInput" whether the left-hand side of the rule is a connected hypergraph
"ConnectedOutput" whether the right-hand side of the rule is a connected hypergraph
"ConnectedInputOutputUnion" whether the left-hand side of the rule is connected to the right-hand side
"DocumentationLink" the link to the Registry of Notable Universe Models
"InitialCondition" the initial state for the model
"MaximumArity" the largest number of vertices in any single edge
"ReleaseDate" the date the model was published in the Registry
"Rule" the hypergraph replacement rule for the model
"RuleComplexity" a numerical value correlated with the complexity of the rule
"RuleNodeCounts" counts of distinct vertices on each side of the rule
"RuleNodesDroppedAdded" counts of vertices only appearing on the left- and right-hand sides of the rule
"RuleSignature" counts of edge arities on each side of the rule
"RuleSignatureList" unformatted rule signature
"ShortCode" the short code in the Registry of Notable Universe Models
"TransformationCount" the number of rules in the model
"Version" the version of the data format
ResourceFunction["WolframModelData"][code,"Properties"] gives a list of available properties.
ResourceFunction["WolframModelData"][code,All] gives an Association containing all available information.

Examples

Basic Examples

Get the rule for a code:

In[1]:=
ResourceFunction["WolframModelData"][1113]
Out[1]=

Get the full metadata:

In[2]:=
ResourceFunction["WolframModelData"][4571, All]
Out[2]=

Get the code for a published rule:

In[3]:=
ResourceFunction[
 "WolframModelData"][{{{1, 2}} -> {{3, 3}, {3, 2}, {1, 2}}}]
Out[3]=

Scope

Codes can also be given as strings:

In[4]:=
ResourceFunction["WolframModelData"]["wm3647"]
Out[4]=

Without the "wm" prefix:

In[5]:=
ResourceFunction["WolframModelData"]["3732"]
Out[5]=

Get a specific parameter:

In[6]:=
ResourceFunction["WolframModelData"][2796, "RuleSignature"]
Out[6]=

Get multiple parameters:

In[7]:=
ResourceFunction[
 "WolframModelData"]["wm3473", {"RuleSignature", "MaximumArity"}]
Out[7]=

See the list of available properties:

In[8]:=
ResourceFunction["WolframModelData"][3532, "Properties"]
Out[8]=

Get the rules for a list of models:

In[9]:=
ResourceFunction["WolframModelData"][{37684, 3556}]
Out[9]=

Get all the published short codes:

In[10]:=
ResourceFunction["WolframModelData"][]
Out[10]=

Find the most common published rule signatures:

In[11]:=
Dataset@TakeLargest[
  Counts@ResourceFunction["WolframModelData"][All, "RuleSignature"], 5]
Out[11]=

Get all the published metadata:

In[12]:=
Short[ResourceFunction["WolframModelData"][All, All], 4]
Out[12]=

Show all the published rules in a feature space:

In[13]:=
FeatureSpacePlot[
 ResourceFunction["WolframModelData"][All, {"ShortCode", "Rule"}], LabelingFunction -> Tooltip,
 FeatureExtractor -> (#Rule &)]
Out[13]=

Resource History

Related Resources

License Information