Introduction
The Unstructured Information Management Architecture (UIMA) is a cornerstone of modern Natural Language Processing (NLP), providing a robust framework for building complex analysis pipelines. However, UIMA faces a significant "Tower of Babel" problem: interoperability. Different research groups and organizations (such as DKPro, cTAKES, and JCoRe) have developed independent "type systems"—the schemas defining entities like sentences, tokens, and coreference chains.
Currently, integrating components from different repositories often requires writing extensive "glue code" in Java to manually map one type system to another. This process is tedious, error-prone, and fails to scale as the ecosystem of NLP tools expands.
A Graph-Based Approach to Type Alignment
To address this, we propose a mechanism that treats type alignment as a graph transformation problem rather than a hard-coded programming task. By leveraging Semantic Web standards, we can decouple the transformation logic from the underlying UIMA implementation.
The proposed workflow consists of three stages:
- Serialization: The internal UIMA Common Analysis Structure (CAS) is converted into a Resource Description Framework (RDF) graph.
- Transformation: A user-defined SPARQL query is executed on the RDF graph to perform the mapping.
- Deserialization: The transformed graph is converted back into a UIMA CAS conforming to the target type system.
Structural Challenges in UIMA Interoperability
The primary difficulty in aligning type systems lies in structural mismatches. For example, one system might represent coreference as a linked list, while another uses an array-like structure of mentions.
As shown in the figure above, DKPro (a) utilizes a CoreferenceLink structure forming a chain, whereas ACE (c) uses an Entity that aggregates multiple EntityMention objects. SPARQL is uniquely suited for these transformations because it is designed for graph manipulation, allowing researchers to turn linked lists into sets or merge disparate types using standard query logic.
Key Results and Implementation
The effectiveness of this approach was demonstrated through several complex conversion scenarios, including one-to-one mapping of sentence types, one-to-many event structure transformations, and the aforementioned linked-list to array conversion for coreference chains.
To support this methodology, we have released a suite of tools—including a SPARQL Annotation Editor, RDF Writer, and RDF Reader—integrated into Argo, a web-based workbench for NLP workflows. This allows researchers to perform "ad-hoc" interoperability, testing heterogeneous pipelines without the need to compile new Java code.
Discussion and Future Work
While the SPARQL-based approach offers unprecedented flexibility, it introduces a computational overhead compared to native Java mapping due to the serialization steps. Furthermore, information loss can occur if the target type system lacks the expressive power of the source system. Future work will focus on optimizing the serialization process and developing templates to lower the learning curve for writing complex SPARQL transformation queries.
By moving from rigid object-oriented structures to flexible RDF graphs, we can finally bridge the gap between disparate NLP toolsets, making UIMA truly interoperable.
Summary updated