Volksdata 1.0b7
RDF library
Loading...
Searching...
No Matches
parser_ttl.h File Reference
Include dependency graph for parser_ttl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  VOLK_TTLParserState
 Parser state. More...

Functions

VOLK_rc ttl_parse_doc (FILE *fh, const char *sh, VOLK_Graph *gr, size_t *ct, char **err)
 Parse an RDF document in Turtle format.

Function Documentation

◆ ttl_parse_doc()

VOLK_rc ttl_parse_doc ( FILE * fh,
const char * sh,
VOLK_Graph * gr,
size_t * ct,
char ** err )

Parse an RDF document in Turtle format.

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

Parameters
[in]fhTurtle doc file handle. Exclusive with sh.
[in]shTurtle doc string handle. Exclusive with fh.
[out]grGraph handle to be populated. The graph MUST be initialized and MAY be not empty.
[out]ctIf not NULL it is populated with the number of triples parsed. This may be more than the triples in the resulting graph.
[out]errString 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 4593 of file parser_ttl.c.