Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
TurtleDatasource.prototype._getAllTriples = function (addTriple, done) {
var document = this._fetch({ url: this._url, headers: { accept: ACCEPT } }, done);
N3Parser._resetBlankNodeIds();
new N3Parser().parse(document, function (error, triple) {
triple ? addTriple(triple) : done(error);
});
};
resetBlankNodeIds: function() {
N3Parser._resetBlankNodeIds();
}
TrigDatasource.prototype._getAllQuads = function (addQuad, done) {
var document = this._fetch({ url: this._url, headers: { accept: ACCEPT } }, done);
N3Parser._resetBlankNodeIds();
new N3Parser().parse(document, function (error, quad) {
quad ? addQuad(quad) : done(error);
});
};
resetBlankNodeIds: function() {
N3Parser._resetBlankNodeIds();
}