Hi Rupert, nice service. Definitely useful for the JSON-LD support.
I had created CLEREZZA-222 for that a long time ago. But this sounds like it solves our needs. https://issues.apache.org/jira/browse/CLEREZZA-222 Best, - Fabian 2012/11/30 Rupert Westenthaler <[email protected]> > Hi all > > Fabians mail just reminded me that I have not announced the new > feature I have started to work on yesterday. > > The Stanbol Namespace Prefix Service allows to lookup and manage > namespace prefixes originating from different sources. Such a service > was discussed several times (if I remember correctly even before > incubation to Apache) but got never implemented. > > STANBOL-824 [1] now defines such a Service. Its design is very Similar > to the DataFileProvider only that in this case the Service is called > NamespacePrefixProvider. > > In addition there is the NamespacePrefixService that extends the above > interface by two utility methods that convert "{prefix}:{localname}" > <-> "uri" and a method that allows to add additional prefixes. > > There is a default implementation of NamespacePrefixService that > registers itself as DataFileProvider with the highest priority (this > is similar to the MainDataFileProvider). > > To ensure backwards compatibility there is also a > DefaultNamespaceMappingsProvider that hold all the mappings currently > defined in the NamespaceEnum of the Enhancer and the Entityhub. > > The current NamespaceEnum will not be deprecated by this new Service. > However all entries of those enumerations that are not directly > referenced by the Ontologies of the Enhancer/Entityhub will be > deprecated. This avoids dependencies of the servicesapi and core > modules to the new service but ensures that the new service is used > for all user level configurations. > > In addition the new Service will be implemented so that it can be used > also outside of an OSGI environment. > > Finally it is also planed to implement a NamespacePrefixProvider for > http://prefix.cc/ > > feedback very welcome. > > best > Rupert > > [1] https://issues.apache.org/jira/browse/STANBOL-824 > > > > > -- > | Rupert Westenthaler [email protected] > | Bodenlehenstraße 11 ++43-699-11108907 > | A-5500 Bischofshofen > -- Fabian http://twitter.com/fctwitt
