]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scenegraph.ontology/graph/Scenegraph.pgraph
Migrated source code from Simantics SVN
[simantics/platform.git] / bundles / org.simantics.scenegraph.ontology / graph / Scenegraph.pgraph
diff --git a/bundles/org.simantics.scenegraph.ontology/graph/Scenegraph.pgraph b/bundles/org.simantics.scenegraph.ontology/graph/Scenegraph.pgraph
new file mode 100644 (file)
index 0000000..e782597
--- /dev/null
@@ -0,0 +1,44 @@
+L0 = <http://www.simantics.org/Layer0-1.1>
+
+Scenegraph = <http://www.simantics.org/Scenegraph-1.1> : L0.Ontology
+    @L0.new
+    L0.HasResourceClass "org.simantics.scenegraph.ontology.ScenegraphResources"
+
+Scenegraph.Node <T L0.Entity
+  >-- Scenegraph.Node.HasProperty --> L0.Value <R L0.HasProperty
+  >-- Scenegraph.Node.children --> L0.Value <R L0.HasProperty : L0.FunctionalRelation
+    L0.RequiresValueType "[Resource]"
+  
+Scenegraph.userProperty <R L0.HasProperty : L0.FunctionalRelation
+
+Scenegraph.Functions : L0.Library
+
+Scenegraph.LiftedPropertyRelation <T L0.FunctionalRelation
+    @L0.assert Scenegraph.userProperty true
+
+Scenegraph.LiftedProperty <T L0.Value
+    @L0.assert 
+        L0.ConvertsToValueWith 
+        Scenegraph.Functions.liftedProperty : L0.ExternalValue
+Scenegraph.LiftedProperty.HasPredicate <R L0.DependsOn : L0.FunctionalRelation
+
+Scenegraph.lifted : L0.Template
+    @template %object %predicate
+        %object : Scenegraph.LiftedProperty 
+            Scenegraph.LiftedProperty.HasPredicate %predicate
+
+  
+  
+Scenegraph.Runtime <T L0.Entity
+  >-- Scenegraph.Runtime.variable --> L0.Value <R L0.HasProperty : L0.FunctionalRelation
+  >-- Scenegraph.Runtime.resource --> L0.Value <R L0.HasProperty : L0.FunctionalRelation
+  @L0.assert Scenegraph.Runtime.variable
+    Scenegraph.Functions.defaultRuntimeVariable : L0.Function
+  @L0.assert Scenegraph.Runtime.resource
+    Scenegraph.Functions.defaultRuntimeResource : L0.Function
+    
+Scenegraph.Runtime.HasVariable <R L0.DependsOn
+Scenegraph.Runtime.HasResource <R L0.DependsOn
+
+  
+Scenegraph.Functions.singleVariableSelection : L0.Function