Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.fetchBindingsStream(endpoint, query, context).then((responseStream) => {
const rawBindingsStream = new SparqlJsonParser({ prefixVariableQuestionMark: true })
.parseJsonResultsStream(responseStream);
responseStream.on('error', (error) => rawBindingsStream.emit('error', error));
rawBindingsStream.on('error', (error) => bindingsStream.emit('error', error));
rawBindingsStream.on('data', (rawBindings) => bindingsStream._push(Bindings(rawBindings)));
rawBindingsStream.on('end', () => {
bindingsStream.close();
});
superRead(count, done);
});
} else {
constructor(settings?: IConverterSettings) {
settings = settings || { delimiter: '_' };
settings.prefixVariableQuestionMark = false;
this.delimiter = settings.delimiter || '_';
this.parser = new SparqlJsonParser(settings);
this.materializeRdfJsTerms = settings.materializeRdfJsTerms;
}