class BioInterchange::TextMining::Process
Constants
- MANUAL
- SOFTWARE
- UNSPECIFIED
Constants that describe process types.
- VERSION
Dictionary of viable metadata keys.
- WEBSERVICE
Public Class Methods
Creates a new process representation.
name
-
identification of the software/service/curator involved in the process, e.g. “ABNER” or “Peter Smith”
uri
-
details about the processes origin, e.g. “pages.cs.wisc.edu/~bsettles/abner/” or “peter.smith@example.org”
date
-
date-time when the process was carried out, which may be nil if the date-time is unknown
type
-
classification of the described process
metadata
-
a hash that holds additional information about the process via dictionary defined keywords, e.g. { Process::VERSION => '0.0.1alpha' }
# File lib/biointerchange/textmining/process.rb, line 21 def initialize(name, uri, type = UNSPECIFIED, metadata = {}, date = nil) @name = name @uri = uri @date = date @type = type @metadata = metadata end
Public Instance Methods
Returns the date-time when this process was carried out, or nil otherwise if the information is not available.
# File lib/biointerchange/textmining/process.rb, line 41 def date @date end
Returns additional meta-data associated with this process.
# File lib/biointerchange/textmining/process.rb, line 51 def metadata @metadata.clone.freeze end
Returns the name of the process.
# File lib/biointerchange/textmining/process.rb, line 30 def name @name end
Returns the type of this process.
# File lib/biointerchange/textmining/process.rb, line 46 def type @type end
Returns the URI that has further details about the process, which can also be the form of an email address in cases where the process describes human driven annotation.
# File lib/biointerchange/textmining/process.rb, line 36 def uri @uri end