Journal of Information Systems Engineering & Management
Research Article
2018, 3(1), Article No: 07

Virtual Learning Spaces Creation Based on the Systematic Population of an Ontology

Published online: 07 Feb 2018
Download: 82
View: 126

Abstract

The creation of Learning Spaces on the Web, like the exhibition rooms of virtual museums, supported by an ontology that enables a conceptual navigation over the learning objects exposed, is a hard and complex task but of uttermost importance for the success of the knowledge acquisition process. In our opinion, the creation must be systematic and reusable from case to case, based on the query of the ontology instances that describe the museum assets. We will discuss how the ontology definition drives the way SPARQL (SPARQL Protocol and RDF Query Language) queries extract information from the TripleStore to be prepared for visualization. However, to enable this approach, we need to populate the ontology in an automatic way, extracting the data from the annotated documents in the institution repository. We intend to show how that process can be implemented using the Museum of the Person (MP) as a case-study, describing the XML2RDF tool developed. To illustrate the complete approach proposed we will include a guided visit to the exhibition rooms of MP created according to that proposal and by our tools.

INTRODUCTION

In the context of our work, a virtual museum is one that has no physical existence (is not located in a building and has no physical objects to show), and displays in its exhibitions rooms objects collected from a digital repository that constitutes the museum assets. Exhibition rooms are Web pages and the visitor access the collection navigating over a browser (Schweibenz, 2004).

To create such virtual rooms on the Web (usually we call them learning spaces), it is necessary to query the repository’s digital storage, and to process (transform and relate) the returned information before publishing it. The discussion of the approach proposed to implement this process is one of our goals in the present article that is a new version of a previous one published in a recent conference (Araújo et al., 2017).

Sometimes the storage is a relational database, other times it is a collection of annotated documents.

In our research group, we have experience in coping with both cases, aiming at the implementation of generic and efficient tools able to extract the necessary data and relations automatically. We also investigated how to build the virtual museum web pages in a systematic way that can be easily adapted from one project to another.

In this article, we consider the second case, annotated documents, and construct a text filter capable of automatically create triples that will populate the museum’s ontology. This text filter translates XML (eXtensible Markup Language) documents into RDF (Resource Description Framework) notation. As a case study, to illustrate the implementation of this process and its successful application, we will use the assets of the Museum of the Person (MP) (Almeida et al., 2001; Simões and Almeida, 2003; Martini et al., 2016).

Figure 1 depicts our point of view concerning the global process: from the digital repository to the Virtual Learning Spaces, via a domain ontology (Gruber, 1993).

Figure 1. General Approach to build Virtual Learning Spaces

This architecture comprises: the repository; the Ingestion Function [M1] responsible for reading the annotated documents, extracting and preparing the data, and store the information gathered; a Data Storage (DS) that contains the ontology instances; an Ontology that describes the knowledge domain linking the concepts through a set of relations; the Generator [M2] to receive and interpret the requests for information, access the DS and return the answers that are combined to set up Virtual Learning Spaces (VLS) (Araújo et al., 2016; Araújo, 2016).

In Section 2, we discuss the design and the development of the text filter, named XML2RDF translator, whose function is to transform XML documents into RDF triples; this is one of the contributions of the present paper. The creation of Virtual Learning Spaces (VLS) and how we extract the information stored in the ontology to display on the Web (on the VLS), a second contribution, is presented in Section 3. In Section 4 a guided visit to Museum of the Person is shown, as a case study to test the translator built. Finally, Section 5 presents the conclusion and directions for future work.

XML2RDF TRANSLATOR

To design the Ingestion Function [M1] it is important to know that the input is a structured collection of tagged data and the output will be sequence of the <subject, predicate and object> triples. The concepts in each triple (subject and object) correspond to some of the data items that are the value of the attributes of an XML (eXtensible Markup Language) element or even the element content. On the other side, the relations (predicate) linking concepts can be inferred from the XML elements and their structure. So, the implementation of that ingestion module requires the ability to identify in the given input those data items, to extract their value and print them in the output. Similar ability is required to deduce and print out the predicates.

This process can be described using a set of production rules that will be used, not only as a specification, but also as generative mechanism. Each production rule is a pair: the left hand side is a regular expression (RE) that specifies the element we want to look for; the right hand side is a piece of code that transforms the input data and writes the respective output.

