|
Allison; Since the
AnotherExample:ScoreAttendedCollege returns one value, not a set of values (multiple rows) or a list of values
(multiple columns), then the best choice is to
use a SPIN function. Change the type of :ScoreAttendedCollege to
spin:Functions and use in a BIND or projection: SELECT ?score WHERE { BIND(AnotherExample:ScoreCollege("John") AS ?score). } ...and the projection version would be as follows: SELECT (AnotherExample:ScoreCollege("John") AS ?score) WHERE {} These translate into the exact same SPARQL algebra, so it's a matter of preference which one you use. For your magic property, I think you just got it backwards the subject of the magic property are the variables bound in the WHERE clause. The object are the selected variables. So I think the following will work: SELECT * WHERE { ("John") AnotherExample:ScoreCollege (?score) . } -- Scott On 5/9/2013 10:42 AM, Alison Callahan
wrote:
-- -- 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. |
- [topbraid-users] defining a SPIN function that returns mu... Alison Callahan
- Re: [topbraid-users] defining a SPIN function that r... Holger Knublauch
- Re: [topbraid-users] defining a SPIN function th... Alison Callahan
- Re: [topbraid-users] defining a SPIN functio... Scott Henninger
- Re: [topbraid-users] defining a SPIN fun... Alison Callahan
- Re: [topbraid-users] defining a SPI... Scott Henninger
- Re: [topbraid-users] defining a... Alison Callahan
- RE: [topbraid-users] defini... Irene Polikoff
