Examples of ProfileMetricValue


Examples of edu.stanford.bmir.protege.web.shared.metrics.ProfileMetricValue

    }

    @Override
    public ProfileMetricValue computeValue() {
        OWLProfileReport report = profile.checkOntology(getRootOntology());
        return new ProfileMetricValue(profile.getName(), report.isInProfile());
    }
View Full Code Here

Examples of edu.stanford.bmir.protege.web.shared.metrics.ProfileMetricValue

    @Test
    public void shouldCalculateBooleanYesForInProfile() {
        when(report.isInProfile()).thenReturn(true);
        calculator = new ProfileMetricCalculator(ontology, profile);
        ProfileMetricValue value = calculator.computeValue();
        assertThat(value.isInProfile(), is(true));
    }
View Full Code Here

Examples of edu.stanford.bmir.protege.web.shared.metrics.ProfileMetricValue


    @Test
    public void shouldCalculateBooleanNoForNotInProfile() {
        when(report.isInProfile()).thenReturn(false);
        ProfileMetricValue value = calculator.computeValue();
        assertThat(value.isInProfile(), is(false));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.