Examples of BuilderSubAnnotationPropertyOf


Examples of org.semanticweb.owlapitools.builders.BuilderSubAnnotationPropertyOf

    }

    @Test
    public void shouldBuildSubAnnotationPropertyOf() {
        // given
        BuilderSubAnnotationPropertyOf builder = new BuilderSubAnnotationPropertyOf(
                df).withSub(ap).withSup(df.getRDFSLabel())
                .withAnnotations(annotations);
        OWLObject expected = df.getOWLSubAnnotationPropertyOfAxiom(ap,
                df.getRDFSLabel(), annotations);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
View Full Code Here

Examples of org.semanticweb.owlapitools.builders.BuilderSubAnnotationPropertyOf

    public void shouldBuildSubAnnotationPropertyOf() {
        // given
        OWLSubAnnotationPropertyOfAxiom expected = df
                .getOWLSubAnnotationPropertyOfAxiom(ap, df.getRDFSLabel(),
                        annotations);
        BuilderSubAnnotationPropertyOf builder = new BuilderSubAnnotationPropertyOf(
                expected, df);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
View Full Code Here

Examples of org.semanticweb.owlapitools.builders.BuilderSubAnnotationPropertyOf

    @Test
    public void shouldBuildSubAnnotationPropertyOf()
            throws OWLOntologyCreationException {
        // given
        BuilderSubAnnotationPropertyOf builder = new BuilderSubAnnotationPropertyOf(
                df).withSub(ap).withSup(df.getRDFSLabel())
                .withAnnotations(annotations);
        OWLAxiom expected = df.getOWLSubAnnotationPropertyOfAxiom(ap,
                df.getRDFSLabel(), annotations);
        OWLOntology o = m.createOntology();
        // when
        builder.applyChanges(o);
        // then
        assertTrue(o.containsAxiom(expected));
    }
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.