We had an earlier post about the 'justlinks' view of VIAF clusters, but I thought it would be worthwhile to explore how that can combine with other VIAF functionality.
First a reminder of how the justlinks view works. While the default view of clusters to Web browsers is the HTML interface, VIAF clusters can be displayed in several ways, including the raw XML, RDF XML, MARC-21 and justlinks JSON. Here's a request for justlinks.json:
http://viaf.org/viaf/36978042/justlinks.json
which returns:
{ "viafID":"36978042", "B2Q":["0000279733"], "BAV":["ADV11117013"], "BNE":["XX904401"], "BNF":["http://catalogue.bnf.fr/ark:/12148/cb122767803"], "DNB":["http://d-nb.info/gnd/114712638"], "ISNI":["000000010888091X"], "LAC":["0064G7865"], "LC":["n90602202"], "LNB":["LNC10-000054199"], "N6I":["vtls000101241"], "NKC":["js20080511012"], "NLA":["000035338539"], "NLI":["000501536"], "NLP":["a11737736"], "NSK":["000051380"], "NTA":["073902861"], "NUKAT":["vtls000205390"], "PTBNP":["70922"], "SELIBR":["256753"], "SUDOC":["031580661"], "WKP":["Q6678817"], "XA":["2219"], "ORCID":["http://orcid.org/0000000229258764"], "Wikipedia":["http://en.wikipedia.org/wiki/Lorcan_Dempsey"]}
Ralph LeVan came up with this and we think it is pretty neat! But wait, it gets even better!
Each of the IDs in this record that is a 'source record' ID to VIAF (in this case everything except the ORCID ID and the en.wikipedia URI) can be used to retrieve the cluster. Here's how to pull justlinks.json using the LC ID:
http://viaf.org/viaf/sourceID/LC|n90602202/justlinks.json
HTTPS works too:
https://viaf.org/viaf/sourceID/NSK|000051380/justlinks.json
All the different views of the clusters can be requested either through the explicit URI's shown here, or through HTTP headers, and they in turn can be combined with sourceID redirection.
--Th