Package edu.stanford.bmir.protege.web.server.owlapi

Examples of edu.stanford.bmir.protege.web.server.owlapi.RawProjectSources


        String document = "/ontologies/root-ontology.owl";
        File expectedDocumentFile =  new File(outputFolder, document);
        when(rootOntologyDocumentFileMatcher.isRootOntologyDocument(expectedDocumentFile)).thenReturn(true);
        File zipFile = createZipFile(document);
        ZipArchiveProjectSourcesExtractor extractor = new ZipArchiveProjectSourcesExtractor(tempFileFactory, rootOntologyDocumentFileMatcher);
        RawProjectSources projectSources = extractor.extractProjectSources(zipFile);
        Collection<OWLOntologyDocumentSource> documentSources = projectSources.getDocumentSources();
        assertThat(documentSources, hasSize(1));
        assertThat(documentSources, hasItem(isFileDocumentSourceForFile(expectedDocumentFile)));
    }
View Full Code Here


    @Test
    public void shouldExtractProvidedDocument() {
        // Given
        SingleDocumentProjectSourcesExtractor extractor = new SingleDocumentProjectSourcesExtractor();
        // When
        RawProjectSources projectSources = extractor.extractProjectSources(input);
        // Then
        Collection<OWLOntologyDocumentSource> documentSources = projectSources.getDocumentSources();
        assertThat(documentSources, hasSize(1));
    }
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.server.owlapi.RawProjectSources

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.