File tree 1 file changed +38
-2
lines changed
contracts/okp4-cognitarium/src
1 file changed +38
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ pub struct InstantiateMsg {
12
12
/// Execute messages
13
13
#[ cw_serde]
14
14
pub enum ExecuteMsg {
15
- /// # Insert
15
+ /// # InsertData
16
16
/// Insert the data as RDF triples in the store.
17
17
/// For already existing triples it acts as no-op.
18
18
///
@@ -26,7 +26,13 @@ pub enum ExecuteMsg {
26
26
#[ cw_serde]
27
27
#[ derive( QueryResponses ) ]
28
28
pub enum QueryMsg {
29
- /// # Resources
29
+ /// # Store
30
+ ///
31
+ /// Returns information about the triple store.
32
+ #[ returns( StoreResponse ) ]
33
+ Store ,
34
+
35
+ /// # Select
30
36
///
31
37
/// Returns the resources matching the criteria defined by the provided query.
32
38
///
@@ -85,6 +91,36 @@ pub enum DataInput {
85
91
NTriples ( Binary ) ,
86
92
}
87
93
94
+ /// # StoreResponse
95
+ ///
96
+ /// Contains information related to triple store.
97
+ #[ cw_serde]
98
+ pub struct StoreResponse {
99
+ /// The store owner.
100
+ pub owner : String ,
101
+
102
+ /// The store limits.
103
+ pub limits : StoreLimits ,
104
+
105
+ /// The store current usage.
106
+ pub stat : StoreStat ,
107
+ }
108
+
109
+ /// # StoreStat
110
+ ///
111
+ /// Contains usage information about the triple store.
112
+ #[ cw_serde]
113
+ pub struct StoreStat {
114
+ /// The total number of triple present in the store.
115
+ pub triple_count : Uint128 ,
116
+
117
+ /// The total number of IRI namespace present in the store.
118
+ pub namespace_count : Uint128 ,
119
+
120
+ /// The total triple size in the store, in bytes.
121
+ pub byte_size : Uint128 ,
122
+ }
123
+
88
124
/// # IRI
89
125
/// Represents an IRI.
90
126
#[ cw_serde]
You can’t perform that action at this time.
0 commit comments