Skip to content

Commit 9492e22

Browse files
Correct statement about which function gets called
See https://github.com/solid/solid-namespace/blob/master/index.js#L66 It's `rdf.namedNode`, not `rdf.Namespace` that gets called.
1 parent e66b07a commit 9492e22

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ You can use this library in two ways.
1616

1717
### With a rdf library
1818

19-
If a rdf library is provided then the map of namespaces given will be the result of calling `rdflib.Namespace` on the namespace urls.
19+
If a rdf library is provided then the map of namespaces given will be the result of calling `rdf.namedNode` on the namespace urls.
2020

2121
```js
22-
const $rdf = require('rdflib');
23-
const ns = require('solid-namespace')($rdf);
22+
const rdf = require('rdflib');
23+
const ns = require('solid-namespace')(rdf);
2424
const store = $rdf.graph();
2525

2626
let me = ...;

0 commit comments

Comments
 (0)