Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fetch-sparql-endpoint

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetch-sparql-endpoint - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

13

package.json
{
"name": "fetch-sparql-endpoint",
"version": "1.0.0",
"version": "1.1.0",
"description": "A simple, lightweight module to send queries to SPARQL endpoints and retrieve their results in a streaming fashion.",

@@ -44,5 +44,5 @@ "keywords": [

"node-web-streams": "^0.2.2",
"rdf-string": "^1.1.1",
"rdf-string": "^1.2.0",
"sparqljs": "^2.0.3",
"sparqljson-parse": "^1.1.0",
"sparqljson-parse": "^1.2.0",
"stream-to-string": "^1.1.0"

@@ -53,3 +53,2 @@ },

"@types/minimist": "^1.2.0",
"@types/rdf-data-model": "^1.0.1",
"@types/rdf-js": "^1.0.1",

@@ -62,3 +61,3 @@ "@types/sparqljs": "^1.5.0",

"pre-commit": "^1.2.2",
"rdf-data-model": "^1.0.0",
"@rdfjs/data-model": "^1.1.0",
"streamify-string": "^1.0.1",

@@ -83,4 +82,4 @@ "ts-jest": "^21.2.3",

"collectCoverage": true,
"mapCoverage": true,
"setupTestFrameworkScriptFile": "jest-rdf"
"setupTestFrameworkScriptFile": "jest-rdf",
"testEnvironment": "node"
},

@@ -87,0 +86,0 @@ "scripts": {

@@ -31,3 +31,3 @@ # Fetch SPARQL Endpoint

```js
import {fetch-sparql-endpoint} from "fetch-sparql-endpoint";
import {SparqlEndpointFetcher} from "fetch-sparql-endpoint";

@@ -81,3 +81,3 @@ const myFetcher = new SparqlEndpointFetcher();

```js
const tripleStream = await fetcher.fetchBindings('https://dbpedia.org/sparql', 'CONSTRUCT { ?s ?p ?o } LIMIT 100');
const tripleStream = await fetcher.fetchTriples('https://dbpedia.org/sparql', 'CONSTRUCT { ?s ?p ?o } LIMIT 100');
tripleStream.on('data', (triple) => console.log(triple));

@@ -84,0 +84,0 @@ ```

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc