Skip to content

Commit

Permalink
Fix broken option --sparql-endpoint (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtich committed Nov 26, 2018
1 parent 64c21b4 commit 71918e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = (opt) => {
opt = opt || {}
opt.language = opt.language || opt.lang || 'en'
opt.property = opt.property || ['P279', 'P31']
opt.endpoint = opt.endpoint || 'https://query.wikidata.org/sparql'
opt.sparqlEndpoint = opt.sparqlEndpoint || 'https://query.wikidata.org/sparql'
opt.labels = opt.labels !== false

if (opt.instances) {
Expand Down
2 changes: 1 addition & 1 deletion lib/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var request = require('request-promise-native')

function queryViaRequest (sparql, env) {
var options = {
uri: env.endpoint,
uri: env.sparqlEndpoint,
method: env.post ? 'POST' : 'GET',
qs: { // query string
format: 'json',
Expand Down

0 comments on commit 71918e8

Please sign in to comment.