Skip to content

About

A collaborative editor for lemon resources

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

LexO-lite v1.0

This is the first version of LexO, a collaborative web editor for easily building and managing lexical and terminological resources in the context of the Semantic Web, based on the OntoLex-Lemon model.

Table of content

What is LexO for?

LexO, a collaborative web editor for easily building and managing lexical and terminological resources in the context of the Semantic Web. The adoption of Semantic Web technologies and the Linked Data paradigm has been driven by the need to ensure the construction of resources that are interoperable and can be shared and reused by the scientific community.

LexO's primary objective is to enable lexicographers, scholars and humanists to create a resource ex novo where information can be easily manually curated by humans, that is fundamental for collecting reliable, fine-grained, and explicit information. LexO attempts to make the OntoLex-Lemon model accessible to all those do not have technical skills, allowing the adoption of new technological advances in the Semantic Web by Digital Humanities.

The first version of LexO deals with: i) the model core (lexical entry, form, lexical sense, ontology entity) and uses the decomp module for representing mmulti-wordsultiwords, andii) the variation and translation module, iii) the syntax and semantics module, iv) part of the lime module for metadata.

Who is LexO for?

The tool allows information to be easily manually curated by humans. LexO's primary objective is to enable lexicographers, scholars and humanists to create a resource ex novo where information can be easily manually curated by humans, that is fundamental for collecting reliable, fine-grained, and explicit information.

How to deploy

Check out the Installation Guide.

LexO requires:

  • Apache Tomcat v8.0 or later
  • MySql v5.0 or later
  • Java 1.8

LexO is a Maven project and uses:
  • OWL-API v5.0
  • SPARQL-DL v3.0.0
  • Hibernate v4.3.7
  • Primefaces 7.0
  • Jersey RESTful Web Services framework v2.23.2

Download LexO-lite source code and compile it.

First of all, you have to create an empty schema in MySql called LexO_users for the users' profiles management. Set the character encoding to UTF-8. You can use the following command:

mysql> create database LexO_users character set UTF8 collate utf8_bin

If you want to use another database name, you have to change it in the hibernate.cfg.xml file and recompile the project.

The lexolite.properties file contains some parameter to configure, as the following:

lexiconFolder, is the relative path w.r.t. your home (default value is .LexO-lite/)
lexiconNamespace, is the namespace of your lexicon followed by '#' (default value is http://lexica/mylexicon#)
lexiconFileName, is the file name of your lexicon (default name is mylexicon.owl)
lexiconExportFileName, is the file name of your export (default name is exportedLexicon)

domainOntologyFolder, is the relative path w.r.t. your home (default value is .LexO-lite/)
domainOntologyNamespace, is the namespace of your domain ontology followed by '#' (default value is http://ontologies/myontology#)
domainOntologyFileName, is the file name of your domain ontology (default name is domainOntology.owl)

LexO comes with an empty lexicon having the namespace equals to the init value of the above lexiconNamespace parameter (you can find it in the lexicon folder of the project). If you place it to the lexiconFolder folder you can run LexO over tomcat, and you are ready for starting to construct your multilingual lexicon.

It is important to note that currently LexO has not an ontology import button, so if you want to upload an ontology you have to manually change its namespace to the value stated in the domainOntologyNamespace parameter, and place it to the domainOntologyFolder folder. Then you have to restart tomcat.

Run LexO

You can access to the home of LexO by the following url:

http://localhost:8080/LexO-lite

There are two servlets for creating and populating the database with one administrator user.

http://localhost:8080/LexO-lite/servlet/domainCreator?command=create

creates the database, and

http://localhost:8080/LexO-lite/servlet/domainCreator?command=preset

creates the administrator user.

How to use

Create users

Once you created an administrator user, you can use the following credentials to log in to LexO:

user = admin
password = admin

By clicking on the user icon placed at the top of the interface, you can manage your users team by means of the panel shown in the following image.

Then you can modify user and password of the administrator account and create some users on the basis of the following three profiles:

  • Administrator: this profile is related to the team leader; it can add or remove users to the team, and assign them their profiles. It can create, modify, delete, validate lexical entries, and import the domain ontology.
  • User: this profile is related to the editor role. It can create, modify, delete lexical entries, and link senses to ontological entities.
  • Viewer: this profile can only access the dictionary view of lexical entries.

Create your own lexicon

By means of the new button at the bottom of the interface, you can create new lexicon languages. The form to fill in is the following:

  • Language name (mandatory): the language tag (e.g., "en");
  • Language code uri (optional): it is recommended to use the Dublin Core language property with reference to either Lexvo.org or The Library of Congress Vocabulary:
  • Linguistic catalogue (mandatory): the value is automatically set to LexInfo, an ontology that provides data categories for the OntoLex-Lemon model;
  • Description (optional): a textual description;
  • Creator (optional): some reference to the creator of the lexicon language;

The core module

The above figure shows how the LexO interface appears. It is mainly composed of two parts. The leftmost column allows scholars to browse lemmas, forms and senses, according to the OntoLex-Lemon core model. If the resource is multilingual, then users have the possibility of filtering lemmas, forms and senses by language. Information related to the selected entry is shown in the central panel where the system shows the selected lexical entry alongside the lemma (red box), any its forms (blue boxes) and lexical senses (yellow boxes). It is also possible to list the concepts belonging to a reference ontology. When a user selects an entry, the core module is displayed by default. You can switch to the other modules by using the buttons at the top of the interface. In this case the multiword “presidente del tribunale” (“court president”) is shown. By using the suitable menu you can add other forms, new senses, and a see also relationship with an entry belonging to either the lexicon or an external dataset. Finally, the sense of the entry is bound to the object property courtPresident of the imported domain ontology.

Finally, by selecting the “dictionary view” tab, a dictionary-like rendering of all the information related to the selected entry is shown in the central panel of LexO.

The variation and translation module

The translation variation module consists of two kinds of relations: 1) the semantic relations holding between senses (synonymy, hypernym, ...) and including terminological relations (dialectal, register, chronological, discursive, and dimensional variation) and the translation relation ; 2) the relations linking lexical entries and/or forms, which describe, for example, the morphological and orthographic variations of the word. The above figure presents an example of relation between lexical entries, i.e. “presidente” is the head of “presidente del tribunale”, and a relation between senses, i.e. the cultural italian translation (LexO also uses the translation vocabulray) with the original sense associated with the Hebrew term. By clicking on the plus buttons it is possible to add other lexical and senses relations, on the basis of the LexInfo vocabulary.

