fetch-sparql-endpoint
Advanced tools
Comparing version 1.0.0 to 1.1.0
{ | ||
"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 @@ ``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15
19316
Updatedrdf-string@^1.2.0
Updatedsparqljson-parse@^1.2.0