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

org.protege.editor.owl.ui.frame.dataproperty.OWLSubDataPropertyAxiomSuperPropertyFrameSectionRow Maven / Gradle / Ivy

Go to download

OWL ontology editing infrastructure used by the Protege desktop application.

The newest version!
package org.protege.editor.owl.ui.frame.dataproperty;

import org.protege.editor.owl.OWLEditorKit;
import org.protege.editor.owl.ui.editor.OWLDataPropertyEditor;
import org.protege.editor.owl.ui.editor.OWLObjectEditor;
import org.protege.editor.owl.ui.frame.AbstractOWLFrameSectionRow;
import org.protege.editor.owl.ui.frame.OWLFrameSection;
import org.semanticweb.owlapi.model.OWLDataProperty;
import org.semanticweb.owlapi.model.OWLDataPropertyExpression;
import org.semanticweb.owlapi.model.OWLOntology;
import org.semanticweb.owlapi.model.OWLSubDataPropertyOfAxiom;

import java.util.Arrays;
import java.util.List;


/**
 * Author: Matthew Horridge
* The University Of Manchester
* Bio-Health Informatics Group
* Date: 16-Feb-2007

*/ public class OWLSubDataPropertyAxiomSuperPropertyFrameSectionRow extends AbstractOWLFrameSectionRow { public OWLSubDataPropertyAxiomSuperPropertyFrameSectionRow(OWLEditorKit owlEditorKit, OWLFrameSection section, OWLOntology ontology, OWLDataProperty rootObject, OWLSubDataPropertyOfAxiom axiom) { super(owlEditorKit, section, ontology, rootObject, axiom); } protected OWLSubDataPropertyOfAxiom createAxiom(OWLDataProperty editedObject) { return getOWLDataFactory().getOWLSubDataPropertyOfAxiom(getRootObject(), editedObject); } protected OWLObjectEditor getObjectEditor() { OWLDataPropertyEditor editor = new OWLDataPropertyEditor(getOWLEditorKit()); OWLDataPropertyExpression p = getAxiom().getSuperProperty(); if (!p.isAnonymous()){ editor.setEditedObject(p.asOWLDataProperty()); } return editor; } public List getManipulatableObjects() { return Arrays.asList(getAxiom().getSuperProperty()); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy