Nice to know, thanks! We should put together a Docker image with all these utilities ;) On Sun, 11 Nov 2018 at 16.02, Adrian Gschwend <[email protected]> wrote:
> On 11.11.18 18:36, Martynas Jusevičius wrote: > > > I got a tip that rapper should be able to convert N-Quads to N-Triples. > > http://librdf.org/raptor/rapper.html > > I did use rapper too for that but for large datasets it was too slow. I > use "serd" now for batch-conversion, this is by far the fastest lib I > found. It converts nquads to ntriples as well: > > https://drobilla.net/software/serd > > I once opened an issue for what you are looking for: > > https://github.com/drobilla/serd/issues/12 > > currently, I do it like this: > > #!/usr/bin/env bash > set -euo pipefail > > tdbdump --loc target/tdb | sed '\#example.org#d' | serdi -o ntriples - | > gzip --stdout > target/everything.nt.gz > > In this example I strip out a certain grap, if you don't need that just > skip this part. serdi throws away the graph in nquads > > > regards > > Adrian >
