Open davidbgk opened 8 years ago
dialect.delimiter
, not be hardcodedtableSchema.columns[i].propertyUrl = "dgfr:codeINSEE"
tableSchema.columns[i]
, you have tableSchema.columns[i].valueUrl
. This value is made like this: http://id.insee.fr/geo/commune/
+ concatenation of one or more CSV fields (in this case: CODDPT
+ CODSUBCOM
)tableSchema.columns[i].name
to get the COG for each rowDepending on what you want to achieve, there is an official JSON-LD Python utility, that does what the JSON-LD playground does: consumes JSON-LD and its context, and outputs various flavours of JSON-LD (flattened, expanded, etc.) or RDF (N-Quads, N-Triples).
Obviously, what we need most of all, is a utility (preferably in Python) that consumes a CSV and its CSVW annotation to produce a JSON-LD version of the CSV.
Using Python3, no semantic logic:
Discuss :)