-
Notifications
You must be signed in to change notification settings - Fork 49
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
Add API support for displaying all evidence for a dataObject #254
Comments
Something like this is very doable. The contexts which make statements about an object will have a statement A more precise implementation is also possible by encapsulating queries for each statement and then getting the contexts in which those statements are made. The query_context.py example shows how this can be done. |
The idea is basically to retrieve the contexts for each statement and then to retrieve the evidence for each of those contexts. I would test what happens when there is no evidence attached to any of the contexts (should return no evidence), test that no evidence object is returned more than once (edited) Also test what happens when there is no context associated with the object you are querying Here's an example for an
Get evidence about the Apple 'red-delicious':
Should get the union of contexts for each of the statements for which the I don't care what the function is called as long as it makes sense. I'm against |
Hi, @jaideep-seth . For the integrity test you will use the integrity test conf, but the Also, just some operational stuff:
|
@mwatts15 , could you please assign me to this issue? -Thank you! |
…254) - Based on examples/query_context.py
hello @mwatts15, Is this how
Like -Thanks! |
That's what it should look like. |
A dataObject such as a neuron may have a variety of properties. Currently, in order to look up what evidence is associated with a given object, you will have to ask for each property in turn, and look up if there is evidence associated with that property.
If dataObjects supported a .get_evidence() method that took all properties registered with that dataObject and returned a list of evidence associated with whichever property there was, this would make for an easier time interrogating the data.
The text was updated successfully, but these errors were encountered: