Overview

This page documents the use of admin tools to load or remove map notes.  This is used to take mapping notes from a legacy system and install them into the new environment.  It can also be used as a generic means to attach arbitrary note information to mapped concepts for a map project.  For example, this mechanism was used to load "legacy" information about specialists/leads and when concepts were mapped from the old Cartographer system.

Prerequisites

Details

This tool is used to load or remove map notes from a pseudo RF2 file.  This is a mechanism to migrate notes information from a legacy environment into the new environment.  The expected format is in the style of an RF2 file with these fields (including a header line):

  

Following are some details about the loader implementation:

Mojo: MapNoteRf2LoaderMojo.java (in admin/mojo/src/main/resources/java/org/ihtsdo/otf/mapping/mojo)

Project: admin/loader

Configuration Parameters

 

Following are some details about the remover implementation:

Mojo: MapNoteRemoverMojo.java (in admin/mojo/src/main/resources/java/org/ihtsdo/otf/mapping/mojo)

Project: admin/remover

Configuration Parameters

Samples

Sample command line call of the admin tool to load map notes from an RF2 file:

% cd ~/code/admin/loader
% mvn install -Drun.config=/home/ihtsdo/config/config.properties -PMapNotes -Dinput.file=/home/ihtsdo/data/der2_sRefset_MapNotesSnapshot_INT_20140131.txt


Sample command line call of the admin tool to remove map notes for refsets 447563008 and 447562003:

% cd ~/code/admin/remover
% mvn install -Drun.config=/home/ihtsdo/config/config.properties -PMapNotes -Drefset.id=447563008,447562003

 

Sample Eclipse run configuration to load map notes from an RF2 file:

Sample Eclipse run configuration to remove map notes for refsets 447563008 and 447562003:

Troubleshooting

If anything goes wrong loading map notes, they can be removed with the remover and simply reloaded.

References/Links