rdf-serializer-jsonld-ext
Advanced tools
Comparing version 1.3.0 to 1.4.0
{ | ||
"name": "rdf-serializer-jsonld-ext", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "JSON-LD serializer that implements the RDFJS Sink Interfaces and supports different output styles", | ||
@@ -29,4 +29,4 @@ "main": "index.js", | ||
"bluebird": "^3.5.0", | ||
"jsonld": "^0.4.12", | ||
"rdf-serializer-jsonld": "^1.0.0", | ||
"jsonld": "^1.0.1", | ||
"rdf-serializer-jsonld": "^1.1.2", | ||
"rdf-sink": "^1.0.0", | ||
@@ -33,0 +33,0 @@ "readable-stream": "^2.2.9" |
@@ -35,7 +35,4 @@ /* global describe, it */ | ||
const jsonldString = JSON.stringify([{ | ||
'@id': '@default', | ||
'@graph': { | ||
'@id': 'http://example.org/subject', | ||
'http://example.org/predicate': 'object1' | ||
} | ||
'@id': 'http://example.org/subject', | ||
'http://example.org/predicate': 'object1' | ||
}]) | ||
@@ -70,7 +67,4 @@ | ||
'@context': context, | ||
'@id': '@default', | ||
'@graph': [{ | ||
'@id': 'ex:subject', | ||
'ex:predicate': 'object1' | ||
}] | ||
'@id': 'ex:subject', | ||
'ex:predicate': 'object1' | ||
} | ||
@@ -132,6 +126,4 @@ | ||
'@graph': [{ | ||
'@id': '_:b0', | ||
'@type': 'Thing', | ||
property0: { | ||
'@id': '_:b1', | ||
'@type': 'OtherThing', | ||
@@ -158,3 +150,3 @@ property1: 'value1' | ||
it('should skip @graph property if options is true and array.length == 1', () => { | ||
it('should skip @graph property if skipGraphProperty is true and array.length == 1', () => { | ||
const root = rdf.blankNode() | ||
@@ -197,6 +189,4 @@ const property = rdf.blankNode() | ||
}, | ||
'@id': '_:b0', | ||
'@type': 'Thing', | ||
property0: { | ||
'@id': '_:b1', | ||
'@type': 'OtherThing', | ||
@@ -222,3 +212,3 @@ property1: 'value1' | ||
it('should not skip @graph property if options is true and array.length != 1', () => { | ||
it('should not skip @graph property if skipGraphProperty is true and array.length != 1', () => { | ||
const s0 = rdf.blankNode('b0') | ||
@@ -261,9 +251,5 @@ const s1 = rdf.blankNode('b1') | ||
'@graph': [{ | ||
'@id': '@default' | ||
}, { | ||
'@id': '_:b0', | ||
'@type': 'Thing', | ||
'property0': 'value0' | ||
}, { | ||
'@id': '_:b1', | ||
'@type': 'OtherThing', | ||
@@ -289,3 +275,3 @@ 'property1': 'value1' | ||
it('should not skip @graph property if options is true and array.length != 1', () => { | ||
it('should remove @context if skipContext is true', () => { | ||
const s0 = rdf.blankNode('b0') | ||
@@ -315,3 +301,2 @@ | ||
'@graph': [{ | ||
'@id': '_:b0', | ||
'@type': 'Thing', | ||
@@ -349,7 +334,4 @@ 'property0': 'value0' | ||
'@context': context, | ||
'@id': '@default', | ||
'@graph': [{ | ||
'@id': 'ex:subject', | ||
'ex:predicate': 'object1' | ||
}] | ||
'@id': 'ex:subject', | ||
'ex:predicate': 'object1' | ||
} | ||
@@ -356,0 +338,0 @@ |
Sorry, the diff of this file is not supported yet
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
13276
6
407
+ Addedcanonicalize@1.0.8(transitive)
+ Addedjsonld@1.8.1(transitive)
+ Addednode-forge@0.10.0(transitive)
+ Addedrdf-canonize@1.2.0(transitive)
+ Addedsemver@5.7.26.3.1(transitive)
- Removedes6-promise@2.3.0(transitive)
- Removedjsonld@0.4.12(transitive)
- Removedpkginfo@0.4.1(transitive)
Updatedjsonld@^1.0.1
Updatedrdf-serializer-jsonld@^1.1.2