GOBO::Synonym - GOBO::Synonym documentation


GOBO documentation Contained in the GOBO distribution.

Index


Code Index:

NAME

Top

GOBO::Synonym

SYNOPSIS

Top

DESCRIPTION

Top

An alternate label for an GOBO::Labeled object


GOBO documentation Contained in the GOBO distribution.

package GOBO::Synonym;
use Moose;
use strict;
use GOBO::Node;
with 'GOBO::Attributed';

use Moose::Util::TypeConstraints;

coerce 'GOBO::Synonym'
      => from 'Str'
      => via { new GOBO::Synonym(label=>$_) };

has label => (is=>'rw',isa=>'Str');
has scope => (is=>'rw',isa=>'Str');
has type => (is=>'rw',isa=>'GOBO::Node', coerce=>1);
has lang => (is=>'rw',isa=>'Str');

1;