Skip to content

Commit

Permalink
Allow caller to override rdfDirection.
Browse files Browse the repository at this point in the history
  • Loading branch information
gannan08 committed Nov 25, 2024
1 parent b2eb3ee commit bb22f92
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/canonize.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ export async function canonize(input, options) {
...options
};
const opts = {
...options, produceGeneralizedRdf: false, rdfDirection: 'i18n-datatype'
rdfDirection: 'i18n-datatype', ...options, produceGeneralizedRdf: false,
};
delete opts.format;
opts.produceGeneralizedRdf = false;
const dataset = await jsonld.toRDF(input, opts);
return rdfCanonize.canonize(dataset, options);
}

0 comments on commit bb22f92

Please sign in to comment.