-
Notifications
You must be signed in to change notification settings - Fork 555
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
questions about DefinedNamespaces (OWL, RDFS, etc etc) #1593
Comments
You can get the URI of a >>> import rdflib
>>> str(rdflib.OWL)
'http://www.w3.org/2002/07/owl#'
I've added this as a feature in this PR #1626. |
Thanks @edmondchuc! I realized that I also seem to have figured that out in another part of my brain, since I used it in the 2nd part of my question.
Nice, thank you. Regarding that PR, upon further thought, overriding Related but separate: I'm not clear why |
Update: Apologies, I realize now why a public method is a problem, since it could collide with a member of the namespace. |
I have some questions about the new
DefinedNamespace
:uri()
method on the now-deprecatedClosedNamespace
:It would be nice to have the above functionality implemented as, say, a method (on
DefinedNamespaceMeta
?). OnClosedNamespace
, it looks like it was possible to get this result viadir(OWL)
, since__dir__
was defined on that class.The text was updated successfully, but these errors were encountered: