Ivan, I respectfully disagree with the notion that N3 is useful for humans to look at and don't really think it is helpful to ignore the users of the standardised RDF format, although I know that the currently formatted XML is correct and useful for computers/robots. Although some peoples brains must switch off whenever they see an angle bracket, mine doesn't, and I find it useful to debug applications by examining XML documents. I disagree in silent mostly with the classification of N3 as a text format by its MIME type, ( particularly as Turtle is not thought to be text in a similar way to RDF/XML ;) )
It would be nice if something like the Simple RDF/XML output [1] was produced by Virtuoso by default. The basic rules that make a difference are using document-wide prefixes, which is already done in some way for Turtle AFAICT, and putting common statements, including rdf:type, under a single rdf:Description element for all statements about with a URI as their subject. Although some people think that RDF/XML obscures the Graph structure, I find that the rules in [1] actually help me visualise the graph quite well. I may not completely understand the implications, but it appears to me to be completely compatible with RDF as any statement, even blank nodes, can have a top level Description element referred to with rdf:nodeID. If the only RDF/XML format people had to examine was the one that is generated by Virtuoso currently they would run away to a more logical format but luckily there are other valid versions of RDF/XML and it would be nice to have them available. I disagree that pretty printing SimpleRdfXml will have the same number of repeating characters as it deals in prefixes just like other RDF formats, and could result in even better compression IMO given the precent reduction in size of the original. Cheers, Peter [1] http://esw.w3.org/topic/SimpleRdfXml PS. Sorry it took me so long to reply. I didn't actually receive the reply in my email for some reason, although I saw it in the list archive this morning! <quote> Hello Peter, You're right, the RDF/XML can be pretty-printed like turtle. However N3 is human-friendly so there's a reason to improve the result when it does not affect speed whereas RDF/XML is not for human eyes anyway so I did not care about it. If needed then it can be improved. However, big RDF/XML documents are supposed to be compressed for transfer and the length of the compressed document will stay basically the same, because pretty-printing has as much repeating strings as current output (even if they'll be longer). Best Regards, Ivan Mikhailov, OpenLink Software http://virtuoso.openlinksw.com </quote> ----- Original Message ---- > From: Peter Ansell <p_ans...@yahoo.com> > To: virtuoso-users@lists.sourceforge.net > Sent: Wednesday, 16 July, 2008 1:11:48 PM > Subject: [Virtuoso-users] Formatting of RDF/XML sparql results > > Hi, > > I can kind of understand why Virtuoso does a simple line by line dump from > SQL > row results to RDF/XML files for CONSTRUCT queries. I don't however > understand > why it would be less efficient for the same algorithm that currently > generates > N3 Turtle results can't be ported almost directly over to have a simpler > RDF/XML > result format, ie, start with rdf:Description rdf:about="" the same way that > N3 > does, and then nest one level in with the rest of the results. and start > another > rdf:Description if a different subject was encountered. > > Cheers, > > Peter > > > > Start at the new Yahoo!7 for a better online experience. > www.yahoo7.com.au > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Virtuoso-users mailing list > Virtuoso-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/virtuoso-users Find a better answer, faster with the new Yahoo!7 Search. www.yahoo7.com.au/search