Skip to content
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 an unbind method on Graph and Namespace Manager to unbind prefixes #2862

Open
edmondchuc opened this issue Jul 30, 2024 · 0 comments
Open
Assignees

Comments

@edmondchuc
Copy link
Contributor

Unbinding prefixes works on a Graph object with the memory store by passing None as the value and setting replace=True. If this is not a side effect and is the intended behaviour of unbinding prefixes, we can create an unbind method with the following implementation on a Graph.

def unbind(self, prefix: str):
    self.namespace_manager.bind(prefix, None, replace=True)

Will need to check whether this is the intended behaviour and whether this works consistently across store implementations.

An example on how to unbind a prefix: #2643 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant