diff options
Diffstat (limited to 'src/n3.c')
-rw-r--r-- | src/n3.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -962,7 +962,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; @@ -1064,7 +1064,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; @@ -1153,7 +1153,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); @@ -1196,8 +1196,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 @@ -1531,7 +1530,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; } |