antoniogarrote / rdfstore-js

JS RDF store with SPARQL support
MIT License
564 stars 109 forks source link

Make it possible to load data from remote sparql endpoints via construct queries #20

Open thomasfr opened 12 years ago

thomasfr commented 12 years ago

So when you do:

rdfstore.create(function(store) {
  store.load('sparql', {
    endpoint: 'http://dbpedia.org/sparql',
    accept: 'text/rdf+n3',
    query : 'CONSTRUCT {<http://dbpedia.org/resource/Resource_Description_Framework> ?p ?o . } WHERE {<http://dbpedia.org/resource/Resource_Description_Framework> ?p ?o } LIMIT 100'
  }, function(success, results) {
  }
});

The contents gets loaded into the given graph

sibinthomas commented 11 years ago

Is this feature provided as of today?

hhkulkarni commented 11 years ago

Currently above code doesnt seem to work.. It seems to fail with - "Cannot read property 'async' of undefined" error. Is there some other way to load data from remote sparql endpoints into the store?

margipat commented 10 years ago

Yes, I am facing the same error as mentioned above - "Cannot read property 'async' of undefined" error." Would have been great if this was working!