Skip to content

Commit

Permalink
Added owl2java (#11)
Browse files Browse the repository at this point in the history
Currently, we still need to trigger the ontology build manually using `build-ontology.sh`.

Closes #4
Closes #5
  • Loading branch information
oxisto authored Jul 5, 2021
1 parent 4315804 commit 48b3b0c
Show file tree
Hide file tree
Showing 97 changed files with 3,538 additions and 1,578 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ jobs:
java-version: 11
distribution: zulu
- name: Build
run: ./gradlew build
run: |
./build-ontology.sh
./gradlew build
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This project primarily serves as a research sandbox and playground, so please do

## Build

Build using `./gradlew installDist`.
First, the graph classes need to be built from the Ontology definitions by calling `./build-ontology.sh`. We aim to automate this process using a Gradle plugin in the future. The build using `./gradlew installDist`.

## Usage

Expand Down
5 changes: 5 additions & 0 deletions build-ontology.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#/bin/bash
pushd owl2java
./gradlew installDist
./build/install/owl2java/bin/owl2java
popd
4 changes: 4 additions & 0 deletions cloudpg/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,7 @@ spotless {
ktfmt().kotlinlangStyle()
}
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
dependsOn("spotlessApply")
}
10 changes: 0 additions & 10 deletions cloudpg/generated/main/java/io/clouditor/graph/ABAC.java

This file was deleted.

This file was deleted.

12 changes: 0 additions & 12 deletions cloudpg/generated/main/java/io/clouditor/graph/Account.java

This file was deleted.

53 changes: 0 additions & 53 deletions cloudpg/generated/main/java/io/clouditor/graph/Application.java

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions cloudpg/generated/main/java/io/clouditor/graph/Auditing.java

This file was deleted.

10 changes: 0 additions & 10 deletions cloudpg/generated/main/java/io/clouditor/graph/Authenticity.java

This file was deleted.

10 changes: 0 additions & 10 deletions cloudpg/generated/main/java/io/clouditor/graph/Authorization.java

This file was deleted.

10 changes: 0 additions & 10 deletions cloudpg/generated/main/java/io/clouditor/graph/Availability.java

This file was deleted.

31 changes: 0 additions & 31 deletions cloudpg/generated/main/java/io/clouditor/graph/Backup.java

This file was deleted.

12 changes: 0 additions & 12 deletions cloudpg/generated/main/java/io/clouditor/graph/BlockStorage.java

This file was deleted.

12 changes: 0 additions & 12 deletions cloudpg/generated/main/java/io/clouditor/graph/CICDService.java

This file was deleted.

This file was deleted.

33 changes: 0 additions & 33 deletions cloudpg/generated/main/java/io/clouditor/graph/CloudResource.java

This file was deleted.

This file was deleted.

10 changes: 0 additions & 10 deletions cloudpg/generated/main/java/io/clouditor/graph/CloudSDK.java

This file was deleted.

12 changes: 0 additions & 12 deletions cloudpg/generated/main/java/io/clouditor/graph/Compute.java

This file was deleted.

This file was deleted.

Loading

0 comments on commit 48b3b0c

Please sign in to comment.