Class: Rafflesia::OntologyReleaseCoverageData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::OntologyReleaseCoverageData
- Defined in:
- lib/rafflesia/ontology/ontology_release_coverage_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ database: :database, empirical_check_count: :empirical_check_count, empirical_mode: :empirical_mode, empirical_unavailable_count: :empirical_unavailable_count, empirically_contradicted_join_count: :empirically_contradicted_join_count, empirically_verified_join_count: :empirically_verified_join_count, id: :id, missing_relation_count: :missing_relation_count, object: :object, ontology_digest: :ontology_digest, ontology_version: :ontology_version, physical_drift_relation_count: :physical_drift_relation_count, physical_unmeasured_relation_count: :physical_unmeasured_relation_count, physical_verified_relation_count: :physical_verified_relation_count, published_fraction: :published_fraction, published_relation_count: :published_relation_count, queryable_fraction: :queryable_fraction, queryable_relation_count: :queryable_relation_count, relations: :relations, relationship_evidence: :relationship_evidence, release: :release, schema_current_relation_count: :schema_current_relation_count, schema_outdated_relation_count: :schema_outdated_relation_count, scope_domains: :scope_domains, scope_relations: :scope_relations, scoped_relation_count: :scoped_relation_count, strict_join_count: :strict_join_count, unavailable_relation_count: :unavailable_relation_count, unknown_published_relation_count: :unknown_published_relation_count, unknown_published_relations: :unknown_published_relations, unreachable_object_relation_count: :unreachable_object_relation_count, url: :url }.freeze
Instance Attribute Summary collapse
-
#database ⇒ Object
Returns the value of attribute database.
-
#empirical_check_count ⇒ Object
Returns the value of attribute empirical_check_count.
-
#empirical_mode ⇒ Object
Returns the value of attribute empirical_mode.
-
#empirical_unavailable_count ⇒ Object
Returns the value of attribute empirical_unavailable_count.
-
#empirically_contradicted_join_count ⇒ Object
Returns the value of attribute empirically_contradicted_join_count.
-
#empirically_verified_join_count ⇒ Object
Returns the value of attribute empirically_verified_join_count.
-
#id ⇒ Object
Returns the value of attribute id.
-
#missing_relation_count ⇒ Object
Returns the value of attribute missing_relation_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.
-
#physical_drift_relation_count ⇒ Object
Returns the value of attribute physical_drift_relation_count.
-
#physical_unmeasured_relation_count ⇒ Object
Returns the value of attribute physical_unmeasured_relation_count.
-
#physical_verified_relation_count ⇒ Object
Returns the value of attribute physical_verified_relation_count.
-
#published_fraction ⇒ Object
Returns the value of attribute published_fraction.
-
#published_relation_count ⇒ Object
Returns the value of attribute published_relation_count.
-
#queryable_fraction ⇒ Object
Returns the value of attribute queryable_fraction.
-
#queryable_relation_count ⇒ Object
Returns the value of attribute queryable_relation_count.
-
#relations ⇒ Object
Returns the value of attribute relations.
-
#relationship_evidence ⇒ Object
Returns the value of attribute relationship_evidence.
-
#release ⇒ Object
Returns the value of attribute release.
-
#schema_current_relation_count ⇒ Object
Returns the value of attribute schema_current_relation_count.
-
#schema_outdated_relation_count ⇒ Object
Returns the value of attribute schema_outdated_relation_count.
-
#scope_domains ⇒ Object
Returns the value of attribute scope_domains.
-
#scope_relations ⇒ Object
Returns the value of attribute scope_relations.
-
#scoped_relation_count ⇒ Object
Returns the value of attribute scoped_relation_count.
-
#strict_join_count ⇒ Object
Returns the value of attribute strict_join_count.
-
#unavailable_relation_count ⇒ Object
Returns the value of attribute unavailable_relation_count.
-
#unknown_published_relation_count ⇒ Object
Returns the value of attribute unknown_published_relation_count.
-
#unknown_published_relations ⇒ Object
Returns the value of attribute unknown_published_relations.
-
#unreachable_object_relation_count ⇒ Object
Returns the value of attribute unreachable_object_relation_count.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(json) ⇒ OntologyReleaseCoverageData
constructor
A new instance of OntologyReleaseCoverageData.
Constructor Details
#initialize(json) ⇒ OntologyReleaseCoverageData
Returns a new instance of OntologyReleaseCoverageData.
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 104 105 106 107 108 109 110 111 112 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 77 def initialize(json) super() hash = self.class.normalize(json) @database = hash[:database] @empirical_check_count = hash[:empirical_check_count] @empirical_mode = hash[:empirical_mode] @empirical_unavailable_count = hash[:empirical_unavailable_count] @empirically_contradicted_join_count = hash[:empirically_contradicted_join_count] @empirically_verified_join_count = hash[:empirically_verified_join_count] @id = hash[:id] @missing_relation_count = hash[:missing_relation_count] @object = hash[:object] @ontology_digest = hash[:ontology_digest] @ontology_version = hash[:ontology_version] @physical_drift_relation_count = hash[:physical_drift_relation_count] @physical_unmeasured_relation_count = hash[:physical_unmeasured_relation_count] @physical_verified_relation_count = hash[:physical_verified_relation_count] @published_fraction = hash[:published_fraction] @published_relation_count = hash[:published_relation_count] @queryable_fraction = hash[:queryable_fraction] @queryable_relation_count = hash[:queryable_relation_count] @relations = (hash[:relations] || []).map { |item| item ? Rafflesia::OntologyReleaseCoverageRelationData.new(item) : nil } @relationship_evidence = (hash[:relationship_evidence] || []).map { |item| item ? Rafflesia::OntologyRelationshipEvidenceData.new(item) : nil } @release = hash[:release] @schema_current_relation_count = hash[:schema_current_relation_count] @schema_outdated_relation_count = hash[:schema_outdated_relation_count] @scope_domains = (hash[:scope_domains] || []) @scope_relations = (hash[:scope_relations] || []) @scoped_relation_count = hash[:scoped_relation_count] @strict_join_count = hash[:strict_join_count] @unavailable_relation_count = hash[:unavailable_relation_count] @unknown_published_relation_count = hash[:unknown_published_relation_count] @unknown_published_relations = (hash[:unknown_published_relations] || []) @unreachable_object_relation_count = hash[:unreachable_object_relation_count] @url = hash[:url] end |
Instance Attribute Details
#database ⇒ Object
Returns the value of attribute database.
43 44 45 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 43 def database @database end |
#empirical_check_count ⇒ Object
Returns the value of attribute empirical_check_count.
43 44 45 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 43 def empirical_check_count @empirical_check_count end |
#empirical_mode ⇒ Object
Returns the value of attribute empirical_mode.
43 44 45 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 43 def empirical_mode @empirical_mode end |
#empirical_unavailable_count ⇒ Object
Returns the value of attribute empirical_unavailable_count.
43 44 45 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 43 def empirical_unavailable_count @empirical_unavailable_count end |
#empirically_contradicted_join_count ⇒ Object
Returns the value of attribute empirically_contradicted_join_count.
43 44 45 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 43 def empirically_contradicted_join_count @empirically_contradicted_join_count end |
#empirically_verified_join_count ⇒ Object
Returns the value of attribute empirically_verified_join_count.
43 44 45 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 43 def empirically_verified_join_count @empirically_verified_join_count end |
#id ⇒ Object
Returns the value of attribute id.
43 44 45 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 43 def id @id end |
#missing_relation_count ⇒ Object
Returns the value of attribute missing_relation_count.
43 44 45 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 43 def missing_relation_count @missing_relation_count end |
#object ⇒ Object
Returns the value of attribute object.
43 44 45 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 43 def object @object end |
#ontology_digest ⇒ Object
Returns the value of attribute ontology_digest.
43 44 45 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 43 def ontology_digest @ontology_digest end |
#ontology_version ⇒ Object
Returns the value of attribute ontology_version.
43 44 45 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 43 def ontology_version @ontology_version end |
#physical_drift_relation_count ⇒ Object
Returns the value of attribute physical_drift_relation_count.
43 44 45 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 43 def physical_drift_relation_count @physical_drift_relation_count end |
#physical_unmeasured_relation_count ⇒ Object
Returns the value of attribute physical_unmeasured_relation_count.
43 44 45 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 43 def physical_unmeasured_relation_count @physical_unmeasured_relation_count end |
#physical_verified_relation_count ⇒ Object
Returns the value of attribute physical_verified_relation_count.
43 44 45 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 43 def physical_verified_relation_count @physical_verified_relation_count end |
#published_fraction ⇒ Object
Returns the value of attribute published_fraction.
43 44 45 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 43 def published_fraction @published_fraction end |
#published_relation_count ⇒ Object
Returns the value of attribute published_relation_count.
43 44 45 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 43 def published_relation_count @published_relation_count end |
#queryable_fraction ⇒ Object
Returns the value of attribute queryable_fraction.
43 44 45 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 43 def queryable_fraction @queryable_fraction end |
#queryable_relation_count ⇒ Object
Returns the value of attribute queryable_relation_count.
43 44 45 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 43 def queryable_relation_count @queryable_relation_count end |
#relations ⇒ Object
Returns the value of attribute relations.
43 44 45 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 43 def relations @relations end |
#relationship_evidence ⇒ Object
Returns the value of attribute relationship_evidence.
43 44 45 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 43 def relationship_evidence @relationship_evidence end |
#release ⇒ Object
Returns the value of attribute release.
43 44 45 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 43 def release @release end |
#schema_current_relation_count ⇒ Object
Returns the value of attribute schema_current_relation_count.
43 44 45 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 43 def schema_current_relation_count @schema_current_relation_count end |
#schema_outdated_relation_count ⇒ Object
Returns the value of attribute schema_outdated_relation_count.
43 44 45 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 43 def schema_outdated_relation_count @schema_outdated_relation_count end |
#scope_domains ⇒ Object
Returns the value of attribute scope_domains.
43 44 45 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 43 def scope_domains @scope_domains end |
#scope_relations ⇒ Object
Returns the value of attribute scope_relations.
43 44 45 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 43 def scope_relations @scope_relations end |
#scoped_relation_count ⇒ Object
Returns the value of attribute scoped_relation_count.
43 44 45 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 43 def scoped_relation_count @scoped_relation_count end |
#strict_join_count ⇒ Object
Returns the value of attribute strict_join_count.
43 44 45 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 43 def strict_join_count @strict_join_count end |
#unavailable_relation_count ⇒ Object
Returns the value of attribute unavailable_relation_count.
43 44 45 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 43 def unavailable_relation_count @unavailable_relation_count end |
#unknown_published_relation_count ⇒ Object
Returns the value of attribute unknown_published_relation_count.
43 44 45 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 43 def unknown_published_relation_count @unknown_published_relation_count end |
#unknown_published_relations ⇒ Object
Returns the value of attribute unknown_published_relations.
43 44 45 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 43 def unknown_published_relations @unknown_published_relations end |
#unreachable_object_relation_count ⇒ Object
Returns the value of attribute unreachable_object_relation_count.
43 44 45 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 43 def unreachable_object_relation_count @unreachable_object_relation_count end |
#url ⇒ Object
Returns the value of attribute url.
43 44 45 |
# File 'lib/rafflesia/ontology/ontology_release_coverage_data.rb', line 43 def url @url end |