N3: Added missing option for writer (#29786)

This commit is contained in:
Laurens Rietveld
2018-10-16 09:30:07 -07:00
committed by Sheetal Nandi
parent 8d90941b74
commit 6b25326d51
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -140,6 +140,7 @@ export interface N3StreamParser extends RDF.Stream, NodeJS.WritableStream, RDF.S
export interface WriterOptions {
format?: string;
prefixes?: Prefixes;
end?: boolean;
}
export interface WriterConstructor {
+1 -1
View File
@@ -113,7 +113,7 @@ function test_doc_from_triples_to_string() {
}
function test_doc_from_triples_to_rdf_stream() {
const writer: N3.N3Writer = new N3.Writer(process.stdout, { prefixes: { c: N3.DataFactory.namedNode('http://example.org/cartoons#') } });
const writer: N3.N3Writer = new N3.Writer(process.stdout, { end: false, prefixes: { c: N3.DataFactory.namedNode('http://example.org/cartoons#') } });
writer.addQuad(N3.DataFactory.quad(
N3.DataFactory.namedNode('http://example.org/cartoons#Tom'),
N3.DataFactory.namedNode('http://www.w3.org/1999/02/22-rdf-syntax-ns#type'),