[openbiblio-dev] query to bibliographica.org

William Waites ww at styx.org
Thu Apr 7 21:30:36 UTC 2011

* [2011-04-05 18:13:06 +0200] Primavera De Filippi <primavera.defilippi at okfn.org> écrit:

] (1) Is it possible to directly query the database to only retrieve metadata
] concerning those works which fulfill the search criteria, i.e. author /
] title / date / country / etc.  If so, how can we do that?

Hello Primavera and all,

Sorry this took a bit longer than expected, there was some confusion
about whether we would wait for the improved full-text search (Solr)
before doing this, but in the end we just hacked this together on top
of the existing FTS.

So searching on specific criteria is not at the moment possible until
we are able to expose the SPARQL endpoint again, but generic search
is. For example you can do,


or, better,

    curl -H Accept:text/javascript 'http://bibliographica.org/search?q=primavera'

and get back pretty much the same information which appears in the
HTML search page, the URIs for the books in question and some very
minimal metadata. You can then iterate over the URIs and pull the
complete JSON representation for the books, e.g.

    curl -H Accept:text/javascript 'http://bnb.bibliographica.org/entry/GB9003994'

Mark, hopefully this will be useful too for the demonstration that you
would like to make.

William Waites                <mailto:ww at styx.org>
http://river.styx.org/ww/        <sip:ww at styx.org>
F4B3 39BF E775 CF42 0BAB  3DF0 BE40 A6DF B06F FD45

More information about the openbiblio-dev mailing list