rdf-ext / rdf-parser-csvw

CSV on the Web parser
MIT License
16 stars 4 forks source link
csv csvw javascript rdf

rdf-parser-csvw

build status npm version

A CSV on the Web parser with RDF/JS Stream interface.

Usage

The package exports the parser as a class, so an instance must be created before it can be used. The .import method, as defined in the RDF/JS specification, must be called to do the actual parsing. It expects a stream of strings. The method will return a stream which emits the parsed quads.

The constructor accepts an options object with the following optional keys:

It's also possible to pass options as second argument to the .import method. The options from the constructor and the .import method will be merged together.