Prefixes

## Prefixes Prefixes — XML QName-style prefixes made from a URI and a short text prefix. |

## Functions

rasqal_prefix * | rasqal_new_prefix ()
void | rasqal_free_prefix ()
int | rasqal_prefix_print ()

## Types and Values

| rasqal_prefix

## Description

Used inside a rasqal_query to declare syntax prefix abbreviations for URIs. Once a rasqal_query is constructed, these are for information only.

## Functions

### rasqal_new_prefix ()

    rasqal_prefix *
    rasqal_new_prefix (rasqal_world *world,
                       const unsigned char *prefix,
                       raptor_uri *uri);

#### Returns

### rasqal_free_prefix ()

    void
    rasqal_free_prefix (rasqal_prefix *p);

### rasqal_prefix_print ()

    int
    rasqal_prefix_print (rasqal_prefix *p,
                         FILE *fh);

#### Returns

## Types and Values

### rasqal_prefix

    typedef struct {
      rasqal_world* world;
      const char * prefix;
      raptor_uri* uri;
      int declared;
      int depth;
    } rasqal_prefix;

Namespace (prefix, uri) pair.

Includes internal flags used for marking when prefixes are declared and at what XML element depth when used in XML formats.

#### Members

rasqal_world *`world`; | rasqal_world object |
const char *`prefix`; | short prefix string |
raptor_uri *`uri`; | URI associated with the prefix. |
int `declared`; | Internal flag. |
int `depth`; | Internal flag. |