Package edu.stanford.bmir.protege.web.shared.revision

Examples of edu.stanford.bmir.protege.web.shared.revision.RevisionSummary


        Set<OWLEntityData> changedEntitiesData = new HashSet<OWLEntityData>();
        for (OWLEntity entity : changedEntities) {
            String browserText = project.getRenderingManager().getBrowserText(entity);
            changedEntitiesData.add(DataFactory.getOWLEntityData(entity, browserText));
        }
        RevisionSummary revisionSummary = project.getChangeManager().getRevisionSummary(revisionNumber);
        ProjectEvent<?> event = new ProjectChangedEvent(project.getProjectId(), revisionSummary, changedEntitiesData);
        result.add(event);
        return result;
    }
View Full Code Here


        }
        return result;
    }

    private RevisionSummary getRevisionSummaryFromRevision(Revision revision) {
        return new RevisionSummary(revision.getRevisionNumber(), revision.getUserId(), revision.getTimestamp(), revision.getSize());
    }
View Full Code Here

    }

    private OWLAnnotation getRevisionDateAnnotation() {
        OWLAPIProject project = getProject();
        OWLAPIChangeManager changeManager = project.getChangeManager();
        RevisionSummary summary = changeManager.getRevisionSummary(revisionNumber);
        long timestamp = summary.getTimestamp();
        DateFormat dateFormat = DateFormat.getDateTimeInstance();
        String date = dateFormat.format(new Date(timestamp));
        OWLDataFactory df = project.getDataFactory();
        return df.getOWLAnnotation(df.getOWLAnnotationProperty(DublinCoreVocabulary.DATE.getIRI()), df.getOWLLiteral(date, OWL2Datatype.XSD_DATE_TIME));
    }
View Full Code Here

TOP

Related Classes of edu.stanford.bmir.protege.web.shared.revision.RevisionSummary

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.