RedlandStatement Class Reference
| Inherits from | RedlandWrappedObject : NSObject |
| Conforms to | NSCoding NSCopying |
| Declared in | RedlandStatement.h RedlandStatement.m |
Overview
A RedlandStatement represents a single statement or assertion in an RDF graph.
Each statement consists of a subject, a predicate and an object, which are all of the class RedlandNode. Wraps librdf_statement. Instances of RedlandStatement conform to the NSCopying and NSCoding protocols.
Tasks
-
subjectThe subject, may be nil.
property -
predicateThe predicate, may be nil.
property -
objectThe object, may be nil.
property -
+ statementWithSubject:predicate:object:Convenience method which returns an autoreleased statement initialized using the designated initializer.
-
– initWithSubject:predicate:object:The designated initializer, initializes a new RedlandStatement.
-
– wrappedStatementReturns the underlying librdf_statement pointer of the receiver.
-
– matchesPartialStatement:All parts of aStatement which are non-nil must be equal to their counterparts in the receiver.
-
– isCompleteReturns YES if the receiver has all non-nil subject, predicate, and object parts.
Properties
object
The object, may be nil.
@property (nonatomic, readonly, strong) RedlandNode *objectDiscussion
The object, may be nil.
Declared In
RedlandStatement.hClass Methods
statementWithSubject:predicate:object:
Convenience method which returns an autoreleased statement initialized using the designated initializer.
+ (RedlandStatement *)statementWithSubject:(id)subjectNode predicate:(id)predicateNode object:(id)objectNodeParameters
- subjectNode
The subject for the statement
- predicateNode
The predicate
- objectNode
The object
Discussion
Convenience method which returns an autoreleased statement initialized using the designated initializer.
Declared In
RedlandStatement.mInstance Methods
initWithSubject:predicate:object:
The designated initializer, initializes a new RedlandStatement.
- (id)initWithSubject:(id)subjectNode predicate:(id)predicateNode object:(id)objectNodeParameters
Discussion
The designated initializer, initializes a new RedlandStatement.
Each parameter can be either be nil, of type RedlandNode, or of any other class that responds to the selector nodeValue. The Redland Objective-C framework provides additional nodeValue methods for the core Cocoa classes NSString, NSNumber, NSURL, and NSDate.
Declared In
RedlandStatement.mmatchesPartialStatement:
All parts of aStatement which are non-nil must be equal to their counterparts in the receiver.
- (BOOL)matchesPartialStatement:(RedlandStatement *)aStatementParameters
- aStatement
The statement to compare the receiver to.
Return Value
Returns YES if the receiver matches aStatement.
Discussion
Warning: All parts of aStatement which are non-nil must be equal to their counterparts in the receiver.
Declared In
RedlandStatement.m