]> gerrit.simantics Code Review - simantics/interop.git/commitdiff
Ability to store selected data for model updates.
authorluukkainen <luukkainen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 17 Apr 2012 11:04:49 +0000 (11:04 +0000)
committerMarko Luukkainen <marko.luukkainen@vtt.fi>
Thu, 2 Feb 2017 09:22:19 +0000 (11:22 +0200)
refs #3169

git-svn-id: https://www.simantics.org/svn/simantics/interoperability/trunk@24702 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.interop/graph.tg
org.simantics.interop/graph/Interop.pgraph
org.simantics.interop/src/org/simantics/interop/stubs/InteropResource.java

index dda14832d47aa34a869308fb2890c7eb79e6239e..46e57ad39507efd571fb803c4c2c26e18ca5c9a5 100644 (file)
Binary files a/org.simantics.interop/graph.tg and b/org.simantics.interop/graph.tg differ
index 453c640c94b4865cced80570b89f3b41fcb4bb9e..f852b043cc3ca95c56346f2d6c50478750172795 100644 (file)
@@ -11,17 +11,27 @@ INTEROP = <http://www.simantics.org/Interop-1.0> : L0.Ontology
    \r
 INTEROP.HasImportData <R L0.IsWeaklyRelatedTo\r
     L0.InverseOf INTEROP.ImportDataOf <R L0.IsWeaklyRelatedTo\r
-   \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
index 48c0e3a7774971f6660cb9bd499bb52fd4414246..4ad00569d5a74cf72a7b69232369133fef07c7ea 100644 (file)
@@ -13,6 +13,7 @@ public class InteropResource {
     public final Resource HasGeneratorID;\r
     public final Resource HasGeneratorID_Inverse;\r
     public final Resource HasImportData;\r
+    public final Resource HasInputResource;\r
     public final Resource HasSource;\r
     public final Resource INodeType;\r
     public final Resource ImportDataOf;\r
@@ -26,6 +27,7 @@ public class InteropResource {
         public static final String HasGeneratorID = "http://www.simantics.org/Interop-1.0/HasGeneratorID";\r
         public static final String HasGeneratorID_Inverse = "http://www.simantics.org/Interop-1.0/HasGeneratorID/Inverse";\r
         public static final String HasImportData = "http://www.simantics.org/Interop-1.0/HasImportData";\r
+        public static final String HasInputResource = "http://www.simantics.org/Interop-1.0/HasInputResource";\r
         public static final String HasSource = "http://www.simantics.org/Interop-1.0/HasSource";\r
         public static final String INodeType = "http://www.simantics.org/Interop-1.0/INodeType";\r
         public static final String ImportDataOf = "http://www.simantics.org/Interop-1.0/ImportDataOf";\r
@@ -49,6 +51,7 @@ public class InteropResource {
         HasGeneratorID = getResourceOrNull(graph, URIs.HasGeneratorID);\r
         HasGeneratorID_Inverse = getResourceOrNull(graph, URIs.HasGeneratorID_Inverse);\r
         HasImportData = getResourceOrNull(graph, URIs.HasImportData);\r
+        HasInputResource = getResourceOrNull(graph, URIs.HasInputResource);\r
         HasSource = getResourceOrNull(graph, URIs.HasSource);\r
         INodeType = getResourceOrNull(graph, URIs.INodeType);\r
         ImportDataOf = getResourceOrNull(graph, URIs.ImportDataOf);\r