On 6/12/2012 19:45, Peter Rosina wrote:
Hi Holger,
I tried surrounding my query with "sml:ApplyTopSpin" and imported
the sparqlmotion-swp.ui.ttl but the effect was that I did not receive
any results at all. Before that, I at least received the non-inferred
results.
In 3.6.0, sml:ApplyTopSPIN will only deliver the inferred triples to its
children. This is inconsistent with how it works otherwise, so I have
just made it also return the input triples for 3.6.1. I am not sure why
it does not return any triples in your case though. Maybe the rule
triples are not part of the context graph. The following works for me
<ui:setContext ui:queryGraph="{=
ui:graphWithImports(<http://topbraid.org/examples/spinsquare>) }">
<sml:ApplyTopSPIN sml:replace="true" sml:singlePass="true">
<table>
<ui:forEach ui:resultSet="{#
SELECT ?s ?p ?o
WHERE {
?s ?p ?o .
} }">
<tr>
<td>{= ?s }</td>
<td>{= ?p }</td>
<td>{= ?o }</td>
</tr>
</ui:forEach>
</table>
</sml:ApplyTopSPIN>
</ui:setContext>
This shows two inferred triples.
But since applying the second solution you proposed does work and I do
not need any dynamically inferred results I can continue now! Thanks :-)
Sounds good - simple and predictable.
Regards,
Holger
--
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 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