Since previous posts about linking to WorldCat Identities are getting out of date, here's a summary of the current API. There are several ways of linking to Identities:
- Directly to the pages themselves
- OpenURL
- NameFinder searches
- SRU searches
DIRECT LINKING
The first is by far the simplest. If you have an LCCN for a person (or corporation, or horse, etc.) you can link using that:
- http://worldcat.org/identities/lccn-n79-6533 George Bernard Shaw
- http://worldcat.org/identities/lccn-sh87-7920 Secretariat (Race horse)
People that do not have an LCCN can also be referenced directly:
We only do this for names without LCCN's, so you can't just stick an arbitrary name in and expect to get an Identity page back. For that matter, we only have pages for names found in WorldCat, so at least right now we do not cover all possible LCCN's. The best way to get an LCCN for a name is probably from the results of a NameFinder search (discussed below). There is a form to do these searches at http://worldcat.org/identities/.
We are attempting to make these links as permanent as possible, so when Ralph finally gets an LCCN associated with him, we will make the above link redirect to that new URI.
OpenURL LINKING
OpenURL links are what we use in WorldCat.org to link to pages about people:
Here’s the short version, with just last name and OCLC#.
Here’s an example with everything turned on.
The 'arn' in that last URI refers to the Authority Record Number, a number assigned by OCLC to each authority record. Currently we only use a few pieces of the possible fields in the OpenURL. First we look to see if there is an ARN and use that to find a record. If there is no ARN, then we use a combination of the last name and OCLC number. If those are absent or do not result in a unique record, then we assemble a full name from the component pieces and send that to the NameFinder.
NameFinder SEARCHES
The name finder service gives back a list of candidate names with URI's, ranking information, a sample title and other information about the name. The REST-ful version of this is:
http://worldcat.org/identities/find?fullName=George+Bernard+Shaw, but there is also a SOAP version. NameFinder looks at lots of possible variations in names, so almost always results in a list rather than a unique Identity record.
SRU SEARCHES
There is also full SRU searching against the component databases that make up Identities.
There are 5 SRU databases associated with Identities: CorporateIdentities, PersonalIdentities, SubjectIdentities, AbandonedIdentities, and Identities. The last database does a federated search across the other 4. They can be found at:
http://worldcat.org/identities/search/CorporateIdentities
http://worldcat.org/identities/search/PersonalIdentities
http://worldcat.org/identities/search/SubjectIdentities
http://worldcat.org/identities/search/AbandonedIdentities
http://worldcat.org/identities/search/Identities
The Explain record for each of those services lists the indexes that can be searched. The only other trick is that a sortKey of “holdingscount” can be used to order the result sets by library holdings counts.
The URI for Ralph LeVan (http://worldcat.org/identities/np-levan,+ralph+r) turns into an SRU search: http://worldcat.org/identities/search/Identities? query=local.pnkey+exact+"np-levan,+ralph+r" .
All the URI's return SRU searchRetrieveResponses (except for NameFinder which returns pages originally designed for the ePrints-UK project).
If this explanation isn't clear, or doesn't go far enough, please let me know. Since the whole thing is built on top of SRU and all the SRU is exposed, it should be possible to do lots of things with the results and pages.
Thanks to Ralph LeVan who both wrote most of the code involved and drafted the explanation of much of the above.
--Th
Update (2010 January 15): Make sure you use the links themselves rather than cutting and pasting the text in the blog entry. The text of the blog entry has been edited for readability.
--Th
If it were possible to get more SRU examples, that would be helpful!
Posted by: Jonathan Rochkind | July 23, 2008 at 17:43
Actually, I guess I don't need examples, but I'm running into some real weirdness.
Why does this SRU search for firstname:Emma, lastname:Goldman return as the first result a very weird alternate record, instead of the main record that the NameFinder succesfully relevancy ranks first. Is the relevancy ranking being used in namefinder not being used in SRU?
http://worldcat.org/identities/search/Identities?query=local.FamilyName+%3D+%22Goldman%22+and+local.FirstName+%3D+%22Emma%22&version=1.1&operation=searchRetrieve&recordSchema=info%3Asrw%2Fschema%2F1%2FIdentities&maximumRecords=10&startRecord=1&resultSetTTL=300&recordPacking=xml&recordXPath=&sortKeys=
And what do the "Fuzzy" elements do?
I expected FuzzyName would use a very similar algorithm to the name finder. But the NameFinder succesfully finds "Emma Goldman", but SRU on FuzzyName does not. Huh?
http://worldcat.org/identities/search/Identities?query=local.FuzzyName+%3D+%22Emma+Goldman%22&version=1.1&operation=searchRetrieve&recordSchema=info%3Asrw%2Fschema%2F1%2FIdentities&maximumRecords=10&startRecord=1&resultSetTTL=300&recordPacking=xml&recordXPath=&sortKeys=
I really want to use this functionality in some software. I was initially very excited by the very flexible and powerful search APIs you seemed to offer, but I'm having trouble putting them into practice. I'd like the enhanced control that SRU offers, but for some reason the NameFinder seems to be a lot more powerful at actually finding the right record. What's going on?
Response:
We're working with Jonathan to try to answer his questions. I'll do another posting summarizing the additional information he needed.
--Th
Posted by: Jonathan Rochkind | July 23, 2008 at 17:52
where to get the explain record for each services?
Response:
Only the SRU service provides Explain records. If you are interested in SRU access to Identities, try this URL: http://worldcat.org/identities/search/Identities. In a browser, that URL will bring up a simple search interface. But, if you view the source of that page, you will see that it was rendered from the Explain record delivered by the SRU server.
Ralph
Posted by: joseph wen | February 13, 2009 at 05:44
The OpenURL examples provided here are gibing HTTP Status 500 errors. I assume something has changed?
Posted by: Stuart Miller | January 15, 2010 at 12:46
Oops, my mistake. The OpenURLs are working. Sorry for any confusion.
Posted by: Stuart Miller | January 15, 2010 at 15:44
Why the Worldcat catalog is not linking shows up the woldcat identities?
Like: http://pcu.bage.es/index.php?q=node/1692091&hit=1&caller=xc-search
Do you recomend to link identities in all the authors or just the main entrance?
Thanks
Response:
Not sure what you mean, as the WCat Identities link there appears to be working. We recommend linking to individual authors, not the entrance page.
--Th
Posted by: Joana Roig Equey | January 09, 2013 at 07:01