Volksdata 1.0b10
RDF library
Loading...
Searching...
No Matches
Collaboration diagram for TriG codec parser:

Data Structures

struct  VOLK_TrigParserState
 Parser state. More...

Functions

VOLK_rc VOLK_trig_parse_doc (FILE *fh, const char *sh, VOLK_Dataset *ds, void *txn)
 Parse an RDF document in TriG format.

Detailed Description

Function Documentation

◆ VOLK_trig_parse_doc()

VOLK_rc VOLK_trig_parse_doc ( FILE * fh,
const char * sh,
VOLK_Dataset * ds,
void * txn )

Parse an RDF document in TriG format.

Either an open file handle or an in-memory string can be passed for parsing.

Parameters
[in]fhInput file handle. Mutually exclusive with sh.
[in]shInput string handle. Mutually exclusive with fh.
[in]dsDataset handle to be populated. The dataset MUST be initialized and MAY be not empty.
[in]txnTransaction 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.
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 4895 of file parser_trig.c.