powered by
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)
# S4 method for Node getNodeType(.Object)
a character vector containing the Node type
a Node object
world <- new("World") node <- new("Node", world, uri="http://www.example.com") nodeType <- getNodeType(node)
Run the code above in your browser using DataLab