The syntax and semantics module

The syntactic and semantic module describes the syntactic behaviour of a word and its government pattern, namely the actants introduced by the word, their syntactic function and their morpho-syntactic realisation. These syntactic frames need also to be bound to the ontological structures representing their meaning. As a consequence, LexO makes it possible to map the argument of a predicate defined in an ontology and the syntactic argument introduced in a given syntactic frame. The above figure depicts an example of noun frame of the term having a subject and an (optional) object that has the preposition “di” (of) as marker. Basically, the term verbalizes the property courtPresident where the subject corresponds to the first argument of the property (i.e., the property domain class), and the object corresponds to the second argument of the property (i.e., the property range class).

Access to the lexicon statistics

By means of the suitable button at the top of the interface, you can access to some basic lexicon statistics.

The panel shows the lexicon languages, the number of lexical entries, and some metadata. If you select a language by clicking on the pie chart, LexO provides specific statistics for that language, including the distribution of the lexical entries per part of speech.

Export

Finally, you can export your lexicon in the OntoLex-Lemon model. It can be done by means of the Export button at the bottom of the toolbar. It is possible to serialize the data as XML/RDF or TURTLE as well. In this way, the resource is ready for its publication according to the linked data politics.

LexO's REST API

LexO comes with a basic set of services returning information about your lexicon. Currently LexO implements the following services (let assume that http://localhotst:8080/LexO-lite precedes each of them):

Description Example of invocation
List all the lexicon languages /lexicon/languages
List all the lexicon lemmas (only lang is mandatory) /lexicon/lemmas?lang=l&startswith=a&limit=10
List all the lemma metadata /lexicon/lemma?id=lemma_id
List all the lemmas involved in a specific lexico-semantic relation with a given lemma /lexicon/lemmaByRel?lang=l&entry=lemma_id&rel=translation
Get some lexicon statistics /lexicon/statistics?lang=l

Related Publications

Bellandi Andrea, and Fahad Khan. Lexicography and the Semantic Web: A Demo with LexO. Electronic lexicography in the 21st century (eLex 2019): Smart lexicography: 53–56.

Bellandi Andrea, Fahad Khan, and Monica Monachini. Enhancing Lexicography by Means of the Linked Data Paradigm: LexO for CLARIN. In Proceedings of the CLARIN Annual Conference 2019, edited by Kirl Simov and Maria Eskevich, 134–37. Leipzig.

Bellandi Andrea, Giovannetti Emiliano, and Piccini Silvia 2018. Collaborative Editing of Lexical and Termino-ontological Resources: a quick introduction to LexO. In XVIII EURALEX International Congress Lexicography in Global Contexts – Book of Abstracts, 17-21 July 2018, Ljubljana, Slovenia, pp. 23-27.

Bellandi Andrea, Emiliano Giovannetti, and Anja Weingart. Multilingual and Multiword Phenomena in a lemon Old Occitan Medico-Botanical Lexicon. Information 9, no. 3 (2018): 52.

References

About

A collaborative editor for lemon resources

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages