-
Notifications
You must be signed in to change notification settings - Fork 16
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
Cleaner API #113
Comments
@yusefnapora @vyzo thoughts welcome here |
So the idea is that you issue the query for a given WKI in a namespace, and concat returns everything it knows. Then we filter by publishers that you trust, and give you the set of objects attached to those statements? Is it important to preserve who published which objects and when for this API? I'm not sure about the refs... unless you mean fetching the objects in the |
yeah
good question! I don't really know
yeah, like assembling the full graph if it has artist refs or w/e -- this is probably not a v1 feature, but may inform the underlying query a bit |
Ok, are we kicking this out of this sprint? The oracle we're shipping will be relatively simple (permissionless write only) so won't need this change |
I'd be into that... it would be nice to think it through a bit more. I haven't come up with something I love yet. |
Related to #177 |
Right now extracting the relevant data object from a query response is kind of ugly:
or
This would only get more problematic with other statement types.
From a user perspective, the contract is more like "I'm asking for ID(s) in [a] namespace(s), give me a merged set of of what that namespace knows about it, respecting my trust settings". Given that #17 isn't merged yet (and lots of thinking about merges hasn't happened yet), we can just make the merge function be naive set add.
So this API looks more like
Questions:
The text was updated successfully, but these errors were encountered: