PUBYEAR IS 2010 AND AFFILCOUNTRY(Sweden) AND NOT SUBJAREA(ARTS OR BUSI OR DECI OR ECON OR PSYC OR SOCI)
through pybliometrics.scopus.ScopusSearch, one of the results is the following (notice that the namedtuple returned by the .results attribute has been converted into a dictionary):
Notice that the 3rd and 4th authors both have an affiliation ID equal to "109703819", and this affiliation ID does not appear in the list of affiliation IDs (the field "afid"). Notice also that the 5th author has a missing (empty) affiliation ID.
But if you look up the document in SCOPUS, you will discover that the 3rd and 4th authors have affiliation information, in particular they are affiliated with "IBM Haifa Labs., Haifa, IL, United States".
Also the 5th author, the one for which the results returned by pybliometrics showed no information, in the webpage of the article in SCOPUS is affiliated with "Evidence S.r.l., Pisa, Italy". So also the 5th author has an affiliation in SCOPUS
The article view on scopus.com mentions an affiliation as they appear on the paper. Scopus makes an attempt to link listed affiliations to existing affiliation profiles, but does not always succeed. If Scopus has little confidence in its parsing, the affiliation will become a non-org profile affiliation (starting with 1, see see https://pybliometrics.readthedocs.io/en/stable/tips.html#affiliations).
Field "afid" only contains org profile affiliations (those starting with 6). Therefore it's totally usual that fields "author_afids" and "afid" do not match.
That the fifth author has no associated affiliation ID although it shows up on scopus.com is indeed strange. But that's due to the data retrieved through the Scopus API - it's not at all related to pybliometrics hiding information or anything. I think I've seen strange cases on affiliation profiles before, such linking a non-existent affiliation profile. Maybe ask the Scopus Integration Service if the error is important to you.
Maybe this is related to #151
When I try to run the following query:
PUBYEAR IS 2010 AND AFFILCOUNTRY(Sweden) AND NOT SUBJAREA(ARTS OR BUSI OR DECI OR ECON OR PSYC OR SOCI)
through
pybliometrics.scopus.ScopusSearch
, one of the results is the following (notice that the namedtuple returned by the.results
attribute has been converted into a dictionary):Notice that the 3rd and 4th authors both have an affiliation ID equal to "109703819", and this affiliation ID does not appear in the list of affiliation IDs (the field "afid"). Notice also that the 5th author has a missing (empty) affiliation ID.
But if you look up the document in SCOPUS, you will discover that the 3rd and 4th authors have affiliation information, in particular they are affiliated with "IBM Haifa Labs., Haifa, IL, United States".
Also the 5th author, the one for which the results returned by pybliometrics showed no information, in the webpage of the article in SCOPUS is affiliated with "Evidence S.r.l., Pisa, Italy". So also the 5th author has an affiliation in SCOPUS