]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.modeling.ontology/graph/Modeling.pgraph
Changed SCLTypeUtils to not log warnings for non-property relations
[simantics/platform.git] / bundles / org.simantics.modeling.ontology / graph / Modeling.pgraph
index 3f33c47fc49c75ffba2827e11e77b1210f3d89f6..865f03e989527c9571d51d8c3be511586c1fd49e 100644 (file)
@@ -5,6 +5,7 @@ PROJ = <http://www.simantics.org/Project-1.2>
 G2D = <http://www.simantics.org/G2D-1.1>
 DIA = <http://www.simantics.org/Diagram-2.2>
 SIMU = <http://www.simantics.org/Simulation-1.1>
+GF = <http://www.simantics.org/GraphFile-0.1>
 DOC = <http://www.simantics.org/Document-1.2>
 ISSUE = <http://www.simantics.org/Issue-1.2>
 SG = <http://www.simantics.org/Scenegraph-1.1>
@@ -45,7 +46,7 @@ created to the model."""
         L0.HasDescription """Specifies a template for a symbol that is created 
 by default for the new component type under the model."""
     >-- MOD.StructuralModel.HasSymbolDiagramType --> L0.Type <R L0.IsRelatedTo : L0.FunctionalRelation
-
+    >-- MOD.StructuralModel.HasSymbolType --> L0.Type <R L0.IsRelatedTo : L0.FunctionalRelation
     >-- MOD.StructuralModel.HasConfigurationType --> L0.Type <R L0.IsRelatedTo : L0.FunctionalRelation
 
     @L0.assert MOD.StructuralModel.HasComponentTypeSupertype STR.Component
@@ -325,6 +326,21 @@ MOD.scl : L0.Template
               L0.SCLValue.expression %expression
               L0.HasValueType %valueType
 
+MOD.sclValue : L0.Template
+    @template %subject %expression %valueType
+        %subject  : MOD.SCLValue
+            L0.SCLValue.expression %expression
+            L0.HasValueType %valueType
+
+MOD.sclAssertion : L0.Template
+    @template %type %property %expression %valueType
+        %type
+            L0.Asserts _ : L0.Assertion
+              L0.HasPredicate %property
+              L0.HasObject _ : MOD.SCLValue
+                L0.SCLValue.expression %expression
+                L0.HasValueType %valueType
+
 MOD.Functions.obtainedString : L0.Function
   L0.HasValueType "String"
 
@@ -359,6 +375,7 @@ MOD.HasSourceInformation --> MOD.SourceInformation <R L0.IsRelatedTo : L0.Functi
 //##########################################################################
 
 MOD.ChangeInformation <T L0.Literal
+    @L0.assert L0.HasValueType "ChangeInformation"
     @L0.assert L0.HasDataType ${ createdBy : String, createdAt : Long, modifiedBy : String, modifiedAt : Long }
 
 MOD.Functions.modificationTimeTextLong : L0.Function
@@ -402,6 +419,10 @@ MOD.changeInformation <R L0.HasProperty : L0.FunctionalRelation : SEL.GenericPar
     SEL.canBeLifted false
     SEL.HasStandardPropertyInfo MOD.SystemPropertyInfo
 
+MOD.changed
+    @L0.defTag
+    L0.HasDescription "Indicates that the change information of this object has been modified after import into this database."
+
 MOD.TypeWithChangeInformation <T L0.Entity
 
 L0.HasName : SEL.GenericParameterType
@@ -411,12 +432,8 @@ L0.HasName : SEL.GenericParameterType
 L0.HasLabel : SEL.GenericParameterType
 L0X.HasGeneratedNamePrefix : SEL.GenericParameterType
 
-//MOD.HasNameBrowseContextContribution : VP.BrowseContextContribution
-//    VP.BrowseContextContribution.HasType L0.String
-//    VP.BrowseContextContribution.HasBrowseContext
-//      _ : VP.BrowseContext
-
 L0.SCLModule : MOD.TypeWithChangeInformation
+L0.SCLScript : MOD.TypeWithChangeInformation
 L0.Library : MOD.TypeWithChangeInformation
 SIMU.Model : MOD.TypeWithChangeInformation
 MOD.Subscription : MOD.TypeWithChangeInformation
@@ -431,6 +448,7 @@ L0.Relation : MOD.TypeWithChangeInformation
 STR.ComponentType <T MOD.TypeWithChangeInformation
 
 L0.SCLModule : L0.TypeWithIdentifier
+L0.SCLScript : L0.TypeWithIdentifier
 L0.Type  : L0.TypeWithIdentifier
 L0.Relation : L0.TypeWithIdentifier
 L0.Library : L0.TypeWithIdentifier
@@ -485,6 +503,14 @@ MOD.DependencyTrackingProcess : MOD.LifeCycleProcess
     "LifeCycleContext -> <Proc> ()"
      
 
+MOD.OntologicalRequirementTracker <T MOD.LifeCycleProcess
+  @MOD.sclAssertion MOD.LifeCycleProcess.load
+    """\x -> trackOntologicalRequirements"""
+    "LifeCycleContext -> <Proc> ()"
+  @MOD.sclAssertion MOD.LifeCycleProcess.unload
+    """\x -> untrackOntologicalRequirements"""
+    "LifeCycleContext -> <Proc> ()"
+
 MOD.EditorContribution <T L0.Entity
   --> MOD.EditorContribution.canHandle ==> "Resource -> <ReadGraph> Boolean" <R L0.HasProperty : L0.FunctionalRelation 
   --> MOD.EditorContribution.editorId --> L0.String <R L0.HasProperty : L0.FunctionalRelation 
@@ -506,4 +532,43 @@ MOD.SVGTabContribution : SEL.SCLTabContribution
     "svgTabContribution"
     "() -> <Proc> TabContribution"
 
-      
\ No newline at end of file
+MOD.SymbolCodeStyle : DIA.Style
+
+MOD.IssueDecorationStyle : DIA.Style
+
+MOD.PreferredDiagramEditorID <R L0.HasProperty : L0.FunctionalRelation
+    L0.HasDomain STR.Composite
+    L0.HasRange  L0.String
+    
+MOD.contentDumpFunction ==> "Resource -> <ReadGraph> Vector Byte" <R L0.HasProperty : L0.FunctionalRelation
+
+// We need to define the function inside this ontology to give it the right evaluation context
+L0.SCLModule
+  MOD.contentDumpFunction
+    MOD.SCLModuleContentDumpFunction
+      @L0.sclValue "sclModuleContentDump" "Resource -> <ReadGraph> Vector Byte"
+
+L0.SCLScript
+  MOD.contentDumpFunction
+    MOD.SCLScriptContentDumpFunction
+      @L0.sclValue "sclScriptContentDump" "Resource -> <ReadGraph> Vector Byte"
+
+L0.PGraph
+  MOD.contentDumpFunction
+    MOD.PGraphContentDumpFunction
+      @L0.sclValue "pgraphContentDump" "Resource -> <ReadGraph> Vector Byte"
+
+GF.File
+  MOD.contentDumpFunction
+    MOD.GraphFileContentDumpFunction
+      @L0.sclValue "graphFileContentDump" "Resource -> <ReadGraph> Vector Byte"
+
+STR.Component
+  MOD.contentDumpFunction
+    MOD.StructuralComponentContentDumpFunction
+      @L0.sclValue "structuralComponentContentDump" "Resource -> <ReadGraph> Vector Byte"
+
+SEL.GenericParameterType
+  MOD.contentDumpFunction
+    MOD.GenericParameterTypeContentDumpFunction
+      @L0.sclValue "genericParameterTypeContentDump" "Resource -> <ReadGraph> Vector Byte"