getNodeType: Determine the node type and return as a string

getNodeTypeR Documentation

Determine the node type and return as a string

Description

A Node has a type that is assigned at initialization and can have one of the following values: 'resource', 'literal', 'blank' and 'unknown'.

Usage

getNodeType(.Object)

## S4 method for signature 'Node'
getNodeType(.Object)

Arguments

.Object

a Node object

Value

a character vector containing the Node type

Examples

world <- new("World")
node <- new("Node", world, uri="http://www.example.com")
nodeType <- getNodeType(node)

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