Defining a Graph-Codifier

A GFEAR script must define the following:

  • The name of the script and its category. The category is used to group gfear scripts related to the same ontology.
  • Ontologies that are referened in the script, including the prefix that is intended to be used, see Defining Ontologies.
  • Any core reference ontologies that need to be included, see Including Core Reference Ontologies.
  • The set of fields that this script expects to accept, see Accept Definition.

The define codifier Statement

The graph-codifier definition statement looks like the following example:

define codifier("MyCodifier", "GraphCodify/CustomOntology/Person");

The statement includes the name of the codifer (MyCodifier) and the category (GraphCodify/CustomOntology/Person).

The name is used to identify the codifier and can be used as a type field in input data to select a specific codifier (see Mapping Data). The category is used to group the script with other scripts that are related to the same ontology. The category starts with GraphCodify as the same categorization method is used for other languages within FEAR.