Unused 3 REDLAND Library
Unused Unused items.

## Synopsis

    #define             REDLAND_API
    #define             REDLAND_PRINTF_FORMAT               (string_index, first_to_check_index)
    const char*         librdf_basename                     (const char *name);
    librdf_cache*       librdf_new_cache                    (librdf_world *world,
                                                             int capacity,
                                                             int flush_percent,
                                                             int flags);
    typedef             librdf_cache;
    int                 librdf_cache_add                    (librdf_cache *cache,
                                                             void *key,
                                                             size_t key_size,
                                                             void *value,
                                                             size_t value_size);
    int                 librdf_cache_delete                 (librdf_cache *cache,
                                                             void *key,
                                                             size_t key_size);
    void*               librdf_cache_get                    (librdf_cache *cache,
                                                             void *key,
                                                             size_t key_size,
                                                             size_t *value_size_p);
    int                 librdf_cache_set                    (librdf_cache *cache,
                                                             void *key,
                                                             size_t key_size,
                                                             void *value,
                                                             size_t value_size);
    int                 librdf_cache_size                   (librdf_cache *cache);
    enum                librdf_concepts_index;
    void                librdf_finish_raptor                (librdf_world *world);
    void                librdf_free_cache                   (librdf_cache *cache);
    void                librdf_init_raptor                  (librdf_world *world);
    void                librdf_log                          (librdf_world *world,
                                                             int code,
                                                             librdf_log_level level,
                                                             librdf_log_facility facility,
                                                             void *locator,
                                                             const char *message,
                                                             ...);
    void                librdf_log_simple                   (librdf_world *world,
                                                             int code,
                                                             librdf_log_level level,
                                                             librdf_log_facility facility,
                                                             void *locator,
                                                             const char *message);
    raptor_world*       librdf_world_get_raptor             (librdf_world *world);
    void                librdf_world_set_raptor             (librdf_world *world,
                                                             raptor_world *raptor_world_ptr);

## Description

Do not read this, it is not in the document.

## Details

### REDLAND_API

    #define             REDLAND_API

Internal.

REDLAND_API

### REDLAND_PRINTF_FORMAT()

    #define             REDLAND_PRINTF_FORMAT(string_index, first_to_check_index)

Internal. You should not be reading this.

string_index :

  string index

first_to_check_index :

  first to check index

REDLAND_PRINTF_FORMAT

### librdf_basename ()

    const char*         librdf_basename                     (const char *name);

Get the basename of a path

name :

  path

Returns :

  filename part of a pathname

librdf_basename

### librdf_new_cache ()

    librdf_cache*       librdf_new_cache                    (librdf_world *world,
                                                             int capacity,
                                                             int flush_percent,
                                                             int flags);

Constructor - create a new librdf_cache object

A new cache is constructed from the parameters.

If capacity is 0, the cache is not limited in size; no cache ejection will be done.

If flush_percent is out of the range 1-100, it is set to a default value. if set to 100, it means all objects will be removed when the cache is full.

world :

  redland world object

capacity :

  cache maximum number of objects

flush_percent :

  percentage (1-100) to remove when cache is full

flags :

  cache flags - none defined at present

Returns :

  a new librdf_cache object or NULL on failure

librdf_new_cache

### librdf_cache

    typedef struct librdf_cache_s librdf_cache;

Cache object

librdf_cache

### librdf_cache_add ()

    int                 librdf_cache_add                    (librdf_cache *cache,
                                                             void *key,
                                                             size_t key_size,
                                                             void *value,
                                                             size_t value_size);

Store an item to the cache with given key and value

Fails if any value exists for the key

cache :

  redland cache object

key :

  key data

key_size :

  key data size

value :

  value data

value_size :

  value data size

Returns :

  non-0 on failure

librdf_cache_add

### librdf_cache_delete ()

    int                 librdf_cache_delete                 (librdf_cache *cache,
                                                             void *key,
                                                             size_t key_size);

Delete an item from the cache with given key

cache :

  redland cache object

key :

  key data

key_size :

  key data size

Returns :

  non-0 on failure

librdf_cache_delete

### librdf_cache_get ()

    void*               librdf_cache_get                    (librdf_cache *cache,
                                                             void *key,
                                                             size_t key_size,
                                                             size_t *value_size_p);

Get an item from the cache with given key

cache :

  redland cache object

key :

  key data

key_size :

  key data size

value_size_p :

  pointer to store value size or NULL

