|
|
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: Open Discussion » Thread: Sesame 1.1-RC1 released |
|
Total posts in this thread: 20
|
[Add To My Favorites] [Watch this Thread] [Post new Thread] |
| Author |
|
|
Sep 16, 2004 3:38:19 PM
jeen Sesame Addict The Netherlands Joined: Jan 23, 2004 Posts: 1091 Status: Offline |
We've released Sesame 1.1 Release Candidate 1 on Sourceforge.net. See the official announcement for details. Thanks everyone who contributed. We hope to keep on receiving your feedback! ---------------------------------------- Researcher at AFSG - Wageningen UR |
||
|
|
Sep 17, 2004 9:27:47 AM
bartman Sesame Addict Joined: May 10, 2004 Posts: 113 Status: Offline |
Hi, I tried the RC1 and got problems using a file-persistent memory-sail. I see that you've changed the serialization-format to rdf/xml. I can import data without problems but when I try to initialize the repository the next time I get a runtime exception:
The character that causes the error in the repository-file has hex-code zero (#00). I remember that in earlier versions the import of this character did cause an exception the moment I try to import it. It seems that i can import such data with no problem at the moment. Could you please verify this? Thanks, Bartman |
||
|
|
Sep 17, 2004 9:44:31 AM
bartman Sesame Addict Joined: May 10, 2004 Posts: 113 Status: Offline |
Some further information to this problem: I use the graph API to insert new triples. So the triple will be added by using methods like the following:
I would expect an exception in the moment I create the Literal:
What could I try? Bartman |
||
|
|
Sep 17, 2004 9:57:09 AM
arjohn OpenRDF project lead The Netherlands Joined: Jan 23, 2004 Posts: 1289 Status: Offline |
The serialization format is configurable now. The default format is RDF/XML, but you can change this by specifiying the 'dataFormat' property on initialization. Legal values are "rdfxml", "ntriples" and "turtle".
I'm not sure I understand you correctly. Are you trying to insert a literal into Sesame that contains the character \0? If so, this could explain the stack trace as this character is not allowed in XML documents. Arjohn ---------------------------------------- Arjohn Kampman, OpenRDF project lead, Aduna ---------------------------------------- [Edit 1 times, last edit by arjohn at Sep 17, 2004 9:59:50 AM] |
|||||
|
|
Sep 17, 2004 10:17:36 AM
bartman Sesame Addict Joined: May 10, 2004 Posts: 113 Status: Offline |
Hi Arjohn, yes. My application will try to insert a literal into the repository with a character \0. Using the described methods this works without problems (which is a problem, because it should raise an exception the moment I try to construct the illegal literal). After the sail materializes the repository in a file (with the erroneous triple) it is not able to initialize the repository the next startup of the application (raising the shown exception). This moment I tried to insert the triple in a mysql-repository and it worked too. The createLiteral method should raise an exception at the moment the application tries to construct a literal with character /0. Do you understand the problem? Bartman |
||
|
|
Sep 17, 2004 10:29:34 AM
bartman Sesame Addict Joined: May 10, 2004 Posts: 113 Status: Offline |
I can reproduce the exception at repository initialization with the dataformat "turtle" and "rdfxml". The ntriples parser doesn't seem to recognize \0 characters as nonvalid literals, so using the dataformat "ntriples" raises no exception. Bartman |
||
|
|
Sep 17, 2004 10:51:55 AM
arjohn OpenRDF project lead The Netherlands Joined: Jan 23, 2004 Posts: 1289 Status: Offline |
Strange, the Turtle parser is more or less an extension of the N-Triples parser, so I would expect these two to behave identically. I guess its time to dive into the code. I will let you know if I find anything. Arjohn ---------------------------------------- Arjohn Kampman, OpenRDF project lead, Aduna |
||
|
|
Sep 17, 2004 11:01:44 AM
bartman Sesame Addict Joined: May 10, 2004 Posts: 113 Status: Offline |
Thanks alot! I just want to stress, that the exception at the initialization of the repository is correct! The problem is, that I can insert triples with /0 characters into the repository. The createLiteral method should not allow me to create such illegal literals because it will run the repository to serialization/initialization problems. Bartman |
|||
|
|
Sep 17, 2004 11:12:02 AM
arjohn OpenRDF project lead The Netherlands Joined: Jan 23, 2004 Posts: 1289 Status: Offline |
FYI: I have been able to reproduce the problem by uploading the following N-Triples statement/document to an in-memory repository: <foo:subj> <foo:prop> "Hello\u0000World". Arjohn ---------------------------------------- Arjohn Kampman, OpenRDF project lead, Aduna |
||
|
|
Sep 17, 2004 11:52:48 AM
jeen Sesame Addict The Netherlands Joined: Jan 23, 2004 Posts: 1091 Status: Offline |
I am not so sure. I actually think that the correct behaviour should be that any string is allowed as a literal, and that when we store a literal that contains escape sequences like this, the escape sequence itself should be escaped. But as they, de beste stuurlui staan aan wal. I'll leave Arjohn to deal with it ![]() ---------------------------------------- Researcher at AFSG - Wageningen UR |
|||
|
|
[Show Printable Version of Thread] [Post new Thread] |