-
Notifications
You must be signed in to change notification settings - Fork 576
Closed
Description
rdflib.Graph
already has a very helpful method qname()
which basically converts http://example.com/ns#object
to ns:obj
if the namespace prefix ns
has already been bound by bind('ns', Namespace('http://example.com/ns'))
.
I sometimes need use the reverse of qname()
to make the URI input more human-friendly. It would be great if we have something like resolve_qname()
which would translate a qname ns:obj
back to http://example.com/ns#object
. A neat solution is already provided here by somebody on stackoverflow.
Metadata
Metadata
Assignees
Labels
No labels