From dcb8f9a4dd24a82090d36a5eb585ecc5892f852b Mon Sep 17 00:00:00 2001 From: Antti Villberg Date: Wed, 19 Feb 2020 13:06:53 +0200 Subject: [PATCH] Templates for creating SCL values gitlab #469 Change-Id: Ie3b684e106cba76cb70f238c885ef42487de0cfe --- bundles/org.simantics.layer0/graph/Layer0Values.pgraph | 6 ++++++ .../org.simantics.modeling.ontology/graph/Modeling.pgraph | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/bundles/org.simantics.layer0/graph/Layer0Values.pgraph b/bundles/org.simantics.layer0/graph/Layer0Values.pgraph index 14aa774e8..9ccac1051 100644 --- a/bundles/org.simantics.layer0/graph/Layer0Values.pgraph +++ b/bundles/org.simantics.layer0/graph/Layer0Values.pgraph @@ -42,6 +42,12 @@ L0.scl : L0.Template L0.SCLValue.expression %expression L0.HasValueType %valueType +L0.sclValue : L0.Template + @template %subject %expression %valueType + %subject : L0.SCLValue + L0.SCLValue.expression %expression + L0.HasValueType %valueType + L0.sclAssertion : L0.Template @template %type %property %expression %valueType %type diff --git a/bundles/org.simantics.modeling.ontology/graph/Modeling.pgraph b/bundles/org.simantics.modeling.ontology/graph/Modeling.pgraph index e566026b1..dca29f9bf 100644 --- a/bundles/org.simantics.modeling.ontology/graph/Modeling.pgraph +++ b/bundles/org.simantics.modeling.ontology/graph/Modeling.pgraph @@ -325,6 +325,12 @@ 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 -- 2.47.1