Package org.semanticweb.owlapi.model

Examples of org.semanticweb.owlapi.model.OWLOntologyChangeListener


                            }
                        }
                    }
                });
        ont.getOWLOntologyManager().addOntologyChangeListener(
                new OWLOntologyChangeListener() {

                    @Override
                    public void ontologiesChanged(
                            @Nonnull List<? extends OWLOntologyChange> changes) {
                        for (OWLOntologyChange change : changes) {
View Full Code Here


    public void testAddAxiom() {
        OWLOntology ont = getOWLOntology("OntA");
        OWLAxiom ax = SubClassOf(Class(iri("A")), OWLThing());
        final List<OWLOntologyChange> chgs = new ArrayList<>();
        ont.getOWLOntologyManager().addOntologyChangeListener(
                new OWLOntologyChangeListener() {

                    @Override
                    public void ontologiesChanged(
                            @Nonnull List<? extends OWLOntologyChange> changes) {
                        chgs.addAll(changes);
View Full Code Here

    public void testAddAxioms() {
        OWLOntology ont = getOWLOntology("OntB");
        OWLAxiom ax = SubClassOf(Class(iri("A")), OWLThing());
        final List<OWLOntologyChange> chgs = new ArrayList<>();
        ont.getOWLOntologyManager().addOntologyChangeListener(
                new OWLOntologyChangeListener() {

                    @Override
                    public void ontologiesChanged(
                            @Nonnull List<? extends OWLOntologyChange> changes) {
                        chgs.addAll(changes);
View Full Code Here

    public void testApplyChange() {
        OWLOntology ont = getOWLOntology("OntC");
        OWLAxiom ax = SubClassOf(Class(iri("A")), OWLThing());
        final List<OWLOntologyChange> chgs = new ArrayList<>();
        ont.getOWLOntologyManager().addOntologyChangeListener(
                new OWLOntologyChangeListener() {

                    @Override
                    public void ontologiesChanged(
                            @Nonnull List<? extends OWLOntologyChange> changes) {
                        chgs.addAll(changes);
View Full Code Here

    public void testApplyChanges() {
        OWLOntology ont = getOWLOntology("OntD");
        OWLAxiom ax = SubClassOf(Class(iri("A")), OWLThing());
        final List<OWLOntologyChange> chgs = new ArrayList<>();
        ont.getOWLOntologyManager().addOntologyChangeListener(
                new OWLOntologyChangeListener() {

                    @Override
                    public void ontologiesChanged(
                            @Nonnull List<? extends OWLOntologyChange> changes) {
                        chgs.addAll(changes);
View Full Code Here

TOP

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

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.