Class: Rafflesia::OntologyJoinReviewImpactData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::OntologyJoinReviewImpactData
- Defined in:
- lib/rafflesia/database_join_candidate_reviews/ontology_join_review_impact_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ affected_relations: :affected_relations, example_inherited_paths: :example_inherited_paths, identity_safe_delta: :identity_safe_delta, safety_classes: :safety_classes, semantic_closure_violation_count: :semantic_closure_violation_count, semantic_closure_violations: :semantic_closure_violations, strict_delta: :strict_delta }.freeze
Instance Attribute Summary collapse
-
#affected_relations ⇒ Object
Returns the value of attribute affected_relations.
-
#example_inherited_paths ⇒ Object
Returns the value of attribute example_inherited_paths.
-
#identity_safe_delta ⇒ Object
Returns the value of attribute identity_safe_delta.
-
#safety_classes ⇒ Object
Returns the value of attribute safety_classes.
-
#semantic_closure_violation_count ⇒ Object
Returns the value of attribute semantic_closure_violation_count.
-
#semantic_closure_violations ⇒ Object
Returns the value of attribute semantic_closure_violations.
-
#strict_delta ⇒ Object
Returns the value of attribute strict_delta.
Instance Method Summary collapse
-
#initialize(json) ⇒ OntologyJoinReviewImpactData
constructor
A new instance of OntologyJoinReviewImpactData.
Constructor Details
#initialize(json) ⇒ OntologyJoinReviewImpactData
Returns a new instance of OntologyJoinReviewImpactData.
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_join_review_impact_data.rb', line 27 def initialize(json) super() hash = self.class.normalize(json) @affected_relations = (hash[:affected_relations] || []) @example_inherited_paths = (hash[:example_inherited_paths] || []).map { |item| (item || []) } @identity_safe_delta = hash[:identity_safe_delta] ? Rafflesia::OntologyIncrementalClosureDeltaData.new(hash[:identity_safe_delta]) : nil @safety_classes = (hash[:safety_classes] || []) @semantic_closure_violation_count = hash[:semantic_closure_violation_count] @semantic_closure_violations = (hash[:semantic_closure_violations] || []).map { |item| item ? Rafflesia::OntologySemanticClosureViolation.new(item) : nil } @strict_delta = hash[:strict_delta] ? Rafflesia::OntologyIncrementalClosureDeltaData.new(hash[:strict_delta]) : nil end |
Instance Attribute Details
#affected_relations ⇒ Object
Returns the value of attribute affected_relations.
18 19 20 |
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_join_review_impact_data.rb', line 18 def affected_relations @affected_relations end |
#example_inherited_paths ⇒ Object
Returns the value of attribute example_inherited_paths.
18 19 20 |
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_join_review_impact_data.rb', line 18 def example_inherited_paths @example_inherited_paths end |
#identity_safe_delta ⇒ Object
Returns the value of attribute identity_safe_delta.
18 19 20 |
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_join_review_impact_data.rb', line 18 def identity_safe_delta @identity_safe_delta end |
#safety_classes ⇒ Object
Returns the value of attribute safety_classes.
18 19 20 |
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_join_review_impact_data.rb', line 18 def safety_classes @safety_classes end |
#semantic_closure_violation_count ⇒ Object
Returns the value of attribute semantic_closure_violation_count.
18 19 20 |
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_join_review_impact_data.rb', line 18 def semantic_closure_violation_count @semantic_closure_violation_count end |
#semantic_closure_violations ⇒ Object
Returns the value of attribute semantic_closure_violations.
18 19 20 |
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_join_review_impact_data.rb', line 18 def semantic_closure_violations @semantic_closure_violations end |
#strict_delta ⇒ Object
Returns the value of attribute strict_delta.
18 19 20 |
# File 'lib/rafflesia/database_join_candidate_reviews/ontology_join_review_impact_data.rb', line 18 def strict_delta @strict_delta end |