So, our proposal to develop this first stage M1 is to analyze the elements and structure that can appear in the input documents, write a RE-based collection of production rules, and resort to a compiler generator (or a text filter generator) to derive the final program. Notice that the document analysis is a systematic and a formal task because it is supported on the XML document definition (DTD or XML Schema).

Now we describe how this proposal was implemented in the Museum of the Person (MP) case study, based on an ontology composed of the concepts: Person, Event, Place, Date, etc., and relations: participatedIn, carriedOutBy, tookPlace, hasTimeSpan, etc.. In the referred project, we used CIDOC-CRM1, FOAF2, and DBpedia3 nomenclatures, as will be noticed in the examples and pictures along the next sections.
For more information on this concrete ontology, please see: http://npmp.epl.di.uminho.pt/cidoc_foaf_db.html.

To process the digital repository composed of three types of documents (basic identification, BI; photography Captions; and Edited Interview) we have built a tool called XML2RDF translator to perform the ingestion task [M1], that is, to obtain and process input data, automatically, producing a triple store (Araújo, 2016; Araújo et al., 2016; Araújo et al., 2018).

The text filter was developed using the Compiler Generator system AnTLR4 (Another Tool for Language Recognition) integrated in AnTLRWorks tool, version 2.1 (Araújo, 2016; Araújo et al., 2018). AnTLR generates a lexical analyzer that implements the desired text filter for data extraction, based on a set of regular expressions. This text filter receives as input an XML (eXtensible Markup Language) document, like the one presented in Figure 2. After analyzing and processing it, the translator will output an RDF (Resource Description Framework) description, as shown in Figure 3.

Figure 2. An XML input document

Figure 3. An RDF output document

The transformation steps which make possible to transform the input file (Figure 2) into the output file (Figure 3) will be explained in detail below. The actual implementation of the XML2RDF functionality, described above, is split into three files, namely (Araújo, 2016): XML2RDF.g4, an ANTLR lexer grammar, organized in ‘modes’, that contains the set of production rules (RE-pattern / reaction) that filters the input files; Person.java, a Java class that defines the internal representation for the information we need to extract and process concerning a person (an interviewee); MainLexerXML2RDF.java the main program that orchestrates the other modules to execute their tasks in order to implement the Translator.

Figure 4 depicts the architecture of Ingestion Function [XML2RDF], the data extractor and RDF Generator, based on those three files. Through the XML2RDF.g4 grammar file, ANTLR generates the XML2RDF.java class that is compiled, including the Person.java class, to create the desired XML2RDF processor (Araújo, 2016).

Figure 4. Architecture of Ingestion Function [XML2RDF]

The automatic translation is specified by an AnTLR Lexer grammar, shown in Figure 5. This figure shows three transformation rules to process the beginning of the global specification. These three rules (Cabec, Fotos and MP) correspond to the three input files (BI, Photo Captions and edited Interview), respectively (Araújo, 2016; Araújo et al., 2018).

Figure 5. XML2RDF Lexer Grammar in AnTLR notation

A rule contains a name and a pair consisting of a Regular Expression and a Semantic Action written in Java. Regular Expression defines the text pattern to be found in the entry, and Semantic Action specifies how the found concrete text will be transformed (Araújo, 2016; Araújo et al., 2018).

Thus, when the extractor reads an XML tag that determines the start of one of the three input files, it enters a special AnTLR mode to process the contents of that document (Araújo, 2016; Araújo et al., 2018).

To better explain the AnTLR modes, Figure 6 shows an excerpt from the main mode. This excerpt processes the Catastrophic Event, when narrated by the person.

Figure 6. Lexer Grammar: Mode to cope with ‘Events’ in an interview

In this case, the extractor when it finds the block opening mark, which corresponds to the Catastrophic Event, activates the appropriate mode to process the contents of the block. When finding the block closing mark, the processor exits the mode and returns to the initial mode.

The three initial auxiliary modes (see lines 5-10) contain specific rules for extracting information from tag attributes. The fourth auxiliary mode (see lines 12-13) contains specific rules for extracting the description of the Catastrophic Event.

The rules executed (the modes activated at line 5-13 of Figure 6) to analyze and extract information from XML documents repository are presented in Figure 7.

Figure 7. Lexer Grammar: auxiliary Modes

The code block between lines 2 and 15 (Figure 7), has the function of extracting information from the attributes of the tag. In this case, the type of event (line 1-5) and the date (lines 7-16) are represented. Lines 18-20 of the code block are intended to extract the description of the event.

The grammar fragment responsible for the generation of the RDF output file is presented in Figure 8. The code block between lines 2 and 8, is to create the RDF of the event date. Lines 9 and 15, are intended to create the Catastrophic Event RDF, which includes the event type, date, local, and event description.

Figure 8. Lexer Grammar: Print Mode

This grammar fragment is composed by the rules executed at the end of the processing to print out the RDF triples built in the internal representation.

In the next section, we will detail the construction of Virtual Learning Spaces (VLS) to display in a Web browser the information extracted by the XML2RDF translator.

CREATING LEARNING SPACES ON THE WEB

According to Schweibenz, “Virtual Learning Spaces are virtual spaces that offer different points of access to their virtual visitors. The information is presented in a manner geared to the context rather than being oriented to objects. In addition, the virtual space providing diversified linked information in an attractive interface captivates easily the attention of the visitor and can be seen as a teacher motivating him to learn a specific topic—in this sense, that space can be thought as a Virtual Learning Space” (Schweibenz, 2004).

In the context of our research, we aim at exploring efficient and effective ways to create Virtual Learning Spaces (VLS) to display the information (gathered by module M1, responsible for the Ingestion function) in a manner that allows a free conceptual navigation, with an attractive interface that easily captures the visitor's attention and helps him in acquiring knowledge in the museum’s domain. The approach we propose is driven by a domain ontology (the one populated in the first stage). On one hand that ontology will determine how to query the data store; on the other hand, the ontology defines how to expose the museum objects in such a way that the visitor can flow from one to another according to the concepts they represent and the ontological relations linking them.

Once again, we illustrate our generic proposal, reporting our experience in the development of Museum of the Person (MP) case study; design and implementation decisions are also discussed.

To display in the Virtual Learning Spaces the information stored in the TripleStore (in our case study we used the Triple Store Database, called Apache Jena TDB5) we create a VLS generator to send queries and process the returned data, thus generating the Virtual Learning Spaces.

The VLS Generator consists of two parts: SPARQL Endpoint that receives and interprets SPARQL (SPARQL Protocol and RDF Query Language) queries, accesses the TripleStore and returns the answers (in our case, SPARQL endpoint used was Apache Jena Fuseki6); and Query Processor that generates SPARQL queries according to the requirements of the showroom, sends them to the SPARQL Endpoint and after receiving the response, combines the data returned to configure the VLS (Araújo et al., 2016; Araújo, 2016; Araújo et al., 2018).

Some queries were created to verify if the information wanted coincided with the one returned. Interviewee and his events is an example of one of the SPARQL queries created, and it is presented in Figure 9.

Figure 9. SPARQL Query: Interviewee and his events

In the query of Figure 9, the code block between lines 9 and 15 has the function to search for all respondents (E21 Person) that participated in events (:P11_participated_in). These events can be of several types (:P2_has_type), such as wedding, catastrophic, political, among others. As there are events that do not have the date (:P4_has_time-span) and the local (:P7_took_place_at) properties, simultaneously, we decide in the OPTIONAL argument to properly manage this inconsistency (lines 16 - 17 and lines 20 - 21, respectively).

Reusing the SPARQL queries manually created, that script selects those needed for a concrete request and sends the queries to the SPARQL endpoint. It was created a Python script that reuses the SPARQL queries manually created. That script selects those needed for a concrete request and sends them to SPARQL Endpoint and after receiving the answer, combines the data returned to configure the Virtual Learning Spaces (VLS). To create and format web pages, this Python script, uses HTML (Hyper Text Markup Language) and CSS (Cascading Style Sheets) (Araújo, 2016; Araújo et al., 2016; Araújo et al., 2018).

This Python script uses the SPARQLWrapper library to query the SPARQL endpoint about all Interviewee and his events (query shown in Figure 9). It requests the results in a JSON (JavaScript Object Notation) format so that it can easily iterate through the returned data (Araújo, 2016).

After preparing the SPARQL query to send off, the script sends the query within a try/except block so that it can check for communication problems before attempting to render the results (Araújo, 2016). As is a CGI (Common Gateway Interface) script, it creates HTML and sends it to a browser, a Content-type header for sending the actual web page. The script also includes Python code to return the results of the query (Araújo, 2016).

An example of the final output of the Python script can be seen in Figure 10. This figure displays a response to the query: Interviewee and his events.

Figure 10. Response to the SPARQL query: Interviewee and his events

