usgpo / api

services to access govinfo content and metadata
https://api.govinfo.gov
Other
184 stars 58 forks source link

get structured data #74

Closed soodoku closed 3 years ago

soodoku commented 3 years ago

dear all,

when i go to: https://www.govinfo.gov/content/pkg/CDIR-2018-10-29/html/CDIR-2018-10-29-STATISTICALINFORMATION-2.htm i see that there is a ton of semi-structured data

MIKE PENCE, Republican, of Columbus, IN; born in Columbus, June 7, 
1959; education: Hanover College, 1981; J.D., Indiana University School 
of Law, 1986; professional: former Republican nominee for the U.S. House 
of Representatives, 2nd District, 1988 and 1990; president, Indiana 
Policy Review Foundation, 1991-93; radio broadcaster: the Mike Pence 
Show, syndicated statewide in Indiana; married: Karen; children: 
Michael, Charlotte, and Audrey; elected to the 107th Congress on 
November 7, 2000; reelected to the 108th through 112th Congress, 2011-
13; Governor, State of Indiana, 2013-17; elected 48th Vice President of 
the United States on November 8, 2016; took the oath of office on 
January 20, 2017.

There is "education:" for education, "professional:" for professional. I can write a parser for this but it seems like a case where structured data was converted to semi-structured text data. It may be useful to provide access to structured data via the API?

jonquandt commented 3 years ago

Thanks for this feedback. We do have some structured data along these lines displayed as part of the summary for individual Members within the ‘members’ element, e.g.:

https://api.govinfo.gov/packages/CDIR-2018-10-29/granules/CDIR-2018-10-29-WI-H-6/summary?api_key=DEMO_KEY

members":[
{"memberName":"Grothman, Glenn",
"bioGuideId":"G000576",
"chamber":"H",
"party":"R",
"state":"WI",
"congress":"115",
"authorityId":"2276"}],
"biography":"GLENN GROTHMAN, Republican, of Glenbeulah, WI; Born in Milwaukee,\nWI, July 3, 1955; education: graduated, Homestead High School, 1973; \nB.B.A., University of Wisconsin, 1978; J.D., University of Wisconsin, \n1983; professional: admitted to the Wisconsin State Bar Association; \nlawyer, Schloemer Law Firm; elected to the Wisconsin State Assembly, \n1993; elected to the Wisconsin State Senate, 2004, served until 2015; \ncommittees: Budget; Education and the Workforce; Oversight and \nGovernment Reform; elected to the 114th Congress on November 4, 2014; \nreelected to 115th Congress on November 8, 2016.",
"state":"WI",
"population":"5686986",
"zipcodes":"53001 53004 53006 53010 53011 53012 53013 53014 53015 53019 53020 53021 53023 53024 53031 53032 53035 53040 53042 53044 53048 53049 53050 53057 53061 53062 53063 53065 53070 53073 53074 53075 53079 53080 53081 53082 53083 53084 53085 53090 53091 53092 53093 53095 53097 53217 53532 53555 53561 53578 53583 53901 53911 53912 53913 53914 53915 53916 53917 53918 53919 53920 53921 53922 53923 53925 53926 53927 53928 53930 53931 53932 53933 53935 53939 53946 53947 53949 53952 53953 53954 53955 53956 53960 53963 53964 53965 53969 54110 54126 54207 54208 54214 54220 54221 54222 54223 54224 54225 54226 54227 54228 54230 54231 54232 54241 54242 54243 54244 54245 54246 54247 54901 54902 54903 54904 54905 54906 54907 54908 54909 54914 54915 54923 54930 54932 54934 54935 54936 54937 54938 54939 54940 54941 54943 54947 54952 54953 54954 54955 54956 54957 54958 54959 54960 54963 54964 54965 54966 54967 54968 54969 54970 54971 54972 54973 54974 54979 54980 54981 54982 54983 54984 54985 54986 ",
"constituents":"709482",
"year":"2010",
"district":"6",
"online":"http://www.grothman.house.gov",

that being said, we can look at ways to enhance this in the future.

soodoku commented 3 years ago

Thanks so much! This helps for sure.