Range

SerdRange *serd_range_copy(const SerdRange *range)

Return a new copy of range

void serd_range_free(SerdRange *range)

Free range

const SerdStatement *serd_range_front(const SerdRange *range)

Return the first statement in range, or NULL if range is empty.

bool serd_range_equals(const SerdRange *lhs, const SerdRange *rhs)

Return true iff lhs is equal to rhs

bool serd_range_next(SerdRange *range)

Increment the start of range to point to the next statement.

bool serd_range_empty(const SerdRange *range)

Return true iff there are no statements in range

const SerdIter *serd_range_cbegin(const SerdRange *range)

Return an iterator to the start of range

const SerdIter *serd_range_cend(const SerdRange *range)

Return an iterator to the end of range

SerdIter *serd_range_begin(SerdRange *range)

Return an iterator to the start of range

SerdIter *serd_range_end(SerdRange *range)

Return an iterator to the end of range

SerdStatus serd_write_range(const SerdRange *range, const SerdSink *sink, SerdSerialisationFlags flags)

Write range to sink

The serialisation style can be controlled with flags. The default is to write statements in an order suited for pretty-printing with Turtle or TriG with as many objects written inline as possible. If SERD_NO_INLINE_OBJECTS is given, a simple sorted stream is written instead, which is significantly faster since no searching is required, but can result in ugly output for Turtle or Trig.