use of org.semanticweb.binaryowl.change.OntologyChangeRecordList in project webprotege by protegeproject.
the class RevisionSerializationTask method call.
public Integer call() throws IOException {
BinaryOWLMetadata metadata = new BinaryOWLMetadata();
metadata.setStringAttribute(RevisionSerializationVocabulary.USERNAME_METADATA_ATTRIBUTE.getVocabularyName(), revision.getUserId().getUserName());
metadata.setLongAttribute(RevisionSerializationVocabulary.REVISION_META_DATA_ATTRIBUTE.getVocabularyName(), revision.getRevisionNumber().getValue());
metadata.setStringAttribute(RevisionSerializationVocabulary.DESCRIPTION_META_DATA_ATTRIBUTE.getVocabularyName(), revision.getHighLevelDescription());
metadata.setStringAttribute(RevisionSerializationVocabulary.REVISION_TYPE_META_DATA_ATTRIBUTE.getVocabularyName(), RevisionType.EDIT.name());
BinaryOWLOntologyChangeLog changeLog = new BinaryOWLOntologyChangeLog();
changeLog.appendChanges(new OntologyChangeRecordList(revision.getTimestamp(), metadata, revision.getChanges()), file);
return 0;
}
Aggregations