Class Redland::Node
In: lib/rdf/redland/node.rb
Parent: Object

Methods

Attributes

node  [R] 

Public Class methods

Creates a new blank node with the specified ID (?? confirm)

You shouldn‘t use this. Used internally for cleanup.

Ensures that the argument is a node by constructing one or returning nil (?? confirm)

Create an RDF Node

Resource or property node creation

  n1 = Node.new(Uri.new("http://example.com/foo"))

String literal node creation

  n2 = Node.new("foo")

Public Instance methods

Equivalency. Only works for comparing two Nodes

Return true if node is a blank node

returns the blank identifier for this node if the internal model is a blank node

Sets this node‘s value to a blank node with the specified ID (?? confirm)

returns a Literal if the node is a literal type

Return true if node is a literal

sets this node‘s value using a blank or URI extracted from a Hash (?? confirm)

sets this node‘s value using a literal value extracted from a Hash (?? confirm)

Get the type of this node as a string (Node.node_types)

Return true if node is a resource with a URI

Convert this to a string

return a copy of the internal uri

[Validate]