diff options
Diffstat (limited to 'serd/serd.h')
-rw-r--r-- | serd/serd.h | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/serd/serd.h b/serd/serd.h index 26630614..d108e120 100644 --- a/serd/serd.h +++ b/serd/serd.h @@ -62,6 +62,13 @@ extern "C" { typedef struct SerdWorldImpl SerdWorld; /** + Statement. + + A subject, predicate, and object, with optional graph context. +*/ +typedef struct SerdStatementImpl SerdStatement; + +/** Environment. Represents the state required to resolve a CURIE or relative URI, e.g. the @@ -1150,6 +1157,47 @@ serd_writer_finish(SerdWriter* writer); /** @} + @name Statement + @{ +*/ + +/** + Return the given node in `statement`. +*/ +SERD_API +const SerdNode* +serd_statement_get_node(const SerdStatement* statement, SerdField field); + +/** + Return the subject in `statement`. +*/ +SERD_API +const SerdNode* +serd_statement_get_subject(const SerdStatement* statement); + +/** + Return the predicate in `statement`. +*/ +SERD_API +const SerdNode* +serd_statement_get_predicate(const SerdStatement* statement); + +/** + Return the object in `statement`. +*/ +SERD_API +const SerdNode* +serd_statement_get_object(const SerdStatement* statement); + +/** + Return the graph in `statement`. +*/ +SERD_API +const SerdNode* +serd_statement_get_graph(const SerdStatement* statement); + +/** + @} @} */ |