Metadata management using GoCommands¶
GoCommands provides features to manage metadata for data objects, collections, resources, and users in the Data Store using the lsmeta, addmeta, and rmmeta commands.
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 or collection |
-P |
List metadata of data objects or collections |
resource |
-R |
List metadata of resources |
user |
-U |
List metadata of users |
Example Usage¶
-
List metadata of a data object:
-
List metadata of multiple data objects:
-
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 or collection |
-P |
Add metadata to a data object or collection |
resource |
-R |
Add metadata to a resource |
user |
-U |
Add metadata to a user |
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¶
Note: The metadata-ID is a numeric identifier for the metadata. It can be obtained from the output of the lsmeta command.
iRODS Objects¶
| iROD Object | Flag | Description |
|---|---|---|
data object or collection |
-P |
Remove metadata from a data object or collection |
resource |
-R |
Remove metadata from a resource |
user |
-U |
Remove metadata from a user |
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.