]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.layer0/graph/Layer0Migration.pgraph
Added migration step implementation for changing InstanceOf statements
[simantics/platform.git] / bundles / org.simantics.layer0 / graph / Layer0Migration.pgraph
index a2be43da621621ba2cc07cdb1876fe67450ef378..49361d515b5a2169eebaec9bbd9cd1f4b018074a 100644 (file)
@@ -55,3 +55,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."""