summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/syntax.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/syntax.c b/src/syntax.c
index 93e1331..ac87ad4 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -181,6 +181,18 @@ sord_write(SordModel* model,
{
SordQuad pat = { 0, 0, 0, graph };
SordIter* iter = sord_find(model, pat);
+ return sord_write_iter(iter, writer);
+}
+
+bool
+sord_write_iter(SordIter* iter,
+ SerdWriter* writer)
+{
+ if (!iter) {
+ return false;
+ }
+
+ SordModel* model = (SordModel*)sord_iter_get_model(iter);
for (; !sord_iter_end(iter); sord_iter_next(iter)) {
SordQuad tup;
sord_iter_get(iter, tup);