Skip to content

Commit c8ff432

Browse files
committed
Update README.md
1 parent d3d874e commit c8ff432

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
@@ -58,10 +58,10 @@ The following importable variables are available:
5858
- `sparqlEscapeUri(value) => string`: Function to escape a URI in SPARQL
5959
- `sparqlEscapeInt(value) => string`: Function to escape an integer in SPARQL
6060
- `sparqlEscapeFloat(value) => string`: Function to escape a float in SPARQL
61-
- `sparqlEscapeDate(value) => string`: Function to escape a date in SPARQL
61+
- `sparqlEscapeDate(value) => string`: Function to escape a date in SPARQL. The given value is passed to the `Date` constructor.
6262
- `sparqlEscapeDateTime(value) => string`: Function to escape a datetime in SPARQL
63-
- `sparqlEscapeBool(value) => string`: Function to escape a boolean in SPARQL
64-
- `sparqlEscape(value, type) => string`: Function to escape a value in SPARQL according to the given type. Type must be one of `'string'`, `'uri'`, `'int'`, `'float'`, `'date'`, `'dateTime'`, `'bool'`.
63+
- `sparqlEscapeBool(value) => string`: Function to escape a boolean in SPARQL. The given value is evaluated to a boolean value in javascript. E.g. the string value `'0'` evaluates to `false` in javascript.
64+
- `sparqlEscape(value, type) => string`: Function to escape a value in SPARQL according to the given type. Type must be one of `'string'`, `'uri'`, `'int'`, `'float'`, `'date'`, `'dateTime'`, `'bool'`.
6565

6666
You can either import specific attributes from the mu library, or import the whole mu object.
6767

0 commit comments

Comments
 (0)