-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to parse a csv file with a metadata file #13
Comments
Typically, the metadata is looked for in the same place as the CSV (or visa-versa). For example, if you were to clone the repo and install rdf-tabular, rdf-turtle, and rdf gems, you can do the following:
You should also be able to do essentially the same thing on the distiller, using the text forms for both the CSV and Metadata. |
yes, I am trying to put together the simplest foreign key example: the one where the key is in the same table schema as the table itself. I could not find that described anywhere in the w3c docs. I did I think find an example in the github repo, but I did not seem to get any interesting result with csv2rdf. So I am not sure... My use case is also to think of csvw as a schema language which could be reused on an open-ended number of matching CSV files. So for that it helps to be able to pass the metadata file from the command line, not just the http header. In any case I think for command line exploration of the tool being able to pass it as an argument is really useful. It would have been too difficult to get going without that. (I opened a similar issue on the python implementation) |
After placing the metadata file with the name
What I was hoping to get using the I am trying to put together a demonstration where I can show that just by setting [] <#Name> "Anaïs" ;
<#DoB> "2014-09-10"^^<http://www.w3.org/2001/XMLSchema#date> ;
<#Id> 3 ;
<#Sex> "female" ;
<#mother> [ <#Id> 4 ] . But I don't think that is possible even with virtual columns. |
That's probably worth filing in w3c/csvw for some hypothetical future group to take up, and to get more visibility from those who watch it. |
I write something up here: w3c/csvw#885 |
I have a csv file and a metadata file on my file system. With csv2rdf I can write
in order to transform
data/pplEx.csv
using thepplEx.csv-meta.json
metadata file. This will return ntriples for the csv file.I can't work out how to do the same with rdf-tabular. All the examples use http urls which gives me the impression that one first has to setup special headers in the csv http headers. IS that right, or have I missed the command line needed when debugging.
I wanted to see if rdf-tabular had more advanced features than csv2rdf. For example I was interested to see what I need to do to get foreign keys to work. This is the csv file
this is the metadata file
The text was updated successfully, but these errors were encountered: