Use your Wolfram Cloud account to create a personal data resource.

Using a Notebook...

Prepare data in a notebook

Start with the content that you want to store as a personal data resource. Data resources can contain any kind of data: tabular, time series, images, graphs, and so on.

Here is how to set up a personal repository with this Dataset object that describes the planets and their moons:

In[1]:=
Click for copyable input
Out[1]=

Open a Data Resource Definition Notebook

Choose File New Data Resource to open the notebook for creating a data resource:

  • You can create a Data Resource Definition Notebook programmatically with CreateNotebook["DataResource"].

Fill in the Title and Description fields

Enter a title in the Title field and a brief description of what the data resource contains in the Description field:

  • You can optionally fill in any of the descriptive fields in the Metadata section, but these are not required for personal data resources.

Add your data to the resource

Scroll down to the Content Elements field in the Content Elements section. Enter the names and contents of the data elements. It is not unusual for a data resource to have just one element:

If your data is already in the Wolfram Cloud, you can specify the corresponding CloudObject as the content:

Any code necessary to prepare the data content or define symbols used in the content elements can be included in the Construction Area and Content Element Initialization fields in the Content Preparation section:

  • You must specify the resource data directly, not via definitions made in another notebook. The Data Resource Definition Notebook has its own symbol context and will not recognize symbols from other notebooks.

Specify a default element

In the Default Element Specification field, click Default Element Name and type the name of one of the data elements you entered in the Content Elements field. When you access a data resource without explicitly specifying an element, this is the element you will get:

Add examples

You can optionally add examples of how your data resource is typically used. Examples are optional for personal data resources, but should be provided for data resources that will be published in the Wolfram Data Repository. See Write Data Resource Examples for full details.

Create the data resource

Scroll to the Create Resource Object section and evaluate the ResourceObject expression to create the data resource:

Deploy the data resource

Scroll to the Deploy Resource Object section and evaluate one of the expressions there, depending on how you intend to use the deployed object.

To deploy a resource that resides on your computer and is accessible only to you, evaluate the LocalCache expression in the Deploy Locally on Your Computer field:

To deploy a resource that resides in the cloud and is accessible only by you, evaluate the CloudDeploy expression in the Deploy Privately to Your Cloud Account field:

To deploy a resource that resides in the cloud and is publicly accessible, evaluate the CloudDeploy expression in the Deploy Publicly to Your Cloud Account field:

Verify the deployment

To check that the resource was properly deployed, evaluate ResourceData with the name of the resource:

Check the data resource webpage

When you deploy a resource to the cloud, a webpage is automatically created for it. To visit the webpage, click the link in the CloudObject output of the CloudDeploy expression:

Access your personal repository

Find objects in your personal repository with ResourceSearch:

In[3]:=
Click for copyable input
Out[3]=

ResourceSearch searches your local resource objects first, then your personal cloud resource objects, and finally the Wolfram Data Repository. Use the "SearchLocations" option to give an explicit search path. To restrict a resource search to your personal data repository, use "SearchLocations"{"Cloud","Local"}:

In[4]:=
Click for copyable input
Out[4]=

Copy and paste a ResourceObject from the search results, or index into the search results to use a resource object:

Programmatically...

Create a resource object

To add a data resource to your personal repository programmatically, create a ResourceObject with these elements:

Alternatively, you can put your data in the Wolfram Cloud and point to the cloud locations with "ContentElementLocations":

  • "DefaultContentElement" is not required. If it is not specified, ResourceData[ro] will return the entire association specified by "ContentElements" or "ContentElementLocations", with cloud objects resolved to their contents.

Add the resource object to your personal repository

Add the resource object to your personal repository:

In[10]:=
Click for copyable input
Out[10]=

Or add the resource to your private repository in the cloud:

In[11]:=
Click for copyable input
Out[11]=

Access your personal repository

Find objects in your personal repository with ResourceSearch:

In[12]:=
Click for copyable input
Out[12]=

ResourceSearch searches your local resource objects first, then your personal cloud resource objects, and finally the Wolfram Data Repository. Use the "SearchLocations" option to give an explicit search path. To restrict a resource search to your personal data repository, use "SearchLocations"{"Cloud","Local"}:

In[13]:=
Click for copyable input
Out[13]=

Copy and paste a ResourceObject from the search results, or index into the search results to use a resource object: