How to parse nquad document

I'm interested in parsing out names of places from DBPedia's nquad document. Here's a preview: http://downloads.dbpedia.org/preview.php?file=3.8_sl_en_sl_geo_coordinates_en.nq.bz2

I've looked on Google, but haven't been able to find anything. Any suggestions? I'd prefer a nodejs module (so I can go through the code), but any tool works.