You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2016/05/30 11:47:54 UTC

svn commit: r1746106 - /jena/site/trunk/content/documentation/query/library-function.mdtext

Author: andy
Date: Mon May 30 11:47:54 2016
New Revision: 1746106

URL: http://svn.apache.org/viewvc?rev=1746106&view=rev
Log:
Fix escaping in REPLACE alternatives.

Modified:
    jena/site/trunk/content/documentation/query/library-function.mdtext

Modified: jena/site/trunk/content/documentation/query/library-function.mdtext
URL: http://svn.apache.org/viewvc/jena/site/trunk/content/documentation/query/library-function.mdtext?rev=1746106&r1=1746105&r2=1746106&view=diff
==============================================================================
--- jena/site/trunk/content/documentation/query/library-function.mdtext (original)
+++ jena/site/trunk/content/documentation/query/library-function.mdtext Mon May 30 11:47:54 2016
@@ -30,7 +30,7 @@ page.
 ### Function Library
 
 The prefix `afn` is `<http://jena.apache.org/ARQ/function#>`.
-(the old prefix of `<http://jena.hpl.hp.com/ARQ/function#>` contineus to
+(the old prefix of `<http://jena.hpl.hp.com/ARQ/function#>` continues to
 work. Applications are encouraged to switch.)
 
 Direct loading using a URI prefix of
@@ -67,8 +67,8 @@ for compatibility.
 Function name | Description | Alternative
 ------------- | ----------- | -----------
 `afn:bnode(?x)`  | Return the blank node label if ?x is a blank node. | `STR(?x)`
-`afn:localname(?x)` | The local name of ?x | `REPLACE(STR(?x), "^(.*)(/|#)([^#/]*)$", "$3")
-`afn:namespace(?x)` | The namespace of ?x  | `REPLACE(STR(?x), "^(.*)(/|#)([^#/]*)$", "$1")
+`afn:localname(?x)` | The local name of ?x | `REPLACE(STR(?x), "^(.*)(/|#)([^#/]*)$", "$3")`
+`afn:namespace(?x)` | The namespace of ?x  | `REPLACE(STR(?x), "^(.*)(/|#)([^#/]*)$", "$1")`
 
 The prefix and local name of a IRI is based on splitting the IRI, not on any prefixes in the query or dataset.