Geschreibsel Tagged: nwbib http://www.fsteeg.com/tags/nwbib Mon, 07 Dec 2015 00:00:01 +0000 Mon, 07 Dec 2015 00:00:01 +0000 Why LOD needs applications, and libraries need APIs <p><small>Cross-posted to: <a href="https://fsteeg.wordpress.com/2015/12/07/why-lod-needs-applications-and-libraries-need-apis/">https://fsteeg.wordpress.com/2015/12/07/why-lod-needs-applications-and-libraries-need-apis/</a></small></p> <p/> <i>This post is based on a talk I gave at <a href="http://swib.org/swib15/">SWIB15</a> on November 24 titled "LOD for applications: using the Lobid API".</i> <p/> I recently stumbled upon a poster by the American Library Association from 1925, which advertises library work as "the profession on which all other professions and occupations depend": <p/> <img src="http://hbz.github.io/slides/swib-15/img/ala-flyer.png" alt="" /> <p/> <i>Source: <a href="http://imagesearchnew.library.illinois.edu/cdm/singleitem/collection/alaposters/id/23/rec/2">http://imagesearchnew.library.illinois.edu/cdm/singleitem/collection/alaposters/id/23/rec/2</a></i> <p/> I'm sure that anyone who does library work kind of likes that sentiment, I certainly do. At the same time it makes you wonder how true that statement actually is. Even back then. For instance my grandfather, who was a baker, I don't think he actually depended on library work. <p/> But even more, it makes you wonder how true that is today. I don't have an answer to that, but to the extend that it is true today, there's something else involved, and that's software. <p/> Because today software is a thing on which every profession and occupation depends. Well, as the statement about library work wasn't quite true even in 1925, the statement about software isn't quite true today. Not all professions and occupations actually depend on software. But there is one profession that certainly does, and that's library work. <p/> Because "libraries are software". The services that libraries provide are provided directly or indirectly through software. <blockquote class="twitter-tweet" lang="en" dir="ltr">&quot;Libraries are Software&quot; by <a href="https://twitter.com/codyh">@codyh</a> — Good short essay for dev and non-dev librarians <a href="http://t.co/Y9YLmTaZj0">http://t.co/Y9YLmTaZj0</a> <a href="http://t.co/iVGKFaBql8">pic.twitter.com/iVGKFaBql8</a></p>&mdash; Tim Spalding (@librarythingtim) <a href="https://twitter.com/librarythingtim/status/644509561076981760">September 17, 2015</a></blockquote> <p/> This post is based on a talk titled <i>LOD (Linked Open Data) for applications: using the Lobid API (Application Programming Interface)</i>. So why would you want to use an API? Well, because <i>LOD for applications</i> means building software. And APIs make software development manageable. <p/> They allow us to build modular software, with stable applications that don't have to change when other parts of the software change. At the same time, they allow us to have flexible data sources that can change without requiring changes in the applications. <p/> Lets take a look at what that means in the case of the <a href="http://lobid.org">Lobid</a> API. The Lobid API provides access to authority data from different sources in different formats, to geodata from Wikidata, and to bibliographic title data from the hbz union catalogue. Applications access this data through the API: <p/> <a href="http://fsteeg.com/images/data.png" target="_blank"><img class="alignnone size-full" src="http://fsteeg.com/images/data.png" alt="data" /></a> <p/> That way, the API decouples the applications from the concrete data sources, formats, and systems, which can change without requiring the applications to change at the same time. <p/> <h2>Using APIs</h2> <p/> So the talk mentioned above is subtitled <i>Using the Lobid API</i>. Now what does that even mean, to use an API? In the case of a Web API, it basically means opening URLs. So it's just like opening a Web site, but what we want to get back is structured data: <p/> <a href="http://beta.lobid.org/organisations/search?q=hbz" target="_blank">http://beta.lobid.org/organisations/search?q=hbz</a> <p/> <a href="http://fsteeg.com/images/demo1-1-light.png" target="_blank"><img src="http://fsteeg.com/images/demo1-1-light.png" alt="demo1-1-light" /></a> <p/> This sample queries our API for organisations containing "hbz". Now if we change the URL in the browser address bar to search for something else, like "zbw", we get a different result: <p/> <a href="http://beta.lobid.org/organisations/search?q=zbw" target="_blank">http://beta.lobid.org/organisations/search?q=zbw</a> <p/> <a href="http://fsteeg.com/images/demo1-2-light.png" target="_blank"><img src="http://fsteeg.com/images/demo1-2-light.png" alt="demo1-2-light.png" /></a> <p/> We're using the API. <p/> <h2>Application: bulk downloads</h2> <p/> The idea of an API is that we can use the same URLs we opened in a browser in different ways. For instance, we can call them from the command line, to get bulk downloads: <pre><code>curl -H "Accept: application/ld+json" -H "Accept-Encoding: gzip"</code></pre> <p/> Here we use curl to call the URL, we pass headers specifying the requested format (JSON-LD in this case) and that we want to gzip the response to save network bandwidth and disk space. <p/> We can then pass arbitrary queries, in the form of URLs, e.g. to get all holdings of a specific library: <pre><code>"http://lobid.org/resource?owner=DE-6&amp;scroll=true"</code></pre> <p/> Or all new titles for a specific subject: <pre><code>"http://lobid.org/resource?subject=4055382-6&amp;scroll=20151023"</code></pre> <p/> We finally direct the response into a file: <pre><code>&gt; "resources-4055382-20151023.gz"</code></pre> <p/> <i>Note: this should all be in a single line, using one URL only, so to reproduce this, call e.g.:</i> <p/> <code>curl -H "Accept: application/ld+json" -H "Accept-Encoding: gzip" "http://lobid.org/resource?subject=4055382-6&amp;scroll=20151023" &gt; "resources-4055382-20151023.gz"</code> <p/> So what we get from this is local data, ready for offline usage, but still retrieved from an API. There is no contradiction between local data dumps and APIs, an API is just a way to deliver data. <p/> <h2>Application: answer a single question</h2> <p/> Now let's take a look at a concrete application. Say we want to answer a single question, like "How many libraries are there in Germany?". Is it 10.000, which is kind of the traditional answer: <blockquote class="twitter-tweet" lang="de" dir="ltr">.<a href="https://twitter.com/fsteeg">@fsteeg</a> &quot;10.200 [Bibliotheken] gibt es insgesamt&quot;. Sind eher doppelt so viel, wenn man die Pfarrbibliotheken dazu zählt.</p>&mdash; Adrian Pohl (@acka47) <a href="https://twitter.com/acka47/status/604286119950176258">May 29, 2015</a></blockquote> <p/> Or is it more like 20.000, as an initial query to our API suggested: <blockquote class="twitter-tweet"><p lang="de" dir="ltr">In Deutschland gibt es 19.347 Bibliotheken <a href="http://t.co/qPcY3Kh7o7">http://t.co/qPcY3Kh7o7</a> . Datenquelle: dbs und ZDB-Sigeldatei /via <a href="https://twitter.com/lobidOrg">@lobidOrg</a> API</p>&mdash; dr0ide (@dr0ide) <a href="https://twitter.com/dr0ide/status/608588848243818496">June 10, 2015</a></blockquote> <p/> So let's take a look at how we can answer that question by using the Lobid API. First lets take a look at a single organisation ("DE-206H") in our API. This organisation contains a "type" field which specifies that this is a library. So this is the first field we'll be using, since we want to query for all libraries in Germany. The organisation also contains a nested "addressCountry" field: <p/> <a href="http://beta.lobid.org/organisations/DE-206H" target="_blank">http://beta.lobid.org/organisations/DE-206H</a> <p/> <a href="http://fsteeg.com/images/demo2-1-light.png" target="_blank"><img src="http://fsteeg.com/images/demo2-1-light.png" alt="demo2-1-light.png" /></a> <p/> The "addressCountry" field is nested in an "address" field, which itself is nested in a "location" field. We can express the path to this nested field as "location.address.addressCountry". <p/> With these two fields, we can now create a query that expresses that we're looking for organisations with "type:Library AND location.address.addressCountry:Germany" (the + in the address bar are encoded spaces). In the response, we have a "hits.total" field with the answer to our question: <p/> <a href="http://beta.lobid.org/organisations/search?q=type:Library+AND+location.address.addressCountry:Germany" target="_blank">http://beta.lobid.org/organisations/search?q=type:Library+AND+location.address.addressCountry:Germany</a> <p/> <a href="http://fsteeg.com/images/demo2-2-light.png" target="_blank"><img src="http://fsteeg.com/images/demo2-2-light.png" alt="demo2-2-light.png" /></a> <p/> So that's the answer right there: there are 13.285 libraries in Germany, according to our data. <p/> Now the initial result mentioned above said there are 19.347 libraries in Germany, this result now says 13.285. What about that? Well it's really that by using LOD for applications, by using the Lobid API, we were able to improve our query: while our data only contains German organisations, these are not necessarily in Germany, e.g. Goethe institutes. The initial query didn't consider that. <blockquote class="twitter-tweet" lang="de" dir="ltr"><a href="https://twitter.com/lobidOrg">@lobidOrg</a> <a href="https://twitter.com/InspektorHicks">@InspektorHicks</a> Um genau zu sein: da sind auch Goethe Institute im Ausland mit dabei usw. Siehe <a href="http://t.co/wbpiGZl8OC">http://t.co/wbpiGZl8OC</a></p>&mdash; dr0ide (@dr0ide) <a href="https://twitter.com/dr0ide/status/608629102652833792">June 10, 2015</a></blockquote> <p/> We were also able to improve our data. Because of course when your result is almost the double amout of the traditional answer you sanity check your results, and so we realized that we included organisations that were marked as inactive in our source data (see <a href="https://github.com/hbz/lobid-organisations/issues/79"> this issue for details</a>). <p/> So we really saw here how usage leads to improvement. <p/> <h2>Application: visualize data on a map</h2> <p/> Let's take a look at another application. Say we want to visualize data on a map, in particular the libraries in Hamburg. As a starting point, we take a query similar to the one above for answering how many libraries there are in Germany. Only in this case we don't use the "location.address.addressCountry" field, but the "location.address.addressLocality" field. <p/> If our goal would be to get the number of libraries in Hamburg we'd have the result right there, but in this case we want to do something with the result data. In particular, as we want to visualize the data on a map, we're interested in the "location.geo" field, which contains nested "lat" and "lon" fields, specifying the geo coordinates of each organisation: <p/> <a href="http://beta.lobid.org/organisations/search?q=type:Library+AND+location.address.addressLocality:Hamburg" target="_blank">http://beta.lobid.org/organisations/search?q=type:Library+AND+location.address.addressLocality:Hamburg</a> <p/> <a href="http://fsteeg.com/images/demo3-1-light.png" target="_blank"><img src="http://fsteeg.com/images/demo3-1-light.png" alt="demo3-1-light.png" /></a> <p/> To use these in a map visualization, we create an HTML file in a text editor. In its head, we include a mapping package, leaflet.js. In the body, we create the map and add a tile layer to it. We then call the Lobid API with the very query from above, specifying that we're looking for organisations where "type:Library AND location.address.addressLocality:Hamburg". In the following lines we process the API response and finally create a marker for each organisation using the "location.geo.lat" and "location.geo.lon" fields: <p/> <a href="https://github.com/hbz/slides/blob/swib-15/demo.html" target="_blank">https://github.com/hbz/slides/blob/swib-15/demo.html</a> <p/> <a href="http://fsteeg.com/images/demo3-2-light2.png" target="_blank"><img src="http://fsteeg.com/images/demo3-2-light2.png" alt="demo3-2-light" /></a> <p/> If we open that HTML file in a browser, we get an interactive map with the libraries in Hamburg. We can zoom in and out, pan around, and click the markers for the name of the library: <p/> <a href="http://hbz.github.io/slides/swib-15/demo.html" target="_blank">http://hbz.github.io/slides/swib-15/demo.html</a> <p/> <a href="http://hbz.github.io/slides/swib-15/img/demo3-6.png" target="_blank"><img src="http://hbz.github.io/slides/swib-15/img/demo3-6.png" alt="" /></a> <p/> So that's how we can build an interactive map using the Lobid API. <p/> <h2>Application: NWBib</h2> <p/> Next, let's take a look at a more complex application based on the Lobid API. NWBib is the regional bibliography for the German state North Rhine-Westfalia (NRW). It is catalogued by the three NRW-Landesbibliotheken, the federal state libraries (in NRW we don't have a single federal state library, but instead a distributed model). The presentation of NWBib is done by hbz, and its new version, currently in beta, is based entirely on the Lobid API. <p/> So let's take a look at NWBib. This is a details page for a book in NWBib: <p/> <a href="http://lobid.org/nwbib/HT016558942" target="_blank">http://lobid.org/nwbib/HT016558942</a> <p/> <a href="http://hbz.github.io/slides/swib-15/img/demo4-1.png" target="_blank"><img src="http://hbz.github.io/slides/swib-15/img/demo4-1.png" alt="" /></a> <p/> You'll notice the map on the right, with markers like in the previous sample application. It's basically done in the same way, only here it's not the libraries in some area, but libraries with holdings of the book this page is about. <p/> It also provides some details when a marker is clicked, only here we zoom in, and provide links to the library, to a search for the holdings in the local library catalogue, and details on the holding's signature: <p/> <a href="http://lobid.org/nwbib/HT016558942" target="_blank">http://lobid.org/nwbib/HT016558942</a> <p/> <a href="http://hbz.github.io/slides/swib-15/img/demo4-2.png" target="_blank"><img src="http://hbz.github.io/slides/swib-15/img/demo4-2.png" alt="" /></a> <p/> But again, it's basically the same thing as in the simple example above, just with some more work on the details. <p/> Another interesting map related aspect of NWBib is that cataloguers always record a subject location, i.e. a place that a book or article is about. It is catalogued as a simple string, in the example above it's "Köln" (Cologne). <p/> We take that string and send it to the Wikidata API, which returns a geo location. With these geo locations we can do multiple interesting things. For instance, on the NWBib landing page, we offer a location based search using the administrative districts of NRW: <p/> <a href="http://lobid.org/nwbib" target="_blank">http://lobid.org/nwbib</a> <p/> <a href="http://hbz.github.io/slides/swib-15/img/demo4-3.png" target="_blank"><img src="http://hbz.github.io/slides/swib-15/img/demo4-3.png" alt="" /></a> <p/> Clicking on one of these areas returns results related to places in that area. <p/> Having these geo loacations also provides a way to visualize search results. For instance, if we search for "braunkohle" (brown coal or lignite) we see that there are two single places in the east of NRW related to that, but over 40 places in the west of NRW, the "Rheinische Braunkohlerevier": <p/> <a href="http://lobid.org/nwbib/search?q=braunkohle" target="_blank">http://lobid.org/nwbib/search?q=braunkohle</a> <p/> <a href="http://hbz.github.io/slides/swib-15/img/demo4-4.png" target="_blank"><img src="http://hbz.github.io/slides/swib-15/img/demo4-4.png" alt="" /></a> <p/> Again, the implementation is done basically the same way as in our simple example. Every place is a single marker, the clusters are created automatically using a plugin for the mapping package, Leaflet.markercluster. <p/> The clusters can not only be used to visualize results, they can also be used for browsing. If we select a cluster, we can restict results to the search term and the selected area: <p/> <a href="http://lobid.org/nwbib/search?location=42%20Orte%20aus%20Kartenauswahl|50.56743281656585,6.649398284703092+50.56741595187408,6.64950316743691+50.56740572145051,6.649610153165785+50.567402224513614,6.649718204347387+50.567405494978,6.649826273106689+50.56741550112544,6.6499333113982395+50.641116467728445,7.236683297212334+50.64118708557393,7.236992605139604+50.64131257624125,7.2372551206201585+50.641481703243954,7.237447338709884+50.64167932301831,7.237552048707636+50.64188774097007,7.2375598751562045+50.801476364247456,7.205534299518387+50.80157283163572,7.205503792531571+50.80166560578553,7.205452020474131+50.801752824431304,7.205380022587438+50.80183273683382,7.205289244114099+50.801903738920494,7.2051815072870795+50.942735593157785,6.9585148374414985+50.94274854294329,6.958491464498557+50.942761070357065,6.9584675187647616+50.94277316534544,6.958443019457937+50.942784818201865,6.95841798624016+50.94279601957456,6.958392439201995+51.135571375275546,6.504224715546294+51.135650777880265,6.503972479208997+51.13568724310365,6.503696329117643+51.1356783651139,6.503414485342045+51.1356247296453,6.503145543614917+51.1355298753587,6.502907248406391+51.08023056826382,6.397077338962536+51.08017993458187,6.396990484497076+51.08012371901032,6.39691281501431+51.080062575422055,6.396845233955322+51.0799972150132,6.396788527413979+51.07992839803107,6.396743354993214+50.662372032334225,6.1647798844150214+50.66215210326194,6.1647181447645485+50.661931096376996,6.16476943007207+50.66173175109583,6.164928463620679+50.66157457833666,6.165178882536564+50.66147575000503,6.1654949213560375&amp;q=braunkohle&amp;person=&amp;name=&amp;subject=&amp;publisher=&amp;issued=&amp;medium=&amp;nwbibspatial=&amp;nwbibsubject=&amp;owner=&amp;t=&amp;sort=newest&amp;set=&amp;word=&amp;corporation=&amp;raw=" target="_blank">http://lobid.org/nwbib/search?location=...</a> <p/> <a href="http://hbz.github.io/slides/swib-15/img/demo4-5.png" target="_blank"><img src="http://hbz.github.io/slides/swib-15/img/demo4-5.png" alt="" /></a> <p/> So that's how a complex application with map visualization and browsing can look like, implemented on top of the Lobid API, in the same basic way as the simple example above. <p/> <h2>Application: OpenRefine</h2> <p/> As a final application, let's take a look at OpenRefine, "a free, open source, power tool for working with messy data". OpenRefine is based on a spreadsheet user interface, so it provides a familiar user experience for people familiar with that kind of software. It can be used to clean up data, to transform data, and to reconcile data with external data sources, like the Lobid organisations API. <p/> We've implemented our OpenRefine reconciliation API in response to a user request, so let's take a look at that. Our user had a table of libraries where every row had a name and a postal code, and some had an ID from the German national library index (DBS, Deutsche Bibliotheksstatistik). What he wanted was a uniform identifier for all of these entries, in particular an International Standard Identifier for Libraries (ISIL), if available. <p/> OpenRefine uses the browser for its user interface. You can run it as a local application, it comes with simple executables for different operating systems. You don't have to upload your data anywhere, it just happens to be browser based. At the same time, this makes it possible to set up a central instance for your organisation and have people share projects and data. <p/> In its initial view, OpenRefine allows you to select the data you want to work with: <p/> <a href="http://hbz.github.io/slides/swib-15/img/demo5-1.png" target="_blank"><img src="http://hbz.github.io/slides/swib-15/img/demo5-1.png" alt="" /></a> <p/> Our data is a CSV file. After we load it, OpenRefine provides a preview of how it interprets the data and allows you to customize the way it is imported. As you can see in the "Parse data as" section, OpenRefine supports many different input formats. In our case it recognized the custom semicolon delimiter, and all default options are fine for us: <p/> <a href="http://hbz.github.io/slides/swib-15/img/demo5-2.png" target="_blank"><img src="http://hbz.github.io/slides/swib-15/img/demo5-2.png" alt="" /></a> <p/> After we created the project, we get a simple tabular view of our data: <p/> <a href="http://hbz.github.io/slides/swib-15/img/demo5-3.png" target="_blank"><img src="http://hbz.github.io/slides/swib-15/img/demo5-3.png" alt="" /></a> <p/> We'll now reconcile the "bibliothek" column, which contains the library names, with the Lobid API. We also pass the other fields (postal code and DBS ID) to the Lobid API to improve the result quality of the reconciliation candidates returned by the API (the "As property" values are arbitrary for the Lobid API, but need to be set): <p/> <a href="http://hbz.github.io/slides/swib-15/img/demo5-4.png" target="_blank"><img src="http://hbz.github.io/slides/swib-15/img/demo5-4.png" alt="" /></a> <p/> After the reconciliation is done, i.e. every library in our table has been looked up in the Lobid organisations data, the Lobid API returns candidates for each library, ranked by their score, with the highest ranking candidate being the most likely match: <p/> <a href="http://hbz.github.io/slides/swib-15/img/demo5-5.png" target="_blank"><img src="http://hbz.github.io/slides/swib-15/img/demo5-5.png" alt="" /></a> <p/> Each cell now contains a list of candidates. They are linked to their entries in the Lobid API, so by clicking them we can verify that the topmost candidate is actually a good match. The "best candidate's score" histogram facet on the left allows us to deselect libraries with very low scoring best candidates (by moving the left slider to the right), so we don't pollute our data with wrong matches. <p/> The next step is to create a new column with the unified ID, based on the best reconciliation candidate. We use the OpenRefine expression language for that and create a new column called "hbz-id" (not all libraries have ISILs, the Lobid API returns something like pseudo-ISILs for these, so we don't call the column ISIL): <p/> <a href="http://hbz.github.io/slides/swib-15/img/demo5-6.png" target="_blank"><img src="http://hbz.github.io/slides/swib-15/img/demo5-6.png" alt="" /></a> <p/> The expression we use, "cell.recon.best.id" means that for each cell, from its reconciliation result, pick the best candidate, and take its id as the value for the new column. The preview we see for that expression looks good, so we create the new column: <p/> <a href="http://hbz.github.io/slides/swib-15/img/demo5-7.png" target="_blank"><img src="http://hbz.github.io/slides/swib-15/img/demo5-7.png" alt="" /></a> <p/> We could now export the resulting table with the new column as a CSV (or many other formats) to get the reconciled data set. <p/> So this is what reconciliation with OpenRefine and the Lobid API looks like. You can <a href="https://github.com/OpenRefine/OpenRefine/releases">download OpenRefine</a> and reproduce these steps based on <a href="https://github.com/hbz/lobid-organisations/issues/55#issuecomment-129771979">these instructions</a>. <p/> <h2>Lessons learned</h2> <p/> So what did we learn by building and using the Lobid API and applications based on it? We learned that it's important not to lose useful data for applications in the transformation of source data to LOD. We learned that it's important to structure data in a way that makes it useful for applications, like for queries and processing responses. And we learned that if possible, we should integrate into existing tools and workflows like OpenRefine, because if people have these tools, that's where they want to use your data. <p/> To summarize, we learned to let applications drive API and data design. To avoid premature abstraction. To support actual use cases before generalizing. Or, to put it another way: "Do usable before reusable". <blockquote class="twitter-tweet"><p lang="en" dir="ltr">Do usable before reusable.</p>&mdash; Einar W. Høst (@einarwh) <a href="https://twitter.com/einarwh/status/634702639410884609">August 21, 2015</a></blockquote> <p/> And doing usable is great, because "having other folks use your stuff makes your stuff better!" <blockquote class="twitter-tweet" lang="en" dir="ltr"><a href="https://twitter.com/edsu">@edsu</a> Guess what - it turns out having other folks use your stuff makes your stuff better! Software and collections too!</p>&mdash; Andy Jackson (@anjacks0n) <a href="https://twitter.com/anjacks0n/status/626697087544074240">July 30, 2015</a></blockquote> <p/> So this is how we make progress: by building, using, and improving stuff. <p/> A short note on how we built our particular API: We used Metafacture (a Java toolkit for stream-based library metadata processing), Elasticsearch (a Lucene-based search server, something like SOLR, we use it with Java), and Playframework (a Web application framework, something like Rails or Django, we use it with Java). In a nutshell, that's Java programming with open source tools. But this is just our choice. An API like this could be implemented with all kinds of technologies. <p/> Now you might be wondering: but what about Linked Open Data (which is in this post's title), or even the Semantic Web (which is the topic of the conference I presented this as a talk)? For one thing, the structured data in all the examples above is JSON-LD, it is RDF compatible, we use standard vocabularies where possible, so this is linked data. <p/> But linked data and the semantic web are no goals in themselves. They are "a technological solution, one of many that might fit the real goals". <blockquote class="twitter-tweet"><p lang="en" dir="ltr">I&#39;m so over linked data/semantic web as a goal. Its a technological solution, one of many that might fit the real goals/outcomes</p>&mdash; Euan Cochrane (@euanc) <a href="https://twitter.com/euanc/status/605801349125541889">June 2, 2015</a></blockquote> <p/> And no matter what our roles or titles are, whether we're cataloguers, developers, or managers, that real goal is the same: "to make the product better for our users". <blockquote class="twitter-tweet"><p lang="en" dir="ltr">&quot;No matter what our job titles, our jobs are all the same — to make the product better for our users.&quot; <a href="http://t.co/Rz8CnWvlbm">http://t.co/Rz8CnWvlbm</a></p>&mdash; Fabian Steeg (@fsteeg) <a href="https://twitter.com/fsteeg/status/570614437016690689">February 25, 2015</a></blockquote> <p/> And that product is software. <p/> So what's the thing to take away? It's really that libraries, that we, that you, should build APIs. APIs provide infrastructure for software in libraries. They make the great work of cataloguers available for all kinds of use cases. That's why "libraries need APIs". <blockquote class="twitter-tweet" lang="en" dir="ltr">.<a href="https://twitter.com/fsteeg">@fsteeg</a> Yep. Libraries need APIs, not web portals.</p>&mdash; Ralf Claussnitzer (@claussni) <a href="https://twitter.com/claussni/status/626338710213296128">July 29, 2015</a></blockquote> <p/> They empower yourself and others: to use your data (as we saw in the simple question answering example), to build new applications (as we saw in the simple and complex map-based applications), and to improve existing applications (as we saw in the OpenRefine example). <p/> It doesn't happen by itself. It's not like you build an API and all these applications magically appear. What it takes is "an API and some large-but-finite amount of labor". <blockquote class="twitter-tweet"><p lang="en" dir="ltr">Realizing that I say &quot;it wouldn&#39;t be difficult to X&quot; when I mean &quot;there&#39;s an API and some large-but-finite amount of labor could X.&quot;</p>&mdash; Ted Underwood (@Ted_Underwood) <a href="https://twitter.com/Ted_Underwood/status/639174204668121088">September 2, 2015</a></blockquote> <p/> But APIs are the foundation. They provide infrastructure for software in libraries. They empower yourself and others. http://www.fsteeg.com/notes/why-lod-needs-applications-and-libraries-need-apishttp://www.fsteeg.com/notes/why-lod-needs-applications-and-libraries-need-apis Mon, 07 Dec 2015 00:00:01 +0000 programmingswiblobidweblibrariesnwbib