def register_provider(self, provider):
if provider.get_vocabulary_id() in self.providers:<EOL><INDENT>raise RegistryException(<EOL>'<STR_LIT>'<EOL>)<EOL><DEDENT>self.providers[provider.get_vocabulary_id()] = provider<EOL>if provider.concept_scheme.uri in self.concept_scheme_uri_map:<EOL><INDENT>raise RegistryException(<EOL>'<STR_LIT>' % provider.concept_scheme.uri<EOL>)<EOL><DEDENT>self.concept_scheme_uri_map[provider.concept_scheme.uri] = provider.get_vocabulary_id()<EOL>
Register a :class:`skosprovider.providers.VocabularyProvider`.

:param skosprovider.providers.VocabularyProvider provider: The provider
    to register.
:raises RegistryException: A provider with this id or uri has already 
    been registered.