edu.stanford.protege.webprotege.bulkop.EditAnnotationsAction Maven / Gradle / Ivy
The newest version!
package edu.stanford.protege.webprotege.bulkop;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.google.common.collect.ImmutableSet;
import edu.stanford.protege.webprotege.common.ChangeRequestId;
import edu.stanford.protege.webprotege.common.ContentChangeRequest;
import edu.stanford.protege.webprotege.common.ProjectId;
import edu.stanford.protege.webprotege.dispatch.ProjectAction;
import org.semanticweb.owlapi.model.OWLAnnotationProperty;
import org.semanticweb.owlapi.model.OWLEntity;
import javax.annotation.Nonnull;
import java.util.Optional;
/**
* Matthew Horridge
* Stanford Center for Biomedical Informatics Research
* 24 Sep 2018
*/
@JsonTypeName("webprotege.bulkop.EditAnnotations")
public record EditAnnotationsAction(@JsonProperty("contentChangeRequest") ChangeRequestId changeRequestId,
@JsonProperty("projectId") @Nonnull ProjectId projectId,
@JsonProperty("entities") @Nonnull ImmutableSet entities,
@JsonProperty("operation") Operation operation,
@JsonProperty("property") @Nonnull Optional property,
@JsonProperty("lexicalValueExpression") @Nonnull Optional lexicalValueExpression,
@JsonProperty("lexicalValueExpressionIsRegEx") boolean lexicalValueExpressionIsRegEx,
@JsonProperty("langTagExpression") @Nonnull Optional langTagExpression,
@JsonProperty("newAnnotationData") @Nonnull NewAnnotationData newAnnotationData,
@JsonProperty("commitMessage") @Nonnull String commitMessage) implements ProjectAction, HasCommitMessage, ContentChangeRequest {
public static final String CHANNEL = "webprotege.bulkop.EditAnnotations";
@Override
public String getChannel() {
return CHANNEL;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy