[Paper Review] RocketRML - A NodeJS implementation of a use-case specific RML mapper
RocketRML is a Node.js-based RML mapper designed for high-performance RDF generation from large XML and JSON files in tourism use cases. It outperforms Java-based RML mappers by leveraging JavaScript's native JSON parsing and optimized iterators, achieving faster processing for nested, non-joinable data—though it currently lacks support for JOINs and named graphs.
The creation of Linked Data from raw data sources is, in theory, no rocket science (pun intended). Depending on the nature of the input and the mapping technology in use, it can become a quite tedious task. For our work on mapping real-life touristic data to the schema.org vocabulary we used RML but soon encountered, that the existing Java mapper implementations reached their limits and were not sufficient for our use cases. In this paper we describe a new implementation of an RML mapper. Written with the JavaScript based NodeJS framework it performs quite well for our uses cases where we work with large XML and JSON files. The performance testing and the execution of the RML test cases have shown, that the implementation has great potential to perform heavy mapping tasks in reasonable time, but comes with some limitations regarding JOINs, Named Graphs and inputs other than XML and JSON - which is fine at the moment, due to the nature of the given use cases.
Motivation & Objective
- Address performance bottlenecks in existing Java-based RML mappers when processing large-scale touristic data (e.g., >500MB XML/JSON files).
- Enable efficient mapping of deeply nested, non-joinable data structures common in tourism IT systems.
- Integrate natively with existing Node.js-based data pipelines in the semantify.it and MindLab projects.
- Support practical requirements such as global language tagging and dynamic input file handling.
- Provide a performant, use-case-specific alternative to general-purpose RML mappers for domain-specific workloads.
Proposed method
- Built as a Node.js application to leverage JavaScript’s efficient native JSON and XML parsing capabilities.
- Implemented a custom iterator mechanism to traverse nested objects without requiring join keys, enabling direct mapping of hierarchical data.
- Used JSON-LD as an intermediate format for mapping configuration and output, simplifying manipulation and improving performance.
- Supported only JSON and XML logical sources, with JavaScript functions as the sole extension mechanism.
- Optimized the mapping pipeline to avoid costly post-processing joins by handling nested structures directly during traversal.
- Introduced a global language tag parameter to automatically attach language tags to all string literals, reducing mapping file complexity.
Experimental results
Research questions
- RQ1Can a Node.js-based RML mapper achieve significantly better performance than Java-based implementations for large-scale XML and JSON data sources?
- RQ2How does the absence of JOIN support affect the expressiveness and performance of RML mappers in real-world tourism data workloads?
- RQ3To what extent can custom iterator logic handle deeply nested, non-joinable data structures without requiring external join keys?
- RQ4What performance gains are achievable through native JSON parsing and in-memory processing in a JavaScript runtime?
- RQ5How does the global language tagging feature reduce maintenance overhead in large-scale RDF mapping configurations?
Key findings
- RocketRML outperformed both legacy RML Mapper and rmlmapper-java in processing large XML and JSON files, with particularly strong gains on JSON inputs due to native JSON parsing.
- The performance advantage was attributed to reduced I/O overhead, efficient in-memory processing, and the absence of JOIN-related processing steps.
- RocketRML successfully passed all RML test cases except those requiring JOINs or named graphs, confirming correct implementation of core RML functionality.
- The lack of JOIN support caused failure in test cases like RMLTC0009a-XML, where two separate sources (students and sports) needed to be joined via conditions.
- The global language tag feature significantly reduced the complexity of mapping files by automatically tagging all string literals with a specified language.
- The custom iterator extension enabled correct handling of nested objects without join keys, supporting use cases where data is inherently hierarchical rather than relational.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.