|
LMMS
|
#include <stdarg.h>#include <stddef.h>#include <stdint.h>#include <stdio.h>#include <stdbool.h>Go to the source code of this file.
Classes | |
| struct | SerdNode |
| A syntactic RDF node. More... | |
| struct | SerdChunk |
| An unterminated string fragment. More... | |
| struct | SerdError |
| An error description. More... | |
| struct | SerdURI |
Macros | |
| #define | SERD_API |
Typedefs | |
| typedef struct SerdEnvImpl | SerdEnv |
| typedef struct SerdReaderImpl | SerdReader |
| typedef struct SerdWriterImpl | SerdWriter |
| typedef uint32_t | SerdStatementFlags |
| typedef uint32_t | SerdNodeFlags |
Event Handlers | |
| typedef SerdStatus(* | SerdErrorSink) (void *handle, const SerdError *error) |
| typedef SerdStatus(* | SerdBaseSink) (void *handle, const SerdNode *uri) |
| typedef SerdStatus(* | SerdPrefixSink) (void *handle, const SerdNode *name, const SerdNode *uri) |
| typedef SerdStatus(* | SerdStatementSink) (void *handle, SerdStatementFlags flags, const SerdNode *graph, const SerdNode *subject, const SerdNode *predicate, const SerdNode *object, const SerdNode *object_datatype, const SerdNode *object_lang) |
| typedef SerdStatus(* | SerdEndSink) (void *handle, const SerdNode *node) |
Enumerations | |
| enum | SerdStatus { SERD_SUCCESS , SERD_FAILURE , SERD_ERR_UNKNOWN , SERD_ERR_BAD_SYNTAX , SERD_ERR_BAD_ARG , SERD_ERR_NOT_FOUND , SERD_ERR_ID_CLASH , SERD_ERR_BAD_CURIE , SERD_ERR_INTERNAL } |
| enum | SerdSyntax { SERD_TURTLE = 1 , SERD_NTRIPLES = 2 } |
| enum | SerdStatementFlag { SERD_EMPTY_S = 1 << 1 , SERD_EMPTY_O = 1 << 2 , SERD_ANON_S_BEGIN = 1 << 3 , SERD_ANON_O_BEGIN = 1 << 4 , SERD_ANON_CONT = 1 << 5 , SERD_LIST_S_BEGIN = 1 << 6 , SERD_LIST_O_BEGIN = 1 << 7 , SERD_LIST_CONT = 1 << 8 } |
| enum | SerdType { SERD_NOTHING = 0 , SERD_LITERAL = 1 , SERD_URI = 2 , SERD_CURIE = 3 , SERD_BLANK = 4 } |
| enum | SerdNodeFlag { SERD_HAS_NEWLINE = 1 , SERD_HAS_QUOTE = 1 << 1 } |
| enum | SerdStyle { SERD_STYLE_ABBREVIATED = 1 , SERD_STYLE_ASCII = 1 << 1 , SERD_STYLE_RESOLVED = 1 << 2 , SERD_STYLE_CURIED = 1 << 3 , SERD_STYLE_BULK = 1 << 4 } |
URI | |
| typedef size_t(* | SerdSink) (const void *buf, size_t len, void *stream) |
| static const SerdURI | SERD_URI_NULL |
| SERD_API const uint8_t * | serd_uri_to_path (const uint8_t *uri) |
| SERD_API uint8_t * | serd_file_uri_parse (const uint8_t *uri, uint8_t **hostname) |
| SERD_API bool | serd_uri_string_has_scheme (const uint8_t *utf8) |
| SERD_API SerdStatus | serd_uri_parse (const uint8_t *utf8, SerdURI *out) |
| SERD_API void | serd_uri_resolve (const SerdURI *uri, const SerdURI *base, SerdURI *out) |
| See http://tools.ietf.org/html/rfc3986#section-5.2.2. | |
| SERD_API size_t | serd_uri_serialise (const SerdURI *uri, SerdSink sink, void *stream) |
| See http://tools.ietf.org/html/rfc3986#section-5.3. | |
| SERD_API size_t | serd_uri_serialise_relative (const SerdURI *uri, const SerdURI *base, const SerdURI *root, SerdSink sink, void *stream) |
| See http://tools.ietf.org/html/rfc3986#section-5.3. | |
API for Serd, a lightweight RDF syntax library.
| #define SERD_API |