A Node has a type that is assigned at initialization and can have one of the following values: 'resource', 'literal', 'blank' and 'unknown'.
getNodeType(.Object)# S4 method for Node
getNodeType(.Object)
a Node object
a character vector containing the Node type
# NOT RUN {
world <- new("World")
node <- new("Node", world, uri="http://www.example.com")
nodeType <- getNodeType(node)
# }
Run the code above in your browser using DataLab