diff --git a/lib/canonicalize.js b/lib/canonicalize.js index 947d801..744340f 100644 --- a/lib/canonicalize.js +++ b/lib/canonicalize.js @@ -65,10 +65,9 @@ export async function canonicalize(input, options) { }; if(typeof input !== 'string') { const opts = { - ...options, produceGeneralizedRdf: false, rdfDirection: 'i18n-datatype' + rdfDirection: 'i18n-datatype', ...options, produceGeneralizedRdf: false, }; delete opts.format; - opts.produceGeneralizedRdf = false; input = await jsonld.toRDF(input, opts); } return rdfCanonize.canonize(input, options);