librdf_model_add_statement

Name

librdf_model_add_statement --  Add a statement to the model

Synopsis

int librdf_model_add_statement (librdf_model* model, librdf_statement* statement);

Arguments

model

model object

statement

statement object

Description

The passed-in statement is copied when added to the model, not shared with the model. It must be a complete statement - all of subject, predicate, object parts must be present.

If the statement already exists in the model, it is not added. Duplicate statements can be added when used with Redland Contexts such as with librdf_model_context_add_statement

Return value

non 0 on failure