Thanks Holger, I will try the Sparql Motion and the import option. I will attempt to supply more information on the pasting problem as I find this most convenient.
What sorts of information would you like? Best, Leonard On Sun, Mar 27, 2011 at 6:31 PM, Holger Knublauch <[email protected]>wrote: > Hi Leonard, > > On Mar 28, 2011, at 7:09 AM, Leonard Jacuzzo wrote: > > > Hello, > > I have been having a strange time attempting to use source code in TBC. > My strategy has been to copy and past source code into the source code view > for the class Thing. > > Basically I have a text file of code that I copy and paste and TBC makes > the appropriate changes when I click on apply. > > > > This procedure has worked for me before. I tried it once at home and it > worked. > > > > I was also using it with some facility on the instance of TBC that I have > on the machine at the office. > > > > However, when I attempted to do the exact same thing on my machine at > home, using the exact same files, TBC does not interpret the code correctly. > > > > Instead of making the new classes subclass of pre-existing classes, all > imports become subclasses of thing, and when I save the result all of the > old classes are erased. > > > > What is more, the source code for the newly generated classes no longer > contains the subclass declaration triple. So, TBC does not recognize that my > new classes are subclasses of pre-existing classes. > > > > I have not gotten a chance to get back to the office to see if this > happens there as well, but I have no reason to think that it should. > (however, this procedure did work on my home machine in the past) > > This is very hard to diagnose without more details. > > > > > So my question is what is the best method for making additions to an > ontology using source code? I did not see any Sparql Motion modules that > would provide for this. > > SPARQLMotion should be OK with this. Try sml:ConvertTextToRDF (if you have > the file loaded as a string), or just load the file using > sml:ImportRDFFromWorkspace and then run sml:PerformUpdate to add the triples > from that file into the current target model. > > 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 > -- 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
