VIVO-448 ORNG was unable to parse our LOD response.
The date-time stamp on the document itself was not in the correct format.
This commit is contained in:
parent
dc58791842
commit
36c1ad6b6a
1 changed files with 4 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
package edu.cornell.mannlib.vitro.webapp.controller.individual;
|
package edu.cornell.mannlib.vitro.webapp.controller.individual;
|
||||||
|
|
||||||
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
@ -343,7 +344,9 @@ public class IndividualRdfAssembler {
|
||||||
}
|
}
|
||||||
|
|
||||||
private Literal createDateLiteral(OntModel o) {
|
private Literal createDateLiteral(OntModel o) {
|
||||||
return o.createTypedLiteral(new Date(), XSDDatatype.XSDdate);
|
String date = new SimpleDateFormat("YYYY-MM-dd'T'HH:mm:ss")
|
||||||
|
.format(new Date());
|
||||||
|
return o.createTypedLiteral(date, XSDDatatype.XSDdateTime);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue