ScienceToolbox / code_citations

Ruby gem for finding citations of open scientific code
MIT License
10 stars 1 forks source link

Mendeley API #4

Closed jure closed 10 years ago

jure commented 10 years ago

Similar to Crossref metadata search proposed in #3, Mendeley's API also doesn't do full-text search through its index, so a query like this:

https://api-oauth2.mendeley.com/oapi/documents/search/"vegan: community ecology package"?access_token=MSwxMzk2Njg2Mzg4ODUzLCwxOTIsLCxfWFV2TjduS1NaYk9tdUUzUEhkcU4yVHo1bTA

will only return exact matches in the title, for example:

{
    "documents": [
        {
            "uuid": "e27de5a9-eb7a-328d-a9e7-521d0d0ad7f2",
            "title": "vegan: Community Ecology Package",
            "publication_outlet": "R package version",
            "year": 2012,
            "mendeley_url": "http://www.mendeley.com/catalog/vegan-community-ecology-package/",
            "doi": "10.4135/9781412971874.n145",
            "authors": [
                {
                    "forename": "Jari",
                    "surname": "Oksanen"
                },
                {
                    "forename": "F Guillaume",
                    "surname": "Blanchet"
                },
                {
                    "forename": "Roeland",
                    "surname": "Kindt"
                },
                {
                    "forename": "Pierre",
                    "surname": "Legendre"
                },
                {
                    "forename": "R B",
                    "surname": "O'Hara"
                },
                {
                    "forename": "Gavin L",
                    "surname": "Simpson"
                },
                {
                    "forename": "Peter",
                    "surname": "Solymos"
                },
                {
                    "forename": "M Henry H",
                    "surname": "Stevens"
                },
                {
                    "forename": "Helene",
                    "surname": "Wagner"
                }
            ]
        },
        {
            "uuid": "ac8a7221-ca9c-3b14-b111-ff67ec374b6b",
            "title": "vegan: Community Ecology Package. R package version 2.1-20/r2309.",
            "publication_outlet": "www.R-project.org.",
            "year": 2012,
            "mendeley_url": "http://www.mendeley.com/research/vegan-community-ecology-package-r-package-version-2120r2309/",
            "doi": null,
            "authors": [
                {
                    "forename": "Jari",
                    "surname": "Oksanen"
                },
                {
                    "forename": "F. Guillaume",
                    "surname": "Blanchet"
                },
                {
                    "forename": "Roeland",
                    "surname": "Kindt"
                },
                {
                    "forename": "Pierre",
                    "surname": "Legendre"
                },
                {
                    "forename": "Peter R.",
                    "surname": "Minchin"
                },
                {
                    "forename": "R. B.",
                    "surname": "O'Hara"
                },
                {
                    "forename": "Gavin L.",
                    "surname": "Simpson"
                },
                {
                    "forename": "Peter",
                    "surname": "Solymos"
                },
                {
                    "forename": "M.",
                    "surname": "Henry"
                },
                {
                    "forename": "H.",
                    "surname": "Stevens"
                },
                {
                    "forename": "H.",
                    "surname": "Wagner"
                }
            ]
        },
        {
            "uuid": "bc5494e1-ed5e-314b-aa50-7c34eb3adf78",
            "title": "vegan: Community Ecology Package. R package version 2.0-9.",
            "publication_outlet": "R package version",
            "year": 2013,
            "mendeley_url": "http://www.mendeley.com/research/vegan-community-ecology-package-r-package-version-209-3/",
            "doi": "10.4135/9781412971874.n145",
            "authors": [
                {
                    "forename": "Jari",
                    "surname": "Oksanen"
                },
                {
                    "forename": "F Guillaume",
                    "surname": "Blanchet"
                },
                {
                    "forename": "Roeland",
                    "surname": "Kindt"
                },
                {
                    "forename": "Pierre",
                    "surname": "Legendre"
                },
                {
                    "forename": "Peter R.",
                    "surname": "Minchin"
                },
                {
                    "forename": "R B",
                    "surname": "O'Hara"
                },
                {
                    "forename": "Gavin L",
                    "surname": "Simpson"
                },
                {
                    "forename": "Peter",
                    "surname": "Solymos"
                },
                {
                    "forename": "M Henry H",
                    "surname": "Stevens"
                },
                {
                    "forename": "Helene",
                    "surname": "Wagner"
                }
            ]
        }
    ],
    "total_results": 3,
    "total_pages": 1,
    "current_page": 0,
    "items_per_page": 20
}

So the usability of this API is limited as well and doesn't make sense to include. The only way it could be useful if we did a general -> specific search, so you would say search for "community ecology" on Mendeley's API, then try to get the full text through other means and then search through this full text by yourself. This will be very slow though.

sckott commented 10 years ago

Agreed, this doesn't make much sense.

jure commented 10 years ago

Closing this for mostly the same reasons as #3.

sckott commented 10 years ago

@jure Now that Mendeley is within Elesevier, perhaps there is some way to expose reference lists in the Mendeley API, which is what is needed right to find citations to R packages?