The web page for installing scripts is accessible under the path: /admin/script-manager/script-install. There are two ways to install scripts into the platform:
  • type in the script directly into a text box labeled "Script", or
  • upload a file containing the script.
Along with the script installation, there are some information about the script to be delivered:
  • language: the language (and language version) of a script can only take one of the values listed in a drop-down box on the page. Those are languages supported by the platform.
  • name: if a script is installed by uploading a file, the file's name is used as the script's name, otherwise the user must specify the name of the script.
  • media type (optional): if the user does not specify the media type of the installed script, it is extracted from the media type of the script file sent by the browser. If the script is directly typed into a text box and the media type is unspecified, then it will have the default value text/plain.
  • produced media type (optional): if the script returns a GraphNode, then the produced media type of the script is ignored, otherwise the default value of the produced media type is text/plain.
  • execution URI (optional): an execution URI can be specified, under which the execution of the script can be requested.
1