org.semanticdesktop.aperture.datasource
Interface DataSourceRegistry

All Known Implementing Classes:
DataSourceRegistryImpl, DefaultDataSourceRegistry

public interface DataSourceRegistry

An DataSourceRegistry serves as a central registry for registering and obtaining DataSourceFactories.


Method Summary
 void add(DataSourceFactory factory)
          Adds a DataSourceFactory to this registry.
 Set get(URI type)
          Returns all DataSourceFactories that support the specified DataSource type.
 Set getAll()
          Returns all DataSourceFactories registered in this DataSourceRegistry.
 void getDataSourceOntologyAndDescriptions(Model model)
          Generates a graph containing the datasource ontology (the vocabulary used to configure data sources), the sourceformat ontology (vocabulary used to specify widgets for the UI) and descriptions of data source types registered within this registry.
 void remove(DataSourceFactory factory)
          Removes a DataSourceFactory from this registry.
 

Method Detail

add

void add(DataSourceFactory factory)
Adds a DataSourceFactory to this registry.


remove

void remove(DataSourceFactory factory)
Removes a DataSourceFactory from this registry.


get

Set get(URI type)
Returns all DataSourceFactories that support the specified DataSource type.

Returns:
A Set of DataSourceFactories whose supported types equal the specified type.

getAll

Set getAll()
Returns all DataSourceFactories registered in this DataSourceRegistry.

Returns:
A Set of DataSourceFactory instances.

getDataSourceOntologyAndDescriptions

void getDataSourceOntologyAndDescriptions(Model model)
Generates a graph containing the datasource ontology (the vocabulary used to configure data sources), the sourceformat ontology (vocabulary used to specify widgets for the UI) and descriptions of data source types registered within this registry. These descriptions use the Fresnel Display Vocabulary. Each one comprises a fresnel:Lens instance, with a list of all configuration properties needed by a crawler for this data source. Each configuration property has a fresnel:Format that specifies the widget that is to be used in the user interface, the widgets are chosen from those specified in the Aperture sourceformat ontology. This graph is stored in the provided model.

Throws:
Exception - if something goes wrong in the process.


Copyright © 2010 Aperture Development Team. All Rights Reserved.