Migrating older models to use relative IRIs improves model refactoring. This can be done using the Macro Engine. The modeling tool comes with the macro file installed in the tool's directory. Instructions on how to find the file are described in this page.
To add the macro
In your Concept Modeling Project, click Tools > Macros > Organize Macros... or use shortcut key Ctrl+Alt+M.
The Organize Macros dialog opens.
Click Add. The Macro Information dialog opens. Fill out the Name, Macro Language, and File containing the macro's description.
To find the appropriate file, click on the three dots at the end of File field. Your local directory opens. Find the application folder and select data > Concept Modeler > scripts > UpdateIRI.groovy.
The Macro Language is the macro's file extension. The modeling tool supports BeanShell, Groovy, JRuby, JavaScript, JavaScript Rhino, and Jython. |
To execute the macro
Click on Tools > Macros > Macro Name e.g. UpdateIRIMacro.
To use the macro for your existing project
Right - click on your model that you would like to update IRIs on as shown in Figure 6.
A dialog will open asking where to save results in .csv format.
After selecting the file, the progress bar shows the progress of the migration.
The notification window notifies you when the migration is done and where the results are stored.
|
|