Returns :

  value pointer on success or NULL or failure/not found

librdf_cache_get

### librdf_cache_set ()

    int                 librdf_cache_set                    (librdf_cache *cache,
                                                             void *key,
                                                             size_t key_size,
                                                             void *value,
                                                             size_t value_size);

Store an item to the cache with given key and value

Overwrites any existing value and returns it.

cache :

  redland cache object

key :

  key data

key_size :

  key data size

value :

  value data

value_size :

  value data size

Returns :

  non-0 on failure

librdf_cache_set

### librdf_cache_size ()

    int                 librdf_cache_size                   (librdf_cache *cache);

Get size of cache

cache :

  redland cache object

Returns :

  cache size

librdf_cache_size

### enum librdf_concepts_index

    typedef enum {
      LIBRDF_CONCEPT_MS_Alt,
      LIBRDF_CONCEPT_MS_Bag,
      LIBRDF_CONCEPT_MS_Property,
      LIBRDF_CONCEPT_MS_Seq,
      LIBRDF_CONCEPT_MS_Statement,
      LIBRDF_CONCEPT_MS_object,
      LIBRDF_CONCEPT_MS_predicate,
      LIBRDF_CONCEPT_MS_subject,
      LIBRDF_CONCEPT_MS_type,
      LIBRDF_CONCEPT_MS_value,
      LIBRDF_CONCEPT_MS_li,

      LIBRDF_CONCEPT_MS_RDF,
      LIBRDF_CONCEPT_MS_Description,

      LIBRDF_CONCEPT_MS_aboutEach,
      LIBRDF_CONCEPT_MS_aboutEachPrefix,

      LIBRDF_CONCEPT_RS_nodeID,
      LIBRDF_CONCEPT_RS_List,
      LIBRDF_CONCEPT_RS_first,
      LIBRDF_CONCEPT_RS_rest,
      LIBRDF_CONCEPT_RS_nil,
      LIBRDF_CONCEPT_RS_XMLLiteral,

      /* RDF Schema concepts defined in prose at
       *   http://www.w3.org/TR/2000/CR-rdf-schema-20000327/
       * and in RDF Schema form at
       *   http://www.w3.org/2000/01/rdf-schema
       */
      LIBRDF_CONCEPT_S_Class,
      LIBRDF_CONCEPT_S_ConstraintProperty,
      LIBRDF_CONCEPT_S_ConstraintResource,
      LIBRDF_CONCEPT_S_Container,
      LIBRDF_CONCEPT_S_ContainerMembershipProperty,
      LIBRDF_CONCEPT_S_Literal,
      LIBRDF_CONCEPT_S_Resource,
      LIBRDF_CONCEPT_S_comment,
      LIBRDF_CONCEPT_S_domain,
      LIBRDF_CONCEPT_S_isDefinedBy,
      LIBRDF_CONCEPT_S_label,
      LIBRDF_CONCEPT_S_range,
      LIBRDF_CONCEPT_S_seeAlso,
      LIBRDF_CONCEPT_S_subClassOf,
      LIBRDF_CONCEPT_S_subPropertyOf,

      /* first entry from schema namespace */
      LIBRDF_CONCEPT_FIRST_S_ID = LIBRDF_CONCEPT_S_Class,

      LIBRDF_CONCEPT_LAST = LIBRDF_CONCEPT_S_subPropertyOf,
    } librdf_concepts_index;

Internal.

`LIBRDF_CONCEPT_MS_Alt`

  offset

`LIBRDF_CONCEPT_MS_Bag`

  offset

`LIBRDF_CONCEPT_MS_Property`

  offset

`LIBRDF_CONCEPT_MS_Seq`

  offset

`LIBRDF_CONCEPT_MS_Statement`

  offset

`LIBRDF_CONCEPT_MS_object`

  offset

`LIBRDF_CONCEPT_MS_predicate`

  offset

`LIBRDF_CONCEPT_MS_subject`

  offset

`LIBRDF_CONCEPT_MS_type`

  offset

`LIBRDF_CONCEPT_MS_value`

  offset

`LIBRDF_CONCEPT_MS_li`

  offset

`LIBRDF_CONCEPT_MS_RDF`

  offset

`LIBRDF_CONCEPT_MS_Description`

  offset

`LIBRDF_CONCEPT_MS_aboutEach`

  offset

`LIBRDF_CONCEPT_MS_aboutEachPrefix`

  offset

