Build : 20160302
Test name : nodejs-sparql.js
Code :
it('should run SPARQL DESCRIBE query return empty', function (done) {
this.timeout(10000);
var myQuery = "describe http://people.org/person1133423";
db.graphs.sparql({
contentType: 'application/json',
query: myQuery
}).
result(function (response) {
response.results.bindings.length.should.equal(0);
done();
});
});
Error :
{ errorResponse:
{ statusCode: 406,
status: 'Unacceptable Type',
messageCode: 'REST-UNACCEPTABLETYPE',
message: 'REST-UNACCEPTABLETYPE: (err:FOER0000) No acceptable content type: None of the requested types application/json can be provided'
} } }