Skip to content

Commit

Permalink
Update macros.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Aklakan authored Sep 20, 2024
1 parent 32dc4ee commit 8a31a82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/sparql-extensions/macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ The object needs to be an `rdf:List`, where:

The following example defines a custom `eg:greet` function that returns `Hello X!` for an argument `X`.

```
```ttl
# macros.ttl
PREFIX udf: <https://w3id.org/aksw/norse#udf.>
PREFIX sh: <http://www.w3.org/ns/shacl#>
Expand Down Expand Up @@ -53,7 +53,7 @@ rpt integrate --macro macros.ttl `SELECT (eg:greet('John Doe') AS ?x) {}` --out-
* A current limitation in our implementation is that the `sh:namespace` presently needs to be a string rather than a literal of type `xsd:anyUri`, as demanded by the [SHACL Specification](https://www.w3.org/TR/shacl/).
* Also note, that due to SHACL's design that the value of `sh:namespace` needs to be a literal, it is NOT possible to refer to a namespace declared on the document itself:

```
```ttl
PREFIX eg: <http://www.example.org/>
PREFIX sh: <http://www.w3.org/ns/shacl#>
Expand Down

0 comments on commit 8a31a82

Please sign in to comment.