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
Can we improve the use of the uuid module so that it handles namespaces directly instead of manually indicating the namespace urn each time?
Describe the solution you'd like
A complete management of uuids and namespaces by a particular module (maybe uuid)
Describe alternatives you've considered
If we add the urn namespace manually then we will have to declare it somewhere, in the context and in the RDF python library.
We can't use the uuid directly without the conversion to str otherwise we have the following error : TypeError: Object of type UUID is not JSON serializable when writing the jsonld in output
Some functions of the uuid module can use a namespace like uuid3 which takes as parameter a namespace and a name
Example :
Can we improve the use of the uuid module so that it handles namespaces directly instead of manually indicating the namespace
urn
each time?Describe the solution you'd like
A complete management of uuids and namespaces by a particular module (maybe uuid)
Describe alternatives you've considered
If we add the urn namespace manually then we will have to declare it somewhere, in the context and in the RDF python library.
Additional context
Context : bids-standard#83 (comment)
The text was updated successfully, but these errors were encountered: