Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README error on use of store.add() #361

Closed
Jamie-SA opened this issue Sep 18, 2023 · 1 comment · Fixed by #363
Closed

README error on use of store.add() #361

Jamie-SA opened this issue Sep 18, 2023 · 1 comment · Fixed by #363
Labels

Comments

@Jamie-SA
Copy link

I think the README examples using store.add() might be incorrect when compared with the documentation at https://rdf.js.org/N3.js/docs/N3Store.html.

Current

const store = new N3.Store();
store.add(
  namedNode('http://ex.org/Pluto'),
  namedNode('http://ex.org/type'),
  namedNode('http://ex.org/Dog')
);
store.add(
  namedNode('http://ex.org/Mickey'),
  namedNode('http://ex.org/type'),
  namedNode('http://ex.org/Mouse')
);

Possible correction:

const store = new N3.Store();
store.addQuad(
  namedNode('http://ex.org/Pluto'),
  namedNode('http://ex.org/type'),
  namedNode('http://ex.org/Dog')
);
store.addQuad(
  namedNode('http://ex.org/Mickey'),
  namedNode('http://ex.org/type'),
  namedNode('http://ex.org/Mouse')
);

@github-actions
Copy link

🎉 This issue has been resolved in version 1.17.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant