-
Notifications
You must be signed in to change notification settings - Fork 8
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Prefix duplicate bug #135
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While working on this PR #134, I noticed tests would fail randomly due to multiple prefixes being generated for the same namespace.
For example,
http://linked.data.gov.au/def/borehole-purpose
generatesdef:borehole-purpose
ordf:borehole-purpose
depending on the order of the prefix generation along withhttp://linked.data.gov.au/def/reg-status
. This would cause tests to fail when testing certain endpoints such as/v/vocab/{concept_scheme_curie}/{concept_curie}/narrowers
.This is likely a bug in RDFLib's
rdflib.Graph.compute_qname
method where it doesn't check whether a namespace already exists before creating one, or something along those lines.The fix is probably a change upstream in the RDFLib library to ensure that a namespace doesn't exist already before creating a new CURIE using
compute_qname
.The text was updated successfully, but these errors were encountered: