On 21/11/12 16:39, [email protected] wrote:
Dear all,
I am failing to use the function afn:STRUUID() in a SPARQL query with either
Fuseki or Joseki. I can see in my log that both complain to finding the class
com.hp.hpl.jena.sparql.function.library.struuid
Is there a distribution of Fuseki or Joseki that includes this ARQ dependency,
or I am doing something wrong on my side?
Thanks a lot
C.
PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
PREFIX afn: <http://jena.hpl.hp.com/ARQ/function#>
PREFIX dc: <http://purl.org/dc/elements/1.1/>
select * where
{
?s dc:title ?o
BIND(IRI(fn:concat('http://www.foo.org/', afn:STRUUID())) AS ?ce)
}
It's STRUUID() or afn:struuid(), not afn:STRUUID.
STRUUID preferred.
And CONCAT for fn:concat
These are now keywords in SPARQL 1.1
Andy