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

Data Structures

struct  NQParserState
 Parser state. More...

Functions

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

Detailed Description

Function Documentation

◆ nq_parse_doc()

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

Parse an RDF document in NQuads 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 to add to. It 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 1757 of file parser_nq.c.