@@ -18,7 +18,6 @@ pub enum RelationDirection {
1818pub struct RelationTypeInfo {
1919 pub name : & ' static str ,
2020 pub direction : RelationDirection ,
21- pub ontological_direction : RelationDirection ,
2221 pub opposite : Option < & ' static str > ,
2322 pub description : & ' static str ,
2423 pub arrow : & ' static str ,
@@ -33,7 +32,6 @@ lazy_static! {
3332 m. insert( "containedBy" , RelationTypeInfo {
3433 name: "containedBy" ,
3534 direction: RelationDirection :: Backward ,
36- ontological_direction: RelationDirection :: Backward ,
3735 opposite: Some ( "contain" ) ,
3836 description: "Element is contained by another element" ,
3937 arrow: "--o" ,
@@ -43,7 +41,6 @@ lazy_static! {
4341 m. insert( "contain" , RelationTypeInfo {
4442 name: "contain" ,
4543 direction: RelationDirection :: Forward ,
46- ontological_direction: RelationDirection :: Forward ,
4744 opposite: Some ( "containedBy" ) ,
4845 description: "Element contains another element" ,
4946 arrow: "--o" ,
@@ -53,8 +50,7 @@ lazy_static! {
5350 // Derive relations
5451 m. insert( "derivedFrom" , RelationTypeInfo {
5552 name: "derivedFrom" ,
56- direction: RelationDirection :: Backward ,
57- ontological_direction: RelationDirection :: Backward ,
53+ direction: RelationDirection :: Backward ,
5854 opposite: Some ( "derive" ) ,
5955 description: "Element is derived from another element" ,
6056 arrow: "-.->" ,
@@ -63,7 +59,6 @@ lazy_static! {
6359 m. insert( "derive" , RelationTypeInfo {
6460 name: "derive" ,
6561 direction: RelationDirection :: Forward ,
66- ontological_direction: RelationDirection :: Forward ,
6762 opposite: Some ( "derivedFrom" ) ,
6863 description: "Element is source for a derived element" ,
6964 arrow: "-.->" ,
@@ -73,8 +68,7 @@ lazy_static! {
7368 // Refine relation
7469 m. insert( "refine" , RelationTypeInfo {
7570 name: "refine" ,
76- direction: RelationDirection :: Forward ,
77- ontological_direction: RelationDirection :: Backward ,
71+ direction: RelationDirection :: Backward ,
7872 opposite: Some ( "refinedBy" ) ,
7973 description: "Element refines a higher-level element" ,
8074 arrow: "-->" ,
@@ -84,8 +78,7 @@ lazy_static! {
8478 // Refine relation
8579 m. insert( "refinedBy" , RelationTypeInfo {
8680 name: "refinedBy" ,
87- direction: RelationDirection :: Backward ,
88- ontological_direction: RelationDirection :: Forward ,
81+ direction: RelationDirection :: Forward ,
8982 opposite: Some ( "refine" ) ,
9083 description: "A souce element being refined by other element." ,
9184 arrow: "-->" ,
@@ -96,7 +89,6 @@ lazy_static! {
9689 m. insert( "satisfiedBy" , RelationTypeInfo {
9790 name: "satisfiedBy" ,
9891 direction: RelationDirection :: Forward ,
99- ontological_direction: RelationDirection :: Backward ,
10092 opposite: Some ( "satisfy" ) ,
10193 description: "A souce element being satisfied by other element." ,
10294 arrow: "-->" ,
@@ -105,7 +97,6 @@ lazy_static! {
10597 m. insert( "satisfy" , RelationTypeInfo {
10698 name: "satisfy" ,
10799 direction: RelationDirection :: Backward ,
108- ontological_direction: RelationDirection :: Forward ,
109100 opposite: Some ( "satisfiedBy" ) ,
110101 description: "Element satisfies another element" ,
111102 arrow: "-->" ,
@@ -116,7 +107,6 @@ lazy_static! {
116107 m. insert( "verifiedBy" , RelationTypeInfo {
117108 name: "verifiedBy" ,
118109 direction: RelationDirection :: Forward ,
119- ontological_direction: RelationDirection :: Backward ,
120110 opposite: Some ( "verify" ) ,
121111 description: "A souce element being verified by other element." ,
122112 arrow: "-.->" ,
@@ -125,7 +115,6 @@ lazy_static! {
125115 m. insert( "verify" , RelationTypeInfo {
126116 name: "verify" ,
127117 direction: RelationDirection :: Backward ,
128- ontological_direction: RelationDirection :: Forward ,
129118 opposite: Some ( "verifiedBy" ) ,
130119 description: "Element verifies another element" ,
131120 arrow: "-.->" ,
@@ -136,7 +125,6 @@ lazy_static! {
136125 m. insert( "trace" , RelationTypeInfo {
137126 name: "trace" ,
138127 direction: RelationDirection :: Neutral ,
139- ontological_direction: RelationDirection :: Neutral ,
140128 opposite: None ,
141129 description: "Element is related to another element in a non-directional way" ,
142130 arrow: "-.->" ,
@@ -352,14 +340,6 @@ pub fn get_parent_relation_types() -> Vec<&'static str> {
352340 . collect ( )
353341}
354342
355- /// Get the list of valid parent relation types (ontological hierarchical relationships).
356- pub fn get_ontological_parent_relation_types ( ) -> Vec < & ' static str > {
357- RELATION_TYPES
358- . iter ( )
359- . filter ( |( _, info) | info. ontological_direction == RelationDirection :: Backward )
360- . map ( |( name, _) | * name)
361- . collect ( )
362- }
363343
364344/// Returns whether the relation is a verification-related type
365345pub fn is_verification_relation ( rtype : & RelationTypeInfo ) -> bool {
0 commit comments