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 step #4 of how to add the macro.
To add the macro
In your Concept Modeling Project, click Tools > Macros > Organize Macros..., or use the 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, 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 the model on which you would like to update IRIs.
A dialog will open asking you where to save the 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.
|
|