|
Volksdata 1.0b7
RDF library
|
#include "volksdata/codec/parser_nt.h"#include "volksdata/codec/tokens_nt.h"#include "volksdata/codec.h"
Go to the source code of this file.
Data Structures | |
| struct | ParseIterator |
Macros | |
| #define | _VOLK_PARSER_COMMON_H |
| #define | YYCTYPE uint8_t |
| TTL is UTF-8 encoded. | |
| #define | YYCURSOR it->cur |
| #define | YYMARKER it->mar |
| #define | YYLIMIT it->lim |
| #define | YYFILL fill(it) == 0 |
Functions | |
| void * | NTParseAlloc () |
| void | NTParse () |
| void | NTParseFree () |
| VOLK_rc | VOLK_nt_parse_term (const char *rep, VOLK_Term **term) |
| Parse a single term. | |
| VOLK_rc | VOLK_nt_parse_doc (FILE *fh, const char *sh, VOLK_Graph **gr_p, size_t *ct, char **err_p) |
| Parse an RDF document in N-Triples format. | |
| #define _VOLK_PARSER_COMMON_H |
Definition at line 8 of file parser_nt.c.
| #define YYCTYPE uint8_t |
TTL is UTF-8 encoded.
char should be considered to be UTF-8 throughout this library, however, setting YYCTYPE to char generates case labels outside of the char range.
Definition at line 20 of file parser_nt.c.
| #define YYCURSOR it->cur |
Definition at line 21 of file parser_nt.c.
| #define YYMARKER it->mar |
Definition at line 22 of file parser_nt.c.
| #define YYLIMIT it->lim |
Definition at line 23 of file parser_nt.c.
| #define YYFILL fill(it) == 0 |
Definition at line 24 of file parser_nt.c.
| void * NTParseAlloc | ( | ) |
| void NTParse | ( | ) |
| void NTParseFree | ( | ) |
Parse a single term.
| [in] | rep | N-Triples representation as a character string. |
| [out] | term | Term to be created from the string. |
Definition at line 1749 of file parser_nt.c.
| VOLK_rc VOLK_nt_parse_doc | ( | FILE * | fh, |
| const char * | sh, | ||
| VOLK_Graph ** | gr, | ||
| size_t * | ct, | ||
| char ** | err ) |
Parse an RDF document in N-Triples format.
Either an open file handle or an in-memory string can be passed for parsing.
| [in] | fh | N-Triples doc file handle. Exclusive with sh. |
| [in] | sh | N-Triples doc string handle. Exclusive with fh. |
| [out] | gr | Pointer to a graph handle to be created. The new graph will have a random UUID URN. |
| [out] | ct | If not NULL it is populated with the number of triples parsed. This may be more than the triples in the resulting graph. |
| [out] | err | String handle to be populated with an error message. |
Definition at line 1769 of file parser_nt.c.