Class: Rafflesia::OntologyValidationData
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::OntologyValidationData
- Defined in:
- lib/rafflesia/ontology/ontology_validation_data.rb
Constant Summary collapse
- HASH_ATTRS =
{ column_count: :column_count, connectivity_classification_count: :connectivity_classification_count, error_count: :error_count, id: :id, is_digest_internally_consistent: :is_digest_internally_consistent, is_snapshot_digest_verified: :is_snapshot_digest_verified, is_valid: :is_valid, object: :object, ontology_digest: :ontology_digest, ontology_version: :ontology_version, placeholder_description_count: :placeholder_description_count, relation_count: :relation_count, relationship_count: :relationship_count, relationship_variant_count: :relationship_variant_count, snapshot_digest: :snapshot_digest, source_digest: :source_digest, violation_count: :violation_count, violations: :violations, vocabulary_value_count: :vocabulary_value_count, warning_count: :warning_count }.freeze
Instance Attribute Summary collapse
-
#column_count ⇒ Object
Returns the value of attribute column_count.
-
#connectivity_classification_count ⇒ Object
Returns the value of attribute connectivity_classification_count.
-
#error_count ⇒ Object
Returns the value of attribute error_count.
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_digest_internally_consistent ⇒ Object
Returns the value of attribute is_digest_internally_consistent.
-
#is_snapshot_digest_verified ⇒ Object
Returns the value of attribute is_snapshot_digest_verified.
-
#is_valid ⇒ Object
Returns the value of attribute is_valid.
-
#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.
-
#placeholder_description_count ⇒ Object
Returns the value of attribute placeholder_description_count.
-
#relation_count ⇒ Object
Returns the value of attribute relation_count.
-
#relationship_count ⇒ Object
Returns the value of attribute relationship_count.
-
#relationship_variant_count ⇒ Object
Returns the value of attribute relationship_variant_count.
-
#snapshot_digest ⇒ Object
Returns the value of attribute snapshot_digest.
-
#source_digest ⇒ Object
Returns the value of attribute source_digest.
-
#violation_count ⇒ Object
Returns the value of attribute violation_count.
-
#violations ⇒ Object
Returns the value of attribute violations.
-
#vocabulary_value_count ⇒ Object
Returns the value of attribute vocabulary_value_count.
-
#warning_count ⇒ Object
Returns the value of attribute warning_count.
Instance Method Summary collapse
-
#initialize(json) ⇒ OntologyValidationData
constructor
A new instance of OntologyValidationData.
Constructor Details
#initialize(json) ⇒ OntologyValidationData
Returns a new instance of OntologyValidationData.
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
# File 'lib/rafflesia/ontology/ontology_validation_data.rb', line 53 def initialize(json) super() hash = self.class.normalize(json) @column_count = hash[:column_count] @connectivity_classification_count = hash[:connectivity_classification_count] @error_count = hash[:error_count] @id = hash[:id] @is_digest_internally_consistent = hash[:is_digest_internally_consistent] @is_snapshot_digest_verified = hash[:is_snapshot_digest_verified] @is_valid = hash[:is_valid] @object = hash[:object] @ontology_digest = hash[:ontology_digest] @ontology_version = hash[:ontology_version] @placeholder_description_count = hash[:placeholder_description_count] @relation_count = hash[:relation_count] @relationship_count = hash[:relationship_count] @relationship_variant_count = hash[:relationship_variant_count] @snapshot_digest = hash[:snapshot_digest] @source_digest = hash[:source_digest] @violation_count = hash[:violation_count] @violations = (hash[:violations] || []).map { |item| item ? Rafflesia::OntologyValidationViolation.new(item) : nil } @vocabulary_value_count = hash[:vocabulary_value_count] @warning_count = hash[:warning_count] end |
Instance Attribute Details
#column_count ⇒ Object
Returns the value of attribute column_count.
31 32 33 |
# File 'lib/rafflesia/ontology/ontology_validation_data.rb', line 31 def column_count @column_count end |
#connectivity_classification_count ⇒ Object
Returns the value of attribute connectivity_classification_count.
31 32 33 |
# File 'lib/rafflesia/ontology/ontology_validation_data.rb', line 31 def connectivity_classification_count @connectivity_classification_count end |
#error_count ⇒ Object
Returns the value of attribute error_count.
31 32 33 |
# File 'lib/rafflesia/ontology/ontology_validation_data.rb', line 31 def error_count @error_count end |
#id ⇒ Object
Returns the value of attribute id.
31 32 33 |
# File 'lib/rafflesia/ontology/ontology_validation_data.rb', line 31 def id @id end |
#is_digest_internally_consistent ⇒ Object
Returns the value of attribute is_digest_internally_consistent.
31 32 33 |
# File 'lib/rafflesia/ontology/ontology_validation_data.rb', line 31 def is_digest_internally_consistent @is_digest_internally_consistent end |
#is_snapshot_digest_verified ⇒ Object
Returns the value of attribute is_snapshot_digest_verified.
31 32 33 |
# File 'lib/rafflesia/ontology/ontology_validation_data.rb', line 31 def is_snapshot_digest_verified @is_snapshot_digest_verified end |
#is_valid ⇒ Object
Returns the value of attribute is_valid.
31 32 33 |
# File 'lib/rafflesia/ontology/ontology_validation_data.rb', line 31 def is_valid @is_valid end |
#object ⇒ Object
Returns the value of attribute object.
31 32 33 |
# File 'lib/rafflesia/ontology/ontology_validation_data.rb', line 31 def object @object end |
#ontology_digest ⇒ Object
Returns the value of attribute ontology_digest.
31 32 33 |
# File 'lib/rafflesia/ontology/ontology_validation_data.rb', line 31 def ontology_digest @ontology_digest end |
#ontology_version ⇒ Object
Returns the value of attribute ontology_version.
31 32 33 |
# File 'lib/rafflesia/ontology/ontology_validation_data.rb', line 31 def ontology_version @ontology_version end |
#placeholder_description_count ⇒ Object
Returns the value of attribute placeholder_description_count.
31 32 33 |
# File 'lib/rafflesia/ontology/ontology_validation_data.rb', line 31 def placeholder_description_count @placeholder_description_count end |
#relation_count ⇒ Object
Returns the value of attribute relation_count.
31 32 33 |
# File 'lib/rafflesia/ontology/ontology_validation_data.rb', line 31 def relation_count @relation_count end |
#relationship_count ⇒ Object
Returns the value of attribute relationship_count.
31 32 33 |
# File 'lib/rafflesia/ontology/ontology_validation_data.rb', line 31 def relationship_count @relationship_count end |
#relationship_variant_count ⇒ Object
Returns the value of attribute relationship_variant_count.
31 32 33 |
# File 'lib/rafflesia/ontology/ontology_validation_data.rb', line 31 def relationship_variant_count @relationship_variant_count end |
#snapshot_digest ⇒ Object
Returns the value of attribute snapshot_digest.
31 32 33 |
# File 'lib/rafflesia/ontology/ontology_validation_data.rb', line 31 def snapshot_digest @snapshot_digest end |
#source_digest ⇒ Object
Returns the value of attribute source_digest.
31 32 33 |
# File 'lib/rafflesia/ontology/ontology_validation_data.rb', line 31 def source_digest @source_digest end |
#violation_count ⇒ Object
Returns the value of attribute violation_count.
31 32 33 |
# File 'lib/rafflesia/ontology/ontology_validation_data.rb', line 31 def violation_count @violation_count end |
#violations ⇒ Object
Returns the value of attribute violations.
31 32 33 |
# File 'lib/rafflesia/ontology/ontology_validation_data.rb', line 31 def violations @violations end |
#vocabulary_value_count ⇒ Object
Returns the value of attribute vocabulary_value_count.
31 32 33 |
# File 'lib/rafflesia/ontology/ontology_validation_data.rb', line 31 def vocabulary_value_count @vocabulary_value_count end |
#warning_count ⇒ Object
Returns the value of attribute warning_count.
31 32 33 |
# File 'lib/rafflesia/ontology/ontology_validation_data.rb', line 31 def warning_count @warning_count end |