|
|
Index
| Recent Threads
| Who's Online
| User List
| Search
| Help
| |
|
Forum has been closed down This forum has been closed down due to extensive spamming activities. Please use the mailing list instead. |
![]() |
openRDF.org Forum » Sesame & Rio: Open Discussion » Thread: Turtle Tuples: Turtle-based query result format |
|
Total posts in this thread: 2 |
[Add To My Favorites] [Watch this Thread] |
| Author |
|
|
Jan 24, 2005 10:17:49 AM
arjohn OpenRDF project lead The Netherlands Joined: Jan 23, 2004 Posts: 1289 Status: Offline |
Hi all, What started as a search for ways to compact the XML-based query result format for Sesame, resulted in an idea for a completely new format: one that is based on Turtle. Please share your thoughts on whether this is a good or a bad idea with me. The simple idea is to represent a table-like query result as a document of tab- (or whitespace-) separated Turtle values. Each line of tab-separated values represents one row of the query result. Just like in Turtle, @prefix directives can be used to map namespaces to prefixes. A format-specific @header directive is used to give names to the table's columns and the '*' character is used to indicate NULL values. The following shows an example query result: @header "Country" "Name" "NatRes". (Please note that the above does not describe RDF triples, but tuples which happen to have 3 values.) Clearly, this is a very simple format. Advantages of this format over an XML-based format are:
@header "Country" "Name" "NatRes". Well, what do you think? Arjohn ---------------------------------------- Arjohn Kampman, OpenRDF project lead, Aduna ---------------------------------------- [Edit 1 times, last edit by arjohn at Jan 24, 2005 10:27:30 AM] |
||
|
|
Feb 8, 2005 1:08:02 PM
arjohn OpenRDF project lead The Netherlands Joined: Jan 23, 2004 Posts: 1289 Status: Offline |
The past week I have been implemented both the protocol described above and a special purpose binary protocol. Performance tests show that the TurtleTuples format is sometimes slower and sometimes faster than the XML-format. The binary format is faster than both of them. One of the tests was based on querying a "remote" server running on localhost that contained the wordnet schema and nouns. The repository that was used was a non-inferencing memory repository. The performance was measured by sending queries from a client which read back the results and counted them. The query that was used on the wordnet data was: select *This query yielded a query results table with 174002 rows. The times spend from the moment the query was send to the server until the last row had been counted were: XML : 12688 ms (100%)Based on these and other results, we have decided to include the binary result format in Sesame and to ignore the TurtleTuples format for now. The new stuff will be included in the upcoming Sesame 1.1.1 release. Documentation for the binary result format can be found in the javadoc of interface org.openrdf.sesame.query.BinaryTableResultConstants (available through CVS only, for now). ---------------------------------------- Arjohn Kampman, OpenRDF project lead, Aduna ---------------------------------------- [Edit 1 times, last edit by arjohn at Feb 8, 2005 1:09:44 PM] |
||
|
| [Show Printable Version of Thread] |