From 6a0a67a9f693fea184af18d9bf635d03a01d5111 Mon Sep 17 00:00:00 2001 From: ccamel Date: Tue, 22 Aug 2023 16:56:51 +0200 Subject: [PATCH] feat(dataverse): specify ReviseMetadata execution message --- contracts/okp4-dataverse/src/msg.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/contracts/okp4-dataverse/src/msg.rs b/contracts/okp4-dataverse/src/msg.rs index 5555cd69..c7a6d038 100644 --- a/contracts/okp4-dataverse/src/msg.rs +++ b/contracts/okp4-dataverse/src/msg.rs @@ -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, + + /// The serialized metadata intended for revision. + /// This metadata should adhere to the format specified in the `format` field. + metadata: Binary, + }, } /// # RDFFormat