Class: Rafflesia::DatasetOntologyBinding

Inherits:
Types::BaseModel
  • Object
show all
Defined in:
lib/rafflesia/ontology/dataset_ontology_binding.rb

Constant Summary collapse

HASH_ATTRS =
{
  conformance_status: :conformance_status,
  dataset_name: :dataset_name,
  dataset_relation: :dataset_relation,
  dataset_relation_digest: :dataset_relation_digest,
  dataset_release_id: :dataset_release_id,
  dataset_repository_id: :dataset_repository_id,
  dataset_version: :dataset_version,
  id: :id,
  is_queryable: :is_queryable,
  object: :object,
  observed_schema_hash: :observed_schema_hash,
  ontology_digest: :ontology_digest,
  ontology_relation: :ontology_relation,
  ontology_release_id: :ontology_release_id,
  ontology_repository_id: :ontology_repository_id,
  ontology_schema_hash: :ontology_schema_hash,
  ontology_version: :ontology_version,
  table_artifacts: :table_artifacts
}.freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ DatasetOntologyBinding

Returns a new instance of DatasetOntologyBinding.



49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 49

def initialize(json)
  super()
  hash = self.class.normalize(json)
  @conformance_status = hash[:conformance_status]
  @dataset_name = hash[:dataset_name]
  @dataset_relation = hash[:dataset_relation]
  @dataset_relation_digest = hash[:dataset_relation_digest]
  @dataset_release_id = hash[:dataset_release_id]
  @dataset_repository_id = hash[:dataset_repository_id]
  @dataset_version = hash[:dataset_version]
  @id = hash[:id]
  @is_queryable = hash[:is_queryable]
  @object = hash[:object]
  @observed_schema_hash = hash[:observed_schema_hash]
  @ontology_digest = hash[:ontology_digest]
  @ontology_relation = hash[:ontology_relation]
  @ontology_release_id = hash[:ontology_release_id]
  @ontology_repository_id = hash[:ontology_repository_id]
  @ontology_schema_hash = hash[:ontology_schema_hash]
  @ontology_version = hash[:ontology_version]
  @table_artifacts = (hash[:table_artifacts] || []).map { |item| item ? Rafflesia::DatasetBindingArtifact.new(item) : nil }
end

Instance Attribute Details

#conformance_statusObject

Returns the value of attribute conformance_status.



29
30
31
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29

def conformance_status
  @conformance_status
end

#dataset_nameObject

Returns the value of attribute dataset_name.



29
30
31
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29

def dataset_name
  @dataset_name
end

#dataset_relationObject

Returns the value of attribute dataset_relation.



29
30
31
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29

def dataset_relation
  @dataset_relation
end

#dataset_relation_digestObject

Returns the value of attribute dataset_relation_digest.



29
30
31
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29

def dataset_relation_digest
  @dataset_relation_digest
end

#dataset_release_idObject

Returns the value of attribute dataset_release_id.



29
30
31
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29

def dataset_release_id
  @dataset_release_id
end

#dataset_repository_idObject

Returns the value of attribute dataset_repository_id.



29
30
31
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29

def dataset_repository_id
  @dataset_repository_id
end

#dataset_versionObject

Returns the value of attribute dataset_version.



29
30
31
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29

def dataset_version
  @dataset_version
end

#idObject

Returns the value of attribute id.



29
30
31
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29

def id
  @id
end

#is_queryableObject

Returns the value of attribute is_queryable.



29
30
31
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29

def is_queryable
  @is_queryable
end

#objectObject

Returns the value of attribute object.



29
30
31
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29

def object
  @object
end

#observed_schema_hashObject

Returns the value of attribute observed_schema_hash.



29
30
31
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29

def observed_schema_hash
  @observed_schema_hash
end

#ontology_digestObject

Returns the value of attribute ontology_digest.



29
30
31
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29

def ontology_digest
  @ontology_digest
end

#ontology_relationObject

Returns the value of attribute ontology_relation.



29
30
31
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29

def ontology_relation
  @ontology_relation
end

#ontology_release_idObject

Returns the value of attribute ontology_release_id.



29
30
31
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29

def ontology_release_id
  @ontology_release_id
end

#ontology_repository_idObject

Returns the value of attribute ontology_repository_id.



29
30
31
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29

def ontology_repository_id
  @ontology_repository_id
end

#ontology_schema_hashObject

Returns the value of attribute ontology_schema_hash.



29
30
31
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29

def ontology_schema_hash
  @ontology_schema_hash
end

#ontology_versionObject

Returns the value of attribute ontology_version.



29
30
31
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29

def ontology_version
  @ontology_version
end

#table_artifactsObject

Returns the value of attribute table_artifacts.



29
30
31
# File 'lib/rafflesia/ontology/dataset_ontology_binding.rb', line 29

def table_artifacts
  @table_artifacts
end