Hi Holger, I have a property "SomePrefix:firstCreated" that records the date when something is created. I just want to be able to automatically insert a triple, "SomePrefix:SomeClass SomePrefix:firstCreated <date>" everytime I create a class.
Should I then specify my spin:constructor on owl:Class? Thanks for your help! Naicong From: [email protected] [mailto:[email protected]] On Behalf Of Holger Knublauch Sent: Monday, March 11, 2013 3:59 PM To: [email protected] Subject: Re: [topbraid-users] Using spin:constructor Hi Naicong, I think for this to work you would need to have the rdfs:subClassOf triple available when the constructor is executed. However, the only triple you can rely on is the rdf:type triple. So doing a constructor that behaves differently depending on the position in the class hierarchy would not work. You may want to clarify what you try to do if this doesn't answer your question. Cheers, Holger On 3/12/2013 8:37, Li, Naicong wrote: Hi, I have used spin:constructor specified on a class to automatically insert triples to instances of that class when they are created, and it's very helpful. Can I use spin:constructor to automatically insert triples to subclasses that I am creating? If so where can I see an example? I tried a couple things but it didn't work. Thanks. Naicong -- -- 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]<mailto:[email protected]> To unsubscribe from this group, send email to [email protected]<mailto:[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]<mailto:[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 Ensemble, SPARQLMotion, SPARQL Web Pages and SPIN. To post to this group, send email to [email protected]<mailto:[email protected]> To unsubscribe from this group, send email to [email protected]<mailto:[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]<mailto:[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 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 --- 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.
