... | ... | @@ -6,9 +6,9 @@ For most part of the examples a link to test rules is also included. Those rules |
|
|
|
|
|
#### Acronyms:
|
|
|
|
|
|
**RoR**: Repository of Records, <span class="st">the _repository_ where data was stored first</span>.
|
|
|
**EUDAT/RoR** (was RoR): Repository of Records, <span class="st">the _repository_ where data was stored first</span>.
|
|
|
**PID**: Peristent identifier associated to a digital object or to a whole collection.
|
|
|
**PPID**: Parent PID, the persistent identifier associated to the source object in a replication chain. If the chain has only two elements, the master copy and the first replica, then the PPID = RoR.
|
|
|
**PARENT** (was PPID): Parent PID, the persistent identifier associated to the source object in a replication chain.
|
|
|
|
|
|
***
|
|
|
|
... | ... | @@ -36,18 +36,18 @@ The boxes with red borders and labels represent new patterns which rely on b2saf |
|
|
|
|
|
**PID record metadata**
|
|
|
|
|
|
URL irods://130.186.13.14:1247/cinecaDMPZone/home/claudio/datum.txt
|
|
|
10320/LOC <locations><location href="irods://hostname:1247/Zone/home/claudio/datum.txt" id="0"/></locations>
|
|
|
CHECKSUM sha2:nmDjK/7k1D5jjMUFoWHjX5qZmke9vpQbR6FaY9sk6eI=
|
|
|
URL irods://130.186.13.14:1247/cinecaDMPZone/home/claudio/datum.txt
|
|
|
EUDAT/FIXED_CONTENT False
|
|
|
EUDAT/CHECKSUM sha2:nmDjK/7k1D5jjMUFoWHjX5qZmke9vpQbR6FaY9sk6eI=
|
|
|
EUDAT/PROFILE_VERSION 1
|
|
|
|
|
|
**client side rule: pid creation**
|
|
|
|
|
|
PID_DO_reg {
|
|
|
*iCATCache = "true";
|
|
|
EUDATCreatePID(*parent_pid, *source, *ror, *iCATCache, *newPID);
|
|
|
EUDATCreatePID(*parent_pid, *path, *ror, *fio, *fixed, *newPID);
|
|
|
writeLine("stdout","PID: *newPID");
|
|
|
}
|
|
|
INPUT *source="/My collection of registered data/datum.txt",*parent_pid="None",*ror="None"
|
|
|
INPUT *path="/My collection of registered data/datum.txt",*parent_pid="None",*ror="None",*fio="None",*fixed="true"
|
|
|
OUTPUT ruleExecOut
|
|
|
|
|
|
**server side rule: pid creation**
|
... | ... | @@ -55,9 +55,10 @@ The boxes with red borders and labels represent new patterns which rely on b2saf |
|
|
PID_DO_reg {
|
|
|
on (($objPath like "My collection of registered data/*") {
|
|
|
*parent_pid = "None";
|
|
|
*ror = "None";
|
|
|
*iCATCache = "true";
|
|
|
EUDATCreatePID(*parent_pid, $objPath, *ror, *iCATCache, *newPID);
|
|
|
*ror = "None";
|
|
|
*fio = "None";
|
|
|
*fixed = "true";
|
|
|
EUDATCreatePID(*parent_pid, *path, *ror, *fio, *fixed, *newPID);
|
|
|
}}
|
|
|
|
|
|
**function preview**
|
... | ... | |