Different script parameters are passed to scripts in different contexts. This page describes the global variables and script parameters available to OSL scripts in OBO-Edit.
OSL scripts have complete power to modify the OBO-Edit data objects. A badly coded OSL script can destroy an ontology or leave an ontology in an inconsistent state that will crash OBO-Edit. Be careful.
It is possible to modify an ontology using obo2obo without courting a major disaster. However, never modify an ontology during an active OBO-Edit session. OBO-Edit expects ontology edits to happen via a strict protocol. Direct modifications to the OBO-Edit datamodel will always leave OBO-Edit in an unstable, damaged state.
Furture versions of OSL may not even allow direct modification of datamodels from OBO-Edit.
When a script is run by obo2obo, the following global variables are always available:
When a script is run by OBO-Edit, the following global variables are always available:
Other local script parameters are available in specific contexts inside OBO-Edit.
Whenever a backtick expression is used in a filter, the following variable is available: