On Aug 26, 2011, at 10:05 PM, Gerrit wrote: > My next problem is that getDataset() passes a Model, while an OntModel > is needed to get the subModels. Casting Model to OntModel is probably > not a good idea. Even if it is possible to get an OntModel, how do I > know which subModel is newTriples?
OntModel is usually just a wrapper around a MultiUnion, and this is what you may want to check for (model.getGraph() instanceof MultiUnion etc). > Basically what I'm trying to do is to remove triples that were > previously inferred (based on a CONSTRUCT SPIN rule), when the triple > which caused the inferment does not exist anymore. This should be > quite a common use case, no? Why are those triples created in the first place? Why don't you just prevent their creation by modifying the SPIN rules - make the WHERE clause of that rule more specific, it's open source after all. 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
