--- a/src/net/timbusproject/context/converter/OWLExport.java
+++ b/src/net/timbusproject/context/converter/OWLExport.java
@@ -277,14 +277,13 @@
return SCENARIOS_PREFIX + file.getName();
}
+ /** Exports the layout of the layered view ({@link IViewpoint#LAYERED_VIEWPOINT}) of a model to a CSV separated file */
public static void exportLayout(IArchimateModel model, File layoutFile, File owlFile) throws FileNotFoundException {
exportLayout(layoutFile, getDefaultIRI(owlFile), getLayeredView(model));
}
- /** Exports the layout of the layered view ({@link IViewpoint#LAYERED_VIEWPOINT}) of a model to a CSV separated file */
- public static boolean exportLayout(IArchimateModel model, File layoutFile, String defaultIRI, String viewName)
+ public static boolean exportLayout(IArchimateModel model, File layoutFile, String ontologyIRI, String viewName)
throws FileNotFoundException {
- System.out.println("OWLExport.exportLayout()");
ArchimateDiagramModel view = null;
if (viewName != null) {
System.out.print("Trying to find view '" + viewName + "'... ");
@@ -314,7 +313,11 @@
}
}
- return exportLayout(layoutFile, defaultIRI, view);
+ if (ontologyIRI == null || ontologyIRI.trim().length() == 0) {
+ ontologyIRI = getDefaultIRI(layoutFile);
+ }
+
+ return exportLayout(layoutFile, ontologyIRI, view);
}
/** Exports the layout of a model to a CSV separated file */