Get started
677 commitsLast commit ≈ 2 months ago4 stars3 forks
A Java library to create and modify RO-Crates. The aim of this implementation is to not require too deep knowledge of the specification, and avoiding crates which do not fully comply to the specification, at the same time.
A Java library to create and modify RO-Crates.
The aim of this implementation is to not require too deep knowledge of the specification,
and avoiding crates which do not fully comply to the specification, at the same time.
./gradlew clean build
./gradlew clean build -x test
./gradlew -Dprofile=release clean build
./gradlew -Dprofile=release clean build release
.github/workflows/publishRelease.yml
../gradlew javadoc
On Windows, replace ./gradlew
with gradlew.bat
.
ro-crate-java
makes use of the builder pattern to guide the user to create a valid RO-Crate, similar to:
RoCrate myFirstCrate = STARTER_CRATE
.addDataEntity(
new FileEntity.FileEntityBuilder()
.setId("path/within/crate/survey-responses-2019.csv")
.setLocation(Paths.get("path/to/current/location/experiment.csv"))
.addProperty("name", "Survey responses")
.addProperty("contentSize", "26452")
.addProperty("encodingFormat", "text/csv")
.build()
)
.addDataEntity(/*...*/)
.addContextualEntity(/*...*/)
.build();
A built or imported crate can of course also be modified afterwards. Take a look at our further documentation:
Helmholtz Metadata Collaboration