edu.stanford.protege.webprotege.change.description.RemovedAnnotation Maven / Gradle / Ivy
The newest version!
package edu.stanford.protege.webprotege.change.description;
import com.google.auto.value.AutoValue;
import edu.stanford.protege.webprotege.owlapi.OWLObjectStringFormatter;
import org.semanticweb.owlapi.model.IRI;
import org.semanticweb.owlapi.model.OWLAnnotationProperty;
import org.semanticweb.owlapi.model.OWLAnnotationValue;
import javax.annotation.Nonnull;
/**
* Matthew Horridge
* Stanford Center for Biomedical Informatics Research
* 2018-12-10
*/
@AutoValue
public abstract class RemovedAnnotation extends AbstractAnnotationChange {
public static RemovedAnnotation get(@Nonnull IRI subject,
@Nonnull OWLAnnotationProperty property,
@Nonnull OWLAnnotationValue value) {
return new AutoValue_RemovedAnnotation(subject,
property,
value);
}
@Nonnull
@Override
public String getTypeName() {
return "RemovedAnnotation";
}
@Nonnull
@Override
public String formatDescription(@Nonnull OWLObjectStringFormatter formatter) {
return formatter.formatString("Removed annotation (%s %s) from %s",
getProperty(),
getValue(),
getSubject());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy