- Open Access
Developing a web-based SKOS editor
Journal of Biomedical Semantics volume 7, Article number: 5 (2016)
The Simple Knowledge Organization System (SKOS) was introduced to the wider research community by a 2005 World Wide Web Consortium (W3C) working draft, and further developed and refined in a 2009 W3C recommendation. Since then, SKOS has become the de facto standard for representing and sharing thesauri, lexicons, vocabularies, taxonomies, and classification schemes. In this paper, we describe the development of a web-based, free, open-source SKOS editor built for the development, curation, and management of small to medium-sized lexicons for health-related Natural Language Processing (NLP).
The web-based SKOS editor allows users to create, curate, version, manage, and visualise SKOS resources. We tested the system against five widely-used, publicly-available SKOS vocabularies of various sizes and found that the editor is suitable for the development and management of small to medium-size lexicons. Qualitative testing has focussed on using the editor to develop lexical resources to drive NLP applications in two domains. First, developing a lexicon to support an Electronic Health Record-based NLP system for the automatic identification of pneumonia symptoms. Second, creating a taxonomy of lexical cues associated with Diagnostic and Statistical Manual of Mental Disorders (DSM-5) diagnoses with the goal of facilitating the automatic identification of symptoms associated with depression from short, informal texts.
The SKOS editor we have developed is — to the best of our knowledge — the first free, open-source, web-based, SKOS editor capable of creating, curating, versioning, managing, and visualising SKOS lexicons.
The Simple Knowledge Organization System (SKOS) standard was introduced to the wider community by a 2005 World Wide Web Consortium (W3C) working draft , and further developed and refined in a 2009 W3C recommendation [2, 3]1. Since then, SKOS has become the de facto standard for representing thesauri, lexicons, vocabularies, taxonomies, and classification schemes, both as a useful data format in its own right, and as a means for sharing resources on the semantic web. In this paper, we describe the development of a web-based, free, open-source SKOS editor suitable for the creation and curation of knowledge organization systems in general, and health-related lexicons designed to support clinical Natural Language Processing (NLP) in particular.
SKOS is a flexible standard designed to represent and encode a wide number of different types of knowledge organization systems, including vocabularies, thesauri, and classification systems. The standard is widely used by governments  (e.g. United Kingdom Public Sector Vocabularies, French National Library Subject Headings, United States Library of Congress Subject Headings), scientific bodies (e.g. International Virtual Observatory Alliance Astronomy Vocabulary, NASA vocabularies, Thesaurus for the Social Sciences), and non-governmental organisations (e.g. Wikipedia categories, UNESCO Thesaurus, General Multilingual Environmental Thesaurus). In contrast to its sibling World Wide Web Consortium semantic web standard, the Web Ontology Language (OWL), SKOS follows the principle of “minimal ontological commitment” . That is, SKOS concepts and relations are lightly specified, using thesaurus-style relations like “broader” rather than logically formalised relations commonly used in OWL (e.g. IS_A).
SKOS models consist of concept schemes which serve as containers for concepts. Concepts can be related together in various ways to create a hierarchical structure. The most important of these semantic relations are:
skos:broader can be read as “has broader concept”. For instance, the relation Photophobia skos:broader VisionProblem, asserts that Photophobia has broader concept VisionProblem.
skos:narrower which can be read as “has narrower concept”. For instance, the relation VisionProblem
skos:narrower Photophobia, asserts that VisionProblem has narrower concept Photophobia.
skos:related can be read as “is related to”. For instance, the relation Photophobia skos:related
Diplopia, asserts that Photophobia is related to Diplopia.
Each SKOS concept can be associated with several types of lexical labels:
skos:prefLabel (preferred label) provides a mechanism to link a preferred label to a concept. The prefLabel is the primary means of referring to a concept. Only one prefLabel per language should be assigned to each concept. For example, the SKOS concept Fever could have the skos:prefLabel “fever”@en (note that “@en” refers to English language).
skos:altLabel (alternative label) provides a mechanism to specify synonyms or near-synonyms for a given concept. For example, the concept Fever could have the skos:altLabel “febrile”@en. This relation is especially useful for specifying synonymous terms necessary for NLP.
skos:hiddenLabel (hidden label) provides a mechanism to specify non-standard synonymous terms (e.g. misspellings, typographical errors). For example, the concept Fever could have the skos:hiddenLabel “feber”@en. Hidden labels are particularly useful for encoding common misspellings necessary for NLP systems.
In addition to the semantic relations and lexical labels described above, SKOS also provides facilities to add additional metadata to concepts and map SKOS concepts to external vocabularies.
Given its lightweight semantics, SKOS is particularly suitable as a basis for the development and sharing of vocabularies to support NLP tasks. A key part of the workflow in developing some NLP systems – in particular NLP systems designed to process health-related text – is the development of custom lexicons, including common abbreviations, synonyms (including slang terms), and truncations [5–8].
Since its inception in 2005, significant effort has been expended on the development of software tools for the SKOS standard, in particular in editing and viewing SKOS vocabularies. Whilst OWL editors, such as Protégé2, can be used to create and edit SKOS, they require a user to understand SKOS in terms of OWL; an unnecessary overhead for a user simply interested in creating SKOS. Furthermore, a major requirement for a SKOS editing tool is the ability to visualise and navigate SKOS concept scheme broader/narrower hierarchies, a functionality that is unlikely be supported by generic OWL and RDF (Resource Description Framework) tools. Notable examples of “SKOS aware” tools include a SKOS Application Programming Interface (API) and editing module  for Protégé 43 (the Protégé SKOS Editor), PoolParty, an online SKOS editing and manipulation tool , and SKOS functionality built into the TopBraid Composer RDF editing platform 4, all of which facilitate the creation, development, and utilisation of SKOS vocabularies. However, to the best of our knowledge, until now no free, open-source, web-based SKOS editor has been available to the research community (note that PoolParty, although web-based, is a commercial product). In this paper, we present a web-based SKOS editing tool that is suitable for developing and modifying the health-related lexicons necessary for large-scale information extraction from clinical notes and other health-related text, yet is also general purpose enough for any small-to-medium-sized SKOS vocabulary development or curation project.
A key advantage of using a web-based editor, is that it can be used anywhere, on any machine, without complex user installation. Given that our target users are clinicians, public health workers, and domain experts — i.e. those with little or no experience of semantic web languages — rather than informatics professionals, ease of use is an important requirement. We took the decision to simplify the editor’s user interface as much as possible, hiding some of the general OWL/RDF functionality available in tools like Protégé and TopBraid Composer.
Considerable effort was expended on designing the user interface (a screenshot of the system is shown in Fig. 1 showing a SKOS thesaurus designed to drive a NLP system for the automatic identification of biosurveillance-relevant symptoms from Electronic Health Records (EHRs) ). After some experimentation, we adopted an interface that consists of three panes, from left to right:
Concept Pane: An editable taxonomic hierarchy of SKOS concepts representing skos:broader and skos:narrower relations, which the user can click on to expand and collapse the tree
Relations Pane: An editable list of relations between concepts, particularly the skos:related, skos:broader, and skos:narrower relations
Linguistics Pane: An editable list of lexical items related to each SKOS concept (e.g. skos:prefLabel, skos:altLabel, skos:hiddenLabel)
We identified six core functionalities necessary for the editor, partially based on the requirements identified by :
Create, edit, and delete SKOS entities
Assert SKOS relationships between SKOS concepts (e.g. broader/narrower)
Assert and edit skos:prefLabel, skos:altLabel, and skos:hiddenLabel data properties
Visualise broader and narrower relationships in a browsable hierarchical tree
Support for SKOS documentation properties
Provide alternative renderings (e.g. multilingual prefLabels) within the editor
Additionally, our editor provides versioning, and a Wizard tool to expedite the SKOS concept hierarchy creation process.
In building our web-based SKOS Editor, we relied heavily on existing OWL, SKOS and RDF tooling, in particular, the SKOS API  (developed by author Jupp) and the OWL API . The system is a Liferay portlet application that uses a standard Model-View-Controller architecture implemented using the following technologies:
Business (Model) Layer: Java SKOS API and OWL API
Controller/Middle Layer: The Liferay Portlet application using the JSR 286 Portlet framework connects the presentation layer to the SKOS API, as well as providing user management, authorisation, and authentication.
A MySQL database is used to save files and file versions, as well as user specific settings. The application is a Single Page Application, with all server/client communication based on Ajax calls using a JQuery library (client-side) and Liferay portlet (server-side).
Results and discussion
The web-based SKOS editor allows a user to upload a SKOS file from their local machine for editing, load a SKOS file from a URL, create a SKOS file ab initio, and download an edited SKOS file to a local machine. Furthermore, the editor supports versioning of SKOS files, and provides a GUI-based “Wizard” to expedite the creation of concept hierarchies. The Wizard allows a user to input a plain-text tab indented concept hierarchy, a functionality that has been shown in our qualitative user testing to expedite the hierarchy creation process (see Fig. 3 and Additional file 1). The tool takes its inspiration from the Protégé SKOS editor developed by author Jupp, and supports core SKOS functionalities. In the “Concept Pane”, SKOS concept schemes and concepts can be created and manipulated with a hierarchical tree structure. The “Relation Pane” shows hierarchical relations defined in the concept pane, and allows these relations to be modified, including the addition of non-hierarchical relations between concepts. The “Linguistics Pane” allows lexical information — prefLabels, hiddenLabels, altLabels — to be associated with each concept.
While there have been attempts at developing best practices for SKOS thesauri development (e.g. [3, 14]) considerable heterogeneity exists between different SKOS resources . We built an editor that is designed to handle even those SKOS resources that do not adhere to suggested best practice (e.g. the thesauri has more than one prefLabel for a specified language, or a SKOS concept exists outside a Concept Scheme).
Loading and editing sample SKOS vocabularies
In order to demonstrate and test the capacities of the SKOS editor, we tested the performance of the editor in executing some key editing functions. To test the editor, we used an Apple MacBook with 16GB of memory and the Firefox web browser (version 32). We chose five widely used SKOS resources:
STW for Economics Thesaurus is used for indexing economics research papers 
New York Times (NYT) Subject Descriptions is used to index NYT news stories 
United Kingdom Archive Thesaurus is a general purpose subject heading thesaurus developed by the UK government 
Australian Curriculum Thesaurus, a resource developed by the Australian government for managing educational resources 
The UNESCO — United Nations Educational, Scientific and Cultural Organization — Thesaurus provides general subject terms across the fields of education, culture, natural science, social and human sciences, communication, and information 
Table 1 shows the capabilities of the editor in editing large thesauri, where it can be seen that the 5.1 MB UNESCO Thesaurus took six seconds to load into the tool. However, larger thesauri – e.g. the UK Archive Thesaurus at 9.4 MB – do not load quickly due to limitations within the Liferay web framework. The tool is primarily designed for developing relatively small, linguistically-oriented vocabularies. In addition to testing whether various existing SKOS vocabularies could be loaded into the tool and rendered correctly, for each of the SKOS thesauri evaluated, we tested basic editing functionality (e.g. whether a new concept could be created and inserted into the existing thesauri, whether concepts could be deleted). The results of this evaluation are shown in Table 2. Note that even very large vocabularies (e.g. STW Thesaurus) could be edited successfully using the tool.
Our qualitative evaluation of the SKOS editor centred on two use cases. For the first use case, an experienced knowledge engineer (author Castine) used the SKOS editor to build a lexical resource to drive an EHR-oriented NLP algorithm based on the Centers for Disease Control pneumonia definition (see Fig. 4 for a screenshot of the resulting SKOS resource). The pneumonia resource took a total of 40 min to build using the Web SKOS Editor, as opposed to the Protégé SKOS Editor Plug-in, which took 45 min. Note that the knowledge engineer did not use the Wizard concept creation functionality, a tool which we believe is likely to expedite the concept hierarchy creation process substantially. For the second use case, an experienced NLP researcher (author Mowery) used the tool to develop a resource designed to map lexical cues to Diagnostic and Statistical Manual of Mental Disorders (DSM-5) diagnoses with the goal of facilitating the automatic identification of symptoms associated with depression from short, informal texts  (see Fig. 5 for a screenshot of the SKOS resource creation process). The depression resource took less than one hour to create, and it was reported that the Wizard greatly expedited the concept creation process. However, several enhancements were suggested, including the development of an auto-save feature, and the ability to configure default values for language labels (for example, default to English — @en — labels).
While the SKOS editor is suitable for building and curating special purpose SKOS vocabularies to run bespoke clinical NLP systems, it does have several limitations:
It is not suitable for editing very large SKOS vocabularies
Our long-term goal is to integrate the SKOS editor as a lexicon development and management module within a comprehensive platform for developing clinical NLP algorithms. As part of this long term goal — and informed by the comments and suggestions of our early users — we plan three major system enhancements:
In the medium term, we plan to add multi-user functionality and collaborative editing to the system.
We plan to include the ability to search other vocabularies – in particular the UMLS (Unified Medical Language System)  – from within the editor interface in order to expedite the synonym identification process.
We plan to extend the current documentation and tutorial material
The SKOS editor we have developed is – to the best of our knowledge – the first free, open-source, online, SKOS editor capable of creating, curating, versioning, and managing SKOS vocabularies. The editor is free to use5 and the source code is available under an Apache Version 2.0 License.
Availability and requirements
Diagnostic and Statistical Manual of Mental Disorders, 5th Edition
Electronic Health Record
Natural Language Processing
Web Ontology Language
Resource Description Framework
Simple Knowledge Organization System
Miles A, Brickley D. SKOS Core Guide - Editor’s Draft 6 October 2005. [http://www.w3.org/2004/02/skos/core/guide/2005-10-06/]. Accessed 1 Aug 2015.
Miles A, Bechhofer S. SKOS Simple Knowledge Organization System reference - World Wide Web Consortium recommendation 18 August 2009. [http://www.w3.org/TR/skos-reference/]. Accessed 1 Aug 2015.
Baker T, Bechhofer S, Isaac A, Miles A, Schreiber G, Summers E. Key choices in the design of Simple Knowledge Organization System (SKOS). J Web Semantics. 2013; 20:35–49.
SKOS datasets - World Wide Web Consortium. [http://www.w3.org/2001/sw/wiki/SKOS/Datasets]. Accessed 1 Aug 2015.
Wu Y, Denny JC, Rosenbloom ST, Miller RA, Giuse DA, Xu H. A comparative study of current clinical natural language processing systems on handling abbreviations in discharge summaries. AMIA Annu Symp Proc. 2012; 2012:997–1003.
Liu V, Clark MP, Mendoza M, Saket R, Gardner MN, Turk BJ, et al. Automated identification of pneumonia in chest radiograph reports in critically ill patients. BMC Med Inform Decis Mak. 2013; 13:90.
Wilson RA, Chapman WW, Defries SJ, Becich MJ, Chapman BE. Automated ancillary cancer history classification for mesothelioma patients from free-text clinical reports. J Pathol Inform. 2010; 1:24.
Myslín M, Zhu SH, Chapman W, Conway M. Using Twitter to examine smoking behavior and perceptions of emerging tobacco products. J Med Internet Res. 2013; 15(8):e174.
Jupp S, Bechhofer S, Stevens R. A flexible API and editor for SKOS In: Aroyo L, Traverso P, Ciravegna F, Cimiano P, Heath T, Hyvönen E, Mizoguchi R, Oren E, Sabou M, editors. The Semantic Web: Research and Applications, Lecture Notes in Computer Science. Berlin: Simperl EPB, Springer: 2009. p. 506–520.
Schandl T, Blumauer A. PoolParty: SKOS thesaurus management utilizing linked data In: Aroyo L, Antoniou G, Hyvönen E, ten Teije A, Stuckenschmidt H, Cabral L, Tudorache T, editors. The Semantic Web: Research and Applications, Lecture notes in Computer Science. Berlin: Springer: 2010. p. 421–425.
TopBraid Composer. [www.topquadrant.com/products/]. Accessed 1 Aug 2015.
Conway M, Dowling J, Chapman W. Developing an application ontology for mining free text clinical reports: the Extended Syndromic Surveillance Ontology. In: Proceedings of the Third International Workshop on Health Document Text Mining and Information Analysis, Slovenia (LOUHI 2011): 2011. p. 75–82.
Horridge M, Bechhofer S. The OWL API: A Java API for OWL ontologies. Semantic Web. 2011; 2:11–21. [http://dl.acm.org/citation.cfm?id=2019470.2019471]
Mader C, Haslhofer B, Isaac A. Finding quality issues in SKOS vocabularies In: Zaphiris P, Buchanan G, Rasmussen E, Loizides F, editors. TPDL, Volume 7489 of Lecture Notes in Computer Science. Berlin: Springer: 2012. p. 222–233.
Manaf NAA, Bechhofer S, Stevens R. The Current State of SKOS Vocabularies on the Web In: Simperl E, Cimiano P, Polleres A, Corcho Ó, Presutti V, editors. The Semantic Web: Research and Applications - 9th Extended Semantic Web Conference, ESWC 2012, Heraklion, Crete, Greece, May 27-31 2012. Proceedings, Volume 7295 of Lecture Notes in Computer Science. Springer: 2012. p. 270–284. [http://dx.doi.org/10.1007/978-3-642-30284-8_25]
STW Economics Thesaurus. [http://zbw.eu/stw/versions/latest/download/about.en.html]. Accessed 1 Aug 2015.
New York Times Subject Headings. [http://data.nytimes.com/]. Accessed 1 Aug 2015.
United Kingdom Archive Thesaurus. [http://www.ukat.org.uk/downloads/skos.rdf]. Accessed 1 Aug 2015.
Australian Curriculum Thesaurus. [http://scot.curriculum.edu.au/indexing.asp]. Accessed 1 Aug 2015.
UNESCO Thesaurus. [http://skos.um.es/unescothes/unescothes.rdf]. Accessed 1 Aug 2015.
Mowery D, Bryan C, Conway M. Towards Developing an Annotation Scheme for Depressive Disorder Symptoms: A Preliminary Study using Twitter Data. In: Proceedings of the Second Workshop on Computational Linguistics and Clinical Psychology: From Linguistic Signal to Clinical Reality. Denver CO: Computer Science conference: 2015. p. 89–99.
Unified Medical Language System. [http://www.nlm.nih.gov/research/umls/]. Accessed 1 Aug 2015.
We would like to thank Drs Tania Tudorache, Natasha Noy, and Matthew Horridge of Stanford University’s Department of Biomedical Informatics for their valuable guidance in using the OWL API. This work was funded by grants from the United States Veterans Administration (VA HIR 08-204), and the United States National Library of Medicine (NLM 1R01LM010964). An earlier version of this paper was presented at the 6th International Symposium on Semantic Mining in Biomedicine (SMBM 2014) at the University of Aveiro, Portugal.
The authors declare that they have no competing interests.
MConway conceived of the work, developed requirements, and wrote the first draft of the manuscript. AK and FF implemented the SKOS editor and contributed to the development of an earlier draft of this manuscript. WS contributed to the development of the interface and helped guide system development. MCastine and DM provided knowledge engineering expertise, contributed to developing system requirements, and performed part of the evaluation. WC helped direct the work, and contributed to the editing of an earlier version of this manuscript. SJ provided vital expertise on the OWL and SKOS APIs, and contributed to the editing of an earlier version of this manuscript. All authors read and approved the final manuscript.
About this article
Cite this article
Conway, M., Khojoyan, A., Fana, F. et al. Developing a web-based SKOS editor. J Biomed Semant 7, 5 (2016). https://doi.org/10.1186/s13326-015-0043-z
- Natural Language Processing
- Resource Description Framework
- Application Program Interface
- Unify Medical Language System
- Simple Knowledge Organization System