You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes one wants to retrieve a resource but default to the specification of the document it is contained within.
In other words, to call Resource.from_contents(..., default_specification=enclosing_specification) from within a retrieval function.
This isn't completely trivial to implement however, because users can call .get_or_retrieve(uri) directly, meaning the argument would have to exist there too. Additionally, resources can be root resources of course, so enclosing_specification would anyways potentially be None for such cases.
The text was updated successfully, but these errors were encountered:
Sometimes one wants to retrieve a resource but default to the specification of the document it is contained within.
In other words, to call
Resource.from_contents(..., default_specification=enclosing_specification)
from within a retrieval function.This isn't completely trivial to implement however, because users can call
.get_or_retrieve(uri)
directly, meaning the argument would have to exist there too. Additionally, resources can be root resources of course, soenclosing_specification
would anyways potentially beNone
for such cases.The text was updated successfully, but these errors were encountered: