Package org.semanticweb.owlapi.model

Examples of org.semanticweb.owlapi.model.OWLObjectPropertyRangeAxiom


    }

    @Test
    public void shouldBuildObjectPropertyRange() {
        // given
        OWLObjectPropertyRangeAxiom expected = df
                .getOWLObjectPropertyRangeAxiom(op, ce, annotations);
        BuilderObjectPropertyRange builder = new BuilderObjectPropertyRange(
                expected, df);
        // when
        OWLObject built = builder.buildObject();
View Full Code Here


    public void testObjectPropertyRangeAxiomAccessors() {
        OWLOntology ont = getOWLOntology("ont");
        OWLObjectProperty propP = ObjectProperty(iri("p"));
        OWLClass clsA = Class(iri("ClsA"));
        OWLOntologyManager man = ont.getOWLOntologyManager();
        OWLObjectPropertyRangeAxiom ax = ObjectPropertyRange(propP, clsA);
        man.addAxiom(ont, ax);
        performAxiomTests(ont, ax);
        assertTrue(ont.getObjectPropertyRangeAxioms(propP).contains(ax));
        assertTrue(ont.getAxioms(propP, EXCLUDED).contains(ax));
        assertTrue(range(ont.getObjectPropertyRangeAxioms(propP))
View Full Code Here

TOP

Related Classes of org.semanticweb.owlapi.model.OWLObjectPropertyRangeAxiom

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.