Thread: [libdb-develop] Python module - intent
Status: Inactive
Brought to you by:
morbus
From: Terry H. <ha...@an...> - 2004-11-05 09:31:33
|
Hi Morbus (and others), We spoke earlier this year, I believe, when you just had SQL for LibDB (I think we met on Web4lib), but I forget... I suggested switching to Python rather than Perl, as you may recall, and I think we agreed that I'd probably be able to use your SQL schema work as a basis at the very least, but that I'd be on my own with the Python. ;-) Anyway, you recommended reading the FRBR paper, and I finally did. I've also downloaded version 0.0.3 of LibDB and have been looking at the code. I have made an attempt to read the Perl code. Well, all I can say is, I *thought* I had learned Perl, but I seemed to have forgotten what I learned. Your comments and program file style are a great relief from the usual hacker fare, though -- thank you, I really respect that! The code doesn't really seem to do that much though, as yet (or I'm not looking at the right bits), and I'm wondering what it's for in a general way. I wonder if I need to understand it at all. Do you discuss the object-model anywhere? I also am intrigued by the Javascript code you have for web templates -- I wonder if I can make use of that, too, provided there is enough similarity of purpose. My goal is to create a Python cataloging module to be used with Zope, which will package an object/collection-of-objects and provide FRBR-model-compliant cataloging capabilities. As a Sourceforge user, you will be familiar with the "Trove" categorization system. This is something like what I'm trying to use FRBR for (but I want to do a much better job, which I think FRBR compliance can provide). So there will be self-cataloging, done by the project owner, and then catalog searching by end-users trying to find software. I also envision a class of "librarian-users" who will have the authority to re-catalog or "flesh-out" the catalog information, providing better meta-data and "shelving" the results to make them more accessible to the end-users. And of course, I visualize a greater variety of items -- not just software packages, but e-books, audio records, slide-shows and hardware CAD drawings, etc. Some of the layers in FRBR (such as "Manifestations") will not be separate items in the FTP storage server, but rather separate ways of processing and delivering the same content. Will I benefit from examining your object model do you think, or would I be better off designing code from scratch, but sharing the SQL schema? Cheers, Terry -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com |
From: Bruce D'A. <bd...@fa...> - 2004-11-05 13:31:20
|
On Nov 5, 2004, at 4:36 AM, Terry Hancock wrote: > I have made an attempt to read the Perl code. Well, all I > can say is, I *thought* I had learned Perl, but I seemed to > have forgotten what I learned. Your comments and program > file style are a great relief from the usual hacker fare, > though -- thank you, I really respect that! > > The code doesn't really seem to do that much though, as yet > (or I'm not looking at the right bits), and I'm wondering > what it's for in a general way. I wonder if I need to > understand it at all. Do you discuss the object-model > anywhere? Morbus switched to PHP/Drupal awhile ago, so that's outdated. See here though, where there's a page on the data model: http://www.disobey.com/noos/LibDB/ > And of course, I visualize a greater variety of items -- not > just software packages, but e-books, audio records, > slide-shows and hardware CAD drawings, etc. Some of the > layers in FRBR (such as "Manifestations") will not be > separate items in the FTP storage server, but rather > separate ways of processing and delivering the same > content. > > Will I benefit from examining your object model do you > think, or would I be better off designing code from > scratch, but sharing the SQL schema? I think this is a good idea. I posted something on this recently: http://netapps.muohio.edu/blogs/darcusb/darcusb/archives/2004/10/26/ library-applications I'm not really a programmer (am slowly learning, but it takes time, and I don't have much of it), but I've been playing a bit with a new Ruby web framework called Rails that is really nice. I want to make a call that I repeatedly make: please design whatever you do so that I (a professional scholar) can use it. That means I need to be able to store metadata on everything from legal documents to magazine articles, to books. The FRBR is designed precisely for this flexibility. Perhaps there's a way you can also collaborate on a configurable form system (say using something like YAML to specify fields and their labels; so the basic logic, not code)? I threw together a wiki page that shows what I'm thinking. http://darcusb.geo.muohio.edu:2500/dev/show/config There are other alternatives of course (such as more explicit hierarchy). Also, I want to be able to add a simple module that can format bibliographies in documents. I have an XSLT-based formatting solution I'm working on, but there still needs to be some integration with a database such that it can scan the document for citations, and insert the (XML) bib records to pass of to the XSLT processor. See here for more on some ideas for that: http://netapps.muohio.edu/blogs/darcusb/darcusb/archives/2004/10/02/ bib-formatting-as-web-service Bruce |
From: Bruce D'A. <bd...@fa...> - 2004-11-05 14:02:40
|
Also, have you seen unalog? http://unalog.com/ Written in Python (using Quixote), and I have a hunch could over time be nicely integrated with a bib db solution. Bruce |
From: Morbus I. <mo...@di...> - 2004-11-29 15:27:33
|
> Hi Morbus (and others), Sorry for taking so long to respond. I get in these email ruts where the Inbox keeps getting larger and larger, and I keep finding more and more work to do to stop me from answering it all. I've sent 50 messages out so far this morning, so I'm making some nice headway ;) > I have made an attempt to read the Perl code. Well, all I > can say is, I *thought* I had learned Perl, but I seemed to > have forgotten what I learned. Your comments and program > file style are a great relief from the usual hacker fare, > though -- thank you, I really respect that! Thanks - I get that a lot, actually :) As Bruce said though, the code has moved to PHP. You can see my rationale for doing so here: http://libdb.com/why_drupal. Long story short, I felt an OPAC/CMS was more powerful and ultimately useful than just OPAC, and I really had no desire to make a new CMS. Drupal had blown me away when I first implemented it for Gamegrene.com, and it was a perfect fit, IMO, for LibDB. The new CVS for LibDB is: http://cvs.drupal.org/viewcvs/contrib/contributions/modules/libdb/ And you can see the latest module code (libdb.module) in there. Here's hoping my PHP code is remotely like my Perl <g>. The code is documented with Doxygen, which allows me to automatically generate an API/HTML export. You can see that here: http://www.libdb.com/developer/api > (or I'm not looking at the right bits), and I'm wondering > what it's for in a general way. I wonder if I need to That code, and ultimately, the current Drupal code doesn't do much - refer to the just-posted message on "Embarrassing uberAlpha" for more information on this. > I also am intrigued by the Javascript code you have for web > templates -- I wonder if I can make use of that, too, > provided there is enough similarity of purpose. Yep - anything in the CVS (either the SF CVS with the Perl code, or the Drupal CVS) is Artistic or GPL licensed, so you can use it as needed. -- Morbus Iff ( united we're bland ) Technical: http://www.oreillynet.com/pub/au/779 Culture: http://www.disobey.com/ and http://www.gamegrene.com/ icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus |