Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
result.quads.on('data', (quad) => readable.push(JSON.stringify(RdfString.quadToStringQuad(quad)) + '\n'));
result.quads.on('end', () => readable.push(null));
result.data.on('data', (quad) => readable.push(JSON.stringify(RdfString.quadToStringQuad(quad)) + '\n'));
result.data.on('end', () => readable.push(null));
result.quads.on('data', (quad) => readable.push(JSON.stringify(RdfString.quadToStringQuad(quad)) + '\n'));
result.quads.on('end', () => readable.push(null));
resultStream.on('data', (element) => {
data.push(empty ? '\n' : ',\n');
data.push(JSON.stringify(RdfString.quadToStringQuad(element)).trim());
empty = false;
});
resultStream.on('end', () => {