We haven't done much with JSON in VIAF yet, but Ralph came up with a new feature for VIAF for which JSON seemed a natural fit: requesting a view of a VIAF cluster that just shows the links. Here's the JSON for this new view of the Mark Twain cluster, http://viaf.org/viaf/50566653/justlinks.json:
{ "viafID":"50566653", "BAV":["ADV10188047"], "BIBSYS":["x90056487"], "BNE":["XX945992"], "BNF":["http://catalogue.bnf.fr/ark:/12148/cb11927291n"], "DNB":["118624822"], "EGAXA":["vtls000823270"], "JPG":["500020427"], "LAC":["000002392","0105C0556"], "LC":["340758"], "NDL":["00459304"], "NKC":["jn19981002263"], "NLA":["000035028957"], "NLIara":["000160730"], "NLIcyr":["000156897"], "NLIheb":["000175478"], "NLIlat":["000133341"], "NUKAT":["vtls000634910"], "PTBNP":["46269"], "RERO":["vtls000164542"], "RSL":["nafpn-000083946"], "SELIBR":["98057"], "SUDOC":["027171876"], "VLACC":["000002392"], "WKP":"Mark_Twain"}
We return an array for each source because some may have multiple IDs (e.g. LAC in the example). The array labels are VIAF's abbreviations (e.g. http://viaf.org/authorityScheme/LAC) for each of the source files, with WKP standing for Wikipedia.
For those of you that prefer content-negotiation to mangling URIs, the mime-type 'application/json+links' 'application/vnd.oclc.links+json' should also work.
Already built into VIAF is the ability to go from the source ID to the VIAF cluster: http://viaf.org/viaf/sourceID/SUDOC|027171876 will take you to the VIAF cluster http://viaf.org/viaf/50566653, and http://viaf.org/viaf/sourceID/SUDOC|027171876/justlinks.json will give you just the links for that page.
If you want ALL the links out of VIAF then visit the VIAF Dataset page at http://viaf.org/viaf/data. It has a pointer to a file that lists each of the 27 million VIAF ID to source ID links.
We're having fun here at VIAF Central!, especially Ralph LeVan who thought of and implemented this.
--Th
Update: 2012.05.09 changed mime type (old one should still work)
Did I see a Japanese NDL entry there? Why isn't NDL on the website? We have been manually implementing NDL entries in the authority control data in de.wikipedia, by the way (already more than 2,000 entries after a few weeks), which might help you to improve the clustering.
Posted by: AndreasP | June 19, 2012 at 17:16
Yes, we are working towards getting NDL into VIAF. They would be a great addition.
--Th
Posted by: Thom | June 20, 2012 at 15:51
which might help you to improve the clustering.
Posted by: gurjeet | September 24, 2012 at 05:52