librdf_model_add_typed_literal_statement

Name

librdf_model_add_typed_literal_statement --  Create and add a new statement about a typed literal to the model

Synopsis

int librdf_model_add_typed_literal_statement (librdf_model* model, librdf_node* subject, librdf_node* predicate, char* literal, char * xml_language, librdf_uri * datatype_uri);

Arguments

model

model object

subject

librdf_node of subject

predicate

librdf_node of predicate

literal

string literal content

xml_language

language of literal

datatype_uri

-- undescribed --

Description

After this method, the librdf_node subject and predicate become owned by the model.

The language can be set to NULL if not used. All of subject, predicate and literal must be non-NULL.

Return value

non 0 on failure