Resource sourceRes = metaModel.createResource(source.getURIRef());
ResIterator assertions = metaModel.listSubjectsWithProperty(
METAMODEL.asserter, sourceRes);
while (assertions.hasNext()) {
Resource assertion = assertions.nextResource();
Literal assertionTimeLit = assertion.getProperty(
METAMODEL.assertionTime).getLiteral();
Date assertionTime;
try {
assertionTime = ((XSDDateTime) assertionTimeLit.getValue())
.asCalendar().getTime();
/*
* assertionTime = new MillisDateFormat()
* .parse(assertionTimeLit.getLexicalForm());
*/
} catch (/* Parse */Exception e) {
throw new RuntimeException(e);
}
if (forward) {
if (assertionTime.after(moment)) {
resultDateSet.add(assertionTime);
}
} else {
if (!assertionTime.after(moment)) {
resultDateSet.add(assertionTime);
}
}
Statement revocationTimeStmt = assertion
.getProperty(METAMODEL.revocationTime);
if (revocationTimeStmt != null) {
Literal revocationTimeLit = revocationTimeStmt.getLiteral();
Date revocationTime;
revocationTime = ((XSDDateTime) revocationTimeLit
.getValue()).asCalendar().getTime();
/*
* try { revocationTime = new MillisDateFormat()
* .parse(revocationTimeLit.getLexicalForm()); } catch
* (ParseException e) { throw new RuntimeException(e); }