Learn R Programming

redland (version 1.0.17-10)

getNodeValue: Get the value of the node as a string

Description

Get the value of the node as a string

Usage

getNodeValue(.Object)

# S4 method for Node getNodeValue(.Object)

Arguments

.Object

a Node object

Value

a string representation of the Node's value

Details

The value of the node is returned as a string. If the node type is 'blank', then the blank node identifier is returned. If the node type is 'literal', then the literal value is returned with the form "<value>"@<language>, e.g. "<U+00A1>Hola, amigo! <U+00BF>C<U+00F3>mo est<U+00E1>s?"@es". If the node type is 'uri' then the value is returned as a string.

Examples

Run this code
# NOT RUN {
world <- new("World")
node <- new("Node", world, literal="<U+00A1>Hola, amigo! <U+00BF>C<U+00F3>mo est<U+00E1>s?", language="es")
value <- getNodeValue(node)
# }

Run the code above in your browser using DataLab