"Fossies" - the Fresh Open Source Software archive

Member "redland/docs/api/r746.html" of archive amaya-fullsrc-11.4.4.tgz:


Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. Alternatively you can here view or download the uninterpreted source code. That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.

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, const unsigned 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