Class: Rafflesia::OntologyOnboardingCompileData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::OntologyOnboardingCompileData
- Defined in:
- lib/rafflesia/ontology/ontology_onboarding_compile_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ added_relation_count: :added_relation_count, anchors: :anchors, base_catalog_digest: :base_catalog_digest, compiled_catalog_digest: :compiled_catalog_digest, dataset_name: :dataset_name, dataset_version: :dataset_version, existing_catalog_anchor_count: :existing_catalog_anchor_count, generated_reciprocal_count: :generated_reciprocal_count, id: :id, identity_safe_direct_pair_gain: :identity_safe_direct_pair_gain, identity_safe_reachable_pair_gain: :identity_safe_reachable_pair_gain, identity_safe_transitive_pair_gain: :identity_safe_transitive_pair_gain, is_valid: :is_valid, isolation_count: :isolation_count, isolations: :isolations, materialized_pair_write_count: :materialized_pair_write_count, new_relation_anchor_count: :new_relation_anchor_count, object: :object, ontology_digest: :ontology_digest, ontology_version: :ontology_version, patch_digest: :patch_digest, relations: :relations, reviewed_anchor_count: :reviewed_anchor_count, schema_version: :schema_version, semantic_closure_violation_count: :semantic_closure_violation_count, strict_direct_pair_gain: :strict_direct_pair_gain, strict_reachable_pair_gain: :strict_reachable_pair_gain, strict_transitive_pair_gain: :strict_transitive_pair_gain, transitively_anchored_relation_count: :transitively_anchored_relation_count }.freeze
Instance Attribute Summary collapse
-
#added_relation_count ⇒ Object
Returns the value of attribute added_relation_count.
-
#anchors ⇒ Object
Returns the value of attribute anchors.
-
#base_catalog_digest ⇒ Object
Returns the value of attribute base_catalog_digest.
-
#compiled_catalog_digest ⇒ Object
Returns the value of attribute compiled_catalog_digest.
-
#dataset_name ⇒ Object
Returns the value of attribute dataset_name.
-
#dataset_version ⇒ Object
Returns the value of attribute dataset_version.
-
#existing_catalog_anchor_count ⇒ Object
Returns the value of attribute existing_catalog_anchor_count.
-
#generated_reciprocal_count ⇒ Object
Returns the value of attribute generated_reciprocal_count.
-
#id ⇒ Object
Returns the value of attribute id.
-
#identity_safe_direct_pair_gain ⇒ Object
Returns the value of attribute identity_safe_direct_pair_gain.
-
#identity_safe_reachable_pair_gain ⇒ Object
Returns the value of attribute identity_safe_reachable_pair_gain.
-
#identity_safe_transitive_pair_gain ⇒ Object
Returns the value of attribute identity_safe_transitive_pair_gain.
-
#is_valid ⇒ Object
Returns the value of attribute is_valid.
-
#isolation_count ⇒ Object
Returns the value of attribute isolation_count.
-
#isolations ⇒ Object
Returns the value of attribute isolations.
-
#materialized_pair_write_count ⇒ Object
Returns the value of attribute materialized_pair_write_count.
-
#new_relation_anchor_count ⇒ Object
Returns the value of attribute new_relation_anchor_count.
-
#object ⇒ Object
Returns the value of attribute object.
-
#ontology_digest ⇒ Object
Returns the value of attribute ontology_digest.
-
#ontology_version ⇒ Object
Returns the value of attribute ontology_version.
-
#patch_digest ⇒ Object
Returns the value of attribute patch_digest.
-
#relations ⇒ Object
Returns the value of attribute relations.
-
#reviewed_anchor_count ⇒ Object
Returns the value of attribute reviewed_anchor_count.
-
#schema_version ⇒ Object
Returns the value of attribute schema_version.
-
#semantic_closure_violation_count ⇒ Object
Returns the value of attribute semantic_closure_violation_count.
-
#strict_direct_pair_gain ⇒ Object
Returns the value of attribute strict_direct_pair_gain.
-
#strict_reachable_pair_gain ⇒ Object
Returns the value of attribute strict_reachable_pair_gain.
-
#strict_transitive_pair_gain ⇒ Object
Returns the value of attribute strict_transitive_pair_gain.
-
#transitively_anchored_relation_count ⇒ Object
Returns the value of attribute transitively_anchored_relation_count.
Instance Method Summary collapse
-
#initialize(json) ⇒ OntologyOnboardingCompileData
constructor
A new instance of OntologyOnboardingCompileData.
Constructor Details
#initialize(json) ⇒ OntologyOnboardingCompileData
Returns a new instance of OntologyOnboardingCompileData.
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 101 102 103 |
# File 'lib/rafflesia/ontology/ontology_onboarding_compile_data.rb', line 71 def initialize(json) super() hash = self.class.normalize(json) @added_relation_count = hash[:added_relation_count] @anchors = (hash[:anchors] || []).map { |item| item ? Rafflesia::OntologyOnboardingAnchorData.new(item) : nil } @base_catalog_digest = hash[:base_catalog_digest] @compiled_catalog_digest = hash[:compiled_catalog_digest] @dataset_name = hash[:dataset_name] @dataset_version = hash[:dataset_version] @existing_catalog_anchor_count = hash[:existing_catalog_anchor_count] @generated_reciprocal_count = hash[:generated_reciprocal_count] @id = hash[:id] @identity_safe_direct_pair_gain = hash[:identity_safe_direct_pair_gain] @identity_safe_reachable_pair_gain = hash[:identity_safe_reachable_pair_gain] @identity_safe_transitive_pair_gain = hash[:identity_safe_transitive_pair_gain] @is_valid = hash[:is_valid] @isolation_count = hash[:isolation_count] @isolations = (hash[:isolations] || []).map { |item| item ? Rafflesia::OntologyConnectivityClassificationData.new(item) : nil } @materialized_pair_write_count = hash[:materialized_pair_write_count] @new_relation_anchor_count = hash[:new_relation_anchor_count] @object = hash[:object] @ontology_digest = hash[:ontology_digest] @ontology_version = hash[:ontology_version] @patch_digest = hash[:patch_digest] @relations = (hash[:relations] || []).map { |item| item ? Rafflesia::OntologyOnboardingRelationRequest.new(item) : nil } @reviewed_anchor_count = hash[:reviewed_anchor_count] @schema_version = hash[:schema_version] @semantic_closure_violation_count = hash[:semantic_closure_violation_count] @strict_direct_pair_gain = hash[:strict_direct_pair_gain] @strict_reachable_pair_gain = hash[:strict_reachable_pair_gain] @strict_transitive_pair_gain = hash[:strict_transitive_pair_gain] @transitively_anchored_relation_count = hash[:transitively_anchored_relation_count] end |
Instance Attribute Details
#added_relation_count ⇒ Object
Returns the value of attribute added_relation_count.
40 41 42 |
# File 'lib/rafflesia/ontology/ontology_onboarding_compile_data.rb', line 40 def added_relation_count @added_relation_count end |
#anchors ⇒ Object
Returns the value of attribute anchors.
40 41 42 |
# File 'lib/rafflesia/ontology/ontology_onboarding_compile_data.rb', line 40 def anchors @anchors end |
#base_catalog_digest ⇒ Object
Returns the value of attribute base_catalog_digest.
40 41 42 |
# File 'lib/rafflesia/ontology/ontology_onboarding_compile_data.rb', line 40 def base_catalog_digest @base_catalog_digest end |
#compiled_catalog_digest ⇒ Object
Returns the value of attribute compiled_catalog_digest.
40 41 42 |
# File 'lib/rafflesia/ontology/ontology_onboarding_compile_data.rb', line 40 def compiled_catalog_digest @compiled_catalog_digest end |
#dataset_name ⇒ Object
Returns the value of attribute dataset_name.
40 41 42 |
# File 'lib/rafflesia/ontology/ontology_onboarding_compile_data.rb', line 40 def dataset_name @dataset_name end |
#dataset_version ⇒ Object
Returns the value of attribute dataset_version.
40 41 42 |
# File 'lib/rafflesia/ontology/ontology_onboarding_compile_data.rb', line 40 def dataset_version @dataset_version end |
#existing_catalog_anchor_count ⇒ Object
Returns the value of attribute existing_catalog_anchor_count.
40 41 42 |
# File 'lib/rafflesia/ontology/ontology_onboarding_compile_data.rb', line 40 def existing_catalog_anchor_count @existing_catalog_anchor_count end |
#generated_reciprocal_count ⇒ Object
Returns the value of attribute generated_reciprocal_count.
40 41 42 |
# File 'lib/rafflesia/ontology/ontology_onboarding_compile_data.rb', line 40 def generated_reciprocal_count @generated_reciprocal_count end |
#id ⇒ Object
Returns the value of attribute id.
40 41 42 |
# File 'lib/rafflesia/ontology/ontology_onboarding_compile_data.rb', line 40 def id @id end |
#identity_safe_direct_pair_gain ⇒ Object
Returns the value of attribute identity_safe_direct_pair_gain.
40 41 42 |
# File 'lib/rafflesia/ontology/ontology_onboarding_compile_data.rb', line 40 def identity_safe_direct_pair_gain @identity_safe_direct_pair_gain end |
#identity_safe_reachable_pair_gain ⇒ Object
Returns the value of attribute identity_safe_reachable_pair_gain.
40 41 42 |
# File 'lib/rafflesia/ontology/ontology_onboarding_compile_data.rb', line 40 def identity_safe_reachable_pair_gain @identity_safe_reachable_pair_gain end |
#identity_safe_transitive_pair_gain ⇒ Object
Returns the value of attribute identity_safe_transitive_pair_gain.
40 41 42 |
# File 'lib/rafflesia/ontology/ontology_onboarding_compile_data.rb', line 40 def identity_safe_transitive_pair_gain @identity_safe_transitive_pair_gain end |
#is_valid ⇒ Object
Returns the value of attribute is_valid.
40 41 42 |
# File 'lib/rafflesia/ontology/ontology_onboarding_compile_data.rb', line 40 def is_valid @is_valid end |
#isolation_count ⇒ Object
Returns the value of attribute isolation_count.
40 41 42 |
# File 'lib/rafflesia/ontology/ontology_onboarding_compile_data.rb', line 40 def isolation_count @isolation_count end |
#isolations ⇒ Object
Returns the value of attribute isolations.
40 41 42 |
# File 'lib/rafflesia/ontology/ontology_onboarding_compile_data.rb', line 40 def isolations @isolations end |
#materialized_pair_write_count ⇒ Object
Returns the value of attribute materialized_pair_write_count.
40 41 42 |
# File 'lib/rafflesia/ontology/ontology_onboarding_compile_data.rb', line 40 def materialized_pair_write_count @materialized_pair_write_count end |
#new_relation_anchor_count ⇒ Object
Returns the value of attribute new_relation_anchor_count.
40 41 42 |
# File 'lib/rafflesia/ontology/ontology_onboarding_compile_data.rb', line 40 def new_relation_anchor_count @new_relation_anchor_count end |
#object ⇒ Object
Returns the value of attribute object.
40 41 42 |
# File 'lib/rafflesia/ontology/ontology_onboarding_compile_data.rb', line 40 def object @object end |
#ontology_digest ⇒ Object
Returns the value of attribute ontology_digest.
40 41 42 |
# File 'lib/rafflesia/ontology/ontology_onboarding_compile_data.rb', line 40 def ontology_digest @ontology_digest end |
#ontology_version ⇒ Object
Returns the value of attribute ontology_version.
40 41 42 |
# File 'lib/rafflesia/ontology/ontology_onboarding_compile_data.rb', line 40 def ontology_version @ontology_version end |
#patch_digest ⇒ Object
Returns the value of attribute patch_digest.
40 41 42 |
# File 'lib/rafflesia/ontology/ontology_onboarding_compile_data.rb', line 40 def patch_digest @patch_digest end |
#relations ⇒ Object
Returns the value of attribute relations.
40 41 42 |
# File 'lib/rafflesia/ontology/ontology_onboarding_compile_data.rb', line 40 def relations @relations end |
#reviewed_anchor_count ⇒ Object
Returns the value of attribute reviewed_anchor_count.
40 41 42 |
# File 'lib/rafflesia/ontology/ontology_onboarding_compile_data.rb', line 40 def reviewed_anchor_count @reviewed_anchor_count end |
#schema_version ⇒ Object
Returns the value of attribute schema_version.
40 41 42 |
# File 'lib/rafflesia/ontology/ontology_onboarding_compile_data.rb', line 40 def schema_version @schema_version end |
#semantic_closure_violation_count ⇒ Object
Returns the value of attribute semantic_closure_violation_count.
40 41 42 |
# File 'lib/rafflesia/ontology/ontology_onboarding_compile_data.rb', line 40 def semantic_closure_violation_count @semantic_closure_violation_count end |
#strict_direct_pair_gain ⇒ Object
Returns the value of attribute strict_direct_pair_gain.
40 41 42 |
# File 'lib/rafflesia/ontology/ontology_onboarding_compile_data.rb', line 40 def strict_direct_pair_gain @strict_direct_pair_gain end |
#strict_reachable_pair_gain ⇒ Object
Returns the value of attribute strict_reachable_pair_gain.
40 41 42 |
# File 'lib/rafflesia/ontology/ontology_onboarding_compile_data.rb', line 40 def strict_reachable_pair_gain @strict_reachable_pair_gain end |
#strict_transitive_pair_gain ⇒ Object
Returns the value of attribute strict_transitive_pair_gain.
40 41 42 |
# File 'lib/rafflesia/ontology/ontology_onboarding_compile_data.rb', line 40 def strict_transitive_pair_gain @strict_transitive_pair_gain end |
#transitively_anchored_relation_count ⇒ Object
Returns the value of attribute transitively_anchored_relation_count.
40 41 42 |
# File 'lib/rafflesia/ontology/ontology_onboarding_compile_data.rb', line 40 def transitively_anchored_relation_count @transitively_anchored_relation_count end |