Package org.apache.stanbol.ontologymanager.ontonet.impl

Examples of org.apache.stanbol.ontologymanager.ontonet.impl.OfflineConfigurationImpl


    public void testGraphContentSource() throws Exception {
        // Make sure the tc manager has been reset
        assertEquals(1, tcManager.listTripleCollections().size());

        OntologyProvider<TcProvider> provider = new ClerezzaOntologyProvider(tcManager,
                new OfflineConfigurationImpl(new Hashtable<String,Object>()), parser);

        InputStream content = TestClerezzaInputSources.class
                .getResourceAsStream("/ontologies/droppedcharacters.owl");
        OntologyInputSource<?,TcProvider> src = new GraphContentInputSource(content, SupportedFormat.RDF_XML,
            new SimpleTcProvider(), parser);
View Full Code Here


                        .toArray(new IRI[0])));
    }

    @BeforeClass
    public static void setup() throws Exception {
        offline = new OfflineConfigurationImpl(new Hashtable<String,Object>());
        ScopeRegistry reg = new ScopeRegistryImpl();

        // This one is created from scratch
        MGraph ont2 = ClerezzaOWLUtils.createOntology(baseIri2.toString());
        minorSrc = new GraphSource(ont2.getGraph());
View Full Code Here

    private static ONManager onm;

    @BeforeClass
    public static void setUp() {
        Dictionary<String,Object> onmconf = new Hashtable<String,Object>();
        onm = new ONManagerImpl(null, null, new OfflineConfigurationImpl(onmconf), onmconf);
        df = OWLManager.getOWLDataFactory();
    }
View Full Code Here

    @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

            new String[] {
                          TestRegistryManager.class.getResource("/ontologies/registry/onmtest.owl")
                                  .toString(),
                          TestRegistryManager.class.getResource("/ontologies/registry/onmtest_additions.owl")
                                  .toString()});
        offline = new OfflineConfigurationImpl(configuration);

        reset();

    }
View Full Code Here

     */
    @BeforeClass
    public static void setupTest() throws Exception {
        final Dictionary<String,Object> config = new Hashtable<String,Object>();
        config.put(OfflineConfiguration.ONTOLOGY_PATHS, new String[] {"/ontologies", "/ontologies/registry"});
        offline = new OfflineConfigurationImpl(config);
        reset();
    }
View Full Code Here

    @BeforeClass
    public static void setup() {
        Dictionary<String,Object> onmconf = new Hashtable<String,Object>();
        // An ONManagerImpl with no store and default settings
        ONManager onm = new ONManagerImpl(null, null, new OfflineConfigurationImpl(onmconf), onmconf);
        sesmgr = new SessionManagerImpl(null, onmconf);
        scopeFactory = onm.getOntologyScopeFactory();
        spaceFactory = onm.getOntologySpaceFactory();
        scopeRegistry = onm.getScopeRegistry();
        assertNotNull(spaceFactory);
View Full Code Here

TOP

Related Classes of org.apache.stanbol.ontologymanager.ontonet.impl.OfflineConfigurationImpl

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.