|
|
Index
| Recent Threads
| Who's Online
| User List
| Search
| Help
| |
|
Forum closing down This forum will be closing down due to extensive spamming activities. As a first step, registration of new members has been disabled. Existing members will be able to use the forum for now, but please consider using the sesame-general mailing list instead. |
![]() |
openRDF.org Forum » Sesame & Rio: Help » Thread: XML/RDF parsing bug with empty literals. |
|
Total posts in this thread: 7 |
[Add To My Favorites] [Watch this Thread] [Post new Thread] |
| Author |
|
|
Mar 31, 2005 6:25:36 PM
yonasj Regular Canada Joined: Dec 20, 2004 Posts: 38 Status: Offline |
Hello, I have found a bug in the RDF parsing. Here is a sample file that triggers the bug.
After loading this RDF into a memory repositroy using Sesame 1.1.2 an incorrect statement is created. The correct statement is: RoyalState_Individual_810 Step_step_number "Correct"^^http://www.w3.org/2001/XMLSchema#string The incorrect statement is: RoyalState_Individual_810 Step_step_number _:node0 Here a BNode is being created. The BNode has one statement about it. That statement is: _:node0 rdf:type http://www.w3.org/2001/XMLSchema#string I beleive that the correct behaviour would be to create a statement where the value is a 0 length string... Yonas. |
||
|
|
Mar 31, 2005 7:15:11 PM
yonasj Regular Canada Joined: Dec 20, 2004 Posts: 38 Status: Offline |
BTW: You will need to disable validation. |
||
|
|
Apr 1, 2005 9:05:42 AM
arjohn OpenRDF project lead The Netherlands Joined: Jan 23, 2004 Posts: 1289 Status: Offline |
The W3C RDF Validation Service accepts this data as legal RDF. I'll look into it. ---------------------------------------- Arjohn Kampman, OpenRDF project lead, Aduna |
||
|
|
Apr 1, 2005 2:02:16 PM
arjohn OpenRDF project lead The Netherlands Joined: Jan 23, 2004 Posts: 1289 Status: Offline |
It looks like Sesame's parser is right according to a spec, but I find this very strange. Probably, this is an error in the RDF/XML specification. I'll contact the editors of the spec to find out what is the right thing to do. ---------------------------------------- Arjohn Kampman, OpenRDF project lead, Aduna |
||
|
|
Apr 4, 2005 10:11:21 PM
uSeRNaMe Visitor
|
I have experienced this problem as well; it seems that Protege produces RDF like yonasj has posted. I've modified the RdfXmlParser class to accomodate this:
I believe this fix is spec-compliant and solves this issue. Please find the source attached in full. ---------------------------------------- |
||
|
|
Apr 5, 2005 10:49:43 AM
arjohn OpenRDF project lead The Netherlands Joined: Jan 23, 2004 Posts: 1289 Status: Offline |
Issue has been logged as [RIO-14]. Error in the specification has been reported on the www-rdf-comments mailing list: http://lists.w3.org/Archives/Public/www-rdf-comments/2005AprJun/0000.html ---------------------------------------- Arjohn Kampman, OpenRDF project lead, Aduna |
||
|
|
Apr 5, 2005 1:44:03 PM
arjohn OpenRDF project lead The Netherlands Joined: Jan 23, 2004 Posts: 1289 Status: Offline |
A fix for this issue is included in Sesame 1.1.3 and Rio 1.0.3, which have just been uploaded to sourceforge.net. @uSeRNaMe: thanks for the code. I checked in a slightly modified version of the code to fix this issue. ---------------------------------------- Arjohn Kampman, OpenRDF project lead, Aduna |
||
|
| [Show Printable Version of Thread] [Post new Thread] |