Finally, a form was created to execute a query presented in the Python script (Figure 9) and to obtain as a response the web page that lists the Interviewees and their events (Figure 10). Notice that, each Virtual Learning Space is built following the template of the web page with data extracted from the data storage (Araújo, 2016; Araújo et al., 2016; Araújo et al., 2018).

In the following section, will be presented an example of a guided tour to the Museum of the Person. On this visit, it is possible to see other examples the results and executed queries.

GUIDED VISIT TO MUSEUM OF THE PERSON

To illustrate the outcome of this project, we will detail an example of guided visit through the virtual Museum of the Person. This visit comprises the following steps (Araújo, 2016):

Figure 11. Workflow that guides the Visit to Museum of the Person

The visit starts at: http://npmp.epl.di.uminho.pt. At this address the main page of the Museum of the Person will be seen – step (1) (Araújo, 2016).

At this point, selecting the MP: Visits option in the menu on the left hand side and then the option Entrance Hall, we go to the museum’s Entrance Hall – step (2) (Araújo, 2016). As previously stated, this page contains multiple entrance doors to start the navigation.

In step (3) we will visit the room Projects and Life Stories (Figure 12) (Araújo, 2016).

Figure 12. Room: Projects and Life Stories

The room Projects and Life Stories displays the list of all projects in the repository and the number of life stories per project (Figure 12). The step (4) of this visit is to select the project from that list. In this case, we will visit Projecto Afurada. Clicking on that item, Projecto Afurada, we enter the room of this project (Figure 13) (Araújo, 2016).

Figure 13. Room: Projecto Afurada

The room Projecto Afurada lists the name of all the people interviewed in the context of that project. To read the life story of someone we just click on the person’s name – step (5). The person chosen in this visit is António Oliveira Machado (Figure 14) (Araújo, 2016).

Figure 14. Life Story of Interviewee: António Oliveira Machado

In this room the life story of António Oliveira Machado is told. Details, such as date and place of birth, profession, qualifications, ancestry, photos, events in which he participated and episodes narrated, can be found and read. There are several types of episodes, such as educational, religious, general, etc.

In that room, where the life story is displayed, besides being possible to read all the episodes narrated by António Oliveira Machado, it is also possible to see their types. Choosing a type (by clicking over the type name) the visitor will learn more about the episodes of that type narrated by all the interviewees. In concrete, we will choose the type Childhood and will navigate to a new room that displays all the episodes of that kind (Childhood) for all the people interviewed (Figure 15) – step (6). This room allows to relate people and stories regarding the episodes they lived (Araújo, 2016).

Figure 15. Room: Interviewees by type of episode (Childhood)

CONCLUSION

Memory institutions---like archives, libraries or museums---detain, nowadays, many information repositories in the format of natural language digital documents, yet annotated or that can be annotated.

The existence of so many knowledge sources, lets us think on the possibility of organizing such a rich cultural heritage in a conceptual manner that can be disseminated on the Web. These sites, where the physical or abstract objects are exhibited linked among them by well-defined logical relations creating a semantic network (or conceptual map), are called virtual learning spaces (VLS) because they allow the cyber-navigator to learn about a specific domain. We argued along the paper that those VLS resemble exhibition rooms in a traditional museum, and we discussed a systematic way to build such spaces querying a data-store organized as an ontology for the referred domain. Moreover, we also proposed an approach to extract data from the given digital documents repository building automatically the required data-store. Using the Museum of the Person as a case-study, we illustrate how elements (or data item) can be found in the annotated documents to instantiate the ontology triples with concepts (the triple’s subject and object) and relations (the triple’s predicate). Although the triple storage is the most natural way to store the instances, our population method does not change if a relational database is used as archival (for a detailed and interesting comparison about both approaches see (Cruz et al., 2012)).

A guided tour to the Museum of the Person was included in the paper to prove the feasibility of our proposals. To consolidate the work here presented, it is crucial to apply in the near future the approach to other case-studies. Also, experiments to assess the usability and quality of the VLS’s created by our system, must be designed and conducted.

ACKNOWLEDGEMENT

This work has been supported by COMPETE: POCI-01-0145-FEDER-007043 and FCT – Fundação para a Ciência e Tecnologia within the Project Scope: UID/CEC/00319/2013.

The work of Ricardo Martini is supported by CNPq, grant 201772/2014-0.


  1. In: http://www.cidoc-crm.org. Accessed: 2016-03-16.

  2. In: http://www.foaf-project.org. Accessed: 2016-03-18.

  3. In: http://wiki.dbpedia.org. Accessed: 2016-03-18.

  4. In: http://www.antlr.org. Accessed: 2016-03-18.

  5. In: https://jena.apache.org/documentation/tdb/index.html. Accessed: 2016-06-01.

  6. In: https://jena.apache.org/documentation/fuseki2/index.html. Accessed: 2016-06-01.

