Differences between revisions 80 and 81
Revision 80 as of 2017-03-17 07:55:12
Size: 5645
Comment: udd-mirror.d.n has https now
Revision 81 as of 2018-02-10 18:04:11
Size: 5582
Editor: ?JamesMcCoy
Comment: Change alioth links to salsa
Deletions are marked like this. Additions are marked like this.
Line 9: Line 9:
 * Some '''example queries''' are provided as CGI scripts, to make it easy for everyone to run them. You can [[https://udd.debian.org/cgi-bin/|browse them]] or [[https://anonscm.debian.org/git/collab-qa/udd.git/tree/web/cgi-bin|view the source code]].  * Some '''example queries''' are provided as CGI scripts, to make it easy for everyone to run them. You can [[https://udd.debian.org/cgi-bin/|browse them]] or [[https://salsa.debian.org/qa/udd/tree/master/web/cgi-bin|view the source code]].
Line 11: Line 11:
 * '''Source code''': available in the git repository of the [[https://alioth.debian.org/projects/collab-qa/|collab-qa project]] at https://anonscm.debian.org/git/collab-qa/udd.git/  * '''Source code''': available in the git repository of the [[https://salsa.debian.org/qa|qa project]] at https://salsa.debian.org/qa/udd
Line 54: Line 54:
 * [[https://udd.debian.org/dumps/udd.dump|full dump of the database]] generated every two days. (~1.1 GB and growing, to be restored using pg_restore. See [[http://anonscm.debian.org/cgit/collab-qa/udd.git/tree/scripts/recreate-db|this script]] for an example)  * [[https://udd.debian.org/dumps/udd.dump|full dump of the database]] generated every two days. (~1.1 GB and growing, to be restored using pg_restore. See [[https://salsa.debian.org/qa/udd/blob/master/scripts/recreate-db|this script]] for an example)

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.

If you do not have access to the required machines, you can access the public UDD mirror directly from your own machines.

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