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] | ds | Dataset handle to be populated. The dataset 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. |
- 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.