Class: BELParser::Resource::ConceptScheme

Inherits:
Object
  • Object
show all
Includes:
Dataset
Defined in:
lib/bel_parser/resource/concept_scheme.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?

Constructor Details

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

Returns a new instance of ConceptScheme.



11
12
13
14
15
16
17
# File 'lib/bel_parser/resource/concept_scheme.rb', line 11

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

Instance Attribute Details

#domainObject (readonly)

Returns the value of attribute domain.



9
10
11
# File 'lib/bel_parser/resource/concept_scheme.rb', line 9

def domain
  @domain
end

#identifierObject (readonly)

Returns the value of attribute identifier.



9
10
11
# File 'lib/bel_parser/resource/concept_scheme.rb', line 9

def identifier
  @identifier
end

#keywordObject (readonly)

Returns the value of attribute keyword.



9
10
11
# File 'lib/bel_parser/resource/concept_scheme.rb', line 9

def keyword
  @keyword
end

#nameObject (readonly)

Returns the value of attribute name.



9
10
11
# File 'lib/bel_parser/resource/concept_scheme.rb', line 9

def name
  @name
end

#typesObject (readonly)

Returns the value of attribute types.



9
10
11
# File 'lib/bel_parser/resource/concept_scheme.rb', line 9

def types
  @types
end

Instance Method Details

#uri?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/bel_parser/resource/concept_scheme.rb', line 19

def uri?
  true
end

#url?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/bel_parser/resource/concept_scheme.rb', line 23

def url?
  false
end