The <dataadapter> tag allows the user to specify a read and/or write adapter(s). These data adapters are for loading/saving of annotation data only, not for ontologies. At least one data adapter should be specified per configuration, with up to as many as desired.
Name | Description | Legal Values | Required | Default |
name |
This is the name of the data adapter, including its location within the software. This location is set by the developers of each data adapter. |
any text value | yes | |
is_queryable |
This is a flag to indicate is the data adapter will be able to connect to a database back-end. |
|
no | false |
enable |
For each element, it can be turned on or off. In this way you can maintain the list of available data adapters, but just "hide" them in the application if set to false. |
|
no | false |
Each <dataadapter> element specifies one data adapter to be used during loading and saving of the annotation data. You will see these data adapters in the the Load or Save dialog boxes, in the order they are specified in the configuration. To include multiple data adapters, be sure to repeat the full line for each adapter. Data adapters can be removed from a Phenote session by disabling the element, or by deleting from the configuration itself.
Developers can easily write their own data adapter and plug it into the configuration for use during file loading and saving, or for database retrieval. If you are interested in writing your own data adapter, please read the section on Information for Developers.
WARNING: Be sure to enable at least one data adapter, otherwise you will be unable to save your annotations.
<ns:dataadapter name="phenote.dataadapter.delimited.DelimitedFileAdapter" enable="true"/><ns:dataadapter name="phenote.dataadapter.phenosyntax.PhenoSyntaxFileAdapter" enable="false"/>