]> gerrit.simantics Code Review - simantics/interop.git/blobdiff - org.simantics.interop/graph/Interop.pgraph
Ability to store selected data for model updates.
[simantics/interop.git] / org.simantics.interop / graph / Interop.pgraph
index 83428609f000d5c5d62292cfc85f255cd7c9811c..f852b043cc3ca95c56346f2d6c50478750172795 100644 (file)
@@ -1,13 +1,47 @@
 L0 = <http://www.simantics.org/Layer0-1.0>\r
-PROJ = <http://www.simantics.org/Project-1.0>\r
+PROJ = <http://www.simantics.org/Project-1.1>\r
+\r
+MOD = <http://www.simantics.org/Modeling-1.1>\r
+VP = <http://www.simantics.org/Viewpoint-1.1>\r
 \r
     \r
 INTEROP = <http://www.simantics.org/Interop-1.0> : L0.Ontology\r
     L0.HasResourceClass "org.simantics.interop.stubs.InteropResource"\r
     @L0.new\r
-    \r
-//INTEROP.InteropFeature : PROJ.Feature\r
-//   L0.HasDescription "Interop feature."\r
    \r
-   \r
-INTEROP.ImportLibrary <T L0.Library
\ No newline at end of file
+INTEROP.HasImportData <R L0.IsWeaklyRelatedTo\r
+    L0.InverseOf INTEROP.ImportDataOf <R L0.IsWeaklyRelatedTo\r
+\r
+// Root node of imported data   \r
+INTEROP.ImportLibrary <T L0.Library\r
+\r
+// Relation from generated model to its input data (Import Library).\r
+INTEROP.HasSource <R L0.IsWeaklyRelatedTo\r
+    L0.InverseOf INTEROP.HasDestination <R L0.IsWeaklyRelatedTo\r
+    L0.HasRange INTEROP.ImportLibrary\r
+\r
+// Relation from generated model to its input data (User selected resources in imported data).    \r
+INTEROP.HasInputResource <R L0.IsWeaklyRelatedTo\r
+\r
+// Id of the generator, which generated the model.\r
+INTEROP.HasGeneratorID <R L0.HasProperty\r
+    L0.HasRange L0.String\r
+\r
+    \r
+IBC = INTEROP.InteropBrowseContext : VP.BrowseContext\r
+    VP.BrowseContext.IsIncludedIn MOD.ModelingBrowseContext\r
+    \r
+\r
+\r
+INTEROP.INodeType <T VP.NodeType\r
+   @L0.assert VP.HasContentType "org.simantics.interop.browsing.INode"\r
+\r
+IBC.InteropNode : INTEROP.INodeType\r
+IBC.InteropChildRule : VP.ChildRule\r
+  \r
+IBC\r
+    VP.BrowseContext.HasChildContribution _ : VP.ChildContribution\r
+        VP.ChildContribution.HasParentNodeType PROJ.Project\r
+        VP.ChildContribution.HasChildNodeType IBC.InteropNode\r
+        VP.ChildContribution.HasRule IBC.InteropChildRule\r
+        \r