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

Prefix duplicate bug #135

Open
edmondchuc opened this issue Jul 18, 2023 · 0 comments
Open

Prefix duplicate bug #135

edmondchuc opened this issue Jul 18, 2023 · 0 comments

Comments

@edmondchuc
Copy link
Collaborator

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 generates def:borehole-purpose or df:borehole-purpose depending on the order of the prefix generation along with http://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.

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

No branches or pull requests

1 participant