Resource description framework (rdf) library
\s-11.0.16\s0
#include <redland.h>
redland is a library providing support for the Resource Description Framework (\s-1RDF\s0) written in \s-1ANSI\s0 C with APIs in several other languages.
This manual page lists most of the redland public \s-1API\s0 functions but does not claim to be a complete summary of the entire \s-1API\s0. For the complete \s-1API\s0 with full details of the function interface, see the \s-1HTML\s0 \s-1API\s0 documentation either on the Redland web site at <http://librdf.org/> or with the software release in the docs/api directory.
The functions defined by redland are all defined with the \*(C`librdf_\*(C' prefix
The library provides macros for all of the \s-1RDF\s0 and \s-1RDFS\s0 concepts - nodes and URIs. For example, \*(C`LIBRDF_MS_Alt\*(C' for the librdf_node for the rdf:Alt concept and \*(C`LIBRDF_MS_Alt_URI\*(C' for the librdf_uri for the \s-1URI\s0 reference of rdf:Alt.
\*(C`LIBRDF_URI_RDF_MS\*(C' and \*(C`LIBRDF_URI_RDF_SCHEMA\*(C' provide the librdf_uri objects for the \s-1RDF\s0 and \s-1RDFS\s0 namespace URIs. They must be copied using librdf_new_uri_from_uri to be shared correctly.
#include <redland.h>
librdf_storage *storage; librdf_model* model; librdf_statement* statement; librdf_world* world
world=librdf_new_world();
librdf_world_open(world);
storage=librdf_new_storage(world, "hashes", "test", "hash-type='bdb',dir='.'"); model=librdf_new_model(world, storage, NULL); statement=librdf_new_statement_from_nodes(world, librdf_new_node_from_uri_string(world, "http://purl.org/net/dajobe/"), librdf_new_node_from_uri_string(world, "http://purl.org/dc/elements/1.1/creator"), librdf_new_node_from_literal(world, "Dave Beckett", NULL, 0));
librdf_model_add_statement(model, statement); librdf_free_statement(statement);
librdf_model_print(model, stdout);
librdf_free_model(model); librdf_free_storage(storage); librdf_free_world(world);
libraptor\|(3), libxml\|(4).
The redland \s-1RDF\s0 library was created by Dave Beckett in June 2000.
Dave Beckett <http://purl.org/net/dajobe/>,