Skip to content

Conversation

@MieszkoWrzeszczynski
Copy link

From my point of view the require module name in readme should looks like that:
var SparqlClient = require('sparql-client-2');
instead of
var SparqlClient = require('sparql-client');

On npm you call this package as sparql-client-2 and cmd to install is:
npm install sparql-client-2

So, if somebody will execute npm install sparql-client-2 the require name also must be sparql-client-2.

eddieantonio and others added 30 commits April 24, 2016 11:13
Allow Sparql endpoint to return no body.
So now you can do things like

```js
const client =
          new SparqlClient(ENV.sparqlURL, {defaultParameters: {format: 'json'}})
          .register({
              'voaf': 'http://purl.org/vocommons/voaf#',
              'dct': 'http://purl.org/dc/terms/',
              'vann': 'http://purl.org/vocab/vann/',
              'skos': 'http://www.w3.org/2004/02/skos/core#'
          });
```

for things like Blazegraph, which expect 'json' as the format (for some reason). Also overriding the user-agent etc could be useful.
Allow override of request defaults and params
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants