Hi Kevin, it should work if you just use sml:ApplyJenaRules - this includes Jena rules and SWRL rules. The sml:ApplyJenaInferencing is for the built-in Jena inference configurations such as OWL and RDFS.
Note that even after you run this script, it will - by default - not affect the current Inferences View of TBC. You will simply get the new triples as result of the script, and can then determine what to do next, e.g. stream it to a new file, or display them and infer them temporarily. Holger On Apr 2, 2009, at 7:48 AM, Kevin Matthews wrote: > > I have an owl file that contains many SWRL rules. When I open the > file, configure inferencing to run "SWRL and Jena Rules", and run > inferencing, it generates a series of inferred triples in the > Inferences window as expected. > > However, I cannot figure out how to replicate this functionality in a > SparqlMotion script. > > I currently have a SparqlMotion script that contains 2 modules. The > first module imports the RDF from the owl file. The second module is > an ApplyJenaInferencing module with all default values. When I run > the script, the SparqlMotionResults window is populated with all the > triples of the OWL file, but no inferred triples. The Inferences > window remains empty. I have configured inferencing for the > SparqlMotion script to use "SWRL and Jena Rules". > > How do I get the ApplyJenaInferencing module to add the inferred > triples to the output? Can I query the inferred triples any other > way? Do I need to add an ApplyJenaRules module to the mix? If so, > does it belong before or after the ApplyJenaInferencing module? > > Any help would be greatly appreciated. > > > Thanks, > > Kevin > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TopBraid Composer Users" group. 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-composer-users?hl=en -~----------~----~----~----~------~----~------~--~---
