Re: Gathering package upstream meta-data in the UDD. (was: Re: more formally indicating the registration URL)
- To: Charles Plessy <plessy@debian.org>
- Cc: Debian QA List <debian-qa@lists.debian.org>, debian-blends@lists.debian.org
- Subject: Re: Gathering package upstream meta-data in the UDD. (was: Re: more formally indicating the registration URL)
- From: Lucas Nussbaum <lucas@lucas-nussbaum.net>
- Date: Tue, 23 Mar 2010 14:17:09 +0100
- Message-id: <[🔎] 20100323131709.GB6048@xanadu.blop.info>
- In-reply-to: <20100206130204.GA27756@kunpuu.plessy.org>
- References: <20100112071247.GA26562@an3as.eu> <20100118005931.GB16674@kunpuu.plessy.org> <20100118110517.GB26360@an3as.eu> <20100118230819.GE26132@kunpuu.plessy.org> <20100119075804.GB15712@an3as.eu> <20100119135148.GA11328@kunpuu.plessy.org> <20100119142051.GA30267@an3as.eu> <20100121145431.GD3723@kunpuu.plessy.org> <20100121150719.GB6206@an3as.eu> <20100206130204.GA27756@kunpuu.plessy.org>
On 06/02/10 at 22:02 +0900, Charles Plessy wrote:
> Le Thu, Jan 21, 2010 at 04:07:19PM +0100, Andreas Tille a écrit :
> > On Thu, Jan 21, 2010 at 11:54:31PM +0900, Charles Plessy wrote:
> > >
> > > I will try to provide drafts for
> > > the loading in UDD. But I never programmed in Python, so I do not expect it
> > > will work out of the box. Hopefully, it will save you some typing.
> >
> > That's a good way to push me for helping you instead of waiting until I
> > find time to do it from scratch. Just ask in case of trouble.
>
> Hi Andreas and everybody,
>
> today I took a couple of hours to study the UDD and python (and snakes and
> Greek mythology, thanks to the Wikipedia syndrome). I attached to this email a
> draft for a bibliographic reference gatherer, “bibref_gatherer.py”.
>
> Although in my previous emails I described a tab-delimited export format from
> the upstream-medadata.d.n system, I realised that this is not robust in case
> one field unfortunately contains a tab. Instead of re-inventing the wheel with
> quoting mechanisms, I simply switched the exchange format to YAML.
>
> http://upstream-metadata.debian.net/for_UDD/biblio.yaml
>
> The above files contains triples to be loaded in a table of the UDD. They
> provide the information needed to feed the Blends web sentinel with
> bibliographic information.
>
> Since I do not run a local copy of the UDD, I did not test the attached
> gatherer. Please treat it as a stub. It is meant to be used with the following
> patch to the UDD configuration file.
>
> Index: config-org.yaml
> ===================================================================
> --- config-org.yaml (révision 1680)
> +++ config-org.yaml (copie de travail)
> @@ -19,6 +19,7 @@
> ddtp: module udd.ddtp_gatherer
> ftpnew: module udd.ftpnew_gatherer
> screenshots: module udd.screenshot_gatherer
> + bibref: module udd.bibref_gatherer
> dehs: module udd.dehs_gatherer
> ldap: module udd.ldap_gatherer
> wannabuild: module udd.wannabuild_gatherer
> @@ -528,6 +529,14 @@
> table: screenshots
> screenshots_json: /org/udd.debian.org/mirrors/screenshots/screenshots.json
>
> +bibref:
> + type: bibref
> + update-command: /org/udd.debian.org/udd/scripts/fetch_bibref.sh
> + path: /org/udd.debian.org/mirrors/bibref
> + cache: /org/udd.debian.org/mirrors/cache
> + table: bibref
> + bibref_yaml: /org/udd.debian.org/mirrors/bibref/bibref.yaml
> +
> wannabuild:
> type: wannabuild
> wbdb: "dbname=wanna-build host=localhost port=5433 user=guest"
>
>
> Please tell me what you think about it, and if you would like me to commit the
> whole to the UDD sources.
Hi Charles,
It would be better if you could try to get a local copy of UDD set up.
It's quite easy since we provide a DB dump already.
I don't really have time to debug your patch, as can be seen by the long
delay before answering this mail.
--
| Lucas Nussbaum
| lucas@lucas-nussbaum.net http://www.lucas-nussbaum.net/ |
| jabber: lucas@nussbaum.fr GPG: 1024D/023B3F4F |
Reply to: