Re: Help with database planning

2009-11-14 Thread Rob Williscroft
Juliano wrote in news:0e64893a-af82-4004-bf3c-f397f2022...@g22g2000prf.googlegroups.com in comp.lang.python: [snip] > So, for ONE *concept*, we have, usually, MANY *slots*, each *slot* has > ONE *facet*, and each *facet* can have MORE THAN ONE *filler*. > Besides, some *slots* and *fillers* are

Re: Help with database planning

2009-11-14 Thread Ben Finney
Juliano writes: > We've been working with an ontology at my department […] I have been > being pushed towards changing the basic plan and build a DB so that > data access will be faster and easier for both the desktop GUI and the > web app. Right now, I'm trying to work with sqlite, since it can

Re: Help with database planning

2009-11-14 Thread Ken Seehart
Oops, forgot the blank arg. Anyway, this is of course untested code... # Only one of the following is used. The other two are blank. concept = models.ForeignKey(Concept, blank=True) slot = models.ForeignKey(Slot, blank=True) filler = models.ForeignKey(Filler, blank=True) Ken Seehart wr

Re: Help with database planning

2009-11-14 Thread Ken Seehart
Good idea to use Django. I've just started using it and I really like it. However, I should give you a heads-up: You will probably want to use a Django migration tool (I'm using South) because the alternative is basically to rebuild your database each time your model changes. Unfortunately,

Re: Help with database planning

2009-11-14 Thread Himanshu
2009/11/14 Juliano : > Hello, everybody. > > I'm a linguist with practical skills on computers/programming. > > We've been working with an ontology at my department, and now I need > to create a GUI viewer for the flat file we have. > I tried to write an Ontology class which manages the data read a

Help with database planning

2009-11-14 Thread Juliano
Hello, everybody. I'm a linguist with practical skills on computers/programming. We've been working with an ontology at my department, and now I need to create a GUI viewer for the flat file we have. I tried to write an Ontology class which manages the data read and parsed from the flat file, but