Arthur; I've always found top:split to be a good example of how this
works. Try the following on the kennedys model:
SELECT *
WHERE {
?person kennedys:name ?name .
?x tops:split (?name " ")
}
It's also a god example of what a magic property does. It creates
multiple bindings for the variable. I say this because it seems like
the example you gave earlier should be applied via SPIN function
because it would only generate one binding. Then the syntax would be:
LET ?name := apf:concat(?firstName, ?lastName))
(...or did you mean fn:concat()?)
-- Scott
On Jun 10, 12:47 am, Holger Knublauch <[email protected]> wrote:
> Yes, this is correct. Furthermore, a magic property can also have multiple
> variables on the left side, for each SELECT ?x ?y ?z variable.
>
> Syntactically, the (...) is a short notation for RDF lists, BTW.
>
> Holger
>
> On Jun 10, 2010, at 3:32 PM, Arthur Keen wrote:
>
> > In the SPIN documentation, there is a statement "Magic properties can also
> > take multiple arguments ..." What is the syntax for passing in the other
> > arguments.
> > The example ?name apf:concat (?firstName ?lastName), indicates the syntax
> > is: object propertyfunction (arg1 arg2), is that right?
>
> > Arthur
>
> > --
> > You received this message because you are subscribed to the Google
> > Group "TopBraid Suite Users", the topics of which include TopBraid Composer,
> > TopBraid Live, TopBraid Ensemble, SPARQLMotion 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
Group "TopBraid Suite Users", the topics of which include TopBraid Composer,
TopBraid Live, TopBraid Ensemble, SPARQLMotion 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