keeps / commons-ip

Commons IP is project that provide a command-line tool and Java Library to validate and manipulate E-ARK Information Packages, so to create or process E-ARK SIP and AIP and also validate them against official specifications.
http://keeps.github.io/commons-ip/
GNU Lesser General Public License v3.0
11 stars 14 forks source link

Question regarding AIP #282

Closed jalshorji closed 1 month ago

jalshorji commented 3 months ago

Is there a way to parse org.roda.core.data.v2.ip.AIP into org.roda_project.commons_ip2.model.impl.eark.AIP?

luis100 commented 1 month ago

I don't think so, there are fundamental differences on how each one is used.

The commons-ip AIP is used for validating E-ARK AIPs.

The RODA's AIP is a specific implementation in RODA which has more complexity and features, like permissions, indexing considerations, and is tied to storage implementations.

In hindsight, they should be more compatible, but the RODA AIP existed before E-ARK AIPs came along, so there is a legacy that makes them incompatible.

But, an E-ARK AIP can very easily be transformed in a E-ARK SIP, and there are methods to create an RODA AIP from an E-ARK SIP. Check this utility class: https://github.com/keeps/roda/blob/master/roda-core/roda-core/src/main/java/org/roda/core/plugins/base/ingest/EARKSIPToAIPPluginUtils.java