How to pipe data to rapper (command-line RDF parser by Redland)

211 views Asked by At

How does one pipe data to rapper (command-line RDF parser by Redland)? The following does not work:

curl "http://download.lodlaundromat.org/85d5a476b56fde200e770cefa0e5033c" | gunzip | rapper
1

There are 1 answers

2
Laurens Rietveld On BEST ANSWER

Rapper supports this, though it is pretty undocumented. To stream results to rapper, add - as argument, and add a base uri. I.e., your command should be:

curl "http://download.lodlaundromat.org/85d5a476b56fde200e770cefa0e5033c" | gunzip | rapper -i ntriples - http://baseuri