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

org.semanticweb.owlapi.model.IsAnonymous Maven / Gradle / Ivy

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

/**
 * Anonymous or named object interface.
 */
public interface IsAnonymous {

    /**
     * @return {@code true} if this object is anonymous, {@code false} otherwise. For example, class
     * expressions are anonymous while class entities are not (they have an IRI).
     */
    default boolean isAnonymous() {
        return false;
    }

    /**
     * @return {@code true} if this object is named, {@code false} otherwise. For example, class
     *         entities are named (they have an IRI) while class expressions are anonymous.
     */
    default boolean isNamed() {
        return !isAnonymous();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy