Michelle; This query will always do nothing because ?report is not bound in the WHERE clause. One way to test SPIN rules is to test them in the SPARQL View. Place the query there and choose an instance of the class so it appears in the middle For View. Execute the query and ?this will be bound to the selected instance. Once debugged, place it in the spin:rule property and execute inferences. Make sure you choose TopSPIN as the reasoning engine in Inference > Configure Inferencing...
I'm not sure what is in the purchases.ttl file is that you refer to. -- Scott On Nov 16, 9:47 am, "Raymond, Michelle" <[email protected]> wrote: > Dear TopBraid assistance folks, > > I added a service report to the purchases.ttl example and for each > ServiceContract I want to create a ServiceReport. I put the following in the > spin:rule for ServiceContract. > > CONSTRUCT { > ?report a :ServiceReport . > ?report :reportFor ?this .} > > WHERE { > ?this a :ServiceContract . > > } > > I try running inferences and nothing happens. What is the correct way to do > this? > > Best regards, > Michelle -- -- 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, 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