`LIBRDF_CONCEPT_RS_nodeID`

  offset

`LIBRDF_CONCEPT_RS_List`

  offset

`LIBRDF_CONCEPT_RS_first`

  offset

`LIBRDF_CONCEPT_RS_rest`

  offset

`LIBRDF_CONCEPT_RS_nil`

  offset

`LIBRDF_CONCEPT_RS_XMLLiteral`

  offset

`LIBRDF_CONCEPT_S_Class`

  offset

`LIBRDF_CONCEPT_S_ConstraintProperty`

  offset

`LIBRDF_CONCEPT_S_ConstraintResource`

  offset

`LIBRDF_CONCEPT_S_Container`

  offset

`LIBRDF_CONCEPT_S_ContainerMembershipProperty`

  offset

`LIBRDF_CONCEPT_S_Literal`

  offset

`LIBRDF_CONCEPT_S_Resource`

  offset

`LIBRDF_CONCEPT_S_comment`

  offset

`LIBRDF_CONCEPT_S_domain`

  offset

`LIBRDF_CONCEPT_S_isDefinedBy`

  offset

`LIBRDF_CONCEPT_S_label`

  offset

`LIBRDF_CONCEPT_S_range`

  offset

`LIBRDF_CONCEPT_S_seeAlso`

  offset

`LIBRDF_CONCEPT_S_subClassOf`

  offset

`LIBRDF_CONCEPT_S_subPropertyOf`

  offset

`LIBRDF_CONCEPT_FIRST_S_ID`

  offset

`LIBRDF_CONCEPT_LAST`

  offset

librdf_concepts_index

### librdf_finish_raptor ()

    void                librdf_finish_raptor                (librdf_world *world);

INTERNAL - Terminate the raptor library.

Frees the raptor library resources unless a raptor instance was provided externally via `librdf_world_set_raptor()` (and using raptor v2 APIs) prior to `librdf_init_raptor()`.

world :

  librdf_world object

librdf_finish_raptor

### librdf_free_cache ()

    void                librdf_free_cache                   (librdf_cache *cache);

Destructor - destroy a librdf_cache object.

cache :

  librdf_cache object

librdf_free_cache

### librdf_init_raptor ()

    void                librdf_init_raptor                  (librdf_world *world);

INTERNAL - Initialize the raptor library.

Initializes the raptor library unless a raptor instance is provided externally with `librdf_world_set_raptor()` (and using raptor v2 APIs). Sets raptor uri handlers to work with librdf_uri objects.

world :

  librdf_world object

librdf_init_raptor

### librdf_log ()

    void                librdf_log                          (librdf_world *world,
                                                             int code,
                                                             librdf_log_level level,
                                                             librdf_log_facility facility,
                                                             void *locator,
                                                             const char *message,
                                                             ...);

Log a message.

If world is NULL, the error ocurred in redland startup before the world was created.

world :

  redland world object or NULL

code :

  error code

level :

  librdf_log_level log level

facility :

  librdf_log_facility log facility

locator :

  raptor_locator if available or NULL

message :

  message to record

... :

  message parameters

librdf_log

### librdf_log_simple ()

    void                librdf_log_simple                   (librdf_world *world,
                                                             int code,
                                                             librdf_log_level level,
                                                             librdf_log_facility facility,
                                                             void *locator,
                                                             const char *message);

Log a message.

If world is NULL, the error ocurred in redland startup before the world was created.

world :

  redland world object or NULL

code :

  error code

level :

  librdf_log_level log level

facility :

  librdf_log_facility log facility

locator :

  raptor_locator if available or NULL

message :

  message to record

librdf_log_simple

### librdf_world_get_raptor ()

    raptor_world*       librdf_world_get_raptor             (librdf_world *world);

Get the raptor_world instance used by this librdf_world.

world :

  librdf_world object

Returns :

  raptor_world object or NULL on failure (e.g. not initialized)

librdf_world_get_raptor

### librdf_world_set_raptor ()

    void                librdf_world_set_raptor             (librdf_world *world,
                                                             raptor_world *raptor_world_ptr);

Set the raptor_world instance to be used with this librdf_world.

If no raptor_world instance is set with this function, `librdf_world_open()` creates a new instance.

Ownership of the raptor_world is not taken. If the raptor library instance is set with this function, `librdf_free_world()` will not free it.

world :

  librdf_world object

raptor_world_ptr :

  raptor_world object

librdf_world_set_raptor