NAME

RDF::Base::Resource::Literal

DESCRIPTION

Represents a Literal resource (value node).

Inherits from RDF::Base::Resource.

notes

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

"Apa" isa RDF::Base::Literal [124] isa RDF::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: RDF::Base::Literal/this_valtype, /is_value_node.

revlist

revlist_preds

first_revprop

revcount

set_label

revarc_list

first_revarc

revarc

vacuum_facet

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 RDF::Base::List/loc.

Returns: A plain string

plain

on_revarc_del

on_revarc_add

SEE ALSO

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