NAME

Rit::Base::Resource::Literal

DESCRIPTION

Represents a Literal resource (value node).

Inherits from Rit::Base::Resource.

notes

121[122] 123 -name-> [124]"Apa" 125[126] 124 -is_of_language-> sv 127[122] 123 -name-> [124]"Bepa"

"Apa" isa Rit::Base::Literal [124] isa Rit::Base::Resource::Literal

$nlit = $R->get(124); $lit = $nlit->value('active'); $nlit = $lit->node; print $lit->plain; # Bepa

init

  $n->init( $rec, \%args )

is_value_node

  $n->is_value_node()

Returns true if this node is a Literal Resource (aka value node).

Returns: 1

literal_list

  $n->literal_list( \%args )

The literal value that this object represents. This asumes that the object is a Literal Resource (aka Value Resource). Only use this then you know that this /is_value_node.

first_literal

  $n->first_literal( \%args )

Always returns the first created arc value that is active and direct.

Sort by id in order to use the original arc as a base of reference for the value, in case that other arc points to the same node.

literal

  $n->literal( \%args )

this_valtype

  $node->this_valtype( \%args )

This would be the same as the is property of this resource. But it must only have ONE value. It's important for literal values.

This method will return the literal valtype for value resoruces and return the resource resource for other resources.

See also: Rit::Base::Literal/this_valtype, /is_value_node.

revlist

revlist_preds

first_revprop

revcount

set_label

revarc_list

first_revarc

revarc

vacuum

This vacuums both arcs and revarcs. Normal vacuum doesn't vacuum revarcs

merge_node

link_paths

wu

sysdesig

  $n->sysdesig()

The designation of an object, to be used for node administration or debugging. This version of desig indludes the node id, if existing.

wdirc

loc

  $n->loc( \%args )

Asking to translate this word. But there is only one value.

Used by Rit::Base::List/loc.

Returns: A plain string

SEE ALSO

Rit::Base, Rit::Base::Literal, Rit::Base::Resource, Rit::Base::Arc, Rit::Base::Pred, Rit::Base::Search