Skip to content

Commit 077d498

Browse files
committed
Update QuadCallback to use array of Quads instead of just a single quad
The toRDF() algorithm hasn't been updated yet to call the callback. This addresses #200.
1 parent 01f3841 commit 077d498

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spec/latest/json-ld-api/index.html

+4-4
Original file line numberDiff line numberDiff line change
@@ -665,8 +665,8 @@ <h3>JsonLdProcessor</h3>
665665
<dd>The JSON-LD object or array of JSON-LD objects to convert to RDF or a <a>IRI</a>
666666
referencing the JSON-LD document to convert to RDF.</dd>
667667
<dt>QuadCallback callback</dt>
668-
<dd>A callback that is called when a <ldtref>Quad</ldtref> is created from processing
669-
the given <code>input</code>.
668+
<dd>A callback that is called when the input <code>input</code> has been converted
669+
to <ldtref title="Quad">Quads</ldtref>.
670670
</dd>
671671
<dt>optional JsonLdOptions? options</dt>
672672
<dd>A set of options that MAY affect the conversion to RDF such as, e.g.,
@@ -777,8 +777,8 @@ <h3>QuadCallback</h3>
777777
and the details will be contained within the <code>error</code>
778778
object.
779779
</dd>
780-
<dt>Quad quad</dt>
781-
<dd>If there is no error, the quad that was generated.</dd>
780+
<dt>Quad[] quads</dt>
781+
<dd>If there is no error, the quads that have been generated.</dd>
782782
</dl>
783783
</dd>
784784
</dl>

0 commit comments

Comments
 (0)