parser_ttl.h 654 B

1234567891011121314151617181920212223
  1. #ifndef _LSUP_TTL_PARSER_H
  2. #define _LSUP_TTL_PARSER_H
  3. #include "codec.h"
  4. /** @brief Parse a N-Triples document from a file handle.
  5. *
  6. * @param[in] doc N-Triples document.
  7. *
  8. * @param[out] Pointer to a graph handle to be created. The new graph will have
  9. * a random UUID URN.
  10. *
  11. * @param[out] ct If not NULL it is populated with the number of triples
  12. * parsed. This may be more than the triples in the resulting graph.
  13. *
  14. * @return LSUP_OK on success, LSUP_VALUE_ERR if a parsing error was
  15. * encountered. TODO Add line/char info for parsing error
  16. */
  17. LSUP_rc
  18. LSUP_ttl_parse_doc (FILE *stream, LSUP_Graph **gr, size_t *ct, char **err);
  19. #endif