piperdfredland

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


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

Solution

  • 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