-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
π‘οΈ Format Restriction in Data Submission Leads to Underutilization of RDF Options #554
Comments
The dataverse However I totally agree with the point of properly explaining and documenting this aspect! |
After taking a look, the API contains an RDF format field for extensibility purposes which only contains the |
Well, I think we can provide a bit more detail on this. The key point here is that the serialization formats need to support multiple RDF graphs, which is why we donβt include Turtle, for example. Currently, we only support one format, N-Quads, but there are others like TriG and JSON-LD (this is the purpose of the enumerated type, to allow extension). My suggestion would be to rename the enum |
Note
Severity: Low
target: v5.0.0 - Commit: cde785fbd2dad71608d53f8524e0ef8c8f8178af
Ref: OKP4 CosmWasm Audit Report v1.0 - 02-05-2024 - BlockApex
Description
The Cognitarium smart contract is designed to support multiple RDF formats for data submission, including NQuads, RDF.XML, Turtle, and NTriples. This versatility is intended to enhance the contractβs adaptability and user experience by allowing for flexible data representation. However, the Dataverse contract, which controls the data input to the Cognitarium, is currently hardcoded to
use only the NQuads format. This restriction arises from a limitation within the submit_claims function, which lacks the capability to accept a format parameter, contrary to what is documented. As a result, despite the Cognitariumβs ability to handle various formats, this functionality is underutilized due to the Dataverseβs fixed format implementation.
This issue not only limits the flexibility of data input but also leads to a discrepancy between the system's documented capabilities and its actual functionality. The mismatch can cause confusion among users and developers, who may expect broader format support based on the official contract documentation.
Recommendation
The text was updated successfully, but these errors were encountered: