@@ -118,7 +118,8 @@ const _resolvedContextCache = new LRU({max: RESOLVED_CONTEXT_CACHE_MAX_SIZE});
118
118
* [graph] true to always output a top-level graph (default: false).
119
119
* [expandContext] a context to expand with.
120
120
* [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.
122
123
* [documentLoader(url, options)] the document loader.
123
124
* [framing] true if compaction is occuring during a framing operation.
124
125
* [safe] true to use safe mode. (default: false)
@@ -538,13 +539,16 @@ jsonld.link = async function(input, ctx, options) {
538
539
* [base] the base IRI to use (default: `null`).
539
540
* [expandContext] a context to expand with.
540
541
* [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.
542
544
* [inputFormat] the format if input is not JSON-LD:
543
545
* 'application/n-quads' for N-Quads.
544
546
* [format] the format if output is a string:
545
547
* 'application/n-quads' for N-Quads.
546
548
* [documentLoader(url, options)] the document loader.
547
549
* [useNative] true to use a native canonize algorithm
550
+ * [rdfDirection] null or 'i18n-datatype' to support RDF
551
+ * transformation of @direction (default: null).
548
552
* [safe] true to use safe mode. (default: true).
549
553
* [contextResolver] internal use only.
550
554
*
@@ -601,8 +605,8 @@ jsonld.normalize = jsonld.canonize = async function(input, options) {
601
605
* (default: false).
602
606
* [useNativeTypes] true to convert XSD types into native types
603
607
* (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).
606
610
* [safe] true to use safe mode. (default: false)
607
611
*
608
612
* @return a Promise that resolves to the JSON-LD document.
@@ -647,13 +651,16 @@ jsonld.fromRDF = async function(dataset, options) {
647
651
* [base] the base IRI to use.
648
652
* [expandContext] a context to expand with.
649
653
* [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.
651
656
* [format] the format to use to output a string:
652
657
* 'application/n-quads' for N-Quads.
653
658
* [produceGeneralizedRdf] true to output generalized RDF, false
654
659
* to produce only standard RDF (default: false).
655
660
* [documentLoader(url, options)] the document loader.
656
661
* [safe] true to use safe mode. (default: false)
662
+ * [rdfDirection] null or 'i18n-datatype' to support RDF
663
+ * transformation of @direction (default: null).
657
664
* [contextResolver] internal use only.
658
665
*
659
666
* @return a Promise that resolves to the RDF dataset.
0 commit comments