RDF Statement / Assertion / Triple

This module provides the RDF statement functionality, and contains three parts: resource, predicate and object which are all nodes provided by the librdf_node class. Statements can be added / removed from models.

Statements have at least one rdf:type and are always of rdf:type rdf:resource. They can be present in the model and/or reified in which they are quoted or talked about by other statements.

RDF Statement Class

Table of Contents
librdf_init_statement --  Initialise the librdf_statement module
librdf_finish_statement --  Terminate the librdf_statement module
librdf_new_statement --  Constructor - create a new empty librdf_statement
librdf_new_statement_from_statement --  Copy constructor - create a new librdf_statement from an existing librdf_statement
librdf_new_statement_from_nodes --  Constructor - create a new librdf_statement from existing librdf_node objects
librdf_statement_init --  initialise a statically declared librdf_statement
librdf_statement_clear --  empty a librdf_statement of nodes
librdf_free_statement --  Destructor - destroy a librdf_statement
librdf_statement_get_subject --  Get the statement subject
librdf_statement_set_subject --  Set the statement subject
librdf_statement_get_predicate --  Get the statement predicate
librdf_statement_set_predicate --  Set the statement predicate
librdf_statement_get_object --  Get the statement object
librdf_statement_set_object --  Set the statement object
librdf_statement_is_complete --  Check if statement has all subject, predicate, object fields present
librdf_statement_to_string --  Format the librdf_statement as a string
librdf_statement_print --  pretty print the statement to a file descriptor
librdf_statement_equals --  Check if two statements are equal
librdf_statement_match --  Match a statement against a 'partial' statement
librdf_statement_encode --  Serialise a statement into a buffer
librdf_statement_encode_parts --  Serialise parts of a statement into a buffer
librdf_statement_decode --  Decodes a statement from a buffer
librdf_statement_decode_parts --  Decodes a statement + context node from a buffer