Wolfram Language

Cloud Storage & Operations

Create a Data Resource

Create a custom data resource from personal data stored in a local object.

Connect to Twitter and get some data.

In[1]:=
Click for copyable input
twitter = ServiceConnect["Twitter"];
In[2]:=
Click for copyable input
friendgraph = ServiceExecute[twitter, "FriendNetwork"];
Out[2]=

Export the data to a local object and create a resource object.

In[3]:=
Click for copyable input
lo = Export[LocalObject[], friendgraph, "MX"]
Out[3]=
In[4]:=
Click for copyable input
ResourceObject[<| "Name" -> "My Twitter Graph", "ResourceType" -> "DataResource", "ContentLocation" -> lo, "Description" -> "A network of friendships within my twitter community" |>]
Out[4]=

Obtain the data back.

In[5]:=
Click for copyable input
ResourceData["My Twitter Graph"]
Out[5]=

Related Examples

de es fr ja ko pt-br ru zh