Package org.semanticweb.owlapi.model

Examples of org.semanticweb.owlapi.model.OWLSymmetricObjectPropertyAxiom


    }

    @Test
    public void shouldBuildSymmetricObjectProperty() {
        // given
        OWLSymmetricObjectPropertyAxiom expected = df
                .getOWLSymmetricObjectPropertyAxiom(op, annotations);
        BuilderSymmetricObjectProperty builder = new BuilderSymmetricObjectProperty(
                expected, df);
        // when
        OWLObject built = builder.buildObject();
View Full Code Here


    @Test
    public void testSymmetricObjectPropertyAxiomAccessors() {
        OWLOntology ont = getOWLOntology("ont");
        OWLObjectProperty propP = ObjectProperty(iri("p"));
        OWLOntologyManager man = ont.getOWLOntologyManager();
        OWLSymmetricObjectPropertyAxiom ax = SymmetricObjectProperty(propP);
        man.addAxiom(ont, ax);
        performAxiomTests(ont, ax);
        assertTrue(ont.getSymmetricObjectPropertyAxioms(propP).contains(ax));
        assertTrue(ont.getAxioms(propP, EXCLUDED).contains(ax));
        assertTrue(isSymmetric(propP, ont));
View Full Code Here

TOP

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

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.