Hi Andy,
Yeah, that's pretty close.  I originally posted this thread, cause I found
myself looking at
http://answers.semanticweb.com/questions/10457/calculating-and-extracting-a-substring-in-sparqlagain.
 All the answers there were close, but just slightly off.  I've
posted what I now think is the correct answer (thanks in part to your help)
at
http://answers.semanticweb.com/questions/10457/calculating-and-extracting-a-substring-in-sparql

Tim


On Wed, May 14, 2014 at 1:44 AM, Andy Seaborne <[email protected]> wrote:

> A form of "localname" can be done in SPARQL without the need for extension
> functions:
>
>     REPLACE(str(?uri), '^.*(#|/)', '')"
>
> which returns the part after the last / or #
>
>         Andy
>
>

Reply via email to