Skip to content

Commit

Permalink
feat(cognitarium): specify max_insert_data_triple_count limit
Browse files Browse the repository at this point in the history
  • Loading branch information
ccamel authored and amimart committed Apr 20, 2023
1 parent 5c46dd8 commit 47fd466
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions contracts/okp4-cognitarium/src/msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Uint128>,

/// 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<Uint128>,
}

/// # GraphInput
Expand All @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 47fd466

Please sign in to comment.