Class: Rafflesia::OntologyContextRelation
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::OntologyContextRelation
- Defined in:
- lib/rafflesia/ontology/ontology_context_relation.rb
Constant Summary collapse
- HASH_ATTRS =
{ aliases: :aliases, column_count: :column_count, columns: :columns, default_order: :default_order, description: :description, domain: :domain, entity_type: :entity_type, evidence_relationship_contracts: :evidence_relationship_contracts, grain: :grain, id: :id, is_columns_truncated: :is_columns_truncated, is_required_columns_truncated: :is_required_columns_truncated, matched_fields: :matched_fields, matched_term_count: :matched_term_count, matched_terms: :matched_terms, name: :name, object: :object, omitted_required_columns: :omitted_required_columns, primary_key: :primary_key, quality_notes: :quality_notes, recommended_filters: :recommended_filters, required_column_count: :required_column_count }.freeze
Instance Attribute Summary collapse
-
#aliases ⇒ Object
Returns the value of attribute aliases.
-
#column_count ⇒ Object
Returns the value of attribute column_count.
-
#columns ⇒ Object
Returns the value of attribute columns.
-
#default_order ⇒ Object
Returns the value of attribute default_order.
-
#description ⇒ Object
Returns the value of attribute description.
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#entity_type ⇒ Object
Returns the value of attribute entity_type.
-
#evidence_relationship_contracts ⇒ Object
Returns the value of attribute evidence_relationship_contracts.
-
#grain ⇒ Object
Returns the value of attribute grain.
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_columns_truncated ⇒ Object
Returns the value of attribute is_columns_truncated.
-
#is_required_columns_truncated ⇒ Object
Returns the value of attribute is_required_columns_truncated.
-
#matched_fields ⇒ Object
Returns the value of attribute matched_fields.
-
#matched_term_count ⇒ Object
Returns the value of attribute matched_term_count.
-
#matched_terms ⇒ Object
Returns the value of attribute matched_terms.
-
#name ⇒ Object
Returns the value of attribute name.
-
#object ⇒ Object
Returns the value of attribute object.
-
#omitted_required_columns ⇒ Object
Returns the value of attribute omitted_required_columns.
-
#primary_key ⇒ Object
Returns the value of attribute primary_key.
-
#quality_notes ⇒ Object
Returns the value of attribute quality_notes.
-
#recommended_filters ⇒ Object
Returns the value of attribute recommended_filters.
-
#required_column_count ⇒ Object
Returns the value of attribute required_column_count.
Instance Method Summary collapse
-
#initialize(json) ⇒ OntologyContextRelation
constructor
A new instance of OntologyContextRelation.
Constructor Details
#initialize(json) ⇒ OntologyContextRelation
Returns a new instance of OntologyContextRelation.
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/rafflesia/ontology/ontology_context_relation.rb', line 57 def initialize(json) super() hash = self.class.normalize(json) @aliases = (hash[:aliases] || []) @column_count = hash[:column_count] @columns = (hash[:columns] || []).map { |item| item ? Rafflesia::OntologyContextColumn.new(item) : nil } @default_order = (hash[:default_order] || []) @description = hash[:description] @domain = hash[:domain] @entity_type = hash[:entity_type] @evidence_relationship_contracts = (hash[:evidence_relationship_contracts] || []).map { |item| item ? Rafflesia::OntologyEvidenceRelationshipContractData.new(item) : nil } @grain = hash[:grain] @id = hash[:id] @is_columns_truncated = hash[:is_columns_truncated] @is_required_columns_truncated = hash[:is_required_columns_truncated] @matched_fields = (hash[:matched_fields] || []) @matched_term_count = hash[:matched_term_count] @matched_terms = (hash[:matched_terms] || []) @name = hash[:name] @object = hash[:object] @omitted_required_columns = (hash[:omitted_required_columns] || []) @primary_key = (hash[:primary_key] || []) @quality_notes = (hash[:quality_notes] || []) @recommended_filters = (hash[:recommended_filters] || []) @required_column_count = hash[:required_column_count] end |
Instance Attribute Details
#aliases ⇒ Object
Returns the value of attribute aliases.
33 34 35 |
# File 'lib/rafflesia/ontology/ontology_context_relation.rb', line 33 def aliases @aliases end |
#column_count ⇒ Object
Returns the value of attribute column_count.
33 34 35 |
# File 'lib/rafflesia/ontology/ontology_context_relation.rb', line 33 def column_count @column_count end |
#columns ⇒ Object
Returns the value of attribute columns.
33 34 35 |
# File 'lib/rafflesia/ontology/ontology_context_relation.rb', line 33 def columns @columns end |
#default_order ⇒ Object
Returns the value of attribute default_order.
33 34 35 |
# File 'lib/rafflesia/ontology/ontology_context_relation.rb', line 33 def default_order @default_order end |
#description ⇒ Object
Returns the value of attribute description.
33 34 35 |
# File 'lib/rafflesia/ontology/ontology_context_relation.rb', line 33 def description @description end |
#domain ⇒ Object
Returns the value of attribute domain.
33 34 35 |
# File 'lib/rafflesia/ontology/ontology_context_relation.rb', line 33 def domain @domain end |
#entity_type ⇒ Object
Returns the value of attribute entity_type.
33 34 35 |
# File 'lib/rafflesia/ontology/ontology_context_relation.rb', line 33 def entity_type @entity_type end |
#evidence_relationship_contracts ⇒ Object
Returns the value of attribute evidence_relationship_contracts.
33 34 35 |
# File 'lib/rafflesia/ontology/ontology_context_relation.rb', line 33 def evidence_relationship_contracts @evidence_relationship_contracts end |
#grain ⇒ Object
Returns the value of attribute grain.
33 34 35 |
# File 'lib/rafflesia/ontology/ontology_context_relation.rb', line 33 def grain @grain end |
#id ⇒ Object
Returns the value of attribute id.
33 34 35 |
# File 'lib/rafflesia/ontology/ontology_context_relation.rb', line 33 def id @id end |
#is_columns_truncated ⇒ Object
Returns the value of attribute is_columns_truncated.
33 34 35 |
# File 'lib/rafflesia/ontology/ontology_context_relation.rb', line 33 def is_columns_truncated @is_columns_truncated end |
#is_required_columns_truncated ⇒ Object
Returns the value of attribute is_required_columns_truncated.
33 34 35 |
# File 'lib/rafflesia/ontology/ontology_context_relation.rb', line 33 def is_required_columns_truncated @is_required_columns_truncated end |
#matched_fields ⇒ Object
Returns the value of attribute matched_fields.
33 34 35 |
# File 'lib/rafflesia/ontology/ontology_context_relation.rb', line 33 def matched_fields @matched_fields end |
#matched_term_count ⇒ Object
Returns the value of attribute matched_term_count.
33 34 35 |
# File 'lib/rafflesia/ontology/ontology_context_relation.rb', line 33 def matched_term_count @matched_term_count end |
#matched_terms ⇒ Object
Returns the value of attribute matched_terms.
33 34 35 |
# File 'lib/rafflesia/ontology/ontology_context_relation.rb', line 33 def matched_terms @matched_terms end |
#name ⇒ Object
Returns the value of attribute name.
33 34 35 |
# File 'lib/rafflesia/ontology/ontology_context_relation.rb', line 33 def name @name end |
#object ⇒ Object
Returns the value of attribute object.
33 34 35 |
# File 'lib/rafflesia/ontology/ontology_context_relation.rb', line 33 def object @object end |
#omitted_required_columns ⇒ Object
Returns the value of attribute omitted_required_columns.
33 34 35 |
# File 'lib/rafflesia/ontology/ontology_context_relation.rb', line 33 def omitted_required_columns @omitted_required_columns end |
#primary_key ⇒ Object
Returns the value of attribute primary_key.
33 34 35 |
# File 'lib/rafflesia/ontology/ontology_context_relation.rb', line 33 def primary_key @primary_key end |
#quality_notes ⇒ Object
Returns the value of attribute quality_notes.
33 34 35 |
# File 'lib/rafflesia/ontology/ontology_context_relation.rb', line 33 def quality_notes @quality_notes end |
#recommended_filters ⇒ Object
Returns the value of attribute recommended_filters.
33 34 35 |
# File 'lib/rafflesia/ontology/ontology_context_relation.rb', line 33 def recommended_filters @recommended_filters end |
#required_column_count ⇒ Object
Returns the value of attribute required_column_count.
33 34 35 |
# File 'lib/rafflesia/ontology/ontology_context_relation.rb', line 33 def required_column_count @required_column_count end |