Metacompiling OWL Ontologies

  • Anders Nilsson
  • Görel Hedin
Part of the Lecture Notes in Computer Science book series (LNCS, volume 6940)


Ontologies, formal knowledge representation, and reasoning are technologies that have begun to gain substantial interest in recent years. We present a high-level declarative approach to writing application programs for specific ontologies, based on viewing the ontology as a domain-specific language.

Our approach is based on declarative meta-compilation techniques. We have implemented a tool using this approach that allows typed frontends to be generated for specific ontologies, and to which the desired functionality can be added as separate aspects. Our tool makes use of the JastAdd meta-compilation system which is based on reference attribute grammars. We describe the architecture of our tool and evaluate the approach on applications in industrial robotics.


Syntax Tree Knowledge Database Drilling Machine Abstract Syntax Tree Ontological Knowledge 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. 1.
    Bravenboer, M.: Connecting XML processing and term rewriting with tree grammars. M. Sc. thesis. Utrecht University (November 2003)Google Scholar
  2. 2.
    Cowan, T.: Jenabean: Easily bind JavaBeans to RDF (April 2008),
  3. 3.
    Ekman, T., Hedin, G.: The JastAdd System - modular extensible compiler construction. Science of Computer Programming 69, 14–26 (2007)MathSciNetzbMATHCrossRefGoogle Scholar
  4. 4.
    Fialli, J., Vajjhala, S.: The Java Architecture for XML Binding (JAXB). JSR Specification (2003)Google Scholar
  5. 5.
    Ontoprise GmBH: OntoStudio semantic modelling environment (2011),
  6. 6.
    Hedin, G.: Reference Attributed Grammars. Informatica (Slovenia) 24(3) (2000)Google Scholar
  7. 7.
    Hillairet, G., Bertrand, F., Lafaye, J.Y.: Bridging EMF applications and RDF data sources. In: Semantic Web Enabled Software Engineering (SWESE 2008), Karlsruhe (October 2008)Google Scholar
  8. 8.
    Jena: Jena – a semantic web framework for java (2009), (site accessed on November 5, 2009)
  9. 9.
    Kalyanpur, A., Pastor, D.J., Battle, S., Padget, J.A.: Automatic Mapping of OWL Ontologies into Java. In: Maurer, F., Ruhe, G. (eds.) SEKE, pp. 98–103 (2004)Google Scholar
  10. 10.
    Kiczales, G., Hilsdale, E., Hugunin, J., Kersten, M., Palm, J., Griswold, W.G.: An Overview of AspectJ. In: Lee, S.H. (ed.) ECOOP 2001. LNCS, vol. 2072, pp. 327–353. Springer, Heidelberg (2001)CrossRefGoogle Scholar
  11. 11.
    LLC, C.P.: Pellet: Owl2 reasoner for Java (2011),
  12. 12.
    Malec, J., Nilsson, A., Nilsson, K., Nowaczyk, S.: Knowledge-Based Reconfiguration of Automation Systems. In: International Conference on Automation Science and Engineering, CASE 2007, pp. 170–175. IEEE (2007)Google Scholar
  13. 13.
    Java-CC Parser Generator, metamata Inc.,
  14. 14.
    Nilsson, A., Muradore, R., Nilsson, K., Fiorini, P.: Ontology for robotics: A roadmap. In: International Conference on Advanced Robotics, ICAR 2009, pp. 1–6 (June 2009)Google Scholar
  15. 15.
    Web ontology language (2004),
  16. 16.
    Web ontology language, version 2 (2009),
  17. 17.
    The Protégé Ontology Editor and Knowledge Acquisition System (2009),
  18. 18.
    Psaila, G., Crespi-Reghizzi, S.: Adding semantics to XML. In: Workshop on Attribute Grammars, WAGA (1999)Google Scholar
  19. 19.
    SPARQL: SPARQL protocol and RDF query language (January 2008),
  20. 20.
    Stap, G.: XML document transformation processes using ASF+ SDF. M. Sc. thesis. University of Amsterdam (2007)Google Scholar
  21. 21.
    Tsarkov, D.: FaCT++ (2007),
  22. 22.
    Völkel, M.: RDFReactor – From Ontologies to Programatic Data Access. In: Proc. of the Jena User Conference 2006. HP Bristol (May 2006)Google Scholar
  23. 23.
    W3C: Semantic web (2001),
  24. 24.
    Zimmermann, M.: Knowledge-Based Design Patterns for Detailed Ship Structural Design. Ph.D. thesis, University of Rostock (May 2010)Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 2012

Authors and Affiliations

  • Anders Nilsson
    • 1
  • Görel Hedin
    • 2
  1. 1.Department of Automatic ControlLund UniversitySweden
  2. 2.Department of Computer ScienceLund UniversitySweden

Personalised recommendations