From 25a0c50bb95f9523e700a2ca91b6b4a61c8243c5 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 27 May 2018 15:48:25 +0200 Subject: WIP: Add validation --- serd/serd.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'serd') diff --git a/serd/serd.h b/serd/serd.h index 6d95ad22..0b798abc 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -109,7 +109,8 @@ typedef enum { SERD_ERR_ID_CLASH, ///< Encountered clashing blank node IDs SERD_ERR_BAD_CURIE, ///< Invalid CURIE (e.g. prefix does not exist) SERD_ERR_INTERNAL, ///< Unexpected internal error (should not happen) - SERD_ERR_OVERFLOW ///< Stack overflow + SERD_ERR_OVERFLOW, ///< Stack overflow + SERD_ERR_INVALID ///< Invalid data } SerdStatus; /// RDF syntax type @@ -1485,6 +1486,10 @@ SERD_API SerdStatus serd_model_erase_range(SerdModel* model, SerdRange* range); +SERD_API +SerdStatus +serd_validate(const SerdModel* model); + /** @} @name Inserter -- cgit v1.2.1