Added check whether N3 datafactory can be passed as option where Rdf DataFactory is expected

This commit is contained in:
Laurens Rietveld
2018-10-21 20:57:13 +02:00
parent 609a349d88
commit 7a4950008e
+1 -1
View File
@@ -76,7 +76,7 @@ function test_doc_rdf_to_triples_2() {
}
function test_doc_rdf_stream_to_triples_1() {
const parser: N3.N3Parser = new N3.Parser();
const parser: N3.N3Parser = new N3.Parser({factory: N3.DataFactory});
parser.parse('abc', console.log);
const streamParser: N3.N3StreamParser = N3.StreamParser();