[Paper Review] The Empusa code generator: bridging the gap between the intended and the actual content of RDF resources
Empusa is a code generator that bridges the gap between intended RDF ontology structures and actual data content by automatically producing OWL and ShEx schemas, validated APIs (R and Java), Markdown documentation, and visualizations from a unified input. It ensures consistency across ontology, data structure, and content, reducing errors and development time in semantic web applications for life sciences.
The RDF data model facilitates integration of diverse data available in structured and semi-structured formats. To obtain an RDF graph with a low amount of errors and internal redundancy, the chosen ontology must be consistently applied. However, with each addition of new diverse data the ontology must evolve thereby increasing its complexity, which could lead to accumulation of unintended erroneous composites. Thus, there is a need for a gatekeeping system that compares the intended content described in the ontology with the actual content of the resource. Here we present Empusa, a tool that has been developed to facilitate the creation of composite RDF resources from disparate sources. Empusa can be used to convert a schema into an associated application programming interface (API) that can be used to perform data consistency checks and generates Markdown documentation to make persistent URLs resolvable. In this way, the use of Empusa ensures consistency within and between the ontology (OWL), the Shape Expressions (ShEx) describing the graph structure, and the content of the resource.
Motivation & Objective
- To address inconsistencies between intended RDF ontology definitions and actual data content in heterogeneous life science resources.
- To reduce manual effort and error rates in developing and maintaining RDF-based ontologies and associated data pipelines.
- To provide a gatekeeping system that validates data against ontology and structural constraints during creation.
- To streamline the development of semantic web tools by automatically generating reusable code and documentation.
- To support the GBOL stack and similar large-scale ontologies by enabling scalable, consistent, and maintainable data modeling.
Proposed method
- Accepts a combined input of OWL classes and a simplified ShEx format for property definitions within Protégé.
- Uses RDFS for class hierarchies and ShEx for defining property multiplicity (0..1, 1..1, 0..N, 1..N) and target value types.
- Generates a full OWL file to maintain standard compatibility and a ShEx file for data validation.
- Automatically produces R and Java APIs that enforce structural constraints during data generation.
- Creates Markdown documentation using rdfs:label and skos:description for resolvable, human-readable URLs.
- Leverages RDF2Graph to generate visualizations for intuitive ontology browsing in Cytoscape.
Experimental results
Research questions
- RQ1How can the consistency between an ontology’s intended structure and actual RDF data content be enforced during data creation?
- RQ2What is the impact of automated code and documentation generation on the maintainability and scalability of large RDF-based ontologies?
- RQ3To what extent can a unified input format for OWL and ShEx reduce errors in data modeling and validation?
- RQ4How does the use of Empusa compare to manual development in terms of time and effort for large-scale semantic web projects?
- RQ5Can automated API generation ensure type safety and multiplicity constraints in RDF data exports?
Key findings
- Empusa reduces the estimated 1-year manual effort (50 lines/hour) required to generate 80,000 lines of code for the GBOL stack to near-instantaneous generation.
- The tool successfully generates consistent, validated outputs including OWL, ShEx, R and Java APIs, Markdown documentation, and visualizations from a single input.
- The generated APIs enforce multiplicity and type constraints, significantly reducing common RDF data errors such as missing types, invalid predicates, and non-unique IRIs.
- Markdown documentation with rdfs:label and skos:description enables resolvable, persistent URLs for ontology elements.
- Integration with RDF2Graph enables visual browsing of the ontology in Cytoscape, enhancing usability and inspection.
- Empusa enables consistent evolution of ontologies during development, minimizing drift between intended and actual data structures.
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.