@@ -118,7 +118,8 @@ const _resolvedContextCache = new LRU({max: RESOLVED_CONTEXT_CACHE_MAX_SIZE});
118118 * [graph] true to always output a top-level graph (default: false).
119119 * [expandContext] a context to expand with.
120120 * [skipExpansion] true to assume the input is expanded and skip
121- * expansion, false not to, defaults to false.
121+ * expansion, false not to, defaults to false. Some well-formed
122+ * and safe-mode checks may be omitted.
122123 * [documentLoader(url, options)] the document loader.
123124 * [framing] true if compaction is occuring during a framing operation.
124125 * [safe] true to use safe mode. (default: false)
@@ -538,13 +539,16 @@ jsonld.link = async function(input, ctx, options) {
538539 * [base] the base IRI to use (default: `null`).
539540 * [expandContext] a context to expand with.
540541 * [skipExpansion] true to assume the input is expanded and skip
541- * expansion, false not to, defaults to false.
542+ * expansion, false not to, defaults to false. Some well-formed
543+ * and safe-mode checks may be omitted.
542544 * [inputFormat] the format if input is not JSON-LD:
543545 * 'application/n-quads' for N-Quads.
544546 * [format] the format if output is a string:
545547 * 'application/n-quads' for N-Quads.
546548 * [documentLoader(url, options)] the document loader.
547549 * [useNative] true to use a native canonize algorithm
550+ * [rdfDirection] null or 'i18n-datatype' to support RDF
551+ * transformation of @direction (default: null).
548552 * [safe] true to use safe mode. (default: true).
549553 * [contextResolver] internal use only.
550554 *
@@ -601,8 +605,8 @@ jsonld.normalize = jsonld.canonize = async function(input, options) {
601605 * (default: false).
602606 * [useNativeTypes] true to convert XSD types into native types
603607 * (boolean, integer, double), false not to (default: false).
604- * [rdfDirection] 'i18n-datatype' to support RDF transformation of
605- * @direction (default: null).
608+ * [rdfDirection] null or 'i18n-datatype' to support RDF
609+ * transformation of @direction (default: null).
606610 * [safe] true to use safe mode. (default: false)
607611 *
608612 * @return a Promise that resolves to the JSON-LD document.
@@ -647,13 +651,16 @@ jsonld.fromRDF = async function(dataset, options) {
647651 * [base] the base IRI to use.
648652 * [expandContext] a context to expand with.
649653 * [skipExpansion] true to assume the input is expanded and skip
650- * expansion, false not to, defaults to false.
654+ * expansion, false not to, defaults to false. Some well-formed
655+ * and safe-mode checks may be omitted.
651656 * [format] the format to use to output a string:
652657 * 'application/n-quads' for N-Quads.
653658 * [produceGeneralizedRdf] true to output generalized RDF, false
654659 * to produce only standard RDF (default: false).
655660 * [documentLoader(url, options)] the document loader.
656661 * [safe] true to use safe mode. (default: false)
662+ * [rdfDirection] null or 'i18n-datatype' to support RDF
663+ * transformation of @direction (default: null).
657664 * [contextResolver] internal use only.
658665 *
659666 * @return a Promise that resolves to the RDF dataset.
0 commit comments