Skip to content

Commit 9e97184

Browse files
authored
Update README.md
1 parent 4b30819 commit 9e97184

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/examples/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -414,10 +414,10 @@ SELECT * { <example-data/people.csv> csv:parse (?rowJson "excel -h") }
414414
```
415415
## Lambdas in SPARQL
416416

417-
The function pair `norse:fn.of` and `norse:fn.call` is used to define and invoke a lambda. The definition of a lambda allows
417+
The function pair `norse:sparql.fn.of` and `norse:fn.call` is used to define and invoke a lambda. The definition of a lambda allows
418418
is based on conventional SPARQL expressions which however are evaluated lazily.
419419

420-
* The function `norse:fn.of(var1, ... varN, expr)` first accepts a list of input sparql variables followed by a single sparql expression.
420+
* The function `norse:sparql.fn.of(var1, ... varN, expr)` first accepts a list of input sparql variables followed by a single sparql expression.
421421
Any non-input variable mentioned in `expr` is substituted with the current binding's value.
422422
The result of the function is an RDF literal of type `norse:lambda` which holds the lambda. The syntax of lambda literals is `?v1 v2 -> expr`.
423423
* The function `norse:fn.call(lambdaLiteral, value1, ... valueN)` is used to invoke a lambda. The declared input variables are thereby substituted with the corresponding
@@ -430,9 +430,9 @@ is based on conventional SPARQL expressions which however are evaluated lazily.
430430
PREFIX norse: <https://w3id.org/aksw/norse#>
431431
SELECT ?resultA ?resultB {
432432
BIND('Dear' AS ?salutation)
433-
BIND(norse:fn.of(?honorific, ?name, CONCAT(?salutation, ' ', ?honorific, ' ', ?name)) AS ?greetingsFn)
434-
BIND(norse:fn.call(?greetingsFn, "Mrs.", "Miller") AS ?resultA)
435-
BIND(norse:fn.call(?greetingsFn, "Ms.", "Smith") AS ?resultB)
433+
BIND(norse:sparql.fn.of(?honorific, ?name, CONCAT(?salutation, ' ', ?honorific, ' ', ?name)) AS ?greetingsFn)
434+
BIND(norse:sparql.fn.call(?greetingsFn, "Mrs.", "Miller") AS ?resultA)
435+
BIND(norse:sparql.fn.call(?greetingsFn, "Ms.", "Smith") AS ?resultB)
436436
}
437437
```
438438

0 commit comments

Comments
 (0)