Skip to content
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

Infer RDF format in csv->rdf->file #28

Closed
lkitching opened this issue Sep 12, 2019 · 2 comments
Closed

Infer RDF format in csv->rdf->file #28

lkitching opened this issue Sep 12, 2019 · 2 comments

Comments

@lkitching
Copy link
Contributor

csvw/csv->rdf->file currently always writes turtle to the output file. Update it to try to infer the RDF format from the file extension and use turtle as the default if the format could not be inferred.

lkitching added a commit that referenced this issue May 27, 2020
Issue #28 - Infer the RDF format to output to the destination file
in csvw/csv->rdf->file if possible. Use Turtle format if no format
can be inferred from the file name.
@berazo29
Copy link

berazo29 commented Oct 5, 2023

is this feature added?

@lkitching
Copy link
Contributor Author

@berazo29 - Yes this has been implemented now, the format is inferred here. If you use e.g.

(csv->rdf->file (io/file "input.csv") nil (io/file "output.nt") {})

it should write NTriples to the output file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants