Go to the source code of this file.
◆ VOLK_PARSER_COMMON_H
| #define VOLK_PARSER_COMMON_H |
◆ YYCTYPE
◆ YYCURSOR
◆ YYFILL
| #define YYFILL fill(it) == 0 |
◆ YYLIMIT
◆ YYMARKER
◆ TrigParse()
◆ TrigParseAlloc()
| void * TrigParseAlloc |
( |
| ) |
|
◆ TrigParseFree()
◆ VOLK_trig_parse_doc()
| VOLK_rc VOLK_trig_parse_doc |
( |
FILE * | fh, |
|
|
const char * | sh, |
|
|
VOLK_Store * | store, |
|
|
void * | txn, |
|
|
size_t * | ct, |
|
|
char ** | err ) |
Parse an RDF document in TriG format.
Either an open file handle or an in-memory string can be passed for parsing.
- Parameters
-
| [in] | fh | Input file handle. Mutually exclusive with sh. |
| [in] | sh | Input string handle. Mutually exclusive with fh. |
| [in] | Backend store module | Store handle to be populated. The store MUST be initialized and MAY be not empty. |
| [in] | txn | Transaction to wrap the operation in. If not NULL, the caller is responsible for committing or aborting the passed transaction. Otherwise, the function will begin and commit (or abort on error) a new transaction. |
| [out] | ct | If not NULL it is populated with the number of triples parsed. This may be more than the triples in the resulting dataset. |
| [out] | err | String handle to be populated with an error message. |
- Returns
- VOLK_OK on success, VOLK_VALUE_ERR if a parsing error was encountered. On error, err will contain the error message.
Definition at line 4894 of file parser_trig.c.