Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 1.53 KB

README.md

File metadata and controls

58 lines (42 loc) · 1.53 KB

OntoUML4J

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.

Installation

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>

Usage

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());
  }
}

Contributing

Contributions are welcome! Please read the contributing guidelines for more information.

License

This project is licensed under the MIT License. See the LICENSE file for details.