From 32dc4eeb71bdcc4ddd484a8fd4d01b3a64aa7999 Mon Sep 17 00:00:00 2001 From: Claus Stadler Date: Fri, 20 Sep 2024 14:27:49 +0200 Subject: [PATCH 1/2] Update macros.md Consolidated udf namespace --- docs/sparql-extensions/macros.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/sparql-extensions/macros.md b/docs/sparql-extensions/macros.md index b559999..d261ee6 100644 --- a/docs/sparql-extensions/macros.md +++ b/docs/sparql-extensions/macros.md @@ -21,7 +21,7 @@ The following example defines a custom `eg:greet` function that returns `Hello X ``` # macros.ttl -PREFIX udf: +PREFIX udf: PREFIX sh: PREFIX eg: From 8a31a82ae6d0bd3d9ff4f1aa211b729025f17bdb Mon Sep 17 00:00:00 2001 From: Claus Stadler Date: Fri, 20 Sep 2024 14:28:10 +0200 Subject: [PATCH 2/2] Update macros.md --- docs/sparql-extensions/macros.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/sparql-extensions/macros.md b/docs/sparql-extensions/macros.md index d261ee6..827dd26 100644 --- a/docs/sparql-extensions/macros.md +++ b/docs/sparql-extensions/macros.md @@ -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: PREFIX sh: @@ -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: PREFIX sh: