aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/serd/statement.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/serd/statement.h b/include/serd/statement.h
index 321aace4..33911c41 100644
--- a/include/serd/statement.h
+++ b/include/serd/statement.h
@@ -16,6 +16,14 @@ SERD_BEGIN_DECLS
@{
*/
+/// Index of a node in a statement
+typedef enum {
+ SERD_SUBJECT = 0U, ///< Subject
+ SERD_PREDICATE = 1U, ///< Predicate ("key")
+ SERD_OBJECT = 2U, ///< Object ("value")
+ SERD_GRAPH = 3U, ///< Graph ("context")
+} SerdField;
+
/// Flags indicating inline abbreviation information for a statement
typedef enum {
SERD_EMPTY_S = 1U << 1U, ///< Empty blank node subject