Hmm, I'm looking at smf:buildStringFromRDFList

Builds a string from the members of a given rdf:List (?arg1). The
function iterates over all members of the list (which must be well-
formed according to the RDF syntax rules). For each member, a string
template (?arg2) is applied where the expression {?member} will be
substituted with the current member. Optionally, a separator (?arg3)
can be inserted between the list members in the result string, e.g. to
insert a comma

but I cant figure out how to convert a sub select to a RDF:List

What i'm trying to do is say, grab all these classes.  They all have a
specific string as one of the properties.  Add them together as one
string and save them somewhere else.




On Jan 12, 3:16 pm, Scott Henninger <[email protected]>
wrote:
> Andrew; Not sure this can be done with SPIN or SPARQL as it breaks up
> how SPARQL result sets are returned.  There are a number of ways this
> can be accomplished in a SPARQLMotion script.  The general idea would
> be to bind 'a' to a variable, get the second row ('bz', 'ha', etc.)
> from a query using sml:ConcatenateText or an iterate subquery
> (...etc.), then combine them as needed.  A simple example would be:
>
> 1. Use sml:BindBySelect to bind ?col1 to 'a'
> 2. Select out ?col2 in a sml:ConcatenateText query, binding to a
> variable (?allCol2 for example)
> 3. Combine via a sml:BindLiteralVariable in a template specifying {?
> col1},{?allCol2}
>
> -- Scott
>
> On Jan 12, 1:25 pm, AndrewB <[email protected]> wrote:
>
>
>
> > if i have a result set
>
> > a,bz
> > a,ha
>
> > Can I concatenate it into
>
> > a,bzha   ?
>
> > Maybe using spin?
>
> > Thanks!
>
> > -Andrew
-- 
You received this message because you are subscribed to the Google Groups 
"TopBraid Composer Users" group.
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-composer-users?hl=en.


Reply via email to