Class: Rafflesia::OntologyRelationConnectivity
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::OntologyRelationConnectivity
- Defined in:
- lib/rafflesia/ontology/ontology_relation_connectivity.rb
Constant Summary collapse
- HASH_ATTRS =
{ candidate_relations: :candidate_relations, classification: :classification, component_id: :component_id, component_size: :component_size, direct_identity_safe_relation_count: :direct_identity_safe_relation_count, direct_relationship_count: :direct_relationship_count, direct_strict_relation_count: :direct_strict_relation_count, domain: :domain, exact_relationship_count: :exact_relationship_count, id: :id, identity_safe_component_id: :identity_safe_component_id, identity_safe_component_size: :identity_safe_component_size, identity_safe_new_anchor_pair_gain: :identity_safe_new_anchor_pair_gain, identity_safe_reachable_relation_count: :identity_safe_reachable_relation_count, inherited_identity_safe_relation_count: :inherited_identity_safe_relation_count, inherited_strict_relation_count: :inherited_strict_relation_count, is_isolated: :is_isolated, is_lossy_only: :is_lossy_only, lossy_relationship_count: :lossy_relationship_count, many_to_many_relationship_count: :many_to_many_relationship_count, object: :object, range_relationship_count: :range_relationship_count, reason: :reason, relation: :relation, strict_component_id: :strict_component_id, strict_component_size: :strict_component_size, strict_new_anchor_pair_gain: :strict_new_anchor_pair_gain, strict_reachable_relation_count: :strict_reachable_relation_count }.freeze
Instance Attribute Summary collapse
-
#candidate_relations ⇒ Object
Returns the value of attribute candidate_relations.
-
#classification ⇒ Object
Returns the value of attribute classification.
-
#component_id ⇒ Object
Returns the value of attribute component_id.
-
#component_size ⇒ Object
Returns the value of attribute component_size.
-
#direct_identity_safe_relation_count ⇒ Object
Returns the value of attribute direct_identity_safe_relation_count.
-
#direct_relationship_count ⇒ Object
Returns the value of attribute direct_relationship_count.
-
#direct_strict_relation_count ⇒ Object
Returns the value of attribute direct_strict_relation_count.
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#exact_relationship_count ⇒ Object
Returns the value of attribute exact_relationship_count.
-
#id ⇒ Object
Returns the value of attribute id.
-
#identity_safe_component_id ⇒ Object
Returns the value of attribute identity_safe_component_id.
-
#identity_safe_component_size ⇒ Object
Returns the value of attribute identity_safe_component_size.
-
#identity_safe_new_anchor_pair_gain ⇒ Object
Returns the value of attribute identity_safe_new_anchor_pair_gain.
-
#identity_safe_reachable_relation_count ⇒ Object
Returns the value of attribute identity_safe_reachable_relation_count.
-
#inherited_identity_safe_relation_count ⇒ Object
Returns the value of attribute inherited_identity_safe_relation_count.
-
#inherited_strict_relation_count ⇒ Object
Returns the value of attribute inherited_strict_relation_count.
-
#is_isolated ⇒ Object
Returns the value of attribute is_isolated.
-
#is_lossy_only ⇒ Object
Returns the value of attribute is_lossy_only.
-
#lossy_relationship_count ⇒ Object
Returns the value of attribute lossy_relationship_count.
-
#many_to_many_relationship_count ⇒ Object
Returns the value of attribute many_to_many_relationship_count.
-
#object ⇒ Object
Returns the value of attribute object.
-
#range_relationship_count ⇒ Object
Returns the value of attribute range_relationship_count.
-
#reason ⇒ Object
Returns the value of attribute reason.
-
#relation ⇒ Object
Returns the value of attribute relation.
-
#strict_component_id ⇒ Object
Returns the value of attribute strict_component_id.
-
#strict_component_size ⇒ Object
Returns the value of attribute strict_component_size.
-
#strict_new_anchor_pair_gain ⇒ Object
Returns the value of attribute strict_new_anchor_pair_gain.
-
#strict_reachable_relation_count ⇒ Object
Returns the value of attribute strict_reachable_relation_count.
Instance Method Summary collapse
-
#initialize(json) ⇒ OntologyRelationConnectivity
constructor
A new instance of OntologyRelationConnectivity.
Constructor Details
#initialize(json) ⇒ OntologyRelationConnectivity
Returns a new instance of OntologyRelationConnectivity.
69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/rafflesia/ontology/ontology_relation_connectivity.rb', line 69 def initialize(json) super() hash = self.class.normalize(json) @candidate_relations = (hash[:candidate_relations] || []) @classification = hash[:classification] @component_id = hash[:component_id] @component_size = hash[:component_size] @direct_identity_safe_relation_count = hash[:direct_identity_safe_relation_count] @direct_relationship_count = hash[:direct_relationship_count] @direct_strict_relation_count = hash[:direct_strict_relation_count] @domain = hash[:domain] @exact_relationship_count = hash[:exact_relationship_count] @id = hash[:id] @identity_safe_component_id = hash[:identity_safe_component_id] @identity_safe_component_size = hash[:identity_safe_component_size] @identity_safe_new_anchor_pair_gain = hash[:identity_safe_new_anchor_pair_gain] @identity_safe_reachable_relation_count = hash[:identity_safe_reachable_relation_count] @inherited_identity_safe_relation_count = hash[:inherited_identity_safe_relation_count] @inherited_strict_relation_count = hash[:inherited_strict_relation_count] @is_isolated = hash[:is_isolated] @is_lossy_only = hash[:is_lossy_only] @lossy_relationship_count = hash[:lossy_relationship_count] @many_to_many_relationship_count = hash[:many_to_many_relationship_count] @object = hash[:object] @range_relationship_count = hash[:range_relationship_count] @reason = hash[:reason] @relation = hash[:relation] @strict_component_id = hash[:strict_component_id] @strict_component_size = hash[:strict_component_size] @strict_new_anchor_pair_gain = hash[:strict_new_anchor_pair_gain] @strict_reachable_relation_count = hash[:strict_reachable_relation_count] end |
Instance Attribute Details
#candidate_relations ⇒ Object
Returns the value of attribute candidate_relations.
39 40 41 |
# File 'lib/rafflesia/ontology/ontology_relation_connectivity.rb', line 39 def candidate_relations @candidate_relations end |
#classification ⇒ Object
Returns the value of attribute classification.
39 40 41 |
# File 'lib/rafflesia/ontology/ontology_relation_connectivity.rb', line 39 def classification @classification end |
#component_id ⇒ Object
Returns the value of attribute component_id.
39 40 41 |
# File 'lib/rafflesia/ontology/ontology_relation_connectivity.rb', line 39 def component_id @component_id end |
#component_size ⇒ Object
Returns the value of attribute component_size.
39 40 41 |
# File 'lib/rafflesia/ontology/ontology_relation_connectivity.rb', line 39 def component_size @component_size end |
#direct_identity_safe_relation_count ⇒ Object
Returns the value of attribute direct_identity_safe_relation_count.
39 40 41 |
# File 'lib/rafflesia/ontology/ontology_relation_connectivity.rb', line 39 def direct_identity_safe_relation_count @direct_identity_safe_relation_count end |
#direct_relationship_count ⇒ Object
Returns the value of attribute direct_relationship_count.
39 40 41 |
# File 'lib/rafflesia/ontology/ontology_relation_connectivity.rb', line 39 def direct_relationship_count @direct_relationship_count end |
#direct_strict_relation_count ⇒ Object
Returns the value of attribute direct_strict_relation_count.
39 40 41 |
# File 'lib/rafflesia/ontology/ontology_relation_connectivity.rb', line 39 def direct_strict_relation_count @direct_strict_relation_count end |
#domain ⇒ Object
Returns the value of attribute domain.
39 40 41 |
# File 'lib/rafflesia/ontology/ontology_relation_connectivity.rb', line 39 def domain @domain end |
#exact_relationship_count ⇒ Object
Returns the value of attribute exact_relationship_count.
39 40 41 |
# File 'lib/rafflesia/ontology/ontology_relation_connectivity.rb', line 39 def exact_relationship_count @exact_relationship_count end |
#id ⇒ Object
Returns the value of attribute id.
39 40 41 |
# File 'lib/rafflesia/ontology/ontology_relation_connectivity.rb', line 39 def id @id end |
#identity_safe_component_id ⇒ Object
Returns the value of attribute identity_safe_component_id.
39 40 41 |
# File 'lib/rafflesia/ontology/ontology_relation_connectivity.rb', line 39 def identity_safe_component_id @identity_safe_component_id end |
#identity_safe_component_size ⇒ Object
Returns the value of attribute identity_safe_component_size.
39 40 41 |
# File 'lib/rafflesia/ontology/ontology_relation_connectivity.rb', line 39 def identity_safe_component_size @identity_safe_component_size end |
#identity_safe_new_anchor_pair_gain ⇒ Object
Returns the value of attribute identity_safe_new_anchor_pair_gain.
39 40 41 |
# File 'lib/rafflesia/ontology/ontology_relation_connectivity.rb', line 39 def identity_safe_new_anchor_pair_gain @identity_safe_new_anchor_pair_gain end |
#identity_safe_reachable_relation_count ⇒ Object
Returns the value of attribute identity_safe_reachable_relation_count.
39 40 41 |
# File 'lib/rafflesia/ontology/ontology_relation_connectivity.rb', line 39 def identity_safe_reachable_relation_count @identity_safe_reachable_relation_count end |
#inherited_identity_safe_relation_count ⇒ Object
Returns the value of attribute inherited_identity_safe_relation_count.
39 40 41 |
# File 'lib/rafflesia/ontology/ontology_relation_connectivity.rb', line 39 def inherited_identity_safe_relation_count @inherited_identity_safe_relation_count end |
#inherited_strict_relation_count ⇒ Object
Returns the value of attribute inherited_strict_relation_count.
39 40 41 |
# File 'lib/rafflesia/ontology/ontology_relation_connectivity.rb', line 39 def inherited_strict_relation_count @inherited_strict_relation_count end |
#is_isolated ⇒ Object
Returns the value of attribute is_isolated.
39 40 41 |
# File 'lib/rafflesia/ontology/ontology_relation_connectivity.rb', line 39 def is_isolated @is_isolated end |
#is_lossy_only ⇒ Object
Returns the value of attribute is_lossy_only.
39 40 41 |
# File 'lib/rafflesia/ontology/ontology_relation_connectivity.rb', line 39 def is_lossy_only @is_lossy_only end |
#lossy_relationship_count ⇒ Object
Returns the value of attribute lossy_relationship_count.
39 40 41 |
# File 'lib/rafflesia/ontology/ontology_relation_connectivity.rb', line 39 def lossy_relationship_count @lossy_relationship_count end |
#many_to_many_relationship_count ⇒ Object
Returns the value of attribute many_to_many_relationship_count.
39 40 41 |
# File 'lib/rafflesia/ontology/ontology_relation_connectivity.rb', line 39 def many_to_many_relationship_count @many_to_many_relationship_count end |
#object ⇒ Object
Returns the value of attribute object.
39 40 41 |
# File 'lib/rafflesia/ontology/ontology_relation_connectivity.rb', line 39 def object @object end |
#range_relationship_count ⇒ Object
Returns the value of attribute range_relationship_count.
39 40 41 |
# File 'lib/rafflesia/ontology/ontology_relation_connectivity.rb', line 39 def range_relationship_count @range_relationship_count end |
#reason ⇒ Object
Returns the value of attribute reason.
39 40 41 |
# File 'lib/rafflesia/ontology/ontology_relation_connectivity.rb', line 39 def reason @reason end |
#relation ⇒ Object
Returns the value of attribute relation.
39 40 41 |
# File 'lib/rafflesia/ontology/ontology_relation_connectivity.rb', line 39 def relation @relation end |
#strict_component_id ⇒ Object
Returns the value of attribute strict_component_id.
39 40 41 |
# File 'lib/rafflesia/ontology/ontology_relation_connectivity.rb', line 39 def strict_component_id @strict_component_id end |
#strict_component_size ⇒ Object
Returns the value of attribute strict_component_size.
39 40 41 |
# File 'lib/rafflesia/ontology/ontology_relation_connectivity.rb', line 39 def strict_component_size @strict_component_size end |
#strict_new_anchor_pair_gain ⇒ Object
Returns the value of attribute strict_new_anchor_pair_gain.
39 40 41 |
# File 'lib/rafflesia/ontology/ontology_relation_connectivity.rb', line 39 def strict_new_anchor_pair_gain @strict_new_anchor_pair_gain end |
#strict_reachable_relation_count ⇒ Object
Returns the value of attribute strict_reachable_relation_count.
39 40 41 |
# File 'lib/rafflesia/ontology/ontology_relation_connectivity.rb', line 39 def strict_reachable_relation_count @strict_reachable_relation_count end |