// replaces the label of the property public void replacePropertyLabel( String uri, String newLabel, boolean activeRandomString, boolean activeTranslateString, boolean activeSynonym, int activeStringOperation) { OntProperty prop = modifiedModel.getOntProperty(uri); if (prop.getLabel("en") != null) { if (activeTranslateString) { prop.setLabel(newLabel, "fr"); } else { prop.setLabel(newLabel, "en"); } } }