You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@clerezza.apache.org by "Reto Bachmann-Gmür (JIRA)" <ji...@apache.org> on 2010/09/21 11:31:02 UTC
[jira] Resolved: (CLEREZZA-303) Some triples with dates have
another date after storage in tdb graph
[ https://issues.apache.org/jira/browse/CLEREZZA-303?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Reto Bachmann-Gmür resolved CLEREZZA-303.
-----------------------------------------
Assignee: Reto Bachmann-Gmür
Resolution: Cannot Reproduce
The following test passes with the current tdb storage adapter:
@Test
public void dateStorage() {
MGraph graph = getEmptyMGraph();
Date date = new Date(0);
LiteralFactory literalFactory = LiteralFactory.getInstance();
TypedLiteral dateLiteral = literalFactory.createTypedLiteral(date);
Triple triple = new TripleImpl(new BNode(), new UriRef("http://example.com/property"), dateLiteral);
graph.add(triple);
Assert.assertTrue(graph.contains(triple));
}
please reopen the issue specifying how to reproduce issue if you still encounter the problem
> Some triples with dates have another date after storage in tdb graph
> --------------------------------------------------------------------
>
> Key: CLEREZZA-303
> URL: https://issues.apache.org/jira/browse/CLEREZZA-303
> Project: Clerezza
> Issue Type: Bug
> Reporter: Manuel Innerhofer
> Assignee: Reto Bachmann-Gmür
>
> Steps to reproduce the problem:
> MGraph gaph // a graph in tdb
> Date date = new Date(0);
> LiteralFactory literalFactory = LiteralFactory.getInstance();
> TypedLiteral dateLiteral = literalFactory.createTypedLiteral(date);
> Triple triple = new TripleImpl(new BNode(), new UriRef("http://example.com/property"), dateLiteral);
> graph.add(triple)
> Assert.assertTrue(graph.contains(triple))
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.