From 36c1ad6b6a4d1711c00dd02f89513d19b4dc82bd Mon Sep 17 00:00:00 2001 From: j2blake Date: Tue, 5 Nov 2013 17:24:12 -0500 Subject: [PATCH 1/2] VIVO-448 ORNG was unable to parse our LOD response. The date-time stamp on the document itself was not in the correct format. --- .../webapp/controller/individual/IndividualRdfAssembler.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/individual/IndividualRdfAssembler.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/individual/IndividualRdfAssembler.java index 90e79cde7..d2c7f5702 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/individual/IndividualRdfAssembler.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/individual/IndividualRdfAssembler.java @@ -2,6 +2,7 @@ package edu.cornell.mannlib.vitro.webapp.controller.individual; +import java.text.SimpleDateFormat; import java.util.Date; import java.util.HashSet; import java.util.Set; @@ -343,7 +344,9 @@ public class IndividualRdfAssembler { } 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); } } From 2a237f379be46793595eec2f1c47822b0368b62a Mon Sep 17 00:00:00 2001 From: j2blake Date: Tue, 5 Nov 2013 17:35:22 -0500 Subject: [PATCH 2/2] VIVO-448 Change the "example_gadgets" file to use gadgets that are currently active. --- opensocial/shindig_example_gadgets.sql | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/opensocial/shindig_example_gadgets.sql b/opensocial/shindig_example_gadgets.sql index afad1dc44..ae04919df 100644 --- a/opensocial/shindig_example_gadgets.sql +++ b/opensocial/shindig_example_gadgets.sql @@ -4,13 +4,13 @@ DELETE FROM `orng_apps`; INSERT INTO `orng_apps` (`appid`, `name`, `url`, `PersonFilterID`, `enabled`, `channels`) VALUES -(100, 'Google Search', 'http://dev-profiles.ucsf.edu/orng/GoogleSearch.xml', NULL, 1, NULL), -(101, 'Featured Presentations', 'http://dev-profiles.ucsf.edu/orng/SlideShare.xml', NULL, 1, NULL), -(102, 'Faculty Mentor', 'http://dev-profiles.ucsf.edu/orng/Mentor.xml', NULL, 0, NULL), -(103, 'Websites', 'http://dev-profiles.ucsf.edu/orng/Links.xml', NULL, 1, NULL), -(104, 'Profile List', 'http://dev-profiles.ucsf.edu/orng/ProfileListTool.xml', NULL, 1, 'JSONPersonIds'), -(106, 'RDF Test Gadget', 'http://dev-profiles.ucsf.edu/orng/RDFTest.xml', NULL, 1, NULL), -(112, 'Twitter', 'http://dev-profiles.ucsf.edu/ORNG/Twitter.xml', NULL, 1, NULL); +(100, 'Google Search', 'http://stage-profiles.ucsf.edu/apps/ucsfsearch.xml', NULL, 1, NULL), +(101, 'Featured Presentations', 'http://stage-profiles.ucsf.edu/apps/SlideShare.xml', NULL, 1, NULL), +(102, 'Faculty Mentor', 'http://stage-profiles.ucsf.edu/apps/Mentor.xml', NULL, 0, NULL), +(103, 'Websites', 'http://stage-profiles.ucsf.edu/apps/Links.xml', NULL, 1, NULL), +(104, 'Profile List', 'http://stage-profiles.ucsf.edu/apps/ProfileListTool.xml', NULL, 1, 'JSONPersonIds'), +(106, 'RDF Test Gadget', 'http://stage-profiles.ucsf.edu/apps/RDFTest.xml', NULL, 1, NULL), +(112, 'Twitter', 'http://stage-profiles.ucsf.edu/apps/Twitter.xml', NULL, 1, NULL); DELETE FROM `orng_app_views`;