Thanks for the solution.  At the root of my confusion was this part of the
doc:

"For the prefix IRIs commonly associated with fn, cts, math, and xdmp (or
any other prefix IRIs that do not end with a "/" or "#"), append a # to the
prefix IRI to the prefix IRI and then the function localname, for example:
http://marklogic.com/cts#contains/";

I read the first saying that anything that's documented as fn: should use
the marklogic.com path.

But to your point, it also says, "Extension functions in SPARQL are
identified by IRIs in the form of http://www.w3.org/2005/xpath-functions#
*name*/ where *name* is the local name of the function and the string
before the # is the prefix IRI of the function, for example
http://www.w3.org/2005/xpath-functions#starts-with/";

Apparently if something is in both (aren't all fn: in the xpath-functions?)
I need to use the w3.org path.

       Steve


On Tue, Aug 1, 2017 at 7:07 AM, Christopher Hamlin <[email protected]>
wrote:

> Try the same prefix for fn, rather than the cts one:
>
> PREFIX fn: <http://www.w3.org/2005/xpath-functions#>
>
> I did see the other mistake in the doc, so I'll report that.  This I
> didn't find, so just a copy/paste error in testing?
>
> On Mon, Jul 31, 2017 at 5:56 PM, Steven Anderson <[email protected]
> > wrote:
>
>> Yup, that worked, thanks.  Any ideas on why the fn: namespace version
>> isn't working?
>>
>> On Mon, Jul 31, 2017 at 1:29 PM, Christopher Hamlin <[email protected]>
>> wrote:
>>
>>> I removed the trailing / in the function name here (after 'starts-with'):
>>>
>>> <http://www.w3.org/2005/xpath-functions#starts-with/>( ?o, "sf" ) )
>>>
>>> and the error went away.  Does that work for you?
>>>
>>> _______________________________________________
>>> General mailing list
>>> [email protected]
>>> Manage your subscription at:
>>> http://developer.marklogic.com/mailman/listinfo/general
>>>
>>>
>>
>>
>> --
>>
>>      Steve
>>
>> _______________________________________________
>> General mailing list
>> [email protected]
>> Manage your subscription at:
>> http://developer.marklogic.com/mailman/listinfo/general
>>
>>
>
> _______________________________________________
> General mailing list
> [email protected]
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>


-- 

     Steve
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to