Skip to content

Ontouml4j is a Library created to allow the manipulation of OntoUML elements in Java

License

Notifications You must be signed in to change notification settings

OntoUML/ontouml4j

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.