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
- #<=>(another_dataset) ⇒ Object
- #==(another_dataset) ⇒ Object (also: #eql?)
- #annotation_resource? ⇒ Boolean
- #domain ⇒ Object
- #hash ⇒ Object
- #identifier ⇒ Object
- #keyword ⇒ Object
- #namespace_resource? ⇒ Boolean
- #types ⇒ Object
- #uri? ⇒ Boolean
- #url? ⇒ Boolean
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
21 22 23 |
# File 'lib/bel_parser/resource/dataset.rb', line 21 def annotation_resource? types.include?(ANNOTATION) end |
#domain ⇒ Object
17 18 19 |
# File 'lib/bel_parser/resource/dataset.rb', line 17 def domain raise NotImplementedError, "#{__method__} is not implemented." end |
#hash ⇒ Object
45 46 47 |
# File 'lib/bel_parser/resource/dataset.rb', line 45 def hash [types, identifier, keyword].hash end |
#identifier ⇒ Object
9 10 11 |
# File 'lib/bel_parser/resource/dataset.rb', line 9 def identifier raise NotImplementedError, "#{__method__} is not implemented." end |
#keyword ⇒ Object
13 14 15 |
# File 'lib/bel_parser/resource/dataset.rb', line 13 def keyword raise NotImplementedError, "#{__method__} is not implemented." end |
#namespace_resource? ⇒ Boolean
25 26 27 |
# File 'lib/bel_parser/resource/dataset.rb', line 25 def namespace_resource? types.include?(NAMESPACE) end |
#types ⇒ Object
29 30 31 |
# File 'lib/bel_parser/resource/dataset.rb', line 29 def types raise NotImplementedError, "#{__method__} is not implemented." end |
#uri? ⇒ Boolean
33 34 35 |
# File 'lib/bel_parser/resource/dataset.rb', line 33 def uri? raise NotImplementedError, "#{__method__} is not implemented." end |
#url? ⇒ Boolean
37 38 39 |
# File 'lib/bel_parser/resource/dataset.rb', line 37 def url? raise NotImplementedError, "#{__method__} is not implemented." end |