Dean, I think right now you have two options
1) as Scott suggested: use sml:ApplyConstruct. This may mean some inconvenience in the way that you organize your rules. 2) split your SPIN rules into different files, and then only have the relevant rules that you want to fire in the import closure or as predecessors of the sml:ApplyTopSPIN module. There is no way (yet) to execute sml:ApplyTopSPIN over a specific number of resources only as you could do with constraint checking. So for the ultimate flexibility you would need to go the "manual" way of doing the resource selection inside of the WHERE clauses. I will take your use case as input for future revisions. Thanks, Holger On Oct 29, 2011, at 3:41 AM, Dean Rzonca wrote: > Scott, > > This approach presents a problem for us. There are cases where we want > to be able to apply inferencing rules to a single resource, but we > need some of the context around the resource in order to do that > inferencing accurately. > > For example, assume there is an inferencing rule that constructs a > last name for a Person resource based on that Person's parent's last > name. You don't want to infer any new triples for the parent Person, > but you do need the triples surrounding the parent to be included in > the graph being passed in to the ApplyTopSPIN module when doing > inferencing for the child. > > In cases like this, it would be immensely helpful to have something > like a selectQuery on the ApplyTopSPIN module. If you can think of > another way to accomplish this, please let me know. > > Thanks > > On Oct 28, 12:15 pm, Scott Henninger <[email protected]> > wrote: >> Hello Dean; The ApplySPIN module will apply SPIN rules to the triples >> passed into the module. Therefore you can use ApplyConstruct with >> replace=true, FilerByConstruct, etc., to define the set of triples you >> want TopSPIN to run against. >> >> The ApplyConstruct module's replace property could need some >> explanation here. ApplyConstruct takes the input triples and creates >> a set of triples as specified in the CONSTRUCT clause of the query. >> If replace is set to false (the default) the output of the >> ApplyConstuct module is the union of the input triples and the >> constructed triples. If replace is set to true, then only the >> constructed triples are returned. The latter gives you a flexible way >> of defining a subset of your data for further processing in the >> script. >> >> -- Scott >> >> On Oct 28, 9:55 am, Dean Rzonca <[email protected]> wrote: >> >> >> >> >> >> >> >>> We are looking for a way to use the ApplyTopSPIN SPARQLMotion module >>> on only a certain portion of a graph. >> >>> The CheckConstraints module has a selectQuery parameter that allows us >>> to select only certain resources for constraint checking- is there a >>> way to do something similar with ApplyTopSPIN? >> >>> Any help is appreciated. >> >>> Thanks, >>> Dean > > -- > 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
