REST, the internet as a database?
-
Upload
andrej-koelewijn -
Category
Technology
-
view
1.629 -
download
0
Transcript of REST, the internet as a database?
![Page 1: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/1.jpg)
REST, het web als database?
Ron van WeverwijkAndrej Koelewijn
![Page 2: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/2.jpg)
package com.sun.ws.rest.samples.helloworld.resources;
import javax.ws.rs.GET;import javax.ws.rs.Produces;import javax.ws.rs.Path;
// The Java class will be hosted at the URI path "/helloworld"@Path("/helloworld")public class HelloWorldResource {
// The Java method will process HTTP GET requests @GET // The Java method will produce content // identified by the MIME Media-type "text/plain" @Produces("text/plain") public String getClichedMessage() { // Return some cliched textual content return "Hello World"; }}
![Page 3: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/3.jpg)
![Page 4: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/4.jpg)
![Page 5: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/5.jpg)
![Page 6: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/6.jpg)
![Page 7: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/7.jpg)
![Page 8: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/8.jpg)
Wat is REST?
![Page 9: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/9.jpg)
![Page 10: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/10.jpg)
![Page 11: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/11.jpg)
Rest Eigenschappen
![Page 12: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/12.jpg)
1. Geef alles een ID
![Page 13: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/13.jpg)
2. Link naar je afhankelijkheden
![Page 14: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/14.jpg)
3. Gebruik de standaard HTTP Methoden
![Page 15: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/15.jpg)
4. Stel je data in verschillende formaten beschikbaar
![Page 16: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/16.jpg)
5. Communiceer zonder status
![Page 17: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/17.jpg)
Architectuur Impact
![Page 18: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/18.jpg)
![Page 19: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/19.jpg)
![Page 20: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/20.jpg)
![Page 21: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/21.jpg)
![Page 22: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/22.jpg)
![Page 23: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/23.jpg)
![Page 24: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/24.jpg)
![Page 25: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/25.jpg)
![Page 26: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/26.jpg)
![Page 27: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/27.jpg)
![Page 28: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/28.jpg)
![Page 29: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/29.jpg)
![Page 30: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/30.jpg)
![Page 31: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/31.jpg)
![Page 32: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/32.jpg)
![Page 33: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/33.jpg)
![Page 34: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/34.jpg)
![Page 35: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/35.jpg)
![Page 36: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/36.jpg)
![Page 37: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/37.jpg)
![Page 38: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/38.jpg)
![Page 39: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/39.jpg)
![Page 40: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/40.jpg)
![Page 41: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/41.jpg)
LinkedData
![Page 42: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/42.jpg)
![Page 43: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/43.jpg)
![Page 44: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/44.jpg)
![Page 45: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/45.jpg)
![Page 46: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/46.jpg)
![Page 47: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/47.jpg)
![Page 48: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/48.jpg)
<h2>About Dries</h2><div class="content"> <div about="#me" typeof="foaf:Person"> <a href="http://buytaert.net/images/blog/dries-buytaert-large-bw.jpg" rel="foaf:img"> <img src="http://buytaert.net/images/blog/dries-buytaert-small-bw.jpg" alt="Avatar of Dries Buytaert" style="display: block; margin-left: auto; margin-right: auto" /> </a> <p> <span property="foaf:name">Dries Buytaert</span>is passionate about the <span property="foaf:interest">web</span>, <span property="foaf:interest">open source</span>and <span property="foaf:interest">photography</span>. He is the original creator and project lead of <a href="http://drupal.org" rel="foaf:currentProject">Drupal</a>, an open source social publishing system. He is co-founder and chief technology officer of <a href="http://acquia.com" rel="foaf:workplaceHomepage">Acquia</a>, a venture-backed software company that offers products and services for Drupal. Dries is also working on <a href="http://mollom.com" rel="foaf:workplaceHomepage">Mollom</a>, a service that helps you identify content quality and that stops website spam. People often laugh at his hair but he is cool with that. <a href="/resume">More about Dries ...</a></p> </div></div>
![Page 49: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/49.jpg)
<h2>About Dries</h2><div class="content"> <div about="#me" typeof="foaf:Person"> <a href="http://buytaert.net/images/blog/dries-buytaert-large-bw.jpg" rel="foaf:img"> <img src="http://buytaert.net/images/blog/dries-buytaert-small-bw.jpg" alt="Avatar of Dries Buytaert" style="display: block; margin-left: auto; margin-right: auto" /> </a> <p> <span property="foaf:name">Dries Buytaert</span>is passionate about the <span property="foaf:interest">web</span>, <span property="foaf:interest">open source</span>and <span property="foaf:interest">photography</span>. He is the original creator and project lead of <a href="http://drupal.org" rel="foaf:currentProject">Drupal</a>, an open source social publishing system. He is co-founder and chief technology officer of <a href="http://acquia.com" rel="foaf:workplaceHomepage">Acquia</a>, a venture-backed software company that offers products and services for Drupal. Dries is also working on <a href="http://mollom.com" rel="foaf:workplaceHomepage">Mollom</a>, a service that helps you identify content quality and that stops website spam. People often laugh at his hair but he is cool with that. <a href="/resume">More about Dries ...</a></p> </div></div>
![Page 50: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/50.jpg)
![Page 51: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/51.jpg)
Query Engines
![Page 52: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/52.jpg)
![Page 53: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/53.jpg)
![Page 54: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/54.jpg)
![Page 55: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/55.jpg)
![Page 56: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/56.jpg)
let $images := doc("jdbc:mysql:localhost:localuser:images"),
$kw := doc("rdf.xml")
for $item in $rdf/triplets[relation = "locname"]
where
$item/value = "Tower of London"
and some $image in $images satisfies (
$image/uri = $item/uri
and $image/width = 1024 and $image/height = 768
)
return
$item/uri
![Page 57: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/57.jpg)
![Page 58: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/58.jpg)
![Page 59: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/59.jpg)
![Page 60: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/60.jpg)
![Page 61: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/61.jpg)
![Page 62: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/62.jpg)
![Page 63: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/63.jpg)
![Page 64: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/64.jpg)
![Page 65: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/65.jpg)
![Page 66: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/66.jpg)
![Page 67: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/67.jpg)
REST, het web als database?
![Page 69: REST, the internet as a database?](https://reader033.fdocuments.us/reader033/viewer/2022052912/55a0d4ef1a28abca658b45f5/html5/thumbnails/69.jpg)
● http://www.ics.uci.edu/~fielding/pubs/dissertation/top.htm
● http://www.infoq.com/articles/rest-anti-patterns
● http://www.infoq.com/articles/tilkov-rest-doubts
● http://www.infoq.com/articles/subbu-allamaraju-rest