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 09:22] – [Read/List Metadata] Test with reveal/see for sections jelte | rdms:metadata:cli [2024/03/26 09:11] (current) – ↷ Links adapted because of a move operation jelte | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| * Query metadata | * Query metadata | ||
| - | While the [[rdms: | + | While the [[rdms: |
| **Notes: | **Notes: | ||
| Line 211: | Line 211: | ||
| </ | </ | ||
| ==== Adding Metadata | ==== Adding Metadata | ||
| + | < | ||
| To add metadata to a file/ | To add metadata to a file/ | ||
| Line 283: | Line 283: | ||
| units: | units: | ||
| </ | </ | ||
| + | </ | ||
| ==== Modifying Metadata | ==== Modifying Metadata | ||
| + | < | ||
| To modify metadata to a file/ | To modify metadata to a file/ | ||
| Line 355: | Line 355: | ||
| units: miles | units: miles | ||
| </ | </ | ||
| + | </ | ||
| ==== Set Metadata | ==== Set Metadata | ||
| + | < | ||
| Alternatively to '' | Alternatively to '' | ||
| Line 410: | Line 410: | ||
| units: | units: | ||
| </ | </ | ||
| + | </ | ||
| ==== Removing Metadata | ==== Removing Metadata | ||
| + | < | ||
| To remove metadata to a file/ | To remove metadata to a file/ | ||
| Line 449: | Line 449: | ||
| units: | units: | ||
| </ | </ | ||
| + | </ | ||
| ==== 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 460: | 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 | ||
| + | < | ||
| To query for metadata, the following command is used: | To query for metadata, the following command is used: | ||
| Line 640: | Line 642: | ||
| dataObj: example_file_9 | dataObj: example_file_9 | ||
| </ | </ | ||
| + | </ | ||
| ==== Using the Interactive Mode ==== | ==== Using the Interactive Mode ==== | ||
| + | < | ||
| It is also possible to use the '' | It is also possible to use the '' | ||
| Line 669: | 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 683: | Line 686: | ||
| units: | units: | ||
| </ | </ | ||
| + | </ | ||
| ==== Further Tips ==== | ==== Further Tips ==== | ||
| Line 727: | 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: | ||
| + | </ | ||