Go to the source code of this file.
◆ VOLK_PARSER_COMMON_H
| #define VOLK_PARSER_COMMON_H |
◆ YYCTYPE
◆ YYCURSOR
◆ YYMARKER
◆ YYLIMIT
◆ YYFILL
| #define YYFILL fill(it) == 0 |
◆ NTParseAlloc()
◆ NTParse()
◆ NTParseFree()
◆ nt_parse_term()
Parse a single term.
- Parameters
-
- Returns
- VOLK_OK on success, VOLK_VALUE_ERR if the string is not valid N-Triples syntax for a IRI ref, Literal or BNode.
Definition at line 1754 of file parser_nt.c.
◆ nt_parse_doc()
| VOLK_rc 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.
- Parameters
-
| [in] | fh | N-Triples doc file handle. Exclusive with sh. |
| [in] | sh | N-Triples doc string handle. Exclusive with fh. |
| [out] | gr | Graph handle to be populated. The graph MUST be initialized and MAY be not empty. |
| [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. |
- 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 1774 of file parser_nt.c.