OntoUML4J is a Java library for manipulating OntoUML models. This library provides a set of classes and methods to create, manipulate, and analyze OntoUML models programmatically.
To include OntoUML4J in your project, add the following dependency to your pom.xml
:
<dependency>
<groupId>io.github.matheuslenke</groupId>
<artifactId>ontouml4j</artifactId>
<version>0.1.0</version>
</dependency>
This package is designed to support manipulating OntoUML models and their serialization into ontouml-schema compliant JSON files.
import org.ontouml.model.MultilingualText;
import org.ontouml.model.Project;
public class Main {
public static void main(String[] args) {
Project myProject =
Project.builder()
.id("12345")
.name(new MultilingualText("Project Name"))
.description(new MultilingualText("Project Description"))
.build();
System.out.println(myProject.getName());
System.out.println(myProject.getId());
}
}
Contributions are welcome! Please read the contributing guidelines for more information.
This project is licensed under the MIT License. See the LICENSE file for details.