On May 8, 2010, at 12:26 AM, Jeff wrote:

> Just running the inferences is fine for what I'm doing. I should have
> thought of trying that but I've been spoiled by the SPARQL tab's
> inference button :-)
> 
> I noticed you must have some default UISPIN ui:instanceView defined
> since all URIs are clickable and they render all of a resource's
> propeties/values (as well as incoming references).  

This is the ui:instanceView for rdfs:Resource defined in the TUI file.

> This leads me to
> the question of what if, in the context of tobraid live/SPARQL Motion,
> you want multiple, different renderings associated with a class that
> would be choose-able (e.g. what if in some cases I wanted your default
> rendering instead of my custom designed one)?    I did try creating
> two ui:instanceView renderings in my ui model for a single class, but
> the default rendering in the browser view ignores the second one.
> Would there be a way to create a web-app where you could choose which
> rendering you want?  No need to explain how, I'm just looking for a
> basic yes or no right now, e.g. "yes there is a way to create multiple
> renderings and choose at run-time which one you want by using SPARQL
> Motion."

Yes, there is a way to create multiple renderings and choose at run-time one 
you want by using ui:id. Set ui:id as an attribute of the root element in your 
instanceView, and then select it either in the servlet call (matchIds=...) or 
<ui:resourceView resource="..." matchIds="..." />. Some of this is explained 
here

        http://uispin.org/ui.html#resourceView

Cheers,
Holger

-- 
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

Reply via email to