java.lang.Object
OWL2generator.Individual
public class Individual
extends java.lang.Object
Individual class represents an OWL class
individual with a name, serial number, and annotation.The annotation
originates from a configuration file.
Individual serves as a building block for
OWL/XML ontology generation within the framework. It encapsulates
information about individual entities within the ontology, potentially
using configuration file data for annotation details.
Functionality:
Stores individual name (following W3C OWL naming conventions with a unique suffix).
Tracks a serial number for individual name generation, likely incremented upon object creation.
Holds an annotation potentially comprised of an OWL class annotation and a dynamically generated role description.
Constructor initializes member variables
(individualName, serialNumber,
annotation).
incrementSerialNumber method increases the serial number
(used in name generation).
Key Points:
No getter/setter methods are present, suggesting direct member variable access.
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/19
- Version:
- 1-001
- Author:
- Edit Hlaszny (https://www.hlaszny.eu/ edithlaszny@gmail.com)
-
Field Summary
Fields Modifier and Type Field Description (package private) java.lang.StringannotationThe annotation describes the role of the individual is composed of two parts: the first part corresponds to the OWL class annotation, and the second one refers to the role of the individual, which is dynamically generated as qeeded) individual in a given triplet.(package private) java.lang.StringindividualNameFollowing the W3C OWL naming conventions, the beginning of the individual name is the same as the name of the OWL class (except for one difference: the very first character is lower case).(package private) intserialNumberThe serial number of the individual's name, which increments continuously, whenever a new instance is needed. -
Constructor Summary
Constructors Constructor Description Individual(java.lang.String individualName, int serialNumber, java.lang.String annotation) -
Method Summary
Modifier and Type Method Description (package private) voidincrementSerialNumber()
-
Field Details
-
individualName
java.lang.String individualNameFollowing the W3C OWL naming conventions, the beginning of the individual name is the same as the name of the OWL class (except for one difference: the very first character is lower case). The name formatted in this way also includes an _ID99999 suffix, where 99999 is a decimal serial number supplemented with leading zeros. -
serialNumber
int serialNumberThe serial number of the individual's name, which increments continuously, whenever a new instance is needed. -
annotation
java.lang.String annotationThe annotation describes the role of the individual is composed of two parts: the first part corresponds to the OWL class annotation, and the second one refers to the role of the individual, which is dynamically generated as qeeded) individual in a given triplet.
-
-
Constructor Details
-
Individual
Individual(java.lang.String individualName, int serialNumber, java.lang.String annotation)
-
-
Method Details
-
incrementSerialNumber
void incrementSerialNumber()
-