Package Exports
- sparql-http-client
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sparql-http-client) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
sparql-http-client
Simplified SPARQL HTTP request client
Usage
var request = require('request')
var SparqlHttp = require('sparql-http-client')
// use the request module for all requests
SparqlHttp.request = SparqlHttp.requestModuleRequest(request)
// create an object instance for the endpoint
var endpoint = new SparqlHttp({endpointUrl: 'http://dbpedia.org/sparql'})
// do the SELECT query
endpoint.selectQuery('SELECT * WHERE {?s ?p ?o}', function (error, response) {
console.log(response.body)
})
See the examples folder for more complex examples.
Licence
MIT