Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
rdms:metadata:cli [2023/09/05 11:33] jelte [Query Metadata] Hidden |
rdms:metadata:cli [2024/03/26 10:11] (current) jelte ↷ Links adapted because of a move operation |
||
---|---|---|---|
Line 11: | Line 11: | ||
* Query metadata | * Query metadata | ||
- | While the [[rdms: | + | While the [[rdms: |
**Notes: | **Notes: | ||
Line 451: | Line 451: | ||
</ | </ | ||
==== Copy Metadata | ==== Copy Metadata | ||
+ | < | ||
To copy metadata to a file/folder from another, the following commands is used: | To copy metadata to a file/folder from another, the following commands is used: | ||
Line 461: | Line 461: | ||
**Note**:\\ | **Note**:\\ | ||
- | This functionality is currently blocked on our system! | + | This functionality is currently blocked on our system, but will soon be available! |
+ | </ | ||
==== Query Metadata | ==== Query Metadata | ||
< | < | ||
Line 644: | Line 644: | ||
</ | </ | ||
==== Using the Interactive Mode ==== | ==== Using the Interactive Mode ==== | ||
+ | < | ||
It is also possible to use the '' | It is also possible to use the '' | ||
Line 672: | Line 672: | ||
# Check again to see if all tasks were executed. | # Check again to see if all tasks were executed. | ||
- | $ $ imeta ls -d example_file_5 | + | $ imeta ls -d example_file_5 |
AVUs defined for dataObj / | AVUs defined for dataObj / | ||
attribute: Author | attribute: Author | ||
Line 686: | Line 686: | ||
units: | units: | ||
</ | </ | ||
+ | </ | ||
==== Further Tips ==== | ==== Further Tips ==== | ||
Line 730: | Line 731: | ||
< | < | ||
- | # This example will first query for all files in the collection | + | iquest 'set -d %s/%s < |
+ | |||
+ | # This example will first query for all files in the collection '< | ||
+ | |||
+ | $ iquest 'set -d %s/%s Author "Name Surnmane"' | ||
+ | |||
# It will then use this query result and use them for the 'set -d < | # It will then use this query result and use them for the 'set -d < | ||
+ | |||
+ | set -d / | ||
+ | set -d / | ||
+ | set -d / | ||
+ | set -d / | ||
+ | |||
+ | |||
# This will then be piped into ' | # This will then be piped into ' | ||
- | iquest 'set -d %s/%s < | + | $ iquest 'set -d %s/%s Author "Name Surnmane" |
- | </code> | + | imeta> |
+ | |||
+ | # As a result, the metadata was added to all the files that were found in a single command | ||
+ | |||
+ | $ imeta ls -d / | ||
+ | AVUs defined for dataObj / | ||
+ | attribute: Author | ||
+ | value: Name Surnmane | ||
+ | units: | ||
+ | |||
+ | $ imeta ls -d / | ||
+ | AVUs defined for dataObj / | ||
+ | attribute: Author | ||
+ | value: Name Surnmane | ||
+ | units: | ||
+ | |||
+ | $ imeta ls -d / | ||
+ | AVUs defined for dataObj / | ||
+ | attribute: Author | ||
+ | value: Name Surnmane | ||
+ | units: | ||
+ | |||
+ | $ imeta ls -d / | ||
+ | AVUs defined for dataObj / | ||
+ | attribute: Author | ||
+ | value: Name Surnmane | ||
+ | units: | ||
+ | </ |