Volksdata 1.0b7
RDF library
Loading...
Searching...
No Matches
namespace.h File Reference
#include "hashmap.h"
#include "volksdata/core.h"
Include dependency graph for namespace.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  NSEntry
 Prefix / Namespace pair. More...

Macros

#define PFX_LEN   8
 Namespace prefix length, including terminator.

Typedefs

typedef char VOLK_ns_pfx[PFX_LEN]
 Namespace prefix type.

Functions

VOLK_rc VOLK_nsmap_add (const char *pfx, const char *nsstr)
 Add a prefix -> namespace pair to the map or update it.
VOLK_rc VOLK_nsmap_remove (const char *pfx)
 Remove a prefix -> namespace pair from a map.
const char * VOLK_nsmap_get_ns (const char *pfx)
 Get the namespace for a prefix.
const char * VOLK_nsmap_get_pfx (const char *ns)
 Get the prefix for a namespace.
VOLK_rc VOLK_nsmap_normalize_uri (const char *pfx_uri, char **fq_uri)
 Convert a namespace-prefixed string to a FQ URI sring if mapped.
VOLK_rc VOLK_nsmap_denormalize_uri (const char *fq_uri, char **pfx_uri)
 Convert a FQ URI string to a prefixed string if the prefix is found.
const char *** VOLK_nsmap_dump (void)
 Dump all entries of the namespace map.

Variables

struct hashmap * VOLK_default_nsm
 Default namespace prefix map.