Module: BELParser::Resource::Dataset

Included in:
ConceptScheme, FileResource, JenaTDBReader::ConceptScheme
Defined in:
lib/bel_parser/resource/dataset.rb

Overview

Dataset

Constant Summary collapse

ANNOTATION =
:annotation
NAMESPACE =
:namespace

Instance Method Summary collapse

Instance Method Details

#<=>(another_dataset) ⇒ Object



41
42
43
# File 'lib/bel_parser/resource/dataset.rb', line 41

def <=>(another_dataset)
  keyword <=> another_dataset.keyword
end

#==(another_dataset) ⇒ Object Also known as: eql?



49
50
51
52
53
54
# File 'lib/bel_parser/resource/dataset.rb', line 49

def ==(another_dataset)
  return false if another_dataset == nil
  types      == another_dataset.types &&
  identifier == another_dataset.identifier &&
  keyword    == another_dataset.keyword
end

#annotation_resource?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/bel_parser/resource/dataset.rb', line 21

def annotation_resource?
  types.include?(ANNOTATION)
end

#domainObject

Raises:

  • (NotImplementedError)


17
18
19
# File 'lib/bel_parser/resource/dataset.rb', line 17

def domain
  raise NotImplementedError, "#{__method__} is not implemented."
end

#hashObject



45
46
47
# File 'lib/bel_parser/resource/dataset.rb', line 45

def hash
  [types, identifier, keyword].hash
end

#identifierObject

Raises:

  • (NotImplementedError)


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

def identifier
  raise NotImplementedError, "#{__method__} is not implemented."
end

#keywordObject

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/bel_parser/resource/dataset.rb', line 13

def keyword
  raise NotImplementedError, "#{__method__} is not implemented."
end

#namespace_resource?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/bel_parser/resource/dataset.rb', line 25

def namespace_resource?
  types.include?(NAMESPACE)
end

#typesObject

Raises:

  • (NotImplementedError)


29
30
31
# File 'lib/bel_parser/resource/dataset.rb', line 29

def types
  raise NotImplementedError, "#{__method__} is not implemented."
end

#uri?Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


33
34
35
# File 'lib/bel_parser/resource/dataset.rb', line 33

def uri?
  raise NotImplementedError, "#{__method__} is not implemented."
end

#url?Boolean

Returns:

  • (Boolean)

Raises:

  • (NotImplementedError)


37
38
39
# File 'lib/bel_parser/resource/dataset.rb', line 37

def url?
  raise NotImplementedError, "#{__method__} is not implemented."
end