New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rdf-parser-n3

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rdf-parser-n3 - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

3

lib/ParserStream.js

@@ -53,3 +53,4 @@ const rdf = require('rdf-data-model')

term(factory, rawQuad.predicate, blankNodes),
term(factory, rawQuad.object, blankNodes)
term(factory, rawQuad.object, blankNodes),
term(factory, rawQuad.graph, blankNodes)
))

@@ -56,0 +57,0 @@ })

{
"name": "rdf-parser-n3",
"version": "1.0.0",
"version": "1.1.0",
"description": "N3 parser that follows the RDF Interface specification",

@@ -29,3 +29,3 @@ "main": "index.js",

"dependencies": {
"n3": "^0.9.1",
"n3": "^0.11.2",
"rdf-data-model": "^1.0.0",

@@ -32,0 +32,0 @@ "rdf-sink": "^1.0.0",

@@ -11,4 +11,5 @@ /* global describe, it */

const simpleNTGraph = '<http://example.org/subject> <http://example.org/predicate> "object".'
const simpleNQGraph = '<http://example.org/subject> <http://example.org/predicate> "object" <http://example.org/graph>.'
it('.import should parse the given string stream', (done) => {
it('.import should parse the given string triple stream', (done) => {
let parser = new N3Parser()

@@ -30,2 +31,19 @@ let counter = 0

it('.import should parse the given string quad stream', (done) => {
let parser = new N3Parser()
let counter = 0
parser.import(stringToStream(simpleNQGraph)).on('data', () => {
counter++
}).on('end', () => {
if (counter !== 1) {
done('no quad streamed')
} else {
done()
}
}).on('error', (error) => {
done(error)
})
})
it('.import should handle parser errors', (done) => {

@@ -32,0 +50,0 @@ let parser = new N3Parser()

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