Search in sources :

Example 1 with OntologyChangeRecordList

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;
}
Also used : OntologyChangeRecordList(org.semanticweb.binaryowl.change.OntologyChangeRecordList) BinaryOWLMetadata(org.semanticweb.binaryowl.BinaryOWLMetadata) BinaryOWLOntologyChangeLog(org.semanticweb.binaryowl.BinaryOWLOntologyChangeLog)

Aggregations

BinaryOWLMetadata (org.semanticweb.binaryowl.BinaryOWLMetadata)1 BinaryOWLOntologyChangeLog (org.semanticweb.binaryowl.BinaryOWLOntologyChangeLog)1 OntologyChangeRecordList (org.semanticweb.binaryowl.change.OntologyChangeRecordList)1