All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.semanticweb.owlapi.util.OWLAxiomsWithNestedAnnotations Maven / Gradle / Ivy

There is a newer version: 5.5.1
Show newest version
package org.semanticweb.owlapi.util;

import org.semanticweb.owlapi.model.OWLAnnotation;
import org.semanticweb.owlapi.model.OWLAxiom;

/**
 * For axioms with nested annotations, an id needs to be outputted.
 * 
 * @author ignazio
 */
public class OWLAxiomsWithNestedAnnotations implements AxiomAppearance {

    @Override
    public boolean appearsMultipleTimes(OWLAxiom ax) {
        for (OWLAnnotation a : ax.getAnnotations()) {
            if (!a.getAnnotations().isEmpty()) {
                return true;
            }
        }
        return false;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy