]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.layer0/graph/Layer0Migration.pgraph
Alternative Namespace migration step for Shared Libs
[simantics/platform.git] / bundles / org.simantics.layer0 / graph / Layer0Migration.pgraph
index a2be43da621621ba2cc07cdb1876fe67450ef378..f13ee42a24a391f7be35fed3d1f5396eee9d5174 100644 (file)
@@ -43,6 +43,12 @@ L0.NamespaceMigrationStep.Prefix <T L0.Entity
     >-- L0.NamespaceMigrationStep.Prefix.from --> L0.String <R L0.HasProperty : L0.TotalFunction
     >-- L0.NamespaceMigrationStep.Prefix.to --> L0.String <R L0.HasProperty : L0.TotalFunction
 
+/*
+ * Due to poor MigrationStep and Model/SHared Library implementation, we need alternative implementation for
+ * Shared Librarty NameSpace migrations
+ */
+L0.SLNamespaceMigrationStep <T L0.MigrationStep  <T L0.List
+
 /*
  * Ordered sets may be replaced with lists.
  * Consists of L0.OrderedSetToListStep.change
@@ -55,3 +61,11 @@ L0.OrderedSetToListMigrationStep.Change <T L0.Entity
     >-- L0.OrderedSetToListMigrationStep.orderedSetType --> L0.String <T L0.HasProperty : L0.TotalFunction
     >-- L0.OrderedSetToListMigrationStep.listRelation --> L0.String <T L0.HasProperty : L0.TotalFunction
     >-- L0.OrderedSetToListMigrationStep.listType --> L0.String <T L0.HasProperty : L0.TotalFunction
+
+L0.InstanceOfMigrationStep <T L0.MigrationStep <T L0.List
+    L0.HasDescription """Simple migration step that switches one InstanceOf statement for another.
+Useful for cases where the type hierarchy in an ontology changes.
+The list is expected to contain an even number of URI string literals
+where the first literal specifies the type whose instances shall have
+their InstanceOf statements changed to the type pointed to by the second URI.
+The list can contain multiple of these pairs."""