/examples

OpenSPARKL Example Configurations and Mixes

Primary LanguagePythonApache License 2.0Apache-2.0

OpenSPARKL Examples

OpenSPARKL Project Home

To use an example

  1. Save it to your local file system as an xml file.

See shortcut below on how to import all example configurations in one go.

  1. Open the SPARKL Developer Console
  2. Log into an existing account or create a new one
    • To create a new account:
      1. Click Create a New Account
      2. Enter your e-mail address
      3. Enter your chosen password twice
      4. Try not to forget it
  3. Import the xml file
  4. Run it in the Developer Console

Bulk importing all example configurations

Dependencies

  • Python 2.7 - get it from here
  • Git - get it from here
  • The SPARKL CLI - get it from here
  • An existing SPARKL user account

Procedure

  1. Clone the examples repository.
$ git clone https://github.com/opensparkl/examples.git
  1. From the python_scripts directory run the bulk_import.py script.
$ cd examples/python_scripts
$ python bulk_import.py
  1. Follow the instructions on the terminal screen.

If you choose not to import all examples, the script offers them one by one for importing.

Enter your SPARKL instance URL: https://saas.sparkl.com
Connected to https://saas.sparkl.com using alias this_import_alias
Enter your username: miklos@sparkl.com
Password: **************
Logged in as miklos@sparkl.com
Import all examples? y/n y

All the selected SPARKL example configurations are imported to your user tree at the specified SPARKL instance. The script also creates the Scratch and Lib folders in your SPARKL user tree if they are not already there.

See this readme on the library configurations saved under the Lib folder.