One other piece of data, there are no values for the isLiteral property prior to running inferences thus the inference engine is adding both a true and false triple whereas executing the same query in the SPARQL view only results in one triple being created.
On Sat, Nov 17, 2012 at 12:47 AM, Tim Smith <[email protected]> wrote: > The screenshot did not work, I forgot about that. It's now attached. > > > On Sat, Nov 17, 2012 at 12:31 AM, Tim Smith <[email protected]> wrote: > >> Hi Holger, >> >> Thanks for the help. >> >> I changed the SPIN rule to the following: >> >> DELETE { >> ?this st:isLiteral ?old . >> } >> INSERT { >> ?this st:isLiteral ?new . >> } >> WHERE { >> ?this st:predicate ?pred . >> ?pred a ?ptype . >> OPTIONAL { >> ?this st:isLiteral ?old . >> } . >> BIND ((!spl:subClassOf(?ptype, owl:ObjectProperty)) AS ?new) . >> } >> >> There was no change in behavior. >> > > > > >> On Sat, Nov 17, 2012 at 12:23 AM, Holger Knublauch < >> [email protected]> wrote: >> >>> On 11/17/2012 15:20, Tim Smith wrote: >>> >>>> DELETE { >>>> ?this st:isLiteral ?old . >>>> } >>>> INSERT { >>>> ?this st:isLiteral ?new . >>>> } >>>> WHERE { >>>> ?this st:predicate ?pred . >>>> ?pred a ?ptype . >>>> BIND (!spl:subClassOf(?ptype, owl:ObjectProperty) AS ?new) . >>>> } >>>> >>> >>> ?old is not bound - you need to get its value in the WHERE clause, e.g. >>> >>> OPTIONAL { >>> >>> ?this st:isLiteral ?old . >>> } >>> >>> HTH >>> Holger >>> >>> -- >>> -- 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 >>> topbraid-users@googlegroups.**com <[email protected]> >>> To unsubscribe from this group, send email to >>> topbraid-users+unsubscribe@**googlegroups.com<topbraid-users%[email protected]> >>> For more options, visit this group at >>> http://groups.google.com/**group/topbraid-users?hl=en<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 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
