History | Log In     View a printable version of the current page. Get help!  
Issue Details [XML]

Key: SES-711
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Arjohn Kampman
Reporter: Michele Mostarda
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Sesame

Created a duplicate MemLiteral for literal "2004-12-20"^^<http://www.w3.org/2001/XMLSchema#dateTime>

Created: 28/May/10 02:34 PM   Updated: 08/Jul/10 12:19 PM
Component/s: Memory Sail
Affects Version/s: 2.3.1
Fix Version/s: 2.3.2

Issue Links:
Related
This issue is related to:
SES-698 AssertionError: Created a duplicate M... Major Resolved
 


 Description   
I've found this same issue and can be reproduced systematically. Just check out the Any23 library source trunk from google code ( svn checkout http://any23.googlecode.com/svn/trunk/ any23-read-only ), build it through Maven or Ant and run the test org.deri.any23.extractor.rdfa.RDFaExtractorTest with the assertions enabled.

You'll obtain this exception:

java.lang.AssertionError: Created a duplicate MemLiteral for literal "2004-12-20"^^<http://www.w3.org/2001/XMLSchema#dateTime>
at org.openrdf.sail.memory.model.MemValueFactory.createMemLiteral(MemValueFactory.java:328)
at org.openrdf.sail.memory.model.MemValueFactory.createMemValue(MemValueFactory.java:215)

This test aims to verify a tolerant parsing support, in fact as you can notice the literal is a date declared as a datetime.
Any23 is currently using Sesame 2.2.4, a version lover to the declared fix verions, but I tried also an update to 2.3.1 obtaining the same result.

 All   Comments   Change History      Sort Order:
Comment by Arjohn Kampman [08/Jul/10 12:19 PM]
The invalid dateTime value was stored internally as a xsd:date value. A second attempt to create the same value would fail because the MemoryStore couldn't find the first value, but after creating it detected that it created a duplicate.