Package org.semanticweb.owlapi.model

Examples of org.semanticweb.owlapi.model.OWLSubDataPropertyOfAxiom


    }

    @Test
    public void shouldBuildSubDataProperty() {
        // given
        OWLSubDataPropertyOfAxiom expected = df.getOWLSubDataPropertyOfAxiom(
                dp, df.getOWLTopDataProperty());
        BuilderSubDataProperty builder = new BuilderSubDataProperty(expected,
                df);
        // when
        OWLObject built = builder.buildObject();
View Full Code Here


    public void testSubDataPropertyOfAxiomAccessors() {
        OWLOntology ont = getOWLOntology("ont");
        OWLDataProperty propP = DataProperty(iri("p"));
        OWLDataProperty propQ = DataProperty(iri("q"));
        OWLOntologyManager man = ont.getOWLOntologyManager();
        OWLSubDataPropertyOfAxiom ax = SubDataPropertyOf(propP, propQ);
        man.addAxiom(ont, ax);
        performAxiomTests(ont, ax);
        assertTrue(ont.getDataSubPropertyAxiomsForSubProperty(propP).contains(
                ax));
        assertTrue(ont.getDataSubPropertyAxiomsForSuperProperty(propQ)
View Full Code Here

TOP

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

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.