[open-bibliography] getting a personal bib library out
Mark MacGillivray
mark at odaesa.com
Wed Jan 18 23:57:13 UTC 2012
On Wed, Jan 18, 2012 at 11:35 PM, Jim Pitman <pitman at stat.berkeley.edu> wrote:
> to bibsoup, by whatever means, with whatever name, I should be able to retrieve this dataset from a url
> as simple as
>
> http://bibsoup.net?source=https://raw.github.com/langner/library/master/library.small.bib
>
> Whatever your internal ids, I believe this is as simple as tagging the dataset with its source
> url, and retrieving from the database by the value of the source_url tag. Isnt that so? I think
> this is implicit in your instructions.
> Can you please advise how to do that, and document exactly how to retrieve a dataset from its source url,
> by a machine, and not by a human?
Not quite as simple as one URL, but achievable via a machine,
depending on the language in which you are writing, by the equivalent
of the following:
1) curl -X GET 'http://bibsoup.net/collections/?q=source:"http://bibserver.berkeley.edu/tmp/testbib.bib"&format=json&meta=false'
2) The JSON result will include [0]['id'] and [0]['owner']
3) from which can be inferred http://bibsoup.net/pitman/test_bib
I have added an feature request to the issues to add a /source/<url> routing.
Mark
>
> many thanks
>
> --Jim
>
>
>> >> It may be as simple as putting the source url in the right search field, I
>> >> just dont see how.
>>
>> You can view all the collections at http://bibsoup.net/collections,
>> and in the search bar there you can put in
>> "http://bibserver.berkeley.edu/tmp/testbib.bib"
>> to return any collection that was created from that source. There are
>> search options on the main search pages where you can select exact
>> match (equivalent to adding the quotes), but I have not put them on
>> the collections page search yet. Will add on the next update.
>>
>>
>> > I suspect this is solved by convention-over-configuration. We can recommend
>> > that Bibsoupers use URLs and URIs in specified ways and if they do I suspect
>> > this is soluble. It's the clash between addresses and names. We probably
>> > need a Bibsoup URI Mint
>> >
>> >>
>> >> It is a serious problem for any user who wishes to programmatically upload
>> >> many bibliographies to
>> >> BibSoup that there is no obvious way to retrieve them after programmatic
>> >> upload without user
>> >> retaining a dictionary to e.g. map
>> >> https://raw.github.com/langner/library/master/library.small.bib to
>> >> karol_m_langer_s_bibliography
>>
>> We did originally allow the collection ID to be created from the
>> source URL if a collection ID were not provided, but this created long
>> and unwieldy collection IDs so we opted for requiring one is provided.
>> If you are doing programmatic upload, you must have to define the
>> collection IDs in advance anyway, so do you not already know what they
>> are for subsequent queries? If you are meaning the case where you
>> upload a collection from a particular URL a second time, then you do
>> not actually have to worry about matching the collection IDs - any
>> collection that you previously created will be overwritten if it has
>> the same source URL, and the collection ID will be altered to match
>> whichever new collection ID you provide (or will be the same if you
>> use the same collection ID).
>>
>> As Peter says, I am really glad that overall this is working well for
>> people, and that we can create these collections rapidly. The work
>> this week on updating the websites and issue lists is going well, so
>> we are in a good position to do some final tweaking and put up more
>> examples.
>>
>> Mark
>>
>>
>> >>
>> > Do you mean find the Bibservers or retrieve their content? I fully agree
>> > that a Bibserver needs something like .dump()
>> >
>> >>
>> >> many thanks
>> >>
>> >>
>> >>
>> >> _______________________________________________
>> >> open-bibliography mailing list
>> >> open-bibliography at lists.okfn.org
>> >> http://lists.okfn.org/mailman/listinfo/open-bibliography
>> >
>> >
>> >
>> >
>> > --
>> > Peter Murray-Rust
>> > Reader in Molecular Informatics
>> > Unilever Centre, Dep. Of Chemistry
>> > University of Cambridge
>> > CB2 1EW, UK
>> > +44-1223-763069
>> >
>> > _______________________________________________
>> > open-bibliography mailing list
>> > open-bibliography at lists.okfn.org
>> > http://lists.okfn.org/mailman/listinfo/open-bibliography
>> >
>>
>> _______________________________________________
>> open-bibliography mailing list
>> open-bibliography at lists.okfn.org
>> http://lists.okfn.org/mailman/listinfo/open-bibliography
More information about the open-bibliography
mailing list