Change bind() to be predictable #1616
nicholascar
started this conversation in
TO-DO list
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
g.bind()
has two input parameters,override
&replace
which are confusing to understand and, even according to the describe behaviour may be buggy (e.g. adding a "p" to a duplicate prefix in a non-deterministic selection of the duplicates).There also seem to be down-stream bugs or different handling in Turtle & RDF serializers which handle duplicate prefixes differently.
Propose:
g.bind(override=True, replace=False)
withg.bind(force=False)
where:force=False
: an error is raised if an existing prefix is re-boundforce=True
: the new prefix is bound and the previously declared duplicate is un-boundThis should remove any second-guessing from serializers.
Beta Was this translation helpful? Give feedback.
All reactions