Inherits from RedlandWrappedObject : NSObject
Declared in RedlandWorld.h
RedlandWorld.m

Overview

Global context for all Redland functions.

Wraps librdf_world objects. This framework takes care of creating a RedlandWorld instance for you. There is currently no way to create an instance manually in this version of the framework, and all operations currently use the default instance.

Tasks

Properties

logsErrors

If YES, the receiver will log all Redland errors to the console (in addition to generating exceptions, where appropriate). NO by default.

@property (nonatomic, assign) BOOL logsErrors

Discussion

If YES, the receiver will log all Redland errors to the console (in addition to generating exceptions, where appropriate). NO by default.

Declared In

RedlandWorld.h

Class Methods

defaultWorld

Returns the default RedlandWorld instance.

+ (RedlandWorld *)defaultWorld

Discussion

Returns the default RedlandWorld instance.

Declared In

RedlandWorld.m

defaultWrappedWorld

Returns the underlying librdf_world pointer of the default RedlandWorld instance.

+ (librdf_world *)defaultWrappedWorld

Discussion

Returns the underlying librdf_world pointer of the default RedlandWorld instance.

Declared In

RedlandWorld.m

Instance Methods

handleLogMessage:

Adds an librdf_log_message to the internal storedErrors array. Errors are collected until [RedlandWorld handleStoredErrors] is called, which then throws an exception with all collected errors.

- (int)handleLogMessage:(librdf_log_message *)aMessage

Parameters

aMessage

A librdf_log_message pointer.

Discussion

Adds an librdf_log_message to the internal storedErrors array. Errors are collected until [RedlandWorld handleStoredErrors] is called, which then throws an exception with all collected errors.

Warning: Behavior of this method is subject to change. Do not use.

Declared In

RedlandWorld.m

handleStoredErrors

Checks if there are any collected errors, in which case it throws an exception with the error array inside userInfo dictionary.

- (void)handleStoredErrors

Discussion

Checks if there are any collected errors, in which case it throws an exception with the error array inside userInfo dictionary.

Warning: Behavior of this method is subject to change. Do not use.

Declared In

RedlandWorld.m

setValue:ofFeature:

Sets the world feature identified by featureURI to a new value.

- (void)setValue:(RedlandNode *)featureValue ofFeature:(id)featureURI

Parameters

featureValue

A RedlandNode representing the new value

featureURI

An NSString or a RedlandURI instance

Discussion

Sets the world feature identified by featureURI to a new value.

Warning: Raises a RedlandException is no such feature exists.

Declared In

RedlandWorld.m

valueOfFeature:

Returns the value of the world feature identified by featureURI.

- (RedlandNode *)valueOfFeature:(id)featureURI

Parameters

featureURI

An NSString or a RedlandURI instance

Discussion

Returns the value of the world feature identified by featureURI.

Declared In

RedlandWorld.m

wrappedWorld

Returns the underlying librdf_world pointer of the receiver.

- (librdf_world *)wrappedWorld

Discussion

Returns the underlying librdf_world pointer of the receiver.

Declared In

RedlandWorld.m