module RDF::Value

An RDF value.

This is the basis for the RDF.rb class hierarchy. Anything that can be a term of {RDF::Statement RDF statements} should directly or indirectly include this module, but it does not define classes that can be included within a {RDF::Statement}, for this see {RDF::Term}.

@example Checking if a value is a resource (blank node or URI reference)

value.resource?

@example Checking if a value is a blank node

value.node?

@example Checking if a value is a URI reference

value.uri?
value.iri?

@example Checking if a value is a literal

value.literal?

@see RDF::Literal @see RDF::Node @see RDF::Resource @see RDF::URI @see RDF::Graph @see RDF::List @see RDF::Statement

Extensions for ‘RDF::Value`.

Extensions for ‘RDF::Value`.