Skip to content

Commit 0fba28d

Browse files
committed
feat: action entities in provenance now actually call the crate their result
1 parent 55648fd commit 0fba28d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/main/java/edu/kit/datamanager/ro_crate/writer/ProvenanceManager.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,11 @@ void addProvenanceInformation(Crate crate) {
7070

7171
private ContextualEntity createActionEntity(boolean isFirstWrite, String libraryId) {
7272
return new ContextualEntityBuilder()
73-
.addType(isFirstWrite ? "CreateAction" : "UpdateAction")
74-
.addProperty("startTime", Instant.now().toString())
75-
.addIdProperty("agent", libraryId)
76-
.build();
73+
.addType(isFirstWrite ? "CreateAction" : "UpdateAction")
74+
.addIdProperty("result", "./")
75+
.addProperty("startTime", Instant.now().toString())
76+
.addIdProperty("agent", libraryId)
77+
.build();
7778
}
7879

7980
private ContextualEntity buildRoCrateJavaEntity(

0 commit comments

Comments
 (0)