Package OWL2generator

Class AddClassAnnotation

java.lang.Object
OWL2generator.AddClassAnnotation

public class AddClassAnnotation
extends java.lang.Object
The WriteClassAnnotation class is responsible for generating OWL class annotations and their corresponding individual instances within a Java framework for OWL/XML ontology creation. It relies on text file input and external utility methods. This class contributes to the ontology generation process by enriching classes with descriptive information and creating a foundation for associating data with them.

Key Functionalities:

Writes Class Annotations: Generates OWL code snippets using the SharedUtils class to define annotations (descriptive text) for specified classes.

Creates Individual Instances: Creates Individual objects for each annotated class, potentially used for future population with data properties.

Writes OWL Content: Writes the generated OWL code for annotations and individuals to a designated output file.

Handles File I/O: Manages file creation, writing, and closing operations.

Additional Notes:

The class relies on pre-defined file paths and utilizes comments within the code, suggesting potential improvements for user-configurable settings.

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/05/28
Version:
1-001
Author:
Edit Hlaszny (https://www.hlaszny.eu/ edithlaszny@gmail.com)
  • Field Summary

    Fields 
    Modifier and Type Field Description
    private int countOfAs  
    private java.util.ArrayList<Individual> individuals  
    private OWL2_Generator OWL2G  
    private java.io.BufferedReader reader  
    private SharedUtils shu  
    private java.io.FileWriter writer  
  • Constructor Summary

    Constructors 
    Constructor Description
    AddClassAnnotation​(java.lang.String inFilePath, java.lang.String outFilePath, java.lang.String baseURI, java.lang.String classNameToken, java.lang.String classAnnotationToken, java.lang.String commentChar)  
  • Method Summary

    Modifier and Type Method Description
    private void addClassAnnotationAndCreateIndividual​(java.lang.String className, java.lang.String annotation)  
    java.util.ArrayList<Individual> getIndividuals()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • AddClassAnnotation

      AddClassAnnotation​(java.lang.String inFilePath, java.lang.String outFilePath, java.lang.String baseURI, java.lang.String classNameToken, java.lang.String classAnnotationToken, java.lang.String commentChar)
  • Method Details