I am trying to query an local rdf file in turtle format with Sparql query which contains also Filter expression, but once I use the FILTER(?s=), an error with the message "[TypeError: Cannot read property 'map' of null] " is appeared.
This error seems to be connected with #133 , but even this fix, still it is not working.
The complete code is:
var rdfstore = require('rdfstore'), fs = require('fs');
rdfstore.create(function(err,store){
var rdf = fs.readFileSync('fileName.ttl').toString();
Hi,
I am trying to query an local rdf file in turtle format with Sparql query which contains also Filter expression, but once I use the FILTER(?s=), an error with the message "[TypeError: Cannot read property 'map' of null] " is appeared.
This error seems to be connected with #133 , but even this fix, still it is not working.
The complete code is:
var rdfstore = require('rdfstore'), fs = require('fs');
rdfstore.create(function(err,store){ var rdf = fs.readFileSync('fileName.ttl').toString();
store.load('text/turtle', rdf, function(s,d){
}); console.log(err); });