Socket
Socket
Sign inDemoInstall

jsparql

Package Overview
Dependencies
1
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    jsparql

Sparql client for node.js


Version published
Weekly downloads
1
Maintainers
1
Install size
14.0 kB
Created
Weekly downloads
 

Readme

Source

jsparql

Sparql client for node.js

Usage

Define graph on client creation:
var sparql = require('jsparql');

var client = new sparql('http://dbpedia.org/sparql', 'http://dbpedia.org');

client.query('select distinct ?Concept where {[] a ?Concept} LIMIT 100', function (err, results) {
  if (err) throw err;
  console.log(JSON.stringify(results));
});
Define graph on each query:
var sparql = require('jsparql');

var client = new sparql('http://dbpedia.org/sparql');

client.query({
  graph:'http://dbpedia.org',
  query: 'select distinct ?Concept where {[] a ?Concept} LIMIT 100'
}, function (err, results) {
  if (err) throw err;
  console.log(JSON.stringify(results));
});

Keywords

FAQs

Last updated on 15 Oct 2015

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc