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

edu.stanford.protege.webprotege.merge_add.ExistingOntologyMergeAddAction Maven / Gradle / Ivy

The newest version!
package edu.stanford.protege.webprotege.merge_add;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.google.auto.value.AutoValue;
import edu.stanford.protege.webprotege.csv.DocumentId;
import edu.stanford.protege.webprotege.dispatch.ProjectAction;
import edu.stanford.protege.webprotege.common.ProjectId;
import org.semanticweb.owlapi.model.OWLOntologyID;

import java.util.List;

@AutoValue

@JsonTypeName("ExistingOntologyMergeAdd")
public abstract class ExistingOntologyMergeAddAction implements ProjectAction {

    public static final String CHANNEL = "webprotege.ontologies.MergeExistingOntology";

    @JsonCreator
    public static ExistingOntologyMergeAddAction create(@JsonProperty("projectId") ProjectId projectId,
                                                        @JsonProperty("documentId") DocumentId documentId,
                                                        @JsonProperty("selectedOntologies") List selectedOntologies,
                                                        @JsonProperty("targetOntology") OWLOntologyID targetOntology) {
        return new AutoValue_ExistingOntologyMergeAddAction(projectId, documentId, selectedOntologies, targetOntology);
    }

    @Override
    public String getChannel() {
        return CHANNEL;
    }

    public abstract DocumentId getDocumentId();

    public abstract List getSelectedOntologies();

    public abstract OWLOntologyID getTargetOntology();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy