summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorramona.enache <ramona.enache@chalmers.se>2010-09-04 21:19:03 +0000
committerramona.enache <ramona.enache@chalmers.se>2010-09-04 21:19:03 +0000
commit1edd84c21a0b06cf2bd8f1482b9e7ab9edacb6ba (patch)
tree81bb20658d3bd83596e78a7b993f712cb60c924d /examples
parent5290659c2c5d6f5fe8dab957854470bba5b3d736 (diff)
added basic concepts of the SUMO ontology for French and Romanian
Diffstat (limited to 'examples')
-rw-r--r--examples/SUMO/MergeFre.gf18
-rw-r--r--examples/SUMO/MergeRon.gf20
-rw-r--r--examples/SUMO/RGLExt/ExtraLexicon.gf22
-rw-r--r--examples/SUMO/RGLExt/ExtraLexiconFre.gf18
-rw-r--r--examples/SUMO/RGLExt/ExtraLexiconRon.gf18
5 files changed, 94 insertions, 2 deletions
diff --git a/examples/SUMO/MergeFre.gf b/examples/SUMO/MergeFre.gf
index 9beb73c35..d1ef1af3b 100644
--- a/examples/SUMO/MergeFre.gf
+++ b/examples/SUMO/MergeFre.gf
@@ -48,4 +48,22 @@ sister ob1 ob2 = mkPolSent (PredVP ob1 (AdvVP (UseComp (CompNP (DetCN (DetQuant
-- ternary predicate
+---------------- CNL demo
+Entity = UseN entity_N ;
+Abstract = UseN abstract_N ;
+Attribute = UseN attribute_N ;
+Graph = UseN graph_N ;
+GraphElement = AdvCN (UseN element_N) (PrepNP part_Prep (MassNP (UseN graph_N))) ;
+Model = UseN model_N ; -- FIX ME
+ProcessTask = AdvCN (UseN task_N) (PrepNP possess_Prep (MassNP (UseN process_N))) ; -- FIX ME
+Proposition = UseN proposition_N ;
+Quantity = UseN quantity_N ;
+SetOrClass = ConjCN or_Conj (BaseCN (UseN set_N) (UseN class_N)) ;
+Physical = UseN physical_N ;
+ContentBearingPhysical = AdvCN (UseN physical_N) (PrepNP with_Prep (MassNP (UseN content_N))) ;
+Object = UseN object_N ;
+PhysicalSystem = AdjCN (PositA physical_A) (UseN system_N) ;
+Process = UseN process_N ;
+
+
}; \ No newline at end of file
diff --git a/examples/SUMO/MergeRon.gf b/examples/SUMO/MergeRon.gf
index 93735b67a..9e6dcedf8 100644
--- a/examples/SUMO/MergeRon.gf
+++ b/examples/SUMO/MergeRon.gf
@@ -51,4 +51,24 @@ sister ob1 ob2 = mkPolSent (PredVP ob1 (AdvVP (UseComp (CompNP (DetCN (DetQuant
--others
toInt x = mkNP x.s ("lui" ++ x.s) x.s Sg Masc;
toRealNum x = mkNP x.s ("lui" ++ x.s) x.s Sg Masc;
+
+
+---------------- CNL demo
+Entity = UseN entity_N ;
+Abstract = UseN abstract_N ;
+Attribute = UseN attribute_N ;
+Graph = UseN graph_N ;
+GraphElement = AdvCN (UseN element_N) (PrepNP part_Prep (MassNP (UseN graph_N))) ;
+Model = UseN model_N ; -- FIX ME
+ProcessTask = AdvCN (UseN task_N) (PrepNP possess_Prep (MassNP (UseN process_N))) ; -- FIX ME
+Proposition = UseN proposition_N ;
+Quantity = UseN quantity_N ;
+SetOrClass = ConjCN or_Conj (BaseCN (UseN set_N) (UseN class_N)) ;
+Physical = UseN physical_N ;
+ContentBearingPhysical = AdvCN (UseN physical_N) (PrepNP with_Prep (MassNP (UseN content_N))) ;
+Object = UseN object_N ;
+PhysicalSystem = AdjCN (PositA physical_A) (UseN system_N) ;
+Process = UseN process_N ;
+
+
}; \ No newline at end of file
diff --git a/examples/SUMO/RGLExt/ExtraLexicon.gf b/examples/SUMO/RGLExt/ExtraLexicon.gf
index fa5ea52bd..d15177b70 100644
--- a/examples/SUMO/RGLExt/ExtraLexicon.gf
+++ b/examples/SUMO/RGLExt/ExtraLexicon.gf
@@ -4,4 +4,26 @@ fun
square_A : A ;
value_N : N ;
element_N : N ;
+
+
+--------------------------
+--CNL presentation
+
+ entity_N : N ;
+ abstract_N : N ;
+ attribute_N : N ;
+ graph_N : N ;
+ model_N : N ;
+ process_N : N ;
+ task_N : N ;
+ proposition_N : N ;
+ quantity_N : N ;
+ set_N : N ;
+ class_N : N ;
+ physical_N : N ;
+ content_N : N ;
+ object_N : N ;
+ system_N : N ;
+ physical_A : A ;
+
}
diff --git a/examples/SUMO/RGLExt/ExtraLexiconFre.gf b/examples/SUMO/RGLExt/ExtraLexiconFre.gf
index 6daabbaec..85755cbe1 100644
--- a/examples/SUMO/RGLExt/ExtraLexiconFre.gf
+++ b/examples/SUMO/RGLExt/ExtraLexiconFre.gf
@@ -4,7 +4,7 @@ concrete ExtraLexiconFre of ExtraLexicon = CatFre **
open ParadigmsFre,MorphoFre,BeschFre in {
flags
- optimize=values ;
+ optimize=values ; coding=utf8 ;
lin
value_N = regGenN "valeur" feminine ;
@@ -12,6 +12,22 @@ lin
time_N = regN "heure" ;
element_N = mkN "élément" ;
+ entity_N = regGenN "entité" feminine;
+ abstract_N = mkN "abstrait" ;
+ attribute_N = mkN "attribut" ;
+ graph_N = regGenN "graph" masculine ;
+ model_N = regGenN "modèle" masculine;
+ process_N = mkN "processus" ;
+ task_N = regGenN "tâche" feminine;
+ proposition_N = regGenN "proposition" feminine ;
+ quantity_N = regGenN "quantité" feminine;
+ set_N = regGenN "ensemble" masculine;
+ class_N = regGenN "classe" feminine;
+ physical_N = regGenN "physique" masculine;
+ content_N = mkN "sens" ;
+ object_N = mkN "objet" ;
+ system_N = mkN "système" ;
+ physical_A = regA "physique" ;
diff --git a/examples/SUMO/RGLExt/ExtraLexiconRon.gf b/examples/SUMO/RGLExt/ExtraLexiconRon.gf
index 8846a05de..9b91fcd3e 100644
--- a/examples/SUMO/RGLExt/ExtraLexiconRon.gf
+++ b/examples/SUMO/RGLExt/ExtraLexiconRon.gf
@@ -4,7 +4,7 @@ concrete ExtraLexiconRon of ExtraLexicon = CatRon **
open ParadigmsRon,MorphoRon,BeschRon in {
flags
- optimize=values ;
+ optimize=values ; coding=utf8 ;
lin
value_N = mkN "valoare" "valori" ;
@@ -12,6 +12,22 @@ lin
time_N = mkNR "timp" ;
element_N = mkN "element" ;
+ entity_N = mkN "entitate" ;
+ abstract_N = mkN "abstract" ;
+ attribute_N = mkN "atribut" ;
+ graph_N = mkNR "graf" ;
+ model_N = mkN "model" ;
+ process_N = mkN "proces" ;
+ task_N = mkN "sarcină" ;
+ proposition_N = mkN "propoziție" ;
+ quantity_N = mkN "cantitate" ;
+ set_N = mkN "mulțime" ;
+ class_N = mkN "clasă" ;
+ physical_N = mkN "concret" ;
+ content_N = mkN "conținut" ;
+ object_N = mkN "obiect" ;
+ system_N = mkN "sistem" ;
+ physical_A = regA "concret" ;