RDF::Base::Resource::Literal
Represents a Literal resource (value node).
Inherits from RDF::Base::Resource.
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
$n->init( $rec, \%args )
$n->is_value_node()
Returns true if this node is a Literal Resource (aka value node).
Returns: 1
$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.
$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.
$n->literal( \%args )
$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.
This vacuums both arcs and revarcs. Normal vacuum doesn't vacuum revarcs
$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.
$n->loc( \%args )
Asking to translate this word. But there is only one value.
Used by RDF::Base::List/loc.
Returns: A plain string
RDF::Base, RDF::Base::Literal, RDF::Base::Resource, RDF::Base::Arc, RDF::Base::Pred, RDF::Base::Search