Hello Thierry,
it is not possible to embed a call to a SM function that returns with
sml:ReturnSPARQLResults into an SWP component. sml:ReturnSPARQLResults
is really just producing the result set serialization.
If you want SWP to iterate over some SPARQL result set, you could
capture the SPARQL as a SPIN template and then use <ui:call
ui:template="..."><ui:forEach ui:resultSet="{= ?rs
}">...</ui:forEach></ui:call>.
For complex scenarios that cannot be expressed in a single template, you
may want to use SWP directly: most SPARQLMotion modules can be used
directly as SWP elements. If you want to outline what your SM script is
doing, we can probably provide more guidance.
(And BTW {= ?resultMatch } would indeed not work if ?resultMatch is a
SPARQL result set. You would need to use ui:forEach etc).
HTH
Holger
On 12/2/2013 17:50, Thierry Vebr wrote:
Hello,
I'm quite new on TBC.
I created a SparqlMotion function using as Return Module a
sml:ReturnSPARQLResults.
The sml:selectQuery is set to :
SELECT ?inputString ?indexName ?concatString
WHERE {
BIND (?arg1 AS ?inputString) .
BIND (?arg2 AS ?indexName) .
BIND (?result AS ?concatString) .
}
The sml:serialization is set to sml:RFXML
The SM function works fine on TBC, but when it try to use it on a swa
page, there's no result.
<ui:group letrs:resultMatch="{=
modules:MatchIndex(?line, ?foo) }">
<p align="left">{= ?resultMatch }</p>
</ui:group>
Nothing show up on my screen, even when using a ui:ForEach.
If I try to use a spra:colCount function against ?resultMatch, the
application fails..
Has anybody any clue about that ?
Thanks for your help.
Thierry Vebr
OECD
--
-- 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/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 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/groups/opt_out.