-
Notifications
You must be signed in to change notification settings - Fork 143
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
Impossible to set a namespace prefix in serializer #536
Comments
Here's a PR for this : #534 |
Note that the default prefix now targets |
Indeed, typo on my part. |
@timbl does seem a good idea. |
@timbl Related issue : solid-ui demands http://www.w3.org/ns/ui and will fail with https. |
Well the policy in Solid has so far to leave all the historical namespaces at The same had applied to schema.org . But now schema.org is changing its human-readable documentation at least to use
rdflib already has some canonicalization code, for example when one uri is redirected 'moved' to another, just using the second. If we added the ability to switch out old versions of terms for new ones, them also we could use it for moving between old and new ontologies: when you patched a file, the server could switch out the old terms in it. Could be useful. But RDF purists would maybe not like it at all, and systems which did not canonicalize internally would have to be protected by having canonicalizing adapters upstream of them. Need to move this to a different issue. |
It is not possible to set namespace prefixes in the serializer; only to suggest them, meaning they cannot override the default prefixes.
As a generic RDF lib, it should be possible to forcefully set any namespace prefix.
As a concrete example, I have a usecase where the schema.org URIs are expressed in the HTTPS scheme. The default
schema
prefix targetshttp://schema.org
. I cannot redefine it.The text was updated successfully, but these errors were encountered: