W3C home > Mailing lists > Public > semantic-web@w3.org > January 2010

Re: RDF to CSV

From: Steve Harris <steve.harris@garlik.com>
Date: Mon, 25 Jan 2010 09:56:33 +0000
Cc: vasavi kamdar <vasavikamdar@gmail.com>, semantic-web@w3.org
Message-Id: <261DDE1C-86E5-474D-BA48-568CC3337550@garlik.com>
To: Dave Beckett <dave@dajobe.org>
On 25 Jan 2010, at 04:34, Dave Beckett wrote:
> vasavi kamdar wrote:
>> Hi,
>>
>> Can any one please help me with converting an RDF file to CSV
>> Thanks and Regards,
>> Vasavi Kamdar
>>
>> The great pleasure in life is doing what people say you cannot do...
...
> Of course if you want to just do a conversion, you'll need to  
> clearly think
> what goal you want to achieve.  Turning a graph into a table (CSV)  
> is more
> like running a query to the graph and getting back a sequence of  
> results so
> you might want to use SPARQL for that.

Right, some SPARQL stores (I don't know which ones offhand) can output  
CSV results directly, just by requesting with the correct mime type.

4store can only do TSV, but it's easy to convert.

The UNIX sparql-query tool[1] can produce text files from any SPARQL  
store, but I don't think it does CSV, would be easy enough to add that  
though.

- Steve

[1] http://github.com/tialaramex/sparql-query

-- 
Steve Harris, Garlik Limited
2 Sheen Road, Richmond, TW9 1AE, UK
+44 20 8973 2465  http://www.garlik.com/
Registered in England and Wales 535 7233 VAT # 849 0517 11
Registered office: Thames House, Portsmouth Road, Esher, Surrey, KT10  
9AD
Received on Monday, 25 January 2010 09:57:04 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:48:05 UTC