skip to main content
research-article

Engineering web services with attribute grammars: a case study

Published: 24 January 2011 Publication History

Abstract

Applications based on web services make an extensive use of XML documents. These XML documents are structured according to different markup vocabularies, which represent information such as the inputs and the outputs of the services. This paper proposes a way of implementing web services using a framework called XLOP (XML Language-Oriented Processing). XLOP includes a declarative domain-specific language based on attribute grammars, a well-known declarative specification technique used in the development of language processors. XLOP makes possible the automatic generation of efficient XML-processing components from high-level, declarative specifications, facilitating the development of the aforementioned services and enhancing their maintainability. This technique is illustrated in the context of Chasqui, a system for building repositories of learning objects in specialized domains, which implements a REST web service for checking constraints on the metadata of the stored learning objects.

References

[1]
Aho, A.V., Lam, M.S., Sethi, R., Ullman, J.D.: Compilers: principles, techniques and tools (second edition), Addison-Wesley, 2007
[2]
Birbeck, M et al.: Professional XML 2nd Edition, WROX Press, Birminghan,UK, 2001
[3]
Bray, T., Paoli, J., Sperberg-McQueen, C. M., Maler, E., Yergeau. F (Eds).: Extensible Markup Language (XML) 1.0 (Fourth Edition), W3C Recommendation, 2006, www.w3.org/tr/rec-xml
[4]
Cerami, E.: Web Services Essentials, O'Relly, 2002
[5]
Fielding, R.T.: Architectural Styles and the Design of Network-based Software Architectures, PhD thesis, UC Irvine, 2000, http://roy.gbiv.com/pubs/dissertation/top.htm
[6]
Gançarski, A.L., Doucet, A., Henriques, P.R, Attribute Grammar-based Interactive System to Retrieve Information from XML Documents, IEE Proc.-Soft. 153, 51--60, 2006
[7]
Knuth, D. E.: Semantics of Context-free Languages, Mathematical System Theory 2(2), 127--145, 1968.
[8]
Knuth, D.E.: Correction: Semantics of Context-Free Languages, Mathematical Systems Theory 5(1), 95--96, 1971.
[9]
Lam, T.C., Ding, J.J., Liu, J.C.: XML Document Parsing: Operational and Performance Characteristics, IEEE Computer 41(9), 30--37, 2008
[10]
Laurent, S., Jhonston, J., Dumbill, E.: Programming Web Services with XML-RPC, O'Relly, 2001
[11]
Navarro, A, Sierra, J.L., Fernández-Valmayor, A., Hernanz, H.: From Chasqui to Chasqui II: an Evolution in the Conceptualization of Virtual Objects, Journal of Universal Computer Science 11(9), 1518--1529, 2005
[12]
Neven, F.: Attribute Grammars for Unranked Trees as a Query Language for Structured Documents, Journal of Computer and System Sciences 70, 221--257. 2005
[13]
Okajima, D.: RelaxNGCC -- Bridging the Gap Between Schemas and Programs, 8, May 2002.
[14]
Paakki, J.: Attribute Grammar Paradigms -- A High-Level Methodology in Language Implementation, ACM Computing Surveys, 27(2), 196--255, 1995
[15]
Polsani, P.: Use and Abuse of Reusable Learning Objects, Journal of Digital Information 3(4), 2003
[16]
Psaila G., Crespi-Reghizzi S.: Adding Semantics to XML, Second Workshop on Attribute Grammars and their Applications WAGA99, Amsterdam, Neederland, March 1999
[17]
Richardson, L., Ruby, S.: RESTFull Web Services, O'Relly, 2007
[18]
Sarasa, A., Navarro, I., Sierra, J.L, Fernández-Valmayor, A.: Building a Syntax Directed Processing Environment for XML Documents by Combining SAX and JavaCC, Third International Workshop on XML Data Management Tools & Techniques XANTEC-DEXA'08, Turin, Italy, September 2008
[19]
Sarasa, A., Sierra. J.L., Fernández-Valmayor, A.: Processing Learning Objects with Attribute Grammars, 9th IEEE International Conference in Advanced Learning Technologies ICALT'09, Riga, Latvia, July 2009
[20]
Sarasa, A., Temprado-Battad, B., Sierra, J.L., Fernández-Valmayor, A.: XML Language-Oriented Processing with XLOP, 5th International Symposiun on Web and Mobile Information Services WAMIS-AINA'09, Bradford, UK, May 2009
[21]
Sierra, J.L., Fernández-Valmayor, A., Fernández-Manjón, B., Navarro, A.: ADDS--A Document-Oriented Approach for Application Development, Journal of Universal Computer Science, 10(9), 1302-1324, 2004
[22]
Sierra, J.L., Fernández-Valmayor, A., Guinea, M., Hernanz, H.: From Research Resources to Virtual Objects: Process model and Virtualization Experiences, Journal of Educational Technology & Society, 9(3), 56--68, 2006
[23]
Sierra JL, Fernández-Valmayor A, Fernández-Manjón B.: A Document-Oriented Paradigm for the Construction of Content- Intensive Applications, Computer Journal, 49(5), 562--584, 2006
[24]
Sierra, J.L., Fernández-Valmayor, A.: Tagging Learning Objects with Evolving Metadata Schema, 8th IEEE International Conference in Advanced Learning Technology ICALT'08, Santander, Spain, July 2008
[25]
Sierra,J.L, Fernández-Valmayor,A., Fernández-Manjón, B.: From Documents to Applications Using Markup Languages, IEEE Software 25(2), 68--76, 2008
[26]
Stanchfield, S. ANTXR: Easy XML Parsing based on The ANTLR Parser Generator, Java Due.com, Hillcrest Comm. & FGM, Inc, 2005, javadude.com/tools/antxr/index.html

Cited By

View all
  • (2014)Development of e-Learning Solutions: Different Approaches, a Common MissionIEEE Revista Iberoamericana de Tecnologias del Aprendizaje10.1109/RITA.2014.23175329:2(72-80)Online publication date: May-2014
  • (2013)The grammatical approachComputer Standards & Interfaces10.1016/j.csi.2012.06.00635:1(114-131)Online publication date: 1-Jan-2013

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM SIGSOFT Software Engineering Notes
ACM SIGSOFT Software Engineering Notes  Volume 36, Issue 1
January 2011
210 pages
ISSN:0163-5948
DOI:10.1145/1921532
Issue’s Table of Contents

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 24 January 2011
Published in SIGSOFT Volume 36, Issue 1

Check for updates

Author Tags

  1. XML processing
  2. attribute grammar
  3. development method
  4. learning object repository
  5. syntax-directed translation
  6. web services

Qualifiers

  • Research-article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)0
  • Downloads (Last 6 weeks)0
Reflects downloads up to 07 Mar 2025

Other Metrics

Citations

Cited By

View all
  • (2014)Development of e-Learning Solutions: Different Approaches, a Common MissionIEEE Revista Iberoamericana de Tecnologias del Aprendizaje10.1109/RITA.2014.23175329:2(72-80)Online publication date: May-2014
  • (2013)The grammatical approachComputer Standards & Interfaces10.1016/j.csi.2012.06.00635:1(114-131)Online publication date: 1-Jan-2013

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media