Metadata management using iCommands¶
GoCommands provides features to manage metadata for data objects, collections, resources, and users in the Data Store using the imeta command.
Metadata consists of three components:
- Name (Attribute): The name of information.
- Value: The actual data or information.
- Unit (Optional): Specifies the unit of measurement, if applicable.
List Metadata of Data Objects, Collections, Resources, or Users¶
iRODS Objects¶
| iROD Object | Flag | Description |
|---|---|---|
data object |
-d |
List metadata of data objects |
collection |
-C |
List metadata of collections |
resource |
-R |
List metadata of resources |
user |
-u |
List metadata of users |
Example Usage¶
-
List metadata of a data object:
-
List metadata of a collection:
-
List metadata of a resource:
-
List metadata of a user:
Add Metadata to Data Objects, Collections, Resources, or Users¶
iRODS Objects¶
| iROD Object | Flag | Description |
|---|---|---|
data object |
-d |
List metadata of data objects |
collection |
-C |
List metadata of collections |
resource |
-R |
List metadata of resources |
user |
-u |
List metadata of users |
Example Usage¶
-
Add metadata to a data object:
-
Add metadata to a data object with metadata-unit:
-
Add metadata to a collection:
-
Add metadata to a resource:
-
Add metadata to a user:
Remove Metadata from Data Objects, Collections, Resources, or Users¶
Remove metadata by name (attribute) and value:
Remove metadata by ID:
Note: The metadata-ID is a numeric identifier for the metadata. It can be obtained from the output of the imeta ls command.
iRODS Objects¶
| iROD Object | Flag | Description |
|---|---|---|
data object |
-d |
List metadata of data objects |
collection |
-C |
List metadata of collections |
resource |
-R |
List metadata of resources |
user |
-u |
List metadata of users |
Example Usage¶
-
Remove metadata from a data object by name:
-
Remove metadata from a data object by ID:
-
Remove metadata from a collection:
-
Remove metadata from a resource:
-
Remove metadata from a user:
Adapted from CyVerse Learning Materials (last source update 2025-03-25), CC BY 4.0. Spotted a problem? Open an issue.