Skip to content

Commit

Permalink
Fix typo in example code
Browse files Browse the repository at this point in the history
  • Loading branch information
Kibubu authored and angelo-v committed Aug 16, 2024
1 parent 69fad70 commit 82f693d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/webapp-intro.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ <h4>Using the Store with Turtle</h4>
<p>We can similarly generate a turtle text from the store. Serialize is the function. You pass it the document (as a NamedNode) we are talking about, and it will just select the triples from that document to be output.</p>

<pre>
<code class="language-javascript">console.log($rdf.serialize(doc, store, aclDoc.uri, 'text/turtle'));
<code class="language-javascript">console.log($rdf.serialize(doc, store, doc.uri, 'text/turtle'));
</code></pre>

<p>If you omit the document parameter to serialize, or pass null, then you will get all the triples in the store. This may, if you have used a Fetcher, possibly metadata which the fetcher has stored about the HTTP requests it made in fetching your documents. Which might be interesting... but not what you were expecting.</p>
Expand Down

0 comments on commit 82f693d

Please sign in to comment.