usnationalarchives / federalregister-api-core

Federal Register 2.0 API and Data Importer
https://www.federalregister.gov
Other
136 stars 34 forks source link

Topics related to Notification #16

Open manimittal15 opened 5 years ago

manimittal15 commented 5 years ago

Hi Team,

We can view various topics list in link : https://www.federalregister.gov/topics . Any new FR notification is been categorized under these topics. Could you please let us know how these topics are assigned. Also these topics are assigned for each notification having multiple title/parts, can we have any repository where we can find topics assigned at parts/section mentioned in FR notification.

Thanks, Mani Mittal

peregrinator commented 5 years ago

Hi Mani, topics are chosen by the agency as part of publishing the document and can generally be seen in the 'List of Subjects' section of the document.

For example here in the following document: https://www.federalregister.gov/documents/2019/07/11/2019-14098/new-animal-drugs-updating-tolerances-for-residues-of-new-animal-drugs-in-food#los-cfr-1

These topics are extracted from the MODS file the GPO provides for each document - in this example here: https://www.govinfo.gov/metadata/granule/FR-2019-07-11/2019-14098/mods.xml

Within that XML document you can see nodes like the following that should provide you with what you are looking for:

<cfr title="21">
  <part number="500"/>
  <subject>Animal Drugs</subject>
  <subject>Animal Feeds</subject>
  <subject>Cancer</subject>
  <subject>Labeling</subject>
  <subject>Packaging and Containers</subject>
  <subject>Polychlorinated Biphenyls (Pcbs)</subject>
</cfr>

This data is not available as an API endpoint at this time so you will need to consume the corresponding MODS file for each document. Our API does however provide a url to the correct file as part of the mods_url field.

manimittal15 commented 5 years ago

Hi Bob,

Thanks for your response. While analyzing the above links I found a discrepancies in subject list. In MODS file subjects are mention under only Part 500 and Part 556 whereas in federalregister link we have subjects for parts 520, 522, 524, 526, 529 and 558 as well.

subj1 subj2