Mark, have you taken a look at the magic property spif:split? given any regular _expression_ as a separator, you can process a string, such as a list of URLs into a result set.

In terms of converting an array of return values into a CSV list/file, you can use the SPARQLMotion sml:CreateSpreadsheet module to take a SPARQL SELECT statement and turn it into a delimited string, which can then be saved via sml:ExportToTextFile or returned as a service response via sml:ReturnText.

No, it is not the case that SPINx - SPIN functions that call _javascript_ - can be magic properties because _javascript_ functions are functional - they can only return one value.

-- Scott

On 9/16/2014, 10:22 AM, Mark van Berkel wrote:
I need a function to extract list of urls from a string and created a _javascript_ function to do it. When I set the _javascript_ up as a Magic Property (so I can return multiple values) I don't get the _javascript_ code triggered. The spinx:_javascript_Code and spinx:_javascript_File properties are present (the domain includes MagicProperties) but it would appear like they're not supported. Is MagicProperties _javascript_ supported? 

For context, I've setup successfully several spin:Functions using _javascript_. For testing the same functionality I setup a spin:Function and can convert array of return values to a CSV list. 
--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
---
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
---
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to