diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/serd/serd.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/serd/serd.h b/include/serd/serd.h index c2077f5c..21f6b7b1 100644 --- a/include/serd/serd.h +++ b/include/serd/serd.h @@ -191,6 +191,14 @@ typedef enum { /// Bitwise OR of SerdNodeFlag values typedef uint32_t SerdNodeFlags; +/// Index of a node in a statement +typedef enum { + SERD_SUBJECT = 0, ///< Subject + SERD_PREDICATE = 1, ///< Predicate ("key") + SERD_OBJECT = 2, ///< Object ("value") + SERD_GRAPH = 3 ///< Graph ("context") +} SerdField; + /// A syntactic RDF node typedef struct SerdNodeImpl SerdNode; |