Jerome Eteve > WebService-ReutersConnect-0.06 > WebService::ReutersConnect::DB::Result::Concept

Download:
WebService-ReutersConnect-0.06.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

WebService::ReutersConnect::DB::Result::Concept

ACCESSORS ^

id

  data_type: 'varchar'
  is_nullable: 0
  size: 255

name_main

  data_type: 'varchar'
  default_value: (empty string)
  is_nullable: 0
  size: 255

definition

  data_type: 'text'
  is_nullable: 1

name_mnemonic

  data_type: 'varchar'
  is_nullable: 1
  size: 255

broader_id

  data_type: 'varchar'
  default_value: NULL
  is_foreign_key: 1
  is_nullable: 1
  size: 255

RELATIONS ^

broader

Type: belongs_to

Related object: WebService::ReutersConnect::DB::Result::Concept

concepts

Type: has_many

Related object: WebService::ReutersConnect::DB::Result::Concept

concept_aliases

Type: has_many

Related object: WebService::ReutersConnect::DB::Result::ConceptAlias

broader_chain

Returns the chain of broader concepts ( including this one ). Therefore it's never empty. The most general is first, the most specific is last ( this one )

Usage:

  my @concepts = $this->broader_chain();
  print join(' > ', map{ $_->name_main() } @concepts );
syntax highlighting: