LISTSERV mailing list manager LISTSERV 16.5

Help for CODE4LIB Archives


CODE4LIB Archives

CODE4LIB Archives


CODE4LIB@LISTS.CLIR.ORG


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

CODE4LIB Home

CODE4LIB Home

CODE4LIB  September 2014

CODE4LIB September 2014

Subject:

Re: Reconciling corporate names?

From:

Jean Roth <[log in to unmask]>

Reply-To:

Code for Libraries <[log in to unmask]>

Date:

Mon, 29 Sep 2014 13:55:50 -0400

Content-Type:

TEXT/PLAIN

Parts/Attachments:

Parts/Attachments

TEXT/PLAIN (205 lines)

What is the link to the downloadable LCNAF data?  --  Jean

On Mon, 29 Sep 2014, Kyle Banerjee wrote:

KB> IMO, API isn't the best tool for this job. My inclination would be to just
KB> download the LCNAF data, normalize source and comparison data, and then
KB> compare via hash.
KB> 
KB> That will be easier to write, and you'll be able to do thousands of
KB> comparisons per second.
KB> 
KB> kyle
KB> 
KB> On Mon, Sep 29, 2014 at 8:24 AM, Jonathan Rochkind <[log in to unmask]> wrote:
KB> 
KB> > For yet another data set and API that may or may not meet your needs,
KB> > consider VIAF -- Virtual International Authority File, operated by OCLC.
KB> >
KB> > The VIAF's dataset includes the LC NAF as well as other national authority
KB> > files, I'm not sure if the API is suitable to limiting matches to the LC
KB> > NAF, I haven't done much work with it, but I know it has an API.
KB> >
KB> > http://oclc.org/developer/develop/web-services/viaf.en.html
KB> >
KB> >
KB> > On 9/29/14 10:18 AM, Trail, Nate wrote:
KB> >
KB> >> The ID.loc.gov site has a good known label service described here under
KB> >> "known label retrieval" :
KB> >> http://id.loc.gov/techcenter/searching.html
KB> >>
KB> >> Use  Curl and content negotiation to avoid screen scraping, for example,
KB> >> for LC Name authorities:
KB> >>
KB> >> curl -L -H "Accept: application/rdf+xml" "http://id.loc.gov/
KB> >> authorities/names/label/Library%20of%20Congress"
KB> >>
KB> >> Nate
KB> >>
KB> >> ==========================
KB> >> Nate Trail
KB> >> LS/TECH/NDMSO
KB> >> Library of Congress
KB> >> [log in to unmask]
KB> >>
KB> >>
KB> >> -----Original Message-----
KB> >> From: Code for Libraries [mailto:[log in to unmask]] On Behalf Of
KB> >> Simon Brown
KB> >> Sent: Monday, September 29, 2014 9:38 AM
KB> >> To: [log in to unmask]
KB> >> Subject: Re: [CODE4LIB] Reconciling corporate names?
KB> >>
KB> >> You could always web scrape, or download and then search the LCNAF with
KB> >> some script that looks like:
KB> >>
KB> >> #Build query for webscraping
KB> >> query = paste("http://id.loc.gov/search/?q=", URLencode("corporate name
KB> >> here "), "&q=cs%3Ahttp%3A%2F%2Fid.loc.gov%2Fauthorities%2Fnames")
KB> >>
KB> >> #Make the call
KB> >> result = readLines(query)
KB> >>
KB> >> #Find the lines containing "Corporate Name"
KB> >> lines = grep("Corporate Name, result)
KB> >>
KB> >> #Alternatively use approximate string matching on the downloaded LCNAF
KB> >> data query <- agrep("corporate name here",LCNAF_data_here)
KB> >>
KB> >> #Parse for whatever info you want
KB> >> ...
KB> >>
KB> >> My native programming language is R so I hope the functions like paste,
KB> >> readLines, grep, and URLencode are generic enough for other languages to
KB> >> have some kind of similar thing.  This can just be wrapped up into a for
KB> >> loop:
KB> >> for(i in 1:40000){...}
KB> >>
KB> >> Web scraping the results of one name at a time would be SLOW and
KB> >> obviously using an API is the way to go but it didn't look like the OCLC
KB> >> LCNAF API handled Corporate Name.  However, it sounds like in the previous
KB> >> message someone found a work around.  Best of luck! -Simon
KB> >>
KB> >>
KB> >>
KB> >>
KB> >>
KB> >>
KB> >> On Mon, Sep 29, 2014 at 8:45 AM, Matt Carruthers <[log in to unmask]>
KB> >> wrote:
KB> >>
KB> >>  Hi Patrick,
KB> >>>
KB> >>> Over the last few weeks I've been doing something very similar.  I was
KB> >>> able to figure out a process that works using OpenRefine.  It works by
KB> >>> searching the VIAF API first, limiting results to anything that is a
KB> >>> corporate name and has an LC source authority.  OpenRefine then
KB> >>> extracts the LCCN and puts that through the LCNAF API that OCLC has to
KB> >>> get the name.  I had to use VIAF for the initial name search because
KB> >>> for some reason the LCNAF API doesn't really handle corporate names as
KB> >>> search terms very well, but works with the LCCN just fine (there is
KB> >>> the possibility that I'm just doing something wrong, and if that's the
KB> >>> case, anyone on the list can feel free to correct me).  In the end,
KB> >>> you get the LC name authority that corresponds to your search term and
KB> >>> a link to the authority on the LC Authorities website.
KB> >>>
KB> >>> Anyway,  The process is fairly simple to run (just prepare an Excel
KB> >>> spreadsheet and paste JSON commands into OpenRefine).  The only
KB> >>> reservation is that I don't think it will run all 40,000 of your names
KB> >>> at once.  I've been using it to run 300-400 names at a time.  That
KB> >>> said, I'd be happy to share what I did with you if you'd like to try
KB> >>> it out.  I have some instructions written up in a Word doc, and the
KB> >>> JSON script is in a text file, so just email me off list and I can send
KB> >>> them to you.
KB> >>>
KB> >>> Matt
KB> >>>
KB> >>> Matt Carruthers
KB> >>> Metadata Projects Librarian
KB> >>> University of Michigan
KB> >>> 734-615-5047
KB> >>> [log in to unmask]
KB> >>>
KB> >>> On Fri, Sep 26, 2014 at 7:03 PM, Karen Hanson
KB> >>> <[log in to unmask]>
KB> >>> wrote:
KB> >>>
KB> >>>  I found the WorldCat Identities API useful for an institution name
KB> >>>> disambiguation project that I worked on a few years ago, though my
KB> >>>> goal wasn't to confirm whether names mapped to LCNAF.  The API
KB> >>>> response
KB> >>>>
KB> >>> includes
KB> >>>
KB> >>>> a LCCN, and you can set it to fuzzy or exact matching, but you would
KB> >>>> need to write a script to pass each term in and process the results:
KB> >>>>
KB> >>>>
KB> >>>>  http://oclc.org/developer/develop/web-services/worldcat-identities.en.
KB> >>> html
KB> >>>
KB> >>>>
KB> >>>> I also can't speak to whether all LC Name Authorities are
KB> >>>> represented, so there may be a chance of some false negatives.
KB> >>>>
KB> >>>> OCLC has another API, but not sure if it covers corporate names:
KB> >>>> https://platform.worldcat.org/api-explorer/LCNAF
KB> >>>>
KB> >>>> I suspect there are others on the list that know more about the
KB> >>>> inner workings of these APIs if this might be an option for you...
KB> >>>> :)
KB> >>>>
KB> >>>> Karen
KB> >>>>
KB> >>>> -----Original Message-----
KB> >>>> From: Code for Libraries [mailto:[log in to unmask]] On Behalf
KB> >>>> Of Ethan Gruber
KB> >>>> Sent: Friday, September 26, 2014 3:54 PM
KB> >>>> To: [log in to unmask]
KB> >>>> Subject: Re: [CODE4LIB] Reconciling corporate names?
KB> >>>>
KB> >>>> I would check with the developers of SNAC (
KB> >>>> http://socialarchive.iath.virginia.edu/), as they've spent a lot of
KB> >>>> time developing named entity recognition scripts for personal and
KB> >>>> corporate names. They might have something you can reuse.
KB> >>>>
KB> >>>> Ethan
KB> >>>>
KB> >>>> On Fri, Sep 26, 2014 at 3:47 PM, Galligan, Patrick <
KB> >>>>
KB> >>> [log in to unmask]
KB> >>>
KB> >>>>
KB> >>>>>  wrote:
KB> >>>>
KB> >>>>  I'm looking to reconcile about 40,000 corporate names against
KB> >>>>> LCNAF to see whether they are authorized strings or not, but I'm
KB> >>>>> drawing a blank about how to get it done.
KB> >>>>>
KB> >>>>> I've used http://freeyourmetadata.org/ for reconciling subject
KB> >>>>> headings before, but I can't get it to work for LCNAF. Has anyone
KB> >>>>> had any experience in a project like this? I'd love to hear some
KB> >>>>> ideas for automatically dealing with a large data set like this
KB> >>>>> that we did not create and do not know how the names were created.
KB> >>>>>
KB> >>>>> Thanks!
KB> >>>>>
KB> >>>>> -Patrick Galligan
KB> >>>>>
KB> >>>>>
KB> >>>>
KB> >>>
KB> >>
KB> >>
KB> >> --
KB> >> Simon Brown
KB> >> [log in to unmask]
KB> >> simoncharlesbrown (Skype)
KB> >> 831.440.7466 (Phone)
KB> >>
KB> >> *Following our will and wind we may just go where no one's been -- MJK*
KB> >>
KB> >>
KB> >>
KB> 

Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
December 2003
November 2003

ATOM RSS1 RSS2



LISTS.CLIR.ORG

CataList Email List Search Powered by the LISTSERV Email List Manager