Skip to content
This repository was archived by the owner on Apr 2, 2023. It is now read-only.

Plugins

rsimon edited this page Oct 17, 2012 · 15 revisions

Plugins

Yuma provides a simple plugin mechanism for extensions. You can add a plugin to Yuma using the JavaScript syntax below. The opt_config_options parameter is an optional associative array providing configuration options for the plugin.

YUMA.addPlugin('myPlugin', opt_config_options);

Please note that plugins are only supported in the standalone version of Yuma, not in the OKFN Annotator version.

ElasticSearch Plugin

The ElasticSearch Plugin is a pre-defined plugin that is part of the standard Yuma distribution. It can be used to persist annotations in a vanilla ElasticSearch installation Add the plugin in the following way:

YUMA.addPlugin('ElasticSearchStorage', {
  /** The storage server base URL **/
  base_url: 'http://www.example.com/storage'
});
Clone this wiki locally