protected OWLObjectEditor<OWLDataPropertyConstantPair> getObjectEditor() { OWLDataPropertyRelationshipEditor editor = new OWLDataPropertyRelationshipEditor(getOWLEditorKit()); editor.setDataPropertyAxiom(getAxiom()); return editor; }
protected OWLDataPropertyAssertionAxiom createAxiom(OWLDataPropertyConstantPair editedObject) { return getOWLDataFactory().getOWLDataPropertyAssertionAxiom(editedObject.getProperty(), getRootObject(), editedObject.getConstant()); }
/** * Refills the section with rows. This method will be called * by the system and should be directly called. */ protected void refill(OWLOntology ontology) { added.clear(); for (OWLDataPropertyAssertionAxiom ax : ontology.getDataPropertyAssertionAxioms(getRootObject())) { addRow(new OWLDataPropertyAssertionAxiomFrameSectionRow(getOWLEditorKit(), this, ontology, getRootObject(), ax)); added.add(ax); } }
/** * Gets the object which is presented to the use. This object * usually forms part of the axiom. For example, the right hand * side of a subclass axiom. */ public Object getRowObject() { return getAxiom(); }
protected OWLDataPropertyAssertionAxiom createAxiom(OWLDataPropertyConstantPair editedObject) { return getOWLDataFactory().getOWLDataPropertyAssertionAxiom(editedObject.getProperty(), getRootObject(), editedObject.getConstant()); }
/** * Refills the section with rows. This method will be called * by the system and should be directly called. */ protected void refill(OWLOntology ontology) { added.clear(); for (OWLDataPropertyAssertionAxiom ax : ontology.getDataPropertyAssertionAxioms(getRootObject())) { addRow(new OWLDataPropertyAssertionAxiomFrameSectionRow(getOWLEditorKit(), this, ontology, getRootObject(), ax)); added.add(ax); } }
/** * Gets the object which is presented to the use. This object * usually forms part of the axiom. For example, the right hand * side of a subclass axiom. */ public Object getRowObject() { return getAxiom(); }
protected OWLDataPropertyAssertionAxiom createAxiom(OWLDataPropertyConstantPair editedObject) { return getOWLDataFactory().getOWLDataPropertyAssertionAxiom(editedObject.getProperty(), getRootObject(), editedObject.getConstant()); }
protected OWLObjectEditor<OWLDataPropertyConstantPair> getObjectEditor() { OWLDataPropertyRelationshipEditor editor = new OWLDataPropertyRelationshipEditor(getOWLEditorKit()); editor.setDataPropertyAxiom(getAxiom()); return editor; }
/** * Refills the section with rows. This method will be called * by the system and should be directly called. */ protected void refill(OWLOntology ontology) { added.clear(); for (OWLDataPropertyAssertionAxiom ax : ontology.getDataPropertyAssertionAxioms(getRootObject())) { addRow(new OWLDataPropertyAssertionAxiomFrameSectionRow(getOWLEditorKit(), this, ontology, getRootObject(), ax)); added.add(ax); } }
/** * Gets the object which is presented to the use. This object * usually forms part of the axiom. For example, the right hand * side of a subclass axiom. */ public Object getRowObject() { return getAxiom(); }
protected OWLDataPropertyAssertionAxiom createAxiom(OWLDataPropertyConstantPair editedObject) { return getOWLDataFactory().getOWLDataPropertyAssertionAxiom(editedObject.getProperty(), getRootObject(), editedObject.getConstant()); }
protected OWLObjectEditor<OWLDataPropertyConstantPair> getObjectEditor() { OWLDataPropertyRelationshipEditor editor = new OWLDataPropertyRelationshipEditor(getOWLEditorKit()); editor.setDataPropertyAxiom(getAxiom()); return editor; }
/** * Refills the section with rows. This method will be called * by the system and should be directly called. */ protected void refill(OWLOntology ontology) { added.clear(); for (OWLDataPropertyAssertionAxiom ax : ontology.getDataPropertyAssertionAxioms(getRootObject())) { addRow(new OWLDataPropertyAssertionAxiomFrameSectionRow(getOWLEditorKit(), this, ontology, getRootObject(), ax)); added.add(ax); } }
/** * Gets the object which is presented to the use. This object * usually forms part of the axiom. For example, the right hand * side of a subclass axiom. */ public Object getRowObject() { return getAxiom(); }
protected OWLObjectEditor<OWLDataPropertyConstantPair> getObjectEditor() { OWLDataPropertyRelationshipEditor editor = new OWLDataPropertyRelationshipEditor(getOWLEditorKit()); editor.setDataPropertyAxiom(getAxiom()); return editor; }
protected void refillInferred() { getOWLModelManager().getReasonerPreferences().executeTask(OptionalInferenceTask.SHOW_INFERRED_DATA_PROPERTY_ASSERTIONS, new Runnable() { public void run() { if (!getOWLModelManager().getReasoner().isConsistent()) { return; } if (!getRootObject().isAnonymous()){ for (OWLDataProperty dp : getReasoner().getRootOntology().getDataPropertiesInSignature(true)) { Set<OWLLiteral> values = getReasoner().getDataPropertyValues(getRootObject().asOWLNamedIndividual(), dp); for (OWLLiteral constant : values) { OWLDataPropertyAssertionAxiom ax = getOWLDataFactory().getOWLDataPropertyAssertionAxiom(dp, getRootObject(), constant); if (!added.contains(ax)) { addRow(new OWLDataPropertyAssertionAxiomFrameSectionRow(getOWLEditorKit(), OWLDataPropertyAssertionAxiomFrameSection.this, null, getRootObject(), ax)); } } } } } }); }
/** * Gets a list of objects contained in this row. These objects * could be placed on the clip board during a copy operation, * or navigated to etc. */ public List<OWLObject> getManipulatableObjects() { List<OWLObject> objects = new ArrayList<>(); objects.add(getAxiom().getProperty()); objects.add(getAxiom().getObject()); return objects; }
protected void refillInferred() { getOWLModelManager().getReasonerPreferences().executeTask(OptionalInferenceTask.SHOW_INFERRED_DATA_PROPERTY_ASSERTIONS, new Runnable() { public void run() { if (!getOWLModelManager().getReasoner().isConsistent()) { return; } if (!getRootObject().isAnonymous()){ for (OWLDataProperty dp : getReasoner().getRootOntology().getDataPropertiesInSignature(true)) { Set<OWLLiteral> values = getReasoner().getDataPropertyValues(getRootObject().asOWLNamedIndividual(), dp); for (OWLLiteral constant : values) { OWLDataPropertyAssertionAxiom ax = getOWLDataFactory().getOWLDataPropertyAssertionAxiom(dp, getRootObject(), constant); if (!added.contains(ax)) { addRow(new OWLDataPropertyAssertionAxiomFrameSectionRow(getOWLEditorKit(), OWLDataPropertyAssertionAxiomFrameSection.this, null, getRootObject(), ax)); } } } } } }); }
/** * Gets a list of objects contained in this row. These objects * could be placed on the clip board during a copy operation, * or navigated to etc. */ public List<OWLObject> getManipulatableObjects() { List<OWLObject> objects = new ArrayList<>(); objects.add(getAxiom().getProperty()); objects.add(getAxiom().getObject()); return objects; }