Skip to main content

RESTful Services with Lightweight Machine-readable Descriptions and Semantic Annotations

  • Chapter
  • First Online:
REST: From Research to Practice

Abstract

REST was originally developed as the architectural foundation for the human-oriented Web, but it has turned out to be a useful architectural style for machine-to-machine distributed systems as well. The most prominent wave of machine-oriented RESTful systems are Web APIs (also known as RESTful services), provided by Web sites such as Facebook, Flickr, and Amazon to facilitate access to the services from programmatic clients, including other Web sites. Currently, Web APIs do not commonly provide machine-processable service descriptions which would help tool support and even some degree of automation on the client side. This chapter presents current research on lightweight service description for Web APIs, building on the HTML documentation that accompanies the APIs. descriptions. HTML documentation can be annotated with a microformat that captures a minimal machine-oriented service model, or with RDFa using the RDF representation of the same service model. Machine-oriented descriptions (now embedded in the HTML documentation of Web APIs) can also capture the semantics of Web APIs and thus support further automation for clients. The chapter includes a discussion of various types and degrees of tool support and automation possible using the lightweight service descriptions.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 109.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    In this chapter, we use the terms such as “Web API”, “RESTful service” etc. interchangeably.

  2. 2.

    See http://www.flickr.com/services/api/#kits.

  3. 3.

    http://flickr.com/services/api.

  4. 4.

    http://docs.amazonwebservices.com/AmazonSimpleDB/latest/DeveloperGuide.

  5. 5.

    URI templates are defined for instance in WSDL 2.0 HTTP Binding (Web Services Description Language (WSDL) Version 2.0: Adjuncts 2007) in Sect. 6.8.1.1.

  6. 6.

    The term descendant is defined for XML/HTML elements in XPath (XML Path Language XPath 2009).

  7. 7.

    The prefix sawsdl refers to the namespace http://www.w3.org/ns/sawsdl.

  8. 8.

    A notable new technology for transformations between XML and RDF (either way) is XSPARQL (Akhtar et al. 2008), see http://xsparql.deri.org.

  9. 9.

    http://cms-wg.sti2.org/TR/d12/v0.1/20081202/xslt/hrests.xslt.

  10. 10.

    http://www.w3.org/TeamSubmission/turtle/.

  11. 11.

    The separation of four types of service semantics is inspired by Sheth (2003).

  12. 12.

    The distinction of capabilities and categories is the same that is made by Sycara et al. (2003) between “explicit capability representation” (using taxonomies) and “implicit capability representation” through preconditions and effects.

  13. 13.

    WSMO-Lite does not place any further restrictions on nonfunctional parameters; research in this area, which is out of scope of this book, has not yet converged on a common set of properties that nonfunctional parameters should have.

  14. 14.

    http://rdfa.info/rdfa-implementations/.

  15. 15.

    http://soa4all.eu.

  16. 16.

    Located at http://iserve.kmi.open.ac.uk/.

  17. 17.

    iServe import support for the RDFa form described in “Service Description with the Minimal Service Model and RDFa” (page 488) is planned.

  18. 18.

    http://www.semwebcentral.org/projects/owls-tc/ http://www.semwebcentral.org/projects/sawsd

  19. 19.

    Atom Syndication Format, see http://rfc.net/rfc4287.html.

  20. 20.

    http://pipes.yahoo.com.

  21. 21.

    Available at http://sweet.kmi.open.ac.uk/.

  22. 22.

    Watson Semantic Web Search, http://watson.kmi.open.ac.uk.

