Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

null date fields in BILLS files #82

Open
evan-benoit opened this issue Apr 29, 2021 · 2 comments
Open

null date fields in BILLS files #82

evan-benoit opened this issue Apr 29, 2021 · 2 comments
Assignees

Comments

@evan-benoit
Copy link

Hello! I'm a Senior Engineering Manager at FiscalNote, managing our Congressional Quarterly product. My engineers are making extensive use of the GovInfo API (https://api.govinfo.gov/docs/) to download Bill Texts, Bill Status, Committee Reports, Federal Registers, and Congressional Records. It's a great system, very well-documented!

One thing we've noticed is that the Bill Text XML files don't always have data in the dc:date. Most bill versions do, but a small percentage of them don't. Do you know why that might be? Is this a bug on your side? Or is that expected behavior?

Some examples of XML files that are missing data in the dc:date field:

On the other hand, here's an example of one that does have a date:

Any guidance would be appreciated. Thanks!

@jonquandt jonquandt self-assigned this Apr 29, 2021
@jonquandt
Copy link
Member

jonquandt commented Apr 29, 2021

@evan-benoit I'm checking into this to give you a more definitive answer.

In the mean-time, you may be interested in using the dateIssued value from the package summary, mods, or pulling from the associated BILLSTATUS xml for the given bill version.

@jonquandt
Copy link
Member

Based on some additional investigation, it appears that this occurs when the source Bill XML does not include an tag that includes a date attribute. there are some minor additions to fill in the Dublin core metadata when GPO receives the files.

From the four examples above, only the last one has the action-date tag with a date attribute.

https://www.govinfo.gov/content/pkg/BILLS-116s1342es/xml/BILLS-116s1342es.xml
https://www.govinfo.gov/content/pkg/BILLS-116hjres28eh/xml/BILLS-116hjres28eh.xml
Do not have action-date tags

https://www.govinfo.gov/content/pkg/BILLS-116hr1754rds/xml/BILLS-116hr1754rds.xml
Has an action-date, but no date attribute

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants