From 47fd466446cb010b24a4b5c459d82b9f3fa422dd Mon Sep 17 00:00:00 2001 From: ccamel Date: Tue, 18 Apr 2023 22:51:32 +0200 Subject: [PATCH] feat(cognitarium): specify max_insert_data_triple_count limit --- contracts/okp4-cognitarium/src/msg.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/contracts/okp4-cognitarium/src/msg.rs b/contracts/okp4-cognitarium/src/msg.rs index 3c6f5642..195d73fd 100644 --- a/contracts/okp4-cognitarium/src/msg.rs +++ b/contracts/okp4-cognitarium/src/msg.rs @@ -63,7 +63,9 @@ pub struct StoreLimits { /// The maximum number of bytes an insert data query can contains. /// If `None`, there is no limit on the number of bytes. pub max_insert_data_byte_size: Option, - + /// The maximum number of triples an insert data query can contains (after parsing). + /// If `None`, there is no limit on the number of triples. + pub max_insert_data_triple_count: Option, } /// # GraphInput @@ -81,7 +83,7 @@ pub enum DataInput { } /// Represents an IRI. -pub type IRI= String; +pub type IRI = String; /// # SelectResponse /// Represents the response of a [QueryMsg::Select] query. @@ -113,7 +115,7 @@ pub struct Results { pub enum Value { /// Represents an IRI. URI { - value: IRI, + value: IRI, }, /// Represents a literal S with optional language tag L or datatype IRI D. @@ -238,7 +240,7 @@ pub enum Literal { value: String, /// The [datatype IRI](https://www.w3.org/TR/rdf11-concepts/#dfn-datatype-iri). datatype: IRI, - } + }, } /// # Node