Package org.apache.stanbol.ontologymanager.ontonet.api

Examples of org.apache.stanbol.ontologymanager.ontonet.api.OfflineConfiguration


    @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, new Parser()), config);
    }
View Full Code Here


     *
     * @param registryManager
     * @return
     */
    private static OWLOntologyManager checkOntologyManager(RegistryManager registryManager) {
        OfflineConfiguration offline = registryManager.getOfflineConfiguration();
        if (offline == null) return OWLManager.createOWLOntologyManager();
        return OWLOntologyManagerFactory.createOWLOntologyManager(offline.getOntologySourceLocations()
                .toArray(new IRI[0]));
    }
View Full Code Here

TOP

Related Classes of org.apache.stanbol.ontologymanager.ontonet.api.OfflineConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.