Search in sources :

Example 1 with SetOboTermRelationshipsAction

use of edu.stanford.bmir.protege.web.shared.obo.SetOboTermRelationshipsAction in project webprotege by protegeproject.

the class OBOTermRelationshipPortletPresenter method commitChangesForEntity.

@Override
protected void commitChangesForEntity(OWLEntity entity) {
    if (!(entity instanceof OWLClass)) {
        return;
    }
    List<OBORelationship> relationships = editor.getValue().orElse(Collections.emptyList());
    dispatch.execute(new SetOboTermRelationshipsAction(getProjectId(), entity, new OBOTermRelationships(Sets.newHashSet(relationships))), result -> {
    });
}
Also used : OBORelationship(edu.stanford.bmir.protege.web.shared.obo.OBORelationship) OBOTermRelationships(edu.stanford.bmir.protege.web.shared.obo.OBOTermRelationships) OWLClass(org.semanticweb.owlapi.model.OWLClass) SetOboTermRelationshipsAction(edu.stanford.bmir.protege.web.shared.obo.SetOboTermRelationshipsAction)

Aggregations

OBORelationship (edu.stanford.bmir.protege.web.shared.obo.OBORelationship)1 OBOTermRelationships (edu.stanford.bmir.protege.web.shared.obo.OBOTermRelationships)1 SetOboTermRelationshipsAction (edu.stanford.bmir.protege.web.shared.obo.SetOboTermRelationshipsAction)1 OWLClass (org.semanticweb.owlapi.model.OWLClass)1