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
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.
rdflib.Graph
already has a very helpful methodqname()
which basically convertshttp://example.com/ns#object
tons:obj
if the namespace prefixns
has already been bound bybind('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 likeresolve_qname()
which would translate a qnamens:obj
back tohttp://example.com/ns#object
. A neat solution is already provided here by somebody on stackoverflow.https://stackoverflow.com/questions/63088670/rdflib-python-how-to-get-a-uriref-from-a-string-such-as-nsxxx
The text was updated successfully, but these errors were encountered: