Learn R Programming

redland (version 1.0.17-6)

Node-class: A Redland Node, used to store one node in an RDF triple statement.

Description

A Node represents a RDF Resource, Property, Literal or an RDF blank Node.

Arguments

Methods

{: Initialize a Node object.} getNodeType{: Determine the node type and return as a string.} getBlankNodeId{: Get the blank identifier that has been assigned for a specified Node object.}

See Also

redland{: redland package}

Examples

Run this code
world <- new("World")
# a blank node is created with a unique identifier generated by librdf
node <- new("Node", world)
# a blank node is created with a unique identifier generated by librdf
node <- new("Node", world, blank=NULL)
# a blank node is created with the user specified identifier, i.e. "_:id1"
node <- new("Node", world, blank="someid")
# a node type of 'literal' is created
node <- new("Node", world, literal="A Node Value")
# a Node type of 'resource' is created
node <- new("Node", world, uri="http://www.example.com")

Run the code above in your browser using DataLab