Skip to content

Commit b631718

Browse files
authored
chore(docs): fix documentation of Store#add (#363)
1 parent 08a5574 commit b631718

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -282,14 +282,18 @@ Then, we find triples with `:Mickey` as subject.
282282
```JavaScript
283283
const store = new N3.Store();
284284
store.add(
285-
namedNode('http://ex.org/Pluto'),
286-
namedNode('http://ex.org/type'),
287-
namedNode('http://ex.org/Dog')
285+
quad(
286+
namedNode('http://ex.org/Pluto'),
287+
namedNode('http://ex.org/type'),
288+
namedNode('http://ex.org/Dog')
289+
)
288290
);
289291
store.add(
290-
namedNode('http://ex.org/Mickey'),
291-
namedNode('http://ex.org/type'),
292-
namedNode('http://ex.org/Mouse')
292+
quad(
293+
namedNode('http://ex.org/Mickey'),
294+
namedNode('http://ex.org/type'),
295+
namedNode('http://ex.org/Mouse')
296+
)
293297
);
294298

295299
// Retrieve all quads

0 commit comments

Comments
 (0)