SADI::Data::Object
use SADI::Data::Object; # create a sadi object with a namespace of NCBI_gi and id 545454 my $data = SADI::Data::Object->new (namespace=>"NCBI_gi", id=>"545454"); # set/get an article name for this data object $data->name ('myObject'); print $data->name; # set/get an id for this data object $data->id ('myID'); print $data->id; # check if this data object is a primitive type print "a primitive" if $data->primitive; print "not a primitive" if not $data->primitive; # get a formatted string representation of this data object print $data->toString;
An object representing a SADI object (usually consisting of a namespace and id)
Edward Kawas (edward.kawas [at] gmail [dot] com) Martin Senger (martin.senger [at] gmail [dot] com)
Details are in SADI::Base. Here just a list of them:
An article name for this datatype. Note that the article name depends on the context where this object is used.
A boolean property indicating if this data type is a primitive SADI type or not.
To install SADI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SADI
CPAN shell
perl -MCPAN -e shell install SADI
For more information on module installation, please visit the detailed CPAN module installation guide.