mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 15:00:26 +00:00
N3: Added missing option for writer (#29786)
This commit is contained in:
committed by
Sheetal Nandi
parent
8d90941b74
commit
6b25326d51
Vendored
+1
@@ -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 {
|
||||
|
||||
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user