use of org.apache.stanbol.ontologymanager.servicesapi.OfflineConfiguration in project stanbol by apache.
the class TestOntologyRegistry method setup.
/**
* Sets the registry and ontology network managers, which are immutable across tests.
*/
@BeforeClass
public static void setup() {
// We use a single Dictionary for storing all configurations.
final Dictionary<String, Object> config = new Hashtable<String, Object>();
config.put(OfflineConfiguration.ONTOLOGY_PATHS, new String[] { "/ontologies", "/ontologies/registry" });
OfflineConfiguration offline = new OfflineConfigurationImpl(config);
// The registry manager can be updated via calls to createModel()
regman = new RegistryManagerImpl(offline, new ClerezzaOntologyProvider(new SimpleTcProvider(), offline, Parser.getInstance()), config);
}
Aggregations