Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

epmc_search returns fewer fields than available in the API #57

Open
@arvi1000

Description

@arvi1000

Thank you for this package, maintainers!

I notice thatepmc_search doesn't return some of the useful fields that are available in the API. I think it would would be valuable to return all fields. For example, the API returns both the booleanhasTMAaccessionNumbers but also theaccessionType, while the package returns only the former.

Example of different fields returned:

library(europepmc)library(httr)# get results for one id from the package and the apipackage_result <- epmc_search("PMC10669250")direct_api_result <-  GET('https://www.ebi.ac.uk/europepmc/webservices/rest/search?',           query = list(query='PMC10669250',                       resultType='lite',                       format='json')      ) |>  content()# compare fields returnedpackage_result |> names()direct_api_result$resultList$result[[1]] |> unlist() |> names()

from the package:

 [1] "id"                    "source"                "pmcid"                 "title"                 "authorString"          "journalTitle"          "issue"                 [8] "journalVolume"         "pubYear"               "journalIssn"           "pubType"               "isOpenAccess"          "inEPMC"                "inPMC"                [15] "hasPDF"                "hasBook"               "hasSuppl"              "citedByCount"          "hasReferences"         "hasTextMinedTerms"     "hasDbCrossReferences" [22] "hasLabsLinks"          "hasTMAccessionNumbers" "firstIndexDate"        "firstPublicationDate"

from the API:

 [1] "id"                                "source"                            "pmcid"                             "fullTextIdList.fullTextId"         [5] "title"                             "authorString"                      "journalTitle"                      "issue"                             [9] "journalVolume"                     "pubYear"                           "journalIssn"                       "pubType"                          [13] "isOpenAccess"                      "inEPMC"                            "inPMC"                             "hasPDF"                           [17] "hasBook"                           "hasSuppl"                          "citedByCount"                      "hasReferences"                    [21] "hasTextMinedTerms"                 "hasDbCrossReferences"              "hasLabsLinks"                      "hasTMAccessionNumbers"            [25] "tmAccessionTypeList.accessionType" "firstIndexDate"                    "firstPublicationDate"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp