Skip to content

Commit

Permalink
[ issue #112] Fix on delete with datetime objects
Browse files Browse the repository at this point in the history
  • Loading branch information
agazzarini committed Oct 15, 2015
1 parent d0e4ed4 commit f23810e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ public void addConstraint(final StringBuilder builder, final String value) {
}

protected String format(final String value) {
if (value.endsWith("Z")) {
return value;
}
return new StringBuilder()
.append(
isoFormatterCache.get()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ public void deleteWithDateSelector() throws Exception {
executeUpdate(misteryGuest("issue_112_delete_with_a_date_selector.ru", "faceting_test_dataset.nt"));
}

@Test
public void insertDateTimeAndDeleteEverything() throws Exception {
executeUpdate(misteryGuest("issue_112_insert_with_datetime.ru"));
executeUpdate(misteryGuest("issue_112_delete_all.ru"));
}

@Override
protected String examplesDirectory() {
return "src/test/resources/sample_data";
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
INSERT DATA {
<http://localhost:9000/hadatac/kb/DP/00000001/000131313> a <http://hadatac.org/ont/vstoi#Deployment> ;
<http://hadatac.org/ont/hasneto#hasDetector> <http://jefferson.tw.rpi.edu/ontology/jp-kb.owl#VaisalaTHERMOCAP-0003> ;
<http://hadatac.org/ont/hasneto#hasInstrument> <http://jefferson.tw.rpi.edu/ontology/jp-kb.owl#WXT520-0003> ;
<http://hadatac.org/ont/vstoi#hasPlatform> <http://jefferson.tw.rpi.edu/ontology/jp-kb.owl#JP_WX_CEDAR> ;
<http://www.w3.org/ns/prov#startedAtTime> "2015-10-06T05:28:00.000Z"^^<http://www.w3.org/2001/XMLSchema#dateTime> . }

0 comments on commit f23810e

Please sign in to comment.