From d62c72ebaba900fbcad77a8503726fe12974dff2 Mon Sep 17 00:00:00 2001 From: ccamel Date: Fri, 14 Jun 2024 17:24:16 +0200 Subject: [PATCH] refactor(dataverse)!: change RdfFormat to RdfDatasetFormat --- contracts/axone-dataverse/src/contract.rs | 18 ++++++++++-------- contracts/axone-dataverse/src/msg.rs | 4 ++-- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/contracts/axone-dataverse/src/contract.rs b/contracts/axone-dataverse/src/contract.rs index a91f00ea..2759671a 100644 --- a/contracts/axone-dataverse/src/contract.rs +++ b/contracts/axone-dataverse/src/contract.rs @@ -138,7 +138,9 @@ pub mod query { #[cfg(test)] mod tests { use super::*; - use crate::msg::{DataverseResponse, RdfFormat, TripleStoreConfig, TripleStoreLimitsInput}; + use crate::msg::{ + DataverseResponse, RdfDatasetFormat, TripleStoreConfig, TripleStoreLimitsInput, + }; use crate::testutil::testutil::read_test_data; use axone_cognitarium::msg::{ DataFormat, Head, Node, Results, SelectItem, SelectQuery, SelectResponse, @@ -271,7 +273,7 @@ mod tests { let msg = ExecuteMsg::SubmitClaims { metadata: Binary::from("data".as_bytes()), - format: Some(RdfFormat::NQuads), + format: Some(RdfDatasetFormat::NQuads), }; let result = execute(deps.as_mut(), env, info, msg); @@ -338,7 +340,7 @@ mod tests { mock_info("axone1072nc6egexqr2v6vpp7yxwm68plvqnkf5uemr0", &[]), ExecuteMsg::SubmitClaims { metadata: Binary(read_test_data("vc-eddsa-2020-ok.nq")), - format: Some(RdfFormat::NQuads), + format: Some(RdfDatasetFormat::NQuads), }, ); @@ -400,7 +402,7 @@ _:b0 , + format: Option, }, /// # RevokeClaims @@ -154,7 +154,7 @@ impl From for axone_cognitarium::msg::StoreLimitsInput { /// `RdfFormat` represents the various serialization formats for RDF (Resource Description Framework) data. #[cw_serde] #[derive(Default)] -pub enum RdfFormat { +pub enum RdfDatasetFormat { /// # NQuads /// N-Quads Format ///