The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

name

  Usage    - print $synonym_type_def->name() or $synonym_type_def->name($name)
  Returns  - the synonym type name (string)
  Args     - the synonym type name (string)
  Function - gets/sets the synonym type name
  

description

  Usage    - print $synonym_type_def->description() or $synonym_type_def->description($desc)
  Returns  - the synonym description (string)
  Args     - the synonym description (string)
  Function - gets/sets the synonym description
  

scope

  Usage    - print $synonym_type_def->scope() or $synonym_type_def->scope($scope)
  Returns  - the scope of this synonym type definition (string)
  Args     - the scope of this synonym type definition (string)
  Function - gets/sets the scope of this synonym type definition
  

as_string

  Usage    - $synonym_type_def->as_string() or $synonym_type_def->as_string("UK_SPELLING", "British spelling", "EXACT")
  Returns  - the synonym type definition (string)
  Args     - the synonym type definition (string)
  Function - gets/sets the definition of this synonym
  

equals

  Usage    - print $synonym_type_def->equals($another_synonym_type_def)
  Returns  - either 1 (true) or 0 (false)
  Args     - the synonym type definition (OBO::Core::SynonymTypeDef) to compare with
  Function - tells whether this synonym type definition is equal to the given argument (another synonym type definition)
  

NAME

OBO::Core::SynonymTypeDef - A synonym type definition. It should contain a synonym type name, a space, a quote enclosed description, and an optional scope specifier.

SYNOPSIS

use OBO::Core::SynonymTypeDef;

use strict;

my $std1 = OBO::Core::SynonymTypeDef->new();

my $std2 = OBO::Core::SynonymTypeDef->new();

# name

$std1->name("goslim_plant");

$std2->name("goslim_yeast");

# description

$std1->description("Plant GO slim");

$std2->description("Yeast GO slim");

# scope

$std1->scope("EXACT");

$std2->scope("BROAD");

# synonym type def as string

my $std3 = OBO::Core::SynonymTypeDef->new();

$std3->as_string("goslim_plant", "Plant GO slim", "EXACT");

if ($std1->equals($std3)) {

        print "std1 is the same as std3\n";
        

}

DESCRIPTION

A synonym type definition provides a description of a user-defined synonym type. This object holds: a synonym type name, a description, and an optional scope specifier (c.f. OBO flat file specification). The scope specifier indicates the default scope for any synonym that has this type.

AUTHOR

Erick Antezana, <erick.antezana -@- gmail.com>

COPYRIGHT AND LICENSE

Copyright (c) 2006-2015 by Erick Antezana. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.7 or, at your option, any later version of Perl 5 you may have available.