Figure 1 Figure 1. General Approach to build Virtual Learning Spaces
Figure 2 Figure 2. An XML input document
Figure 3 Figure 3. An RDF output document
Figure 4 Figure 4. Architecture of Ingestion Function [XML2RDF]
Figure 5 Figure 5. XML2RDF Lexer Grammar in AnTLR notation
Figure 6 Figure 6. Lexer Grammar: Mode to cope with ‘Events’ in an interview
Figure 7 Figure 7. Lexer Grammar: auxiliary Modes
Figure 8 Figure 8. Lexer Grammar: Print Mode
Figure 9 Figure 9. SPARQL Query: Interviewee and his events
Figure 10 Figure 10. Response to the SPARQL query: Interviewee and his events
Figure 11 Figure 11. Workflow that guides the Visit to Museum of the Person
Figure 12 Figure 12. Room: Projects and Life Stories
Figure 13 Figure 13. Room: Projecto Afurada
Figure 14 Figure 14. Life Story of Interviewee: António Oliveira Machado
Figure 15 Figure 15. Room: Interviewees by type of episode (Childhood)
  • Almeida, J. J., Rocha, J. G., Henriques, P. R., Moreira, S. and Simões, A. (2001). Museu da Pessoa – arquitetura.  In Encontro nacional da associação de bibliotecários, arquivista e documentalistas, ABAD’01. BAD. http://repositorium.sdum.uminho.pt/handle/1822/585
  • Araújo, C. (2016). Building the Museum of the Person Based on a combined CIDOC-CRM/ FOAF/ DBpedia Ontology. MSc Thesis, Universidade do Minho.
  • Araújo, C., Henriques, P. R. and Martini, R. G. (2017). Automatizing ontology population to drive the navigation on virtual learning spaces. In 12th Iberian Conference on Information Systems and Technologies (CISTI), pp. 1–6. IEEE Xplore Digital Library. https://doi.org/10.23919/CISTI.2017.7975754
  • Araújo, C., Martini, R. G., Henriques, P. R. and Almeida, J. J. (2016).  Architectural Approaches to build The Museum of the Person.  In Sistemas y Tecnologías de Información — Atas da 11ª Conferência Ibérica de Sistemas e Tecnologias de Informação,  vol. 1 – Artículos de la Conferencia, pp. 383–388. AISTI–Associação Ibérica de Sistemas e Tecnologias de Informação. https://doi.org/10.1109/CISTI.2016.7521367   
  • Araújo, C., Martini, R. G., Henriques, P. R. and Almeida, J. J. (2016). Building the Museum of the Person from RDF Triples and SPARQL. In Communications and Innovations Gazette (ComInG), 2nd ed., 1, 1–14. https://doi.org/10.5902/2448190422984
  • Araújo, C., Martini, R. G., Henriques, P. R. and Almeida, J. J. (2018). Annotated documents and expanded CIDOC-CRM Ontology in the automatic Construction of a Virtual Museum. In Studies in Computational Intelligence, pp. 91-110. https://doi.org/10.1007/978-3-319-58965-7_7
  • Cruz, C. M., Blanco,  I. J. and Vila, M. A. (2012). Ontologies versus relational databases: are they so different? A comparison. In Artif. Intell, 4th ed, 38, 271-290. https://doi.org/10.1007/s10462-011-9251-9  
  • Gruber, T. R. (1993). Toward principles for the design of ontologies used for knowledge sharing. In International Journal of Human-Computer Studies (pp. 907–928). Kluwer Academic Publishers.
This is an open access article distributed under the Creative Commons Attribution License which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
Submit My Manuscript



Phone: +31 (0)70 2190600 | E-Mail: info@lectitojournals.com

Address: Cultura Building (3rd Floor) Wassenaarseweg 20 2596CH The Hague THE NETHERLANDS

Disclaimer

This site is protected by copyright law. This site is destined for the personal or internal use of our clients and business associates, whereby it is not permitted to copy the site in any other way than by downloading it and looking at it on a single computer, and/or by printing a single hard-copy. Without previous written permission from Lectito BV, this site may not be copied, passed on, or made available on a network in any other manner.

Content Alert

Copyright © 2015-2018 Lectito BV All rights reserved.