Skip to content

Commit

Permalink
feat(dataverse): specify ReviseMetadata execution message
Browse files Browse the repository at this point in the history
  • Loading branch information
ccamel committed Oct 24, 2023
1 parent 7666455 commit 6a0a67a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions contracts/okp4-dataverse/src/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,21 @@ pub enum ExecuteMsg {
/// The RDF identifier of the metadata to be removed.
resource_identifier: URI,
},

/// # ReviseMetadata
/// Revises a previously associated metadata in order to update it or amend it.
ReviseMetadata {
/// The RDF identifier of the metadata to be revised.
resource_identifier: URI,

/// RDF format in which the metadata is represented.
/// If not provided, the default format is [Turtle](https://www.w3.org/TR/turtle/) format.
format: Option<RDFFormat>,

/// The serialized metadata intended for revision.
/// This metadata should adhere to the format specified in the `format` field.
metadata: Binary,
},
}

/// # RDFFormat
Expand Down

0 comments on commit 6a0a67a

Please sign in to comment.