Hi Peter,
applying inferences from SWP has been enabled through the
SPARQLMotion-SWP bridge that we have added in 3.6. Import
sparqlmotion-swp.ui.ttl into your project. Then you should be able to
write something like
<sml:ApplyTopSPIN>
<ui:forEach ... />
</sml:ApplyTopSPIN>
Similarly for ApplyOWLIM etc. Inside of the sml tags, the inferred
triples should be visible.
For static applications you may want to pre-compute the inferences with
TBC and save them in a named graph/file, then import that file.
HTH
Holger
On 6/12/2012 18:44, Peter Rosina wrote:
Hi,
I am creating an SWP application which basically works fine but I do
not know the correct way to enable inferencing in my results:
Having an SWP-file with contents like :
<ui:setContext xmlns:foo="http://www.example.com/foo#"
xmlns:fooui="http://www.example.com/foo.ui#"
ui:queryGraph="{=
ui:graphWithImports(<http://www.example.com/foo.ui>) }">
<h1>Results:</h1>
<fooui:ResultView />
<ui:forEach
ui:resultSet="{#
SELECT ?bar
WHERE {
?bar a foo:foo .
}
ORDER BY ui:label(?bar) }">
<ui:resourceView ui:resource="{= ?bar }" />
</ui:forEach>
</ui:setContext>
As you can see I have defined various ontologies - one for the domain
model [1], one for the UI [2] and another one for the select queries
[3] (like in the example at
http://composing-the-semantic-web.blogspot.de/2012/02/swp-tip-organizing-queries-and-views.html)
with [2] importing [3] importing [1]. So I am setting the query graph
to [2] because this one imports the rest.
The problem I am facing is that all the queries that are executed on
this SWP are just returning the non-inferenced triples. I enabled
inferencing in TBC for [1] (which works fine) but the additional
results are not passed to the SWP. I think that I am missing something
fundamental here and hope you can help me out.
Thanks!
Peter
--
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
--
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