I would think you want to give whatever you are creating a type. Is it owl:Class?
I also wonder if you need the middle two statements in the WHERE clause. Judging by the name of :compatibleWithAccessory the range of its values will always be an accessory. But, of course, I don't know your model and I can't say off hand what throws the reasoner into a loop. Sent from my iPhone > On Jan 31, 2014, at 8:49 AM, "Michael B." <[email protected]> wrote: > > Hi Irene, > > my mistake. I don't want to specify a URI. What I need a new blank node which > will be attached to ?this. This works a bit better: > >> CONSTRUCT { >> _:1 :fitForActionType ?actionType . >> _:1 :compatibleWithAccessory ?accessory . >> _:1 rdfs:subClassOf :IndirectCapability. >> ?this :hasIndirectCapability _:1 . >> } >> WHERE { >> ?this :compatibleWithAccessory ?accessory . >> ?accessory a ?accessoryClass. >> ?accessoryClass rdfs:subClassOf* :Accessory. >> ?accessory :fitForActionType ?actionType . >> } > > Problem is: the SPIN reasoner whacks out on this. It gets stuck in a loop... > > Regards, > Michael > >> On Friday, 31 January 2014 14:46:32 UTC+1, Irene Polikoff wrote: >> Michael, >> >> Yes, you can infer any triples you want in a rule. But the example query you >> created needs to be changed. >> >> Your CONSTRUCT clause will not work because ?x is unbound. You must bind it >> in the WHERE clause to create a URI for this new resource. Check out various >> TopBraid functions for building URI. >> >> Regards, >> >> Irene >> >> Sent from my iPhone >> >>> On Jan 31, 2014, at 8:10 AM, "Michael B." <[email protected]> wrote: >>> >>> Is there any way to create new instances / resources using a SPIN rule? I'd >>> like to infer a new individual with something like this: >>> >>> >>>> CONSTRUCT { ?x a :IndirectCapability. >>>> ?x :fitForActionType ?actionType. >>>> ?x :compatibleWithAccessory ?accessory. >>>> ?this :hasIndirectCapability ?x} >>>> WHERE { >>>> ?this :compatibleWithAccessory ?accessory. >>>> ?accessory :fitForActionType ?actionType. >>>> } >>> >>> Regards, >>> Michael >>> -- >>> -- 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 >>> Insight, 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 >>> --- >>> You received this message because you are subscribed to the Google Groups >>> "TopBraid Suite Users" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to [email protected]. >>> For more options, visit https://groups.google.com/groups/opt_out. > > -- > -- 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 Insight, > 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 > --- > You received this message because you are subscribed to the Google Groups > "TopBraid Suite Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. -- -- 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 Insight, 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 --- You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
