The term application framework is normally used to refer to a set of libraries or classes that are used to implement the standard structure of a type of applications. By bundling a large amount of reusable code into a framework, much time is saved for the developer. Application frameworks are also defined as software components that model and solve a specific type of problem, providing a set of extensible and configurable components and an engine to coordinate and execute them. These components will be extended in a specific problem by developers.
The first definition focuses on the reusability of libraries in groups of similar applications. The second one focuses on the fact that an application framework should provide an integrated support to a set of functions that are common in a set of similar applications. In any case, application frameworks allow reducing the amount of effort needed to develop and maintain software, and are part of the philosophy of rapid application development (RAD).
There are many frameworks available for the development of standard Web applications. Among them we can cite: Turbine, Struts, JSF, Millstone, Wicket, etc. They all provide reusable configurable components commonly used in such applications.
In the context Semantic Web application engineering there are fewer frameworks available, due to the fact that this area is less mature than that of Web engineering. In many cases we cannot talk about frameworks, but about specific applications developed completely from scratch or by reusing some existing components, but without the notion of comprehensive application development frameworks. Some of these emergent frameworks are: the KAON portal, OntoWebber, OntoWeaver, Rhizomik, Duontology, etc.
Most of the applications developed in this area are knowledge portals or semantic portals, defined as web applications that “provide the means to select, classify and access, in a semantically meaningful and ubiquitous way, various information resources (e.g., sites, documents, data) for diverse target audiences (corporate, inter-enterprise, e-marketplace, etc.).”
Though both Web and Semantic Web application development frameworks provide interesting features for the rapid application development, they also share the fact that they are not specialized for the development of domain-specific applications. That is, they only contain generic components that can be included in Web and Semantic Web applications and these components have to be extended by developers when they want to create a specific application in a domain.
From this comment it seems interesting to have also reusable extensions or configurations of such application development frameworks for those types of applications that a set of developers normally have to create. In this paper we are interested in showing how we have configured and extended a Semantic Web application development framework for the creation of the Intranets and Extranets of several European R&D projects (Esperonto [3]], Knowledge Web [4] and OntoGrid [5]). The application development framework that we have used is ODESeW, whose earlier version was already described in [2].
The architecture of ODESeW 2.0 is based on the design pattern Model-View-Controller (MVC), which is currently widely used for developing Web applications. This pattern divides functionality among three types of objects (the view, the model and the controller), which are involved in maintaining and presenting data to minimize the degree of coupling between the objects. This paradigm is very useful for developing applications where the same information has several visualisations.
The ODESeW Data Model contains the information that the knowledge portals show and that they use for their management functions. It is divided in two submodels, as shown in figure 1: the Domain Model and the User Model. Both of them are based on ontologies, which are accessed using the WebODE ontology engineering workbench [1] as an ontology server.
The Domain Model is composed of a set of ontologies that describe the application domain. In the case of R&D project applications these ontologies are about projects, organisations, documents, and meetings.
The User Model is composed of a set of ontologies to specify user groups and roles, and to associate read and write permissions to different parts of the Domain Model.
All these submodels are coordinated by the Data Model Manager, which receives state change requests from the controller and is used to feed the queries made by the views. All the state change requests are filtered by the Permission Layer, which takes into account the user permissions and profile.
Views are mainly used to render the content available in the data model. ODESeW provides a set of reusable views and mechanisms for Web developers to ease the communication with the Data Model, so as to retrieve information from the ontologies stored in it. Two groups of views are identified:
The ODESeW Controller receives the user request, which contains the actions to be performed, and completes or checks the request with the information model in the Data Model (including both the domain model and the user model). Then it reads and executes the navigation and composition model, described below, and returns the next view that should be rendered for the user.
The navigation model represents the navigation of a user through the application. This model is explicitly separated from the design of views so that changes in the navigation do not affect the implementation of views. Besides, it allows representing declaratively the navigation of a user, enabling in this way an easy study of the behaviours of the user of an application.
The navigation model is a directed named graph in which nodes represent views (with preconditions) and edges represent navigation actions from one view to another. The model also allows describing specialisation/generalisation relations between two views. A view is a specialisation of another if it visualises the same content as the parent view but providing more specific visualisation items. For instance, a generic view may be used to render any individual of the domain ontologies and specialised views may be used to render specific individuals, such an individual of person, organization, project concepts, etc.
The composition model is similar to the navigation model, and allows including a set of views inside another one. It is normally used when complex sets of information have to be presented to the user at once. A common example of the use of the composition model is the main view of the application (aka the application home page). Here the developer normally includes a header, a footer and an index. All these components can be different views that are composed to create a unique one.
ODESeW provides two extensions to the MVC design pattern, both of which are included in the complete ODESeW 2.0 architecture that is depicted in figure 2.
The External Information Gateway, used to feed the data model with information available in external information sources, regardless of the communication protocols (HTTP, FTP, CORBA, Web services, etc.) and formats (relational databases, texts in natural language, XML documents, RDF files, etc.) needed to access such information. It supports two information provision models, cached and runtime, which are used depending on the characteristics of the information sources (availability, cost model, processability of information, dynamicity of information, etc.).
The Notification Service, used to send asynchronous messages about changes in the data model, following the subscription/notification pattern.
This work has been supported by the EU IST Network of Excellence Knowledge Web and by the Spanish project TIN-2004-02660. We also thank project partners from this and other projects (Esperonto and OntoGrid) for their useful comments to improve the usability of the sites generated.
[1] Arpírez JC, Corcho O, Fernández-López M, Gómez-Pérez A. WebODE in a nutshell. AI Magazine 24(3):37-48. Fall 2003
[2] Corcho O, Gómez-Pérez A, López-Cima A, López-García V, Suárez-Figueroa MC. ODESeW. Automatic Generation of Knowledge Portals for Intranets and Extranets. LNCS 2870. Springer-Verlag. pp: 802-817. October 2003.
[3] Esperonto. http:/www.esperonto.net/
[4] Knowledge Web. http:/knowledgeweb.semanticweb.org/
[5] OntoGrid. http:/www.ontogrid.net/