Learn R Programming

redland (version 1.0.17-6)

getBlankNodeId: Get the blank identifier that has been assigned for a specified Node object

Description

Get the blank identifier that has been assigned for a specified Node object

Usage

getBlankNodeId(.Object)

## S3 method for class 'Node': getBlankNodeId(.Object)

Arguments

.Object
a Node object

Value

  • a blank node identifier

Details

When a Node object is initialized with no value specified, i.e. node <- Node(""), a blank node is created and a locally unique identifier is generated by librdf. This method retrieves this identifier and returns in to the caller.

Examples

Run this code
world <- new("World")
# a blank node is created with a unique identifier generated by librdf
node <- new("Node", world, blank=NULL)
nodeId <- getBlankNodeId(node)

Run the code above in your browser using DataLab