Class: BELParser::Resource::JenaTDBReader::ConceptScheme

Inherits:
Object
  • Object
show all
Includes:
Dataset
Defined in:
lib/bel_parser/resource/jena_tdb_reader.rb

Overview

ConceptScheme

Constant Summary

Constants included from Dataset

Dataset::ANNOTATION, Dataset::NAMESPACE

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Dataset

#<=>, #==, #annotation_resource?, #hash, #namespace_resource?, #uri?, #url?

Constructor Details

#initialize(uri, domain, prefix, name, types) ⇒ ConceptScheme

Returns a new instance of ConceptScheme.



159
160
161
162
163
164
165
# File 'lib/bel_parser/resource/jena_tdb_reader.rb', line 159

def initialize(uri, domain, prefix, name, types)
  @identifier = uri
  @domain     = domain.to_s
  @keyword    = prefix.to_s
  @name       = name.to_s
  @types      = convert_types(types)
end

Instance Attribute Details

#domainObject (readonly)

Returns the value of attribute domain.



157
158
159
# File 'lib/bel_parser/resource/jena_tdb_reader.rb', line 157

def domain
  @domain
end

#identifierObject (readonly)

Returns the value of attribute identifier.



157
158
159
# File 'lib/bel_parser/resource/jena_tdb_reader.rb', line 157

def identifier
  @identifier
end

#keywordObject (readonly)

Returns the value of attribute keyword.



157
158
159
# File 'lib/bel_parser/resource/jena_tdb_reader.rb', line 157

def keyword
  @keyword
end

#nameObject (readonly)

Returns the value of attribute name.



157
158
159
# File 'lib/bel_parser/resource/jena_tdb_reader.rb', line 157

def name
  @name
end

#typesObject (readonly)

Returns the value of attribute types.



157
158
159
# File 'lib/bel_parser/resource/jena_tdb_reader.rb', line 157

def types
  @types
end