NAME

RDF::Base::Literal::Class

DESCRIPTION

Inherits from RDF::Base::Resource

on_startup

set_valtype2name

on_bless

on_unbless

on_arc_add

on_arc_del

coltype

  $n->coltype()

This will give the coltype that instances of the literal will have. (instance instance coltype).

Will not return obj

coltype_id

  $n->coltype_id()

This will give the coltype id that instances of the literal will have. (instance instance coltype).

Will not return the obj id.

instance_class

  $n->instance_class()

Get the perl class name that handles instances of this class.

It will be retrieved by the class_handled_by_perl_module property, or for Literals, by the corresponding coltype.

Literals, arcs and preds must only have ONE class. Other resoruces may have multiple classses.

Returns: the class name as a plain string

coltype_by_valtype_id

RDF::Base::Literal::Class->coltype_by_valtype_id( $id )

Dies if this is not a registred literal valtype

Returns: a coltype as a string

Example: valtext

coltype_by_valtype_id_or_obj

RDF::Base::Literal::Class->coltype_by_valtype_id( $id )

Defaults to 'obj' for unregistred valtypes. Use /coltype_by_valtype_id if there souldn't be an undefined value.

Returns: a coltype as a string

Example: obj

coltype_by_coltype_id

RDF::Base::Literal::Class->coltype_by_coltype_id( $name )

coltype_id_by_coltype

RDF::Base::Literal::Class->coltype_id_by_coltype( $id )

SEE ALSO

RDF::Base::Resource, RDF::Base::Constants,