- From: Andy Seaborne <andy@apache.org>
- Date: Wed, 26 Mar 2014 14:55:00 +0000
- To: CSV on the Web Working Group <public-csv-wg@w3.org>
https://www.w3.org/2013/csvw/wiki/CSV2RDF
This is a conversion based on defining the triples produced, not the
syntax used as output.
------------
Town,Population
Southton,123000
Northville,654000
------------
in the absence of any annotations (i.e. Core Data Model):
generates (if Turtle used - N-triples example in the wiki):
------------
@prefix : <http://host/data.csv#> .
@prefix csv: <http://w3c/future-csv-vocab/> .
# Column information
<http://host/data.csv#metadata>
csv:column [ csv:colName "Town" ;
csv:colPredicate :Town ;
csv:colIndex 1 ] ;
csv:column [ csv:colName "Population" ;
csv:colPredicate :Population ;
csv:colIndex 2 ] ;
.
# Data rows
[ csv:row 1 ; :Town "Southton" ; :Population 123000 ] .
[ csv:row 2 ; :Town "Northville" ; :Population 654000 ] .
------------
population becomes number by guessing from the data.
In that is uses one predicate per column, it is similar to CSV-lD in the
absence of any @context.
If we can make the creation of the CSV-LD @context align to the minimal
structure CSV2RDF uses, we wil at least have a common base line.
Gregg and I will discuss that as per the telecon.
Andy
Received on Wednesday, 26 March 2014 14:55:32 UTC