getNodeValue: Get the value of the node as a string

getNodeValueR Documentation

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 signature 'Node'
getNodeValue(.Object)

Arguments

.Object

a Node object

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 "string@language, e.g. "¡Hola, amigo! ¿Cómo estás?"@es". If the node type is 'uri' then the value is returned as a string.

Value

a string representation of the Node's value

Examples

world <- new("World")
node <- new("Node", world, literal="¡Hola, amigo! ¿Cómo estás?", language="es")
value <- getNodeValue(node)

redland documentation built on May 31, 2023, 6:32 p.m.