Differences between revisions 1 and 69 (spanning 68 versions)
Revision 1 as of 2008-04-23 07:41:20
Size: 552
Comment:
Revision 69 as of 2015-02-26 03:05:25
Size: 5343
Editor: PaulWise
Comment: add UDD public mirror
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Ultimate Debian Database = #language en
~-[[DebianWiki/EditorGuide#translation|Translation(s)]]: English - [[it/UltimateDebianDatabase|Italiano]] -~
----
Line 3: Line 5:
Ultimate Debian Database (UDD) for short is an ongoing effort to create a relational database to encode information about Debian items (packages, bugs, popularity, ...). '''Ultimate Debian Database (UDD) gathers a lot of data about various aspects of Debian in the same SQL database. It allows users to easily access and combine all these data.'''
Line 5: Line 7:
It is currently being worked on as [wiki:SummerOfCode2008/UltimateDebianDatabase Google Summer of Code 2008 project]. Data currently being imported include: Packages and Sources files, from Debian and Ubuntu, Bugs from the Debian BTS, Popularity contest, History of uploads, History of migrations to testing, Lintian, Orphaned packages, Carnivore, Debtags, Ubuntu bugs (from Launchpad), Packages in NEW queue, DDTP translations.
Line 7: Line 9:
This page is for coordination during the project development.  * Some '''example queries''' are provided as CGI scripts, to make it easy for everyone to run them. You can [[http://udd.debian.org/cgi-bin/|browse them]] or [[http://anonscm.debian.org/gitweb/?p=collab-qa/udd.git;a=tree;f=web/cgi-bin|view the source code]].
 * '''Database schema''': http://udd.debian.org/schema/
 * '''Source code''': available in the git repository of the [[http://alioth.debian.org/projects/collab-qa/|collab-qa project]] at http://anonscm.debian.org/cgit/collab-qa/udd.git/
 * '''Database server''': runs on postgres with plperl and postgresql-debversion
 * UDD related services:
  * [[http://udd.debian.org/bugs.cgi|Bugs Search]]: multi-criteria search engine for bugs
  * [[http://udd.debian.org/dmd.cgi|Debian Maintainer Dashboard]]
  * [[http://udd.debian.org/cgi-bin/bts-usertags.cgi|Bugs Usertags]]: search for usertag on bugs
  * [[http://udd.debian.org/sponsorstats.cgi|Sponsors Stats]] gives some statistics about who is sponsoring uploads to Debian
  * [[http://udd.debian.org/bapase.cgi|Bapase]] allows to search for "interesting" packages using various criterias
  * [[http://public-udd-mirror.xvm.mit.edu/|public UDD mirror]] allows anyone to query UDD using PostgreSQL command-line or GUI clients
Line 9: Line 21:
== Involved people == For more information, please contact us on [[irc://irc.debian.org/debian-qa|#debian-qa]] or debian-qa@lists.debian.org (mailing list [[http://lists.debian.org/debian-qa/|subscription and archives]]).
Line 11: Line 23:
 * Student: Christian von Essen
 * Mentor: Lucas Nussbaum
   * Co-mentor: Stefano Zacchiroli
   * Co-Mentor: Marc 'HE' Brockschmidt
== Connecting to and using UDD ==

'''udd.debian.org''' is running on '''ullmann.debian.org'''. It accepts direct SSLed connections from ''quantz'' (''qa'') and ''moszumanska'' (''alioth'').

 * command-line:
  * {{{psql service=udd}}}
  * or: {{{psql -U guest -h udd.debian.org -p 5452 udd}}}
 * Python:{{{
import psycopg2
conn = psycopg2.connect("service=udd")
cursor = conn.cursor()
cursor.execute("SELECT count(*) from sources where release='sid'")
print cursor.fetchall()[0][0]
}}}
 * Ruby (DBI): {{{require 'dbi' ; dbh = DBI::connect('DBI:Pg:dbname=udd;port=5452;host=udd.debian.org', 'guest') }}}
 * Ruby (PG): {{{require 'pg'; conn = PG.connect({:host => 'udd.debian.org', :port => 5452, :user => 'guest', :dbname => 'udd'}) }}}

If you want to know precisely when a specific data source is updated, you can take a look at the [[http://udd.debian.org/crontabs.txt|crontab]] file. The ''timestamps'' table can tell you when a data source was last updated.

== Improving UDD ==
If you want to help improve UDD, you can '''set up your own instance''' as described on [[UltimateDebianDatabase/Hacking]].
You can '''report bugs''' against the qa.debian.org pseudo-package, using the ''udd'' usertag and user ''qa.debian.org@packages.debian.org''. ([[http://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=udd;users=qa.debian.org@packages.debian.org|list of bugs]])

== Credits ==

UDD started as a Google Summer of Code project by Christian von Essen (Neronus), co-mentored by Lucas Nussbaum, Stefano Zacchiroli and Marc 'HE' Brockschmidt. It is now mainly maintained by Lucas Nussbaum, with help from others.

== Other resources ==
 * [[http://www.loria.fr/~lnussbau/files/debconf9-ultimate-debian-database.pdf|Slides from a UDD talk at Debconf9]]
 * [[http://udd.debian.org/udd.sql.gz|full dump of the database]] generated every two days. (~780 MB and growing)

See also :
 * [[ProjectB]]
 * [[DDE]] (Debian Data Export)

== References ==
Even if its main goal was not to serve as a scientific resarch tool, UDD was already featured in two publications:
 * Lucas Nussbaum and Stefano Zacchiroli. '''The Ultimate Debian Database: Consolidating Bazaar Metadata for Quality Assurance and Data Mining'''.[[http://msr.uwaterloo.ca/msr2010/index.html|7th IEEE Working Conference on Mining Software Repositories (MSR'2010)]][[http://www.loria.fr/~lnussbau/files/msr2010-udd.pdf|Paper]] - [[http://www.loria.fr/~lnussbau/files/msr2010-udd-slides.pdf|Slides]] - [[http://hal.archives-ouvertes.fr/inria-00502886/en|HAL]]

 * Julius Davies, Hanyu Zhang, Lucas Nussbaum and Daniel M. German.'''Perspectives on Bugs in the Debian Bug Tracking System''' [[http://msr.uwaterloo.ca/msr2010/index.html|7th IEEE Working Conference on Mining Software Repositories (MSR'2010): Mining Challenge]] [[http://www.loria.fr/~lnussbau/files/msr2010-debianbugs.pdf|Paper]] - [[http://www.loria.fr/~lnussbau/files/msr2010-debianbugs-slides.pdf|Slides]]- [[http://hal.archives-ouvertes.fr/inria-00502883/en|HAL]]

== SubPages ==

<<PageList(re:^UltimateDebianDatabase/)>>

##UltimateDebianDatabase/CreateLocalReplica (for some reason this link is not getting auto-generated)

----
##CategoryPermalink --> http://udd.debian.org
 CategoryPermalink

Translation(s): English - Italiano


Ultimate Debian Database (UDD) gathers a lot of data about various aspects of Debian in the same SQL database. It allows users to easily access and combine all these data.

Data currently being imported include: Packages and Sources files, from Debian and Ubuntu, Bugs from the Debian BTS, Popularity contest, History of uploads, History of migrations to testing, Lintian, Orphaned packages, Carnivore, Debtags, Ubuntu bugs (from Launchpad), Packages in NEW queue, DDTP translations.

For more information, please contact us on #debian-qa or debian-qa@lists.debian.org (mailing list subscription and archives).

Connecting to and using UDD

udd.debian.org is running on ullmann.debian.org. It accepts direct SSLed connections from quantz (qa) and moszumanska (alioth).

  • command-line:
    • psql service=udd

    • or: psql -U guest -h udd.debian.org -p 5452 udd

  • Python:

    import psycopg2
    conn = psycopg2.connect("service=udd")
    cursor = conn.cursor()
    cursor.execute("SELECT count(*) from sources where release='sid'")
    print cursor.fetchall()[0][0]
  • Ruby (DBI): require 'dbi' ; dbh = DBI::connect('DBI:Pg:dbname=udd;port=5452;host=udd.debian.org', 'guest') 

  • Ruby (PG): require 'pg'; conn = PG.connect({:host => 'udd.debian.org', :port => 5452, :user => 'guest', :dbname => 'udd'}) 

If you want to know precisely when a specific data source is updated, you can take a look at the crontab file. The timestamps table can tell you when a data source was last updated.

Improving UDD

If you want to help improve UDD, you can set up your own instance as described on UltimateDebianDatabase/Hacking. You can report bugs against the qa.debian.org pseudo-package, using the udd usertag and user qa.debian.org@packages.debian.org. (list of bugs)

Credits

UDD started as a Google Summer of Code project by Christian von Essen (Neronus), co-mentored by Lucas Nussbaum, Stefano Zacchiroli and Marc 'HE' Brockschmidt. It is now mainly maintained by Lucas Nussbaum, with help from others.

Other resources

See also :

References

Even if its main goal was not to serve as a scientific resarch tool, UDD was already featured in two publications:

SubPages