If you build Web-based information systems -- and who doesn't? -- it's a great idea to wrap them in Web services APIs. The more the merrier. By offering a choice between SOAP- and REST-flavored APIs, Amazon embraces diversity. But Amazon is even more inclusive than that. It gets the simple things right. The page that represents a book has a canonical URL that you can construct automatically. It carries basic metadata in standard HTML META tags. These rules seem too trivial to mention. But they are seldom followed, even though they can spell the difference between a healthy information system that integrates with a society of peers and an isolated outcast. Moral: do the simple things. [Full story at InfoWorld.com]
Below you'll find nine examples, one from each of the OPACs currently supported by LibraryLookup. Each example shows a typical URL, and the HTML <HEAD> tag (minus CSS and JavaScript). It's easy to pick on obvious flaws, like a leading <CENTER> tag before the <HTML> tag. But my point, really, is that URLs and HTML metadata are the two most basic kinds of APIs. They are the best ways to encourage unintended use. The failure to recognize them as APIs, and therefore to design them accordingly, is of course endemic. It's not just library OPACs who miss these opportunities. Hardly anyone gets this easy stuff right.
Example 5 is especially ironic. I can envision a glossy marketing sheet with a features checklist, and big green check in the "supports RDF" column. There's even, woo-hoo, a special RDF vocabulary used to describe the browser that fetched the page. Unfortunately, the metadata that would be useful to an integrator -- the title of the book being displayed, its author, its ISBN -- is nowhere to be found.
I'll be giving the keynote at day two of the Open Source Content Management conference. (Dave Winer is keynoting day one.) I've been thinking about elaborating on issues like the ones I touch on in this week's column. The provisional title for the talk: "All you need to know about content management, you learned in grade school." Let me know if that does or doesn't sound useful.
<HTML> <HEAD> <TITLE>Keene-Link /All Locations</TITLE> <BASE TARGET="_parent"> <META HTTP-EQUIV="Refresh" CONTENT="600;URL=/search/"> </HEAD>
<!-- Start of HTML header portion --> <CENTER> <A HREF="/webvoy.htm"><IMG ALIGN=TOP BORDER=0 ALT="Start Over" SRC="/images/banner.gif"></A> </CENTER> <!-- End of HTML header portion --> <!DOCTYPE HTML PUBLIC "-\//W3C\//DTD HTML 4.0 Transitional\//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <HTML> <HEAD> <TITLE>WebVoyage Record View 1</TITLE> </HEAD>
<html><head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <META HTTP-EQUIV="Expires" CONTENT="0"> <title>iPac2.0</title><link title="bannerstyles" href="ipac/css/ipac.css" type="text/css" rel="stylesheet"> </head>
<HTML> <!--Copyright 1996-1999 Data Research Associates, Inc. All rights reserved. Removal of this notice violates applicable copyright laws.--> <!--/English/Record.html--> <META HTTP-EQUIV="REFRESH" CONTENT="900 ; URL=/web2/tramp2.exe/log_out/A09rr4r4.002?server=1home"> <HEAD> <TITLE>FLP Catalog - Brief Record Display</title> </head>
<HTML> <HEAD> <?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://www.w3c.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.0/" xmlns:tal="http://www.talis.com/talisxml/schema/1.0/"> <rdf:Description rdf:about= "http://ustalis.lib.susx.ac.uk:80/www-bin/www_talis32?" dc:publisher="University of Sussex" dc:format="text/html" dc:creator="TalisWeb OPAC" dc:title="www_frame_start.tgml" dc:date="2003-04-08T20:09:01"> <tal:object tal:type="xml-header" tal:browser="Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-us) AppleWebKit/51 (like Gecko) Safari/51"> </tal:object> </rdf:Description> </rdf:RDF> <TITLE>TalisWeb Opac</TITLE> <META content="www_frame_start.tgml" name=page> </HEAD>
<HTML> <HEAD> <TITLE>Title Information</TITLE></HEAD>
<HTML> <HEAD> <META http-equiv="Content-Type" content="text/html; charset=iso8859-1"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="pragma" content="no-cache"> <TITLE>Katalog der Universitätsbibliothek der TUHH - Search Full Title</TITLE> </HEAD>
<HTML DIR="LTR"> <HEAD> <TITLE>[WebCat] Unicorn</TITLE> <META http-equiv="refresh" content="3540; URL=http://verdi.seattleu.edu/uhtbin/cgisirsi/41660019/58"> </HEAD>
<html xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:PACFfuncs="http://www.gaylord.com"> <head> <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> <TITLE>Polaris PowerPAC</TITLE> <link rel="stylesheet" type="text/css" href= "http://www.wilinet.wccls.lib.or.us/Polaris/stylesheets/ PolarisStyles.asp"> </head>
Former URL: http://weblog.infoworld.com/udell/2003/04/11.html#a664