aboutsummaryrefslogtreecommitdiffstats
path: root/src/n3.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/n3.c')
-rw-r--r--src/n3.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/n3.c b/src/n3.c
index 8de01bd8..c1257976 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -958,7 +958,7 @@ read_anon(SerdReader* reader, ReadContext ctx, bool subject, SerdNode** dest)
*dest = blank_id(reader);
}
if (ctx.subject) {
- TRY_RET(emit_statement(reader, ctx, *dest, 0, 0));
+ TRY_RET(emit_statement(reader, ctx, *dest));
}
ctx.subject = *dest;
@@ -1060,7 +1060,7 @@ read_object(SerdReader* reader, ReadContext* ctx, bool emit, bool* ate_dot)
}
if (ret && emit && simple) {
- ret = emit_statement(reader, *ctx, o, datatype, lang);
+ ret = emit_statement(reader, *ctx, o);
} else if (ret && !emit) {
ctx->object = o;
ctx->datatype = datatype;
@@ -1149,7 +1149,7 @@ read_collection(SerdReader* reader, ReadContext ctx, SerdNode** dest)
if (ctx.subject) {
// subject predicate _:head
*ctx.flags |= (end ? 0 : SERD_LIST_O_BEGIN);
- TRY_RET(emit_statement(reader, ctx, *dest, 0, 0));
+ TRY_RET(emit_statement(reader, ctx, *dest));
*ctx.flags |= SERD_LIST_CONT;
} else {
*ctx.flags |= (end ? 0 : SERD_LIST_S_BEGIN);
@@ -1192,8 +1192,7 @@ read_collection(SerdReader* reader, ReadContext ctx, SerdNode** dest)
// _:node rdf:rest _:rest
*ctx.flags |= SERD_LIST_CONT;
ctx.predicate = reader->rdf_rest;
- TRY_RET(emit_statement(reader, ctx,
- (end ? reader->rdf_nil : rest), 0, 0));
+ TRY_RET(emit_statement(reader, ctx, (end ? reader->rdf_nil : rest)));
ctx.subject = rest; // _:node = _:rest
rest = node; // _:rest = (old)_:node
@@ -1524,7 +1523,7 @@ read_nquadsDoc(SerdReader* reader)
eat_byte_check(reader, '.');
}
- if (!emit_statement(reader, ctx, ctx.object, ctx.datatype, ctx.lang)) {
+ if (!emit_statement(reader, ctx, ctx.object)) {
break;
}