References

  • Akhtar, W., Kopecký, J., Krennwallner, T., Polleres, A.: XSPARQL: Traveling between the XML and RDF worlds – and avoiding the XSLT pilgrimage. In: S. Bechhofer, M. Koubarakis (eds.) The Semantic Web: Research and Applications, 5th European Semantic Web Conference, ESWC 2008, Lecture Notes in Computer Science, LNCS, vol. 5021, pp. 674–689. Springer, Tenerife, Spain (2008)

    Google Scholar 

  • Akkiraju, R., Farrell, J., Miller, J., Nagarajan, M., Schmidt, M., Sheth, A., Verma, K.: Web Service Semantics – WSDL-S. Technical note (2005). Available at http://lsdis.cs.uga.edu/library/download/WSDL-S-V1.html

  • Architecture of the World Wide Web. Recommendation, W3C (2004). Available at http://www.w3.org/TR/webarch/

  • Bizer, C., Heath, T., Berners-Lee, T.: Linked Data - The Story So Far. International Journal on Semantic Web and Information Systems (IJSWIS), Special Issue on Linked Data (2009)

    Google Scholar 

  • Fensel, D., Fischer, F., Kopecký, J., Krummenacher, R., Lambert, D., Vitvar, T.: WSMO-Lite: Lightweight Semantic Descriptions for Services on the Web (2010). URLhttp://www.w3.org/Submission/WSMO-Lite/. W3C member submission, available at http://www.w3.org/Submission/WSMO-Lite/

  • Gleaning Resource Descriptions from Dialects of Languages (GRDDL). Recommendation, W3C (2007). Available at http://www.w3.org/TR/grddl/

  • Hoffmann, J., Weber, I., Scicluna, J., Kaczmarek, T., Ankolekar, A.: Combining Scalability and Expressivity in the Automatic Composition of Semantic Web Services. In: Proceedings of the 8th International Conference on Web Engineering (ICWE’08). Yorktown Heights, USA (2008)

    Google Scholar 

  • Horrocks, I., Patel-Schneider, P.F., Boley, H., Tabet, S., Grosof, B., Dean, M.: SWRL: A Semantic Web Rule Language Combining OWL and RuleML. Tech. rep., Joint US/EU ad hoc Agent Markup Language Committee (2003). Available at http://www.daml.org/2003/11/swrl/

  • HTML 4.01 Specification. Recommendation, W3C (1999). Available at http://www.w3.org/TR/html401

  • Khare, R., Çelik, T.: Microformats: a pragmatic path to the semantic web (Poster). Proceedings of the 15th international conference on World Wide Web pp. 865–866 (2006)

    Google Scholar 

  • OWL Web Ontology Language Overview. Recommendation 10 February 2004, W3C (2004). Available at http://www.w3.org/TR/owl-features/

  • OWL-S 1.1 Release. Tech. rep., OWL Services Coalition (2004). Available at http://www.daml.org/services/owl-s/1.1/

  • RDFa in XHTML: Syntax and Processing. Recommendation, W3C (2008). Available at http://www.w3.org/TR/rdfa-syntax/

  • Richardson, L., Ruby, S.: RESTful Web Services. O’Reilly Media (2007)

    Google Scholar 

  • RIF Core Dialect. Recommendation, W3C (2010). Available at http://www.w3.org/TR/rif-core/

  • Semantic Annotations for WSDL and XML Schema. Recommendation, W3C (2007). Available at http://www.w3.org/TR/sawsdl/

  • Sheth, A.P.: Semantic Web Process Lifecycle: Role of Semantics in Annotation, Discovery, Composition and Orchestration (2003). Invited Talk, Workshop on E-Services and the Semantic Web, at WWW 2003. Available at http://lsdis.cs.uga.edu/lib/presentations/WWW2003-ESSW-invitedTalk-Sheth.pdf

  • Sheth, A.P., Gomadam, K., Lathem, J.: SA-REST: Semantically Interoperable and Easier-to-Use Services and Mashups. IEEE Internet Computing 11(6), 91–94 (2007)

    Article  Google Scholar 

  • Skoutas, D., Sacharidis, D., Simitsis, A., Sellis, T.: Serving the Sky: Discovering and Selecting Semantic Web Services through Dynamic Skyline Queries. In: Proceedings of the 2008 IEEE International Conference on Semantic Computing. Santa Clara, USA (2008)

    Google Scholar 

  • Sycara, K., Paolucci, M., Ankolekar, A., Srinivasan, N.: Automated discovery, interaction and composition of Semantic Web services. Web Semantics: Science, Services and Agents on the World Wide Web 1(1), 27–46 (2003)

    Article  Google Scholar 

  • The Web Service Modeling Language WSML. Tech. rep., WSMO Working Group (2008). Available at http://www.wsmo.org/TR/d16/d16.1/v1.0/

  • Web Services Description Language (WSDL) Version 2.0: Adjuncts. Recommendation, W3C (2007). Available at http://www.w3.org/TR/wsdl20-adjuncts/

  • XML Path Language (XPath) Version 1.0. Recommendation, W3C (2009). Available at http://www.w3.org/TR/xpath

Download references

Acknowledgements

The authors would like to thank Dr. Karthik Gomadam for collaboration on the hRESTS microformat. Much of the work presented in this chapter has been supported by the European Union research project SOA4All http://www.soa4all.eu.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Jacek Kopecký .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2011 Springer Science+Business Media, LLC

About this chapter

Cite this chapter

Kopecký, J., Vitvar, T., Pedrinaci, C., Maleshkova, M. (2011). RESTful Services with Lightweight Machine-readable Descriptions and Semantic Annotations. In: Wilde, E., Pautasso, C. (eds) REST: From Research to Practice. Springer, New York, NY. https://doi.org/10.1007/978-1-4419-8303-9_22

Download citation

  • DOI: https://doi.org/10.1007/978-1-4419-8303-9_22

  • Published:

  • Publisher Name: Springer, New York, NY

  • Print ISBN: 978-1-4419-8302-2

  • Online ISBN: 978-1-4419-8303-9

  • eBook Packages: EngineeringEngineering (R0)

Publish with us

Policies and ethics