{"id":10837,"date":"2015-03-27T04:06:02","date_gmt":"2015-03-27T04:06:02","guid":{"rendered":"http:\/\/dabacon.org\/pontiff\/?p=10837"},"modified":"2015-03-27T04:06:02","modified_gmt":"2015-03-27T04:06:02","slug":"what-if-papers-had-apis","status":"publish","type":"post","link":"https:\/\/dabacon.org\/pontiff\/2015\/03\/27\/what-if-papers-had-apis\/","title":{"rendered":"What If Papers Had APIs?"},"content":{"rendered":"<p>API is an abbreviation that stands for &#8220;Application Program Interface.&#8221;  Roughly speaking an API is a specification of a software component in terms of the operations one can perform with that component.  For example, a common kind of an API is the set of methods supported by a encapsulated bit of code a.k.a. a library (for example, a library could have the purpose of &#8220;drawing pretty stuff on the screen&#8221;, the API is then the set of commands like &#8220;draw a rectangle&#8221;, and specify how you pass parameters to this method, how rectangles overlay on each other, etc.)  Importantly the API is supposed to specify how the library functions, but does this in a way that is independent of the inner workings of the library (though this wall is often broken in practice).  Another common API is found when a service exposes remote calls that can be made to manipulate and perform operations on that service.  For example, Twitter supports an <a href=\"https:\/\/dev.twitter.com\/rest\/public\">API<\/a> for reading and writing twitter data.  This later example, of a service exposing a set of calls that can manipulate the data stored on a remote server, is particularly powerful, because it allows one to gain access to data through simple access to a communication network.  (As an interesting aside, see <a href=\"http:\/\/siliconangle.com\/furrier\/2011\/10\/12\/google-engineer-accidently-shares-his-internal-memo-about-google-platform\/\">this rant<\/a> for why APIs are likely key to some of Amazon&#8217;s success.)<br \/>\n<a href=\"https:\/\/i0.wp.com\/167.99.98.246\/pontiff\/wp-content\/uploads\/sites\/2\/2015\/03\/jdrzx.jpg\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/dabacon.org\/pontiff\/wp-content\/uploads\/2015\/03\/jdrzx-300x212.jpg?resize=300%2C212&#038;ssl=1\" alt=\"jdrzx\" width=\"300\" height=\"212\" class=\"alignright size-medium wp-image-10892\" srcset=\"https:\/\/i0.wp.com\/dabacon.org\/pontiff\/wp-content\/uploads\/sites\/2\/2015\/03\/jdrzx.jpg?resize=300%2C212&amp;ssl=1 300w, https:\/\/i0.wp.com\/dabacon.org\/pontiff\/wp-content\/uploads\/sites\/2\/2015\/03\/jdrzx.jpg?w=490&amp;ssl=1 490w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a>As you might guess, (see for example my latest flop <a href=\"https:\/\/dabacon.org\/pontiff\/?p=10762\">Should Papers Have Unit Tests?<\/a>), I like smooshing together disparate concepts and seeing what comes out the other side.  When thinking about APIs then led me to consider the question &#8220;What if Papers had APIs&#8221;?<br \/>\nIn normal settings academic papers are considered to be relatively static objects.  Sure papers on the arXiv, for example, have versions (some <a href=\"http:\/\/arxiv.org\/abs\/0903.5132\">more than others!<\/a>)  And there are efforts like <a href=\"http:\/\/relativity.livingreviews.org\/\">Living Reviews in Relativity<\/a>, where review articles are updated by the authors.  But in general papers exist, as fixed &#8220;complete&#8221; works.  In programming terms we would say that are &#8220;immutable&#8221;.  So if we consider the question of exposing an API for papers, one might think that this might just be a read only API.  And indeed this form of API exists for many journals, and also for the <a href=\"http:\/\/arxiv.org\/help\/api\/index\">arXiv<\/a>.  These forms of &#8220;paper APIs&#8221; allow one to read information, mostly metadata, about a paper.<br \/>\nBut what about a paper API that allows mutation?  At first glance this heresy is rather disturbing: allowing calls from outside of a paper to change the content of the paper seems dangerous.  It also isn&#8217;t clear what benefit could come from this.  With, I think, one exception.  Citations are the currency of academia (last I checked they were still, however not fungible with bitcoins).  But citations really only go in one direction (with exceptions for simultaneous works): you cite a paper whose work you build upon (or whose work you demonstrate is wrong, etc).  What if a paper exposed a reverse citation index.  That is, if I put my paper on the arXiv, and then, when you write your paper showing how my paper is horribly wrong, you can make a call to my paper&#8217;s api that mutates my paper and adds to it links to your paper.  Of course, this seems crazy: what is to stop rampant back spamming of citations, especially by *ahem* cranks?  Here it seems that one could implement a simple approval system for the receiving paper.  If this were done on some common system, then you could expose the mutated paper either A) with approved mutations or B) with unapproved mutations (or one could go &#8216;social&#8217; on this problem and allow voting on the changes).<br \/>\nWhat benefit would such a system confer?  In some ways it would make more accessible something that we all use: the &#8220;cited by&#8221; index of services like <a href=\"http:\/\/ipv4.google.com\/sorry\/IndexRedirect?continue=http:\/\/scholar.google.com\/&amp;q=CGMSBGyo8pIY88jnrAUiGQDxp4NLZvrb2jhSaFyOF94w65Hg5czviZk\">Google Scholar<\/a>.  One difference is that it could be possible to be more precise in the reverse citation: for example while Scholar provides a list of relevant papers, if the API could expose the ability to add links to specific locations in a paper, one could arguably get better reverse citations (because, frankly, the weakness of the cited by indices is their lack of specificity).<br \/>\nWhat else might a paper API expose?  I&#8217;m not convinced this isn&#8217;t an interesting question to ponder.  Thanks for reading another wacko mashup episode of the Quantum Pontiff!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>API is an abbreviation that stands for &#8220;Application Program Interface.&#8221; Roughly speaking an API is a specification of a software component in terms of the operations one can perform with that component. For example, a common kind of an API is the set of methods supported by a encapsulated bit of code a.k.a. a library &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/dabacon.org\/pontiff\/2015\/03\/27\/what-if-papers-had-apis\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;What If Papers Had APIs?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[28,71,86],"tags":[],"class_list":["post-10837","post","type-post","status-publish","format-standard","hentry","category-extralusionary-intelligence","category-science-2-0","category-the-loony-bin-called-academia"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/dabacon.org\/pontiff\/wp-json\/wp\/v2\/posts\/10837","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dabacon.org\/pontiff\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dabacon.org\/pontiff\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dabacon.org\/pontiff\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dabacon.org\/pontiff\/wp-json\/wp\/v2\/comments?post=10837"}],"version-history":[{"count":0,"href":"https:\/\/dabacon.org\/pontiff\/wp-json\/wp\/v2\/posts\/10837\/revisions"}],"wp:attachment":[{"href":"https:\/\/dabacon.org\/pontiff\/wp-json\/wp\/v2\/media?parent=10837"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dabacon.org\/pontiff\/wp-json\/wp\/v2\/categories?post=10837"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dabacon.org\/pontiff\/wp-json\/wp\/v2\/tags?post=10837"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}