Resource Tree

Note

Never attempt to upload source data into the resource tree. Instead direct SpectX to the data by creating a datastore

The resource tree contains datastores, patterns, query scripts, text, and Javascripts files for user-defined functions. In the resource tree, users can create, delete and rename files, save current work, and explore properties.

At the top of the resource tree, there is a search bar where files can be searched by name or modification time.

Hint

You can drag and drop files inside the resource tree.

Once a user creates a script, pattern, or configures a datastore, it appears in the resource tree. Datastores are configured in the data browser.

The resource tree has 3 default folders:

  1. /user - For storing personal files.
  2. /shared - For storing shared team resources.
  3. /system - Folder contents can be read and modified only by the administrator role. Users only have listing and execution permissions, meaning they can see the branch structure, launch queries and read query results, but they can not see the content of files nor modify them.
The Web UI resource tree with a right-click menu displayed

Right-clicking folders and datastores show a dropdown menu with the following options:

  • New
    • Data Store
    • Generic File
    • Folder
  • Save...
    • Save Current as - Saves the file currently being worked on in this folder/datastore.
    • Save Current Query Result as - Saves the result currently being worked on in this folder/datastore.
  • Rename
  • Delete
  • Upload - Upload scripts and other files to this location.
  • Download 'file_name_as.zip
  • Reload Tree - Refreshes the resource tree and displays content newly created by other SpectX users.
  • Properties - Opens a dialoge box with access to the access control list, and API options.

Unique file types in the resource tree include:

  • file.sx Script files that query data for certain parameters after a pattern file.
  • file.sxp Pattern files that tell SpectX how to make sense of a particular data format, and how to treat its contents.