Skip to content

Commit 0676710

Browse files
committed
Use latest N3.js.
1 parent 93a4698 commit 0676710

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/datasources/SparqlDatasource.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,12 @@ SparqlDatasource.prototype._executeQuery = function (query, tripleStream, metada
4141
// Virtuoso sometimes sends invalid Turtle, so try N-Triples.
4242
// We don't just accept N-Triples right away because it is slower,
4343
// and some Virtuoso versions don't support it and/or get conneg wrong.
44-
else if (/Syntax error/.test(error.message)) {
44+
else {
4545
request.headers.accept = 'application/n-triples';
4646
return (new N3.Parser()).parse(self._request(request, emitError), function (error, triple) {
4747
error ? emitError(new Error(INVALID_TURTLE_RESPONSE)) : tripleStream.push(triple || null);
4848
});
4949
}
50-
else emitError(error);
5150
});
5251

5352
// Determine the total number of matching triples

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"lodash": "^2.4.2",
2727
"lru-cache": "^4.0.1",
2828
"mime": "^1.3.4",
29-
"n3": "^0.6.0",
29+
"n3": "^0.7.0",
3030
"negotiate": "^1.0.1",
3131
"q": "^1.4.1",
3232
"qejs": "^3.0.5",

0 commit comments

Comments
 (0)