Skip to content
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

Possibility for ns collision between module and user defined RDF namespaces #8

Open
linclark opened this issue Jan 31, 2010 · 0 comments

Comments

@linclark
Copy link
Contributor

If a namespace is defined in a module, how will we avoid collision with namespaces defined by the user? For instance, if the user defines the 'media' ns as http://digitalbazaar.com/media but a module defines it as the Yahoo vocabulary.

Possible solution: on module install, check to see if it implements hook_rdf_namespaces. If it does, check to see whether the uri of any prefix is different. If so, change the prefix of the mapping in the database and iterate through content type mappings, changing the prefix. DO THIS BEFORE rdf_mappings runs. Print a message to the screen. Allow for this to be cleared manually with a menu callback as well in case an installed module's rdf_namespaces are changed between two versions. Also run on update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant