module BELParser::Resource::Dataset
Constants
- ANNOTATION
- NAMESPACE
Public Instance Methods
<=>(another_dataset)
click to toggle source
# File lib/bel_parser/resource/dataset.rb, line 41 def <=>(another_dataset) keyword <=> another_dataset.keyword end
==(another_dataset)
click to toggle source
# 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?()
click to toggle source
# File lib/bel_parser/resource/dataset.rb, line 21 def annotation_resource? types.include?(ANNOTATION) end
domain()
click to toggle source
# File lib/bel_parser/resource/dataset.rb, line 17 def domain raise NotImplementedError, "#{__method__} is not implemented." end
hash()
click to toggle source
# File lib/bel_parser/resource/dataset.rb, line 45 def hash [types, identifier, keyword].hash end
identifier()
click to toggle source
# File lib/bel_parser/resource/dataset.rb, line 9 def identifier raise NotImplementedError, "#{__method__} is not implemented." end
keyword()
click to toggle source
# File lib/bel_parser/resource/dataset.rb, line 13 def keyword raise NotImplementedError, "#{__method__} is not implemented." end
namespace_resource?()
click to toggle source
# File lib/bel_parser/resource/dataset.rb, line 25 def namespace_resource? types.include?(NAMESPACE) end
types()
click to toggle source
# File lib/bel_parser/resource/dataset.rb, line 29 def types raise NotImplementedError, "#{__method__} is not implemented." end
uri?()
click to toggle source
# File lib/bel_parser/resource/dataset.rb, line 33 def uri? raise NotImplementedError, "#{__method__} is not implemented." end
url?()
click to toggle source
# File lib/bel_parser/resource/dataset.rb, line 37 def url? raise NotImplementedError, "#{__method__} is not implemented." end