[ 
https://issues.apache.org/jira/browse/CLEREZZA-303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12913596#action_12913596
 ] 

Reto Bachmann-Gmür commented on CLEREZZA-303:
---------------------------------------------

I think we have this problem also for other datatypes with the TDB,  TDB stores 
the value of typed literals rather than their lexical form.

> 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.

Reply via email to