Hi Jeff, when executed from TBC, UISPIN will see whatever triples are available in the current session, including any inferences that you may have executed (manually) or asserted. So a simple solution would be to run the inferences first and then do the visualizations.
The proper solution to automate this is to use SPARQLMotion. For 3.3.2, I have added two new modules sml:ReturnUISPINDocument and sml:CreateUISPINDocument that can create UISPIN renderings based on the input triples of the SPARQLMotion stream. For example, you could sml:ApplyTopSPIN before running the UISPIN stuff. Until 3.3.1 the work-around in SPARQLMotion is to use the function ui:getUIHTML that was mentioned in an earlier thread. http://groups.google.com/group/topbraid-users/browse_thread/thread/1fcbe2fdb725aaff/06eda6a730979c00?lnk=raot If your scenario turns out to be a FAQ, then I could imagine extending UISPIN with a keyword to have inferences turned on, but I guess this will always overlap with what SPARQLMotion already does (and more flexibly). Regards, Holger On May 7, 2010, at 1:50 AM, Schmitz, Jeffrey A wrote: > Hello, > I went through the UISPIN example using my own ontologies (I couldn’t seem > to find the Agrovoc ontology anywhere, all the links I found no longer work). > In my ontology, I have the OWL RL inverse property rules attached to the > owl:Thing class (via spin:rule), and I have all the UISPIN stuff working > correctly for all my asserted triples using the example prototype/reference: > > <ui:forEach ui:resultSet="{# > SELECT ?e > WHERE { > ?element ?predicate ?e . > } > ORDER BY (ui:label(?e)) }"> > <li> > <a href="{= xsd:string(?e) }">{= ui:label(?e) }</a> > </li> > > > Prototype reference (works for asserted triples, but doesn’t work if > predicate is inferred by topspin): > > <Neutral.ui:ElementList Neutral.ui:element="{= ?this }" > Neutral.ui:predicate="Neutral:failsAs"/> > > However, I would also like it to work when I pass in a ?predicate that is > inferred for an ?element from the OWL RL inverse SPIN rules, but when I try > the query isn’t picking them up. Is there a way to make the such queries > aware of the inferred triples when querying my model? > > As a note, with inferencing for the model configured to use TopSPIN, the > query does work in the SPARQL tab with inferencing on. > > Thanks, > Jeff > > -- > 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 -- 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
