Hi Holger,

I have looked at Magic Properties, and thought they were relevant to my
question, but I couldn't find any examples of how to create a magic
property that returns multiple values. On the page you linked to, it
says "Magic properties can also take multiple arguments and result values
using a (rather obscure) list syntax - these cases are technically
supported but complex to represent in the SPIN RDF syntax".

Could you provide more detail or a link that describes this list syntax for
creating a magic property that returns multiple values?

Thanks!

Alison


On Mon, Apr 29, 2013 at 7:00 PM, Holger Knublauch <[email protected]>wrote:

> Hi Allison,
>
> yes take a look at Magic Properties
>
> http://spinrdf.org/spin.html#**spin-magic<http://spinrdf.org/spin.html#spin-magic>
>
> These may not only return multiple "rows" but also multiple variables per
> row.
>
> Please take a look at the online material and get back to us if you have
> specific follow-up questions.
>
> HTH
> Holger
>
>
>
> On 4/30/2013 1:01, Alison Callahan wrote:
>
>> Hello all,
>>
>> I would like to be able to define the body of a SPIN function that
>> returns two variables, e.g.
>>
>> SELECT ?x ?y
>> WHERE {
>>     ?example test:x ?x .
>>     ?example text:y ?y .
>> }
>>
>> My question is: if such a function is possible, how are the results bound
>> when the function is called? In my experience with SPIN I have written
>> functions that return one variable, and thus the result is bound to a
>> single variable when the function is called. For example, if I have a SPIN
>> function called "functionA" where the spin:body is:
>>
>> SELECT ?a
>> WHERE {
>>     ?example test:a ?a .
>> }
>>
>> I would call this function and bind the result as
>>
>> BIND(:functionA(?aVariable) AS ?returnedA) .
>>
>> Is it possible to write a similar function that returns two (or more)
>> variables?
>>
>> Any help is appreciated!
>>
>> Alison
>> --
>> -- 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 Ensemble, SPARQLMotion, SPARQL Web Pages and SPIN.
>> To post to this group, send email to
>> topbraid-users@googlegroups.**com <[email protected]>
>> To unsubscribe from this group, send email to
>> topbraid-users+unsubscribe@**googlegroups.com<topbraid-users%[email protected]>
>> For more options, visit this group at
>> http://groups.google.com/**group/topbraid-users?hl=en<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 
>> topbraid-users+unsubscribe@**googlegroups.com<topbraid-users%[email protected]>
>> .
>> For more options, visit 
>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>> .
>>
>>
>>
> --
> -- 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 Ensemble, SPARQLMotion, SPARQL Web Pages and SPIN.
> To post to this group, send email to
> topbraid-users@googlegroups.**com <[email protected]>
> To unsubscribe from this group, send email to
> topbraid-users+unsubscribe@**googlegroups.com<topbraid-users%[email protected]>
> For more options, visit this group at
> http://groups.google.com/**group/topbraid-users?hl=en<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 
> topbraid-users+unsubscribe@**googlegroups.com<topbraid-users%[email protected]>
> .
> For more options, visit 
> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
> .
>
>
>

-- 
-- 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 Ensemble, 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/groups/opt_out.


Reply via email to