Package OWL2generator

Class WriteClassStructure

java.lang.Object
OWL2generator.WriteClassStructure

public class WriteClassStructure
extends java.lang.Object
The WriteClassStructure class processes a tab-indented text file (maintaining conformity with Protégé's requirements in this regard) and generates OWL code representing class hierarchies within a Java framework for OWL/XML ontology creation. This class contributes to the ontology generation process by establishing the class structure, including inheritance relationships and potential disjointness constraints.

Key Functionalities:

Reads Class Definitions: Parses a text file containing class names with indentation levels indicating their hierarchical relationships.

Identifies Subclasses: Analyzes the indentation structure to determine subclass relationships between classes.

Generates OWL Class Declarations: Creates OWL code snippets to declare all classes within the ontology.

Generates Subclass Axioms: Writes OWL code to define subclass relationships between identified classes.

Handles Disjoint Classes (Optional): Optionally generates OWL constructs to specify that certain classes are mutually exclusive (cannot have overlapping instances).

Handles File I/O: Manages file reading and writing operations.

Environment:

  • IDE: Eclipse IDE for Java Developers
  • Version: 2021-12 (4.22.0)
  • Build id: 20211202-1639
  • HW Model Name: iMac, MacOS Monterey, 12.5.1
  • Processor Name: Quad-Core Intel Core i5
  • Processor Speed: 3.2 GHz
  • Memory: 32 GB 1867 MHz DDR3
  • Disk: APPLE SSD SM0256G
  • Serial: DGKRC080GG7V
Since:
2024/06/26
Version:
1-001
Author:
Edit Hlaszny (https://www.hlaszny.eu/ edithlaszny@